Class ListOrdersResponse.Builder (0.38.0)

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

Response message for ConsumerProcurementService.ListOrders.

Protobuf type google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllOrders(Iterable<? extends Order> values)

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

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.commerce.consumer.procurement.v1.Order>
Returns
TypeDescription
ListOrdersResponse.Builder

addOrders(Order value)

public ListOrdersResponse.Builder addOrders(Order value)

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameter
NameDescription
valueOrder
Returns
TypeDescription
ListOrdersResponse.Builder

addOrders(Order.Builder builderForValue)

public ListOrdersResponse.Builder addOrders(Order.Builder builderForValue)

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameter
NameDescription
builderForValueOrder.Builder
Returns
TypeDescription
ListOrdersResponse.Builder

addOrders(int index, Order value)

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

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameters
NameDescription
indexint
valueOrder
Returns
TypeDescription
ListOrdersResponse.Builder

addOrders(int index, Order.Builder builderForValue)

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

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameters
NameDescription
indexint
builderForValueOrder.Builder
Returns
TypeDescription
ListOrdersResponse.Builder

addOrdersBuilder()

public Order.Builder addOrdersBuilder()

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Returns
TypeDescription
Order.Builder

addOrdersBuilder(int index)

public Order.Builder addOrdersBuilder(int index)

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Order.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListOrdersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides

build()

public ListOrdersResponse build()
Returns
TypeDescription
ListOrdersResponse

buildPartial()

public ListOrdersResponse buildPartial()
Returns
TypeDescription
ListOrdersResponse

clear()

public ListOrdersResponse.Builder clear()
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListOrdersResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides

clearNextPageToken()

public ListOrdersResponse.Builder clearNextPageToken()

The token for fetching the next page.

string next_page_token = 2;

Returns
TypeDescription
ListOrdersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListOrdersResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides

clearOrders()

public ListOrdersResponse.Builder clearOrders()

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Returns
TypeDescription
ListOrdersResponse.Builder

clone()

public ListOrdersResponse.Builder clone()
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides

getDefaultInstanceForType()

public ListOrdersResponse getDefaultInstanceForType()
Returns
TypeDescription
ListOrdersResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The token for fetching the next page.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token for fetching the next page.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getOrders(int index)

public Order getOrders(int index)

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Order

getOrdersBuilder(int index)

public Order.Builder getOrdersBuilder(int index)

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Order.Builder

getOrdersBuilderList()

public List<Order.Builder> getOrdersBuilderList()

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Returns
TypeDescription
List<Builder>

getOrdersCount()

public int getOrdersCount()

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Returns
TypeDescription
int

getOrdersList()

public List<Order> getOrdersList()

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Returns
TypeDescription
List<Order>

getOrdersOrBuilder(int index)

public OrderOrBuilder getOrdersOrBuilder(int index)

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderOrBuilder

getOrdersOrBuilderList()

public List<? extends OrderOrBuilder> getOrdersOrBuilderList()

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Returns
TypeDescription
List<? extends com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListOrdersResponse other)

public ListOrdersResponse.Builder mergeFrom(ListOrdersResponse other)
Parameter
NameDescription
otherListOrdersResponse
Returns
TypeDescription
ListOrdersResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListOrdersResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListOrdersResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListOrdersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides

removeOrders(int index)

public ListOrdersResponse.Builder removeOrders(int index)

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListOrdersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListOrdersResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides

setNextPageToken(String value)

public ListOrdersResponse.Builder setNextPageToken(String value)

The token for fetching the next page.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListOrdersResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListOrdersResponse.Builder setNextPageTokenBytes(ByteString value)

The token for fetching the next page.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListOrdersResponse.Builder

This builder for chaining.

setOrders(int index, Order value)

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

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameters
NameDescription
indexint
valueOrder
Returns
TypeDescription
ListOrdersResponse.Builder

setOrders(int index, Order.Builder builderForValue)

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

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;

Parameters
NameDescription
indexint
builderForValueOrder.Builder
Returns
TypeDescription
ListOrdersResponse.Builder

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

public ListOrdersResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListOrdersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListOrdersResponse.Builder
Overrides