Class SearchGrantsResponse.Builder (0.6.0)

public static final class SearchGrantsResponse.Builder extends GeneratedMessageV3.Builder<SearchGrantsResponse.Builder> implements SearchGrantsResponseOrBuilder

Response message for SearchGrants method.

Protobuf type google.cloud.privilegedaccessmanager.v1.SearchGrantsResponse

Static Methods

getDescriptor()

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

Methods

addAllGrants(Iterable<? extends Grant> values)

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

addGrants(Grant value)

public SearchGrantsResponse.Builder addGrants(Grant value)

The list of grants.

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

Parameter
Name Description
value Grant
Returns
Type Description
SearchGrantsResponse.Builder

addGrants(Grant.Builder builderForValue)

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

addGrants(int index, Grant value)

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

addGrants(int index, Grant.Builder builderForValue)

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

build()

public SearchGrantsResponse build()
Returns
Type Description
SearchGrantsResponse

buildPartial()

public SearchGrantsResponse buildPartial()
Returns
Type Description
SearchGrantsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGrants()

public SearchGrantsResponse.Builder clearGrants()

The list of grants.

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

Returns
Type Description
SearchGrantsResponse.Builder

clearNextPageToken()

public SearchGrantsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
SearchGrantsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SearchGrantsResponse getDefaultInstanceForType()
Returns
Type Description
SearchGrantsResponse

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchGrantsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGrants(int index)

public SearchGrantsResponse.Builder removeGrants(int index)

The list of grants.

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

Parameter
Name Description
index int
Returns
Type Description
SearchGrantsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGrants(int index, Grant value)

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

setGrants(int index, Grant.Builder builderForValue)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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