Class QueryGrantableRolesRequest.Builder (3.14.0)

public static final class QueryGrantableRolesRequest.Builder extends GeneratedMessageV3.Builder<QueryGrantableRolesRequest.Builder> implements QueryGrantableRolesRequestOrBuilder

The grantable role query request.

Protobuf type google.iam.admin.v1.QueryGrantableRolesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryGrantableRolesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides

build()

public QueryGrantableRolesRequest build()
Returns
TypeDescription
QueryGrantableRolesRequest

buildPartial()

public QueryGrantableRolesRequest buildPartial()
Returns
TypeDescription
QueryGrantableRolesRequest

clear()

public QueryGrantableRolesRequest.Builder clear()
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QueryGrantableRolesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides

clearFullResourceName()

public QueryGrantableRolesRequest.Builder clearFullResourceName()

Required. The full resource name to query from the list of grantable roles.

The name follows the Google Cloud Platform resource format. For example, a Cloud Platform project with id my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project.

string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryGrantableRolesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides

clearPageSize()

public QueryGrantableRolesRequest.Builder clearPageSize()

Optional limit on the number of roles to include in the response.

The default is 300, and the maximum is 1,000.

int32 page_size = 3;

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.

clearPageToken()

public QueryGrantableRolesRequest.Builder clearPageToken()

Optional pagination token returned in an earlier QueryGrantableRolesResponse.

string page_token = 4;

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.

clearView()

public QueryGrantableRolesRequest.Builder clearView()

.google.iam.admin.v1.RoleView view = 2;

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.

clone()

public QueryGrantableRolesRequest.Builder clone()
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides

getDefaultInstanceForType()

public QueryGrantableRolesRequest getDefaultInstanceForType()
Returns
TypeDescription
QueryGrantableRolesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFullResourceName()

public String getFullResourceName()

Required. The full resource name to query from the list of grantable roles.

The name follows the Google Cloud Platform resource format. For example, a Cloud Platform project with id my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project.

string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The fullResourceName.

getFullResourceNameBytes()

public ByteString getFullResourceNameBytes()

Required. The full resource name to query from the list of grantable roles.

The name follows the Google Cloud Platform resource format. For example, a Cloud Platform project with id my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project.

string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for fullResourceName.

getPageSize()

public int getPageSize()

Optional limit on the number of roles to include in the response.

The default is 300, and the maximum is 1,000.

int32 page_size = 3;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

Optional pagination token returned in an earlier QueryGrantableRolesResponse.

string page_token = 4;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional pagination token returned in an earlier QueryGrantableRolesResponse.

string page_token = 4;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getView()

public RoleView getView()

.google.iam.admin.v1.RoleView view = 2;

Returns
TypeDescription
RoleView

The view.

getViewValue()

public int getViewValue()

.google.iam.admin.v1.RoleView view = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueryGrantableRolesRequest other)

public QueryGrantableRolesRequest.Builder mergeFrom(QueryGrantableRolesRequest other)
Parameter
NameDescription
otherQueryGrantableRolesRequest
Returns
TypeDescription
QueryGrantableRolesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryGrantableRolesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public QueryGrantableRolesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryGrantableRolesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public QueryGrantableRolesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides

setFullResourceName(String value)

public QueryGrantableRolesRequest.Builder setFullResourceName(String value)

Required. The full resource name to query from the list of grantable roles.

The name follows the Google Cloud Platform resource format. For example, a Cloud Platform project with id my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project.

string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The fullResourceName to set.

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.

setFullResourceNameBytes(ByteString value)

public QueryGrantableRolesRequest.Builder setFullResourceNameBytes(ByteString value)

Required. The full resource name to query from the list of grantable roles.

The name follows the Google Cloud Platform resource format. For example, a Cloud Platform project with id my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project.

string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for fullResourceName to set.

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.

setPageSize(int value)

public QueryGrantableRolesRequest.Builder setPageSize(int value)

Optional limit on the number of roles to include in the response.

The default is 300, and the maximum is 1,000.

int32 page_size = 3;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.

setPageToken(String value)

public QueryGrantableRolesRequest.Builder setPageToken(String value)

Optional pagination token returned in an earlier QueryGrantableRolesResponse.

string page_token = 4;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public QueryGrantableRolesRequest.Builder setPageTokenBytes(ByteString value)

Optional pagination token returned in an earlier QueryGrantableRolesResponse.

string page_token = 4;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.

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

public QueryGrantableRolesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryGrantableRolesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryGrantableRolesRequest.Builder
Overrides

setView(RoleView value)

public QueryGrantableRolesRequest.Builder setView(RoleView value)

.google.iam.admin.v1.RoleView view = 2;

Parameter
NameDescription
valueRoleView

The view to set.

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.

setViewValue(int value)

public QueryGrantableRolesRequest.Builder setViewValue(int value)

.google.iam.admin.v1.RoleView view = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
QueryGrantableRolesRequest.Builder

This builder for chaining.