Class ListOrdersResponse.Builder (0.14.0)

public static final class ListOrdersResponse.Builder extends GeneratedMessageV3.Builder<ListOrdersResponse.Builder> implements ListOrdersResponseOrBuilder

Response object for ListOrdersRequest containing matching Order resources.

Protobuf type google.ads.admanager.v1.ListOrdersResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllOrders(Iterable<? extends Order> values)

public ListOrdersResponse.Builder addAllOrders(Iterable<? extends Order> values)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.Order>
Returns
Type Description
ListOrdersResponse.Builder

addOrders(Order value)

public ListOrdersResponse.Builder addOrders(Order value)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameter
Name Description
value Order
Returns
Type Description
ListOrdersResponse.Builder

addOrders(Order.Builder builderForValue)

public ListOrdersResponse.Builder addOrders(Order.Builder builderForValue)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameter
Name Description
builderForValue Order.Builder
Returns
Type Description
ListOrdersResponse.Builder

addOrders(int index, Order value)

public ListOrdersResponse.Builder addOrders(int index, Order value)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameters
Name Description
index int
value Order
Returns
Type Description
ListOrdersResponse.Builder

addOrders(int index, Order.Builder builderForValue)

public ListOrdersResponse.Builder addOrders(int index, Order.Builder builderForValue)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameters
Name Description
index int
builderForValue Order.Builder
Returns
Type Description
ListOrdersResponse.Builder

addOrdersBuilder()

public Order.Builder addOrdersBuilder()

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Returns
Type Description
Order.Builder

addOrdersBuilder(int index)

public Order.Builder addOrdersBuilder(int index)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameter
Name Description
index int
Returns
Type Description
Order.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListOrdersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListOrdersResponse.Builder
Overrides

build()

public ListOrdersResponse build()
Returns
Type Description
ListOrdersResponse

buildPartial()

public ListOrdersResponse buildPartial()
Returns
Type Description
ListOrdersResponse

clear()

public ListOrdersResponse.Builder clear()
Returns
Type Description
ListOrdersResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListOrdersResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListOrdersResponse.Builder
Overrides

clearNextPageToken()

public ListOrdersResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListOrdersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListOrdersResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListOrdersResponse.Builder
Overrides

clearOrders()

public ListOrdersResponse.Builder clearOrders()

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Returns
Type Description
ListOrdersResponse.Builder

clearTotalSize()

public ListOrdersResponse.Builder clearTotalSize()

Total number of Orders. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Returns
Type Description
ListOrdersResponse.Builder

This builder for chaining.

clone()

public ListOrdersResponse.Builder clone()
Returns
Type Description
ListOrdersResponse.Builder
Overrides

getDefaultInstanceForType()

public ListOrdersResponse getDefaultInstanceForType()
Returns
Type Description
ListOrdersResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getOrders(int index)

public Order getOrders(int index)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameter
Name Description
index int
Returns
Type Description
Order

getOrdersBuilder(int index)

public Order.Builder getOrdersBuilder(int index)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameter
Name Description
index int
Returns
Type Description
Order.Builder

getOrdersBuilderList()

public List<Order.Builder> getOrdersBuilderList()

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Returns
Type Description
List<Builder>

getOrdersCount()

public int getOrdersCount()

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Returns
Type Description
int

getOrdersList()

public List<Order> getOrdersList()

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Returns
Type Description
List<Order>

getOrdersOrBuilder(int index)

public OrderOrBuilder getOrdersOrBuilder(int index)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameter
Name Description
index int
Returns
Type Description
OrderOrBuilder

getOrdersOrBuilderList()

public List<? extends OrderOrBuilder> getOrdersOrBuilderList()

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Returns
Type Description
List<? extends com.google.ads.admanager.v1.OrderOrBuilder>

getTotalSize()

public int getTotalSize()

Total number of Orders. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Returns
Type Description
int

The totalSize.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListOrdersResponse other)

public ListOrdersResponse.Builder mergeFrom(ListOrdersResponse other)
Parameter
Name Description
other ListOrdersResponse
Returns
Type Description
ListOrdersResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListOrdersResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListOrdersResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListOrdersResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListOrdersResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListOrdersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListOrdersResponse.Builder
Overrides

removeOrders(int index)

public ListOrdersResponse.Builder removeOrders(int index)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameter
Name Description
index int
Returns
Type Description
ListOrdersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListOrdersResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListOrdersResponse.Builder
Overrides

setNextPageToken(String value)

public ListOrdersResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListOrdersResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListOrdersResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListOrdersResponse.Builder

This builder for chaining.

setOrders(int index, Order value)

public ListOrdersResponse.Builder setOrders(int index, Order value)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameters
Name Description
index int
value Order
Returns
Type Description
ListOrdersResponse.Builder

setOrders(int index, Order.Builder builderForValue)

public ListOrdersResponse.Builder setOrders(int index, Order.Builder builderForValue)

The Order from the specified network.

repeated .google.ads.admanager.v1.Order orders = 1;

Parameters
Name Description
index int
builderForValue Order.Builder
Returns
Type Description
ListOrdersResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListOrdersResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListOrdersResponse.Builder
Overrides

setTotalSize(int value)

public ListOrdersResponse.Builder setTotalSize(int value)

Total number of Orders. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
ListOrdersResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListOrdersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListOrdersResponse.Builder
Overrides