Class ListOrdersResponse.Builder (0.47.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.v1alpha1.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 list of orders in this response.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.Order>
Returns
Type Description
ListOrdersResponse.Builder

addOrders(Order value)

public ListOrdersResponse.Builder addOrders(Order value)

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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 list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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 list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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 list of orders in this response.

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

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

addOrdersBuilder()

public Order.Builder addOrdersBuilder()

The list of orders in this response.

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

Returns
Type Description
Order.Builder

addOrdersBuilder(int index)

public Order.Builder addOrdersBuilder(int index)

The list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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()

The token for fetching the next page.

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 list of orders in this response.

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

Returns
Type Description
ListOrdersResponse.Builder

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()

The token for fetching the next page.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token for fetching the next page.

string next_page_token = 2;

Returns
Type Description
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.v1alpha1.Order orders = 1;

Parameter
Name Description
index int
Returns
Type Description
Order

getOrdersBuilder(int index)

public Order.Builder getOrdersBuilder(int index)

The list of orders in this response.

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

Parameter
Name Description
index int
Returns
Type Description
Order.Builder

getOrdersBuilderList()

public List<Order.Builder> getOrdersBuilderList()

The list of orders in this response.

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

Returns
Type Description
List<Builder>

getOrdersCount()

public int getOrdersCount()

The list of orders in this response.

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

Returns
Type Description
int

getOrdersList()

public List<Order> getOrdersList()

The list of orders in this response.

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

Returns
Type Description
List<Order>

getOrdersOrBuilder(int index)

public OrderOrBuilder getOrdersOrBuilder(int index)

The list of orders in this response.

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

Parameter
Name Description
index int
Returns
Type Description
OrderOrBuilder

getOrdersOrBuilderList()

public List<? extends OrderOrBuilder> getOrdersOrBuilderList()

The list of orders in this response.

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

Returns
Type Description
List<? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder>

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 list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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)

The token for fetching the next page.

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)

The token for fetching the next page.

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 list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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 list of orders in this response.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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

setUnknownFields(UnknownFieldSet unknownFields)

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