Class ListEntitlementsResponse.Builder (0.8.0)

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

Message for response to listing entitlements.

Protobuf type google.cloud.privilegedaccessmanager.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 list of entitlements.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.privilegedaccessmanager.v1.Entitlement>
Returns
Type Description
ListEntitlementsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListEntitlementsResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListEntitlementsResponse.Builder

This builder for chaining.

addEntitlements(Entitlement value)

public ListEntitlementsResponse.Builder addEntitlements(Entitlement value)

The list of entitlements.

repeated .google.cloud.privilegedaccessmanager.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 list of entitlements.

repeated .google.cloud.privilegedaccessmanager.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 list of entitlements.

repeated .google.cloud.privilegedaccessmanager.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 list of entitlements.

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

Parameters
Name Description
index int
builderForValue Entitlement.Builder
Returns
Type Description
ListEntitlementsResponse.Builder

addEntitlementsBuilder()

public Entitlement.Builder addEntitlementsBuilder()

The list of entitlements.

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

Returns
Type Description
Entitlement.Builder

addEntitlementsBuilder(int index)

public Entitlement.Builder addEntitlementsBuilder(int index)

The list of entitlements.

repeated .google.cloud.privilegedaccessmanager.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

addUnreachable(String value)

public ListEntitlementsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListEntitlementsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListEntitlementsResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListEntitlementsResponse.Builder

This builder for chaining.

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 list of entitlements.

repeated .google.cloud.privilegedaccessmanager.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 identifying a page of results the server should return.

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

clearUnreachable()

public ListEntitlementsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListEntitlementsResponse.Builder

This builder for chaining.

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 list of entitlements.

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

Parameter
Name Description
index int
Returns
Type Description
Entitlement

getEntitlementsBuilder(int index)

public Entitlement.Builder getEntitlementsBuilder(int index)

The list of entitlements.

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

Parameter
Name Description
index int
Returns
Type Description
Entitlement.Builder

getEntitlementsBuilderList()

public List<Entitlement.Builder> getEntitlementsBuilderList()

The list of entitlements.

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

Returns
Type Description
List<Builder>

getEntitlementsCount()

public int getEntitlementsCount()

The list of entitlements.

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

Returns
Type Description
int

getEntitlementsList()

public List<Entitlement> getEntitlementsList()

The list of entitlements.

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

Returns
Type Description
List<Entitlement>

getEntitlementsOrBuilder(int index)

public EntitlementOrBuilder getEntitlementsOrBuilder(int index)

The list of entitlements.

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

Parameter
Name Description
index int
Returns
Type Description
EntitlementOrBuilder

getEntitlementsOrBuilderList()

public List<? extends EntitlementOrBuilder> getEntitlementsOrBuilderList()

The list of entitlements.

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

Returns
Type Description
List<? extends com.google.cloud.privilegedaccessmanager.v1.EntitlementOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

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 list of entitlements.

repeated .google.cloud.privilegedaccessmanager.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 list of entitlements.

repeated .google.cloud.privilegedaccessmanager.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 list of entitlements.

repeated .google.cloud.privilegedaccessmanager.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 identifying a page of results the server should return.

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 identifying a page of results the server should return.

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

setUnreachable(int index, String value)

public ListEntitlementsResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListEntitlementsResponse.Builder

This builder for chaining.