Class QueryGrantableRolesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QueryGrantableRolesRequest.Builder>
com.google.iam.admin.v1.QueryGrantableRolesRequest.Builder
All Implemented Interfaces:
QueryGrantableRolesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
QueryGrantableRolesRequest

public static final class QueryGrantableRolesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<QueryGrantableRolesRequest.Builder> implements QueryGrantableRolesRequestOrBuilder
 The grantable role query request.
 
Protobuf type google.iam.admin.v1.QueryGrantableRolesRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<QueryGrantableRolesRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<QueryGrantableRolesRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<QueryGrantableRolesRequest.Builder>
    • getDefaultInstanceForType

      public QueryGrantableRolesRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public QueryGrantableRolesRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public QueryGrantableRolesRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryGrantableRolesRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<QueryGrantableRolesRequest.Builder>
    • mergeFrom

      public QueryGrantableRolesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryGrantableRolesRequest.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getFullResourceName in interface QueryGrantableRolesRequestOrBuilder
      Returns:
      The fullResourceName.
    • getFullResourceNameBytes

      public com.google.protobuf.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];
      Specified by:
      getFullResourceNameBytes in interface QueryGrantableRolesRequestOrBuilder
      Returns:
      The bytes for fullResourceName.
    • setFullResourceName

      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];
      Parameters:
      value - The fullResourceName to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setFullResourceNameBytes

      public QueryGrantableRolesRequest.Builder setFullResourceNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for fullResourceName to set.
      Returns:
      This builder for chaining.
    • getViewValue

      public int getViewValue()
      .google.iam.admin.v1.RoleView view = 2;
      Specified by:
      getViewValue in interface QueryGrantableRolesRequestOrBuilder
      Returns:
      The enum numeric value on the wire for view.
    • setViewValue

      public QueryGrantableRolesRequest.Builder setViewValue(int value)
      .google.iam.admin.v1.RoleView view = 2;
      Parameters:
      value - The enum numeric value on the wire for view to set.
      Returns:
      This builder for chaining.
    • getView

      public RoleView getView()
      .google.iam.admin.v1.RoleView view = 2;
      Specified by:
      getView in interface QueryGrantableRolesRequestOrBuilder
      Returns:
      The view.
    • setView

      .google.iam.admin.v1.RoleView view = 2;
      Parameters:
      value - The view to set.
      Returns:
      This builder for chaining.
    • clearView

      .google.iam.admin.v1.RoleView view = 2;
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getPageSize in interface QueryGrantableRolesRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      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;
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       Optional pagination token returned in an earlier
       QueryGrantableRolesResponse.
       
      string page_token = 4;
      Specified by:
      getPageToken in interface QueryGrantableRolesRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Optional pagination token returned in an earlier
       QueryGrantableRolesResponse.
       
      string page_token = 4;
      Specified by:
      getPageTokenBytes in interface QueryGrantableRolesRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public QueryGrantableRolesRequest.Builder setPageToken(String value)
       Optional pagination token returned in an earlier
       QueryGrantableRolesResponse.
       
      string page_token = 4;
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public QueryGrantableRolesRequest.Builder clearPageToken()
       Optional pagination token returned in an earlier
       QueryGrantableRolesResponse.
       
      string page_token = 4;
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public QueryGrantableRolesRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Optional pagination token returned in an earlier
       QueryGrantableRolesResponse.
       
      string page_token = 4;
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.