Class ListEntitlementsResponse.Builder (3.56.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.channel.v1.Entitlement>
Returns
Type Description
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
Name Description
value Entitlement
Returns
Type Description
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
Name Description
builderForValue Entitlement.Builder
Returns
Type Description
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
Name Description
index int
value Entitlement
Returns
Type Description
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
Name Description
index int
builderForValue Entitlement.Builder
Returns
Type Description
ListEntitlementsResponse.Builder

addEntitlementsBuilder()

public Entitlement.Builder addEntitlementsBuilder()

The reseller customer's entitlements.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
Entitlement.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListEntitlementsResponse build()
Returns
Type Description
ListEntitlementsResponse

buildPartial()

public ListEntitlementsResponse buildPartial()
Returns
Type Description
ListEntitlementsResponse

clear()

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

clearEntitlements()

public ListEntitlementsResponse.Builder clearEntitlements()

The reseller customer's entitlements.

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

Returns
Type Description
ListEntitlementsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListEntitlementsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
ListEntitlementsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListEntitlementsResponse getDefaultInstanceForType()
Returns
Type Description
ListEntitlementsResponse

getDescriptorForType()

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

getEntitlements(int index)

public Entitlement getEntitlements(int index)

The reseller customer's entitlements.

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

Parameter
Name Description
index int
Returns
Type Description
Entitlement

getEntitlementsBuilder(int index)

public Entitlement.Builder getEntitlementsBuilder(int index)

The reseller customer's entitlements.

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

Parameter
Name Description
index int
Returns
Type Description
Entitlement.Builder

getEntitlementsBuilderList()

public List<Entitlement.Builder> getEntitlementsBuilderList()

The reseller customer's entitlements.

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

Returns
Type Description
List<Builder>

getEntitlementsCount()

public int getEntitlementsCount()

The reseller customer's entitlements.

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

Returns
Type Description
int

getEntitlementsList()

public List<Entitlement> getEntitlementsList()

The reseller customer's entitlements.

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

Returns
Type Description
List<Entitlement>

getEntitlementsOrBuilder(int index)

public EntitlementOrBuilder getEntitlementsOrBuilder(int index)

The reseller customer's entitlements.

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

Parameter
Name Description
index int
Returns
Type Description
EntitlementOrBuilder

getEntitlementsOrBuilderList()

public List<? extends EntitlementOrBuilder> getEntitlementsOrBuilderList()

The reseller customer's entitlements.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListEntitlementsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListEntitlementsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
value Entitlement
Returns
Type Description
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
Name Description
index int
builderForValue Entitlement.Builder
Returns
Type Description
ListEntitlementsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListEntitlementsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListEntitlementsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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