Class SearchGrantsRequest.Builder (0.1.0)

public static final class SearchGrantsRequest.Builder extends GeneratedMessageV3.Builder<SearchGrantsRequest.Builder> implements SearchGrantsRequestOrBuilder

Request message for SearchGrants method.

Protobuf type google.cloud.privilegedaccessmanager.v1.SearchGrantsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchGrantsRequest build()
Returns
Type Description
SearchGrantsRequest

buildPartial()

public SearchGrantsRequest buildPartial()
Returns
Type Description
SearchGrantsRequest

clear()

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

clearCallerRelationship()

public SearchGrantsRequest.Builder clearCallerRelationship()

Required. Only grants which the caller is related to by this relationship are returned in the response.

.google.cloud.privilegedaccessmanager.v1.SearchGrantsRequest.CallerRelationshipType caller_relationship = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public SearchGrantsRequest.Builder clearFilter()

Optional. Only grants matching this filter are returned in the response.

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public SearchGrantsRequest.Builder clearPageSize()

Optional. Requested page size. The server may return fewer items than requested. If unspecified, server picks an appropriate default.

int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

clearPageToken()

public SearchGrantsRequest.Builder clearPageToken()

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

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

clearParent()

public SearchGrantsRequest.Builder clearParent()

Required. The parent which owns the grant resources.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

clone()

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

getCallerRelationship()

public SearchGrantsRequest.CallerRelationshipType getCallerRelationship()

Required. Only grants which the caller is related to by this relationship are returned in the response.

.google.cloud.privilegedaccessmanager.v1.SearchGrantsRequest.CallerRelationshipType caller_relationship = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchGrantsRequest.CallerRelationshipType

The callerRelationship.

getCallerRelationshipValue()

public int getCallerRelationshipValue()

Required. Only grants which the caller is related to by this relationship are returned in the response.

.google.cloud.privilegedaccessmanager.v1.SearchGrantsRequest.CallerRelationshipType caller_relationship = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for callerRelationship.

getDefaultInstanceForType()

public SearchGrantsRequest getDefaultInstanceForType()
Returns
Type Description
SearchGrantsRequest

getDescriptorForType()

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

getFilter()

public String getFilter()

Optional. Only grants matching this filter are returned in the response.

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Optional. Only grants matching this filter are returned in the response.

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

Optional. Requested page size. The server may return fewer items than requested. If unspecified, server picks an appropriate default.

int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

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

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

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

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The parent which owns the grant resources.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent which owns the grant resources.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchGrantsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCallerRelationship(SearchGrantsRequest.CallerRelationshipType value)

public SearchGrantsRequest.Builder setCallerRelationship(SearchGrantsRequest.CallerRelationshipType value)

Required. Only grants which the caller is related to by this relationship are returned in the response.

.google.cloud.privilegedaccessmanager.v1.SearchGrantsRequest.CallerRelationshipType caller_relationship = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SearchGrantsRequest.CallerRelationshipType

The callerRelationship to set.

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

setCallerRelationshipValue(int value)

public SearchGrantsRequest.Builder setCallerRelationshipValue(int value)

Required. Only grants which the caller is related to by this relationship are returned in the response.

.google.cloud.privilegedaccessmanager.v1.SearchGrantsRequest.CallerRelationshipType caller_relationship = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for callerRelationship to set.

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(String value)

public SearchGrantsRequest.Builder setFilter(String value)

Optional. Only grants matching this filter are returned in the response.

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public SearchGrantsRequest.Builder setFilterBytes(ByteString value)

Optional. Only grants matching this filter are returned in the response.

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

setPageSize(int value)

public SearchGrantsRequest.Builder setPageSize(int value)

Optional. Requested page size. The server may return fewer items than requested. If unspecified, server picks an appropriate default.

int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

setPageToken(String value)

public SearchGrantsRequest.Builder setPageToken(String value)

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

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public SearchGrantsRequest.Builder setPageTokenBytes(ByteString value)

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

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

setParent(String value)

public SearchGrantsRequest.Builder setParent(String value)

Required. The parent which owns the grant resources.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public SearchGrantsRequest.Builder setParentBytes(ByteString value)

Required. The parent which owns the grant resources.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
SearchGrantsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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