Class ListGrantsResponse.Builder (0.3.0)

public static final class ListGrantsResponse.Builder extends GeneratedMessageV3.Builder<ListGrantsResponse.Builder> implements ListGrantsResponseOrBuilder

Message for response to listing grants.

Protobuf type google.cloud.privilegedaccessmanager.v1.ListGrantsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllGrants(Iterable<? extends Grant> values)

public ListGrantsResponse.Builder addAllGrants(Iterable<? extends Grant> values)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

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

addAllUnreachable(Iterable<String> values)

public ListGrantsResponse.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
ListGrantsResponse.Builder

This builder for chaining.

addGrants(Grant value)

public ListGrantsResponse.Builder addGrants(Grant value)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameter
Name Description
value Grant
Returns
Type Description
ListGrantsResponse.Builder

addGrants(Grant.Builder builderForValue)

public ListGrantsResponse.Builder addGrants(Grant.Builder builderForValue)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameter
Name Description
builderForValue Grant.Builder
Returns
Type Description
ListGrantsResponse.Builder

addGrants(int index, Grant value)

public ListGrantsResponse.Builder addGrants(int index, Grant value)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameters
Name Description
index int
value Grant
Returns
Type Description
ListGrantsResponse.Builder

addGrants(int index, Grant.Builder builderForValue)

public ListGrantsResponse.Builder addGrants(int index, Grant.Builder builderForValue)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameters
Name Description
index int
builderForValue Grant.Builder
Returns
Type Description
ListGrantsResponse.Builder

addGrantsBuilder()

public Grant.Builder addGrantsBuilder()

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Returns
Type Description
Grant.Builder

addGrantsBuilder(int index)

public Grant.Builder addGrantsBuilder(int index)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameter
Name Description
index int
Returns
Type Description
Grant.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListGrantsResponse.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
ListGrantsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListGrantsResponse.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
ListGrantsResponse.Builder

This builder for chaining.

build()

public ListGrantsResponse build()
Returns
Type Description
ListGrantsResponse

buildPartial()

public ListGrantsResponse buildPartial()
Returns
Type Description
ListGrantsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListGrantsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListGrantsResponse.Builder
Overrides

clearGrants()

public ListGrantsResponse.Builder clearGrants()

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Returns
Type Description
ListGrantsResponse.Builder

clearNextPageToken()

public ListGrantsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListGrantsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListGrantsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListGrantsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListGrantsResponse getDefaultInstanceForType()
Returns
Type Description
ListGrantsResponse

getDescriptorForType()

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

getGrants(int index)

public Grant getGrants(int index)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameter
Name Description
index int
Returns
Type Description
Grant

getGrantsBuilder(int index)

public Grant.Builder getGrantsBuilder(int index)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameter
Name Description
index int
Returns
Type Description
Grant.Builder

getGrantsBuilderList()

public List<Grant.Builder> getGrantsBuilderList()

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Returns
Type Description
List<Builder>

getGrantsCount()

public int getGrantsCount()

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Returns
Type Description
int

getGrantsList()

public List<Grant> getGrantsList()

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Returns
Type Description
List<Grant>

getGrantsOrBuilder(int index)

public GrantOrBuilder getGrantsOrBuilder(int index)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameter
Name Description
index int
Returns
Type Description
GrantOrBuilder

getGrantsOrBuilderList()

public List<? extends GrantOrBuilder> getGrantsOrBuilderList()

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListGrantsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListGrantsResponse.Builder
Overrides

removeGrants(int index)

public ListGrantsResponse.Builder removeGrants(int index)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameter
Name Description
index int
Returns
Type Description
ListGrantsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGrants(int index, Grant value)

public ListGrantsResponse.Builder setGrants(int index, Grant value)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameters
Name Description
index int
value Grant
Returns
Type Description
ListGrantsResponse.Builder

setGrants(int index, Grant.Builder builderForValue)

public ListGrantsResponse.Builder setGrants(int index, Grant.Builder builderForValue)

The list of grants.

repeated .google.cloud.privilegedaccessmanager.v1.Grant grants = 1;

Parameters
Name Description
index int
builderForValue Grant.Builder
Returns
Type Description
ListGrantsResponse.Builder

setNextPageToken(String value)

public ListGrantsResponse.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
ListGrantsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListGrantsResponse.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
ListGrantsResponse.Builder

This builder for chaining.

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

public ListGrantsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListGrantsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListGrantsResponse.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
ListGrantsResponse.Builder

This builder for chaining.