Class ListEntitlementsResponse.Builder (3.39.0)

public static final class ListEntitlementsResponse.Builder extends GeneratedMessageV3.Builder<ListEntitlementsResponse.Builder> implements ListEntitlementsResponseOrBuilder

Response message for CloudChannelService.ListEntitlements.

Protobuf type google.cloud.channel.v1.ListEntitlementsResponse

Static Methods

getDescriptor()

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

Methods

addAllEntitlements(Iterable<? extends Entitlement> values)

public ListEntitlementsResponse.Builder addAllEntitlements(Iterable<? extends Entitlement> values)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.Entitlement>
Returns
TypeDescription
ListEntitlementsResponse.Builder

addEntitlements(Entitlement value)

public ListEntitlementsResponse.Builder addEntitlements(Entitlement value)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameter
NameDescription
valueEntitlement
Returns
TypeDescription
ListEntitlementsResponse.Builder

addEntitlements(Entitlement.Builder builderForValue)

public ListEntitlementsResponse.Builder addEntitlements(Entitlement.Builder builderForValue)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameter
NameDescription
builderForValueEntitlement.Builder
Returns
TypeDescription
ListEntitlementsResponse.Builder

addEntitlements(int index, Entitlement value)

public ListEntitlementsResponse.Builder addEntitlements(int index, Entitlement value)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameters
NameDescription
indexint
valueEntitlement
Returns
TypeDescription
ListEntitlementsResponse.Builder

addEntitlements(int index, Entitlement.Builder builderForValue)

public ListEntitlementsResponse.Builder addEntitlements(int index, Entitlement.Builder builderForValue)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameters
NameDescription
indexint
builderForValueEntitlement.Builder
Returns
TypeDescription
ListEntitlementsResponse.Builder

addEntitlementsBuilder()

public Entitlement.Builder addEntitlementsBuilder()

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Returns
TypeDescription
Entitlement.Builder

addEntitlementsBuilder(int index)

public Entitlement.Builder addEntitlementsBuilder(int index)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Entitlement.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListEntitlementsResponse build()
Returns
TypeDescription
ListEntitlementsResponse

buildPartial()

public ListEntitlementsResponse buildPartial()
Returns
TypeDescription
ListEntitlementsResponse

clear()

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

clearEntitlements()

public ListEntitlementsResponse.Builder clearEntitlements()

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Returns
TypeDescription
ListEntitlementsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListEntitlementsResponse.Builder clearNextPageToken()

A token to list the next page of results. Pass to ListEntitlementsRequest.page_token to obtain that page.

string next_page_token = 2;

Returns
TypeDescription
ListEntitlementsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListEntitlementsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListEntitlementsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntitlements(int index)

public Entitlement getEntitlements(int index)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Entitlement

getEntitlementsBuilder(int index)

public Entitlement.Builder getEntitlementsBuilder(int index)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Entitlement.Builder

getEntitlementsBuilderList()

public List<Entitlement.Builder> getEntitlementsBuilderList()

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Returns
TypeDescription
List<Builder>

getEntitlementsCount()

public int getEntitlementsCount()

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Returns
TypeDescription
int

getEntitlementsList()

public List<Entitlement> getEntitlementsList()

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Returns
TypeDescription
List<Entitlement>

getEntitlementsOrBuilder(int index)

public EntitlementOrBuilder getEntitlementsOrBuilder(int index)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntitlementOrBuilder

getEntitlementsOrBuilderList()

public List<? extends EntitlementOrBuilder> getEntitlementsOrBuilderList()

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Returns
TypeDescription
List<? extends com.google.cloud.channel.v1.EntitlementOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token to list the next page of results. Pass to ListEntitlementsRequest.page_token to obtain that page.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to list the next page of results. Pass to ListEntitlementsRequest.page_token to obtain that page.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListEntitlementsResponse other)

public ListEntitlementsResponse.Builder mergeFrom(ListEntitlementsResponse other)
Parameter
NameDescription
otherListEntitlementsResponse
Returns
TypeDescription
ListEntitlementsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEntitlements(int index)

public ListEntitlementsResponse.Builder removeEntitlements(int index)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListEntitlementsResponse.Builder

setEntitlements(int index, Entitlement value)

public ListEntitlementsResponse.Builder setEntitlements(int index, Entitlement value)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameters
NameDescription
indexint
valueEntitlement
Returns
TypeDescription
ListEntitlementsResponse.Builder

setEntitlements(int index, Entitlement.Builder builderForValue)

public ListEntitlementsResponse.Builder setEntitlements(int index, Entitlement.Builder builderForValue)

The reseller customer's entitlements.

repeated .google.cloud.channel.v1.Entitlement entitlements = 1;

Parameters
NameDescription
indexint
builderForValueEntitlement.Builder
Returns
TypeDescription
ListEntitlementsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListEntitlementsResponse.Builder setNextPageToken(String value)

A token to list the next page of results. Pass to ListEntitlementsRequest.page_token to obtain that page.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListEntitlementsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListEntitlementsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to list the next page of results. Pass to ListEntitlementsRequest.page_token to obtain that page.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListEntitlementsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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