Class GetIamPolicyReservationSubBlockRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GetIamPolicyReservationSubBlockRequest.Builder>
com.google.cloud.compute.v1.GetIamPolicyReservationSubBlockRequest.Builder
All Implemented Interfaces:
GetIamPolicyReservationSubBlockRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GetIamPolicyReservationSubBlockRequest

public static final class GetIamPolicyReservationSubBlockRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetIamPolicyReservationSubBlockRequest.Builder> implements GetIamPolicyReservationSubBlockRequestOrBuilder
 A request message for ReservationSubBlocks.GetIamPolicy. See the method description for details.
 
Protobuf type google.cloud.compute.v1.GetIamPolicyReservationSubBlockRequest
  • 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<GetIamPolicyReservationSubBlockRequest.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<GetIamPolicyReservationSubBlockRequest.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<GetIamPolicyReservationSubBlockRequest.Builder>
    • getDefaultInstanceForType

      public GetIamPolicyReservationSubBlockRequest 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

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

      public GetIamPolicyReservationSubBlockRequest.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<GetIamPolicyReservationSubBlockRequest.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<GetIamPolicyReservationSubBlockRequest.Builder>
    • mergeFrom

      public GetIamPolicyReservationSubBlockRequest.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<GetIamPolicyReservationSubBlockRequest.Builder>
      Throws:
      IOException
    • hasOptionsRequestedPolicyVersion

      public boolean hasOptionsRequestedPolicyVersion()
       Requested IAM Policy version.
       
      optional int32 options_requested_policy_version = 499220029;
      Specified by:
      hasOptionsRequestedPolicyVersion in interface GetIamPolicyReservationSubBlockRequestOrBuilder
      Returns:
      Whether the optionsRequestedPolicyVersion field is set.
    • getOptionsRequestedPolicyVersion

      public int getOptionsRequestedPolicyVersion()
       Requested IAM Policy version.
       
      optional int32 options_requested_policy_version = 499220029;
      Specified by:
      getOptionsRequestedPolicyVersion in interface GetIamPolicyReservationSubBlockRequestOrBuilder
      Returns:
      The optionsRequestedPolicyVersion.
    • setOptionsRequestedPolicyVersion

      public GetIamPolicyReservationSubBlockRequest.Builder setOptionsRequestedPolicyVersion(int value)
       Requested IAM Policy version.
       
      optional int32 options_requested_policy_version = 499220029;
      Parameters:
      value - The optionsRequestedPolicyVersion to set.
      Returns:
      This builder for chaining.
    • clearOptionsRequestedPolicyVersion

      public GetIamPolicyReservationSubBlockRequest.Builder clearOptionsRequestedPolicyVersion()
       Requested IAM Policy version.
       
      optional int32 options_requested_policy_version = 499220029;
      Returns:
      This builder for chaining.
    • getParentResource

      public String getParentResource()
       Name or id of parent resource of the resource for this request.
       
      string parent_resource = 18091011 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentResource in interface GetIamPolicyReservationSubBlockRequestOrBuilder
      Returns:
      The parentResource.
    • getParentResourceBytes

      public com.google.protobuf.ByteString getParentResourceBytes()
       Name or id of parent resource of the resource for this request.
       
      string parent_resource = 18091011 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentResourceBytes in interface GetIamPolicyReservationSubBlockRequestOrBuilder
      Returns:
      The bytes for parentResource.
    • setParentResource

      public GetIamPolicyReservationSubBlockRequest.Builder setParentResource(String value)
       Name or id of parent resource of the resource for this request.
       
      string parent_resource = 18091011 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The parentResource to set.
      Returns:
      This builder for chaining.
    • clearParentResource

      public GetIamPolicyReservationSubBlockRequest.Builder clearParentResource()
       Name or id of parent resource of the resource for this request.
       
      string parent_resource = 18091011 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setParentResourceBytes

      public GetIamPolicyReservationSubBlockRequest.Builder setParentResourceBytes(com.google.protobuf.ByteString value)
       Name or id of parent resource of the resource for this request.
       
      string parent_resource = 18091011 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for parentResource to set.
      Returns:
      This builder for chaining.
    • getProject

      public String getProject()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProject in interface GetIamPolicyReservationSubBlockRequestOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectBytes in interface GetIamPolicyReservationSubBlockRequestOrBuilder
      Returns:
      The bytes for project.
    • setProject

       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProjectBytes

      public GetIamPolicyReservationSubBlockRequest.Builder setProjectBytes(com.google.protobuf.ByteString value)
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • getResource

      public String getResource()
       Name or id of the resource for this request.
       
      string resource = 195806222 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResource in interface GetIamPolicyReservationSubBlockRequestOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       Name or id of the resource for this request.
       
      string resource = 195806222 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceBytes in interface GetIamPolicyReservationSubBlockRequestOrBuilder
      Returns:
      The bytes for resource.
    • setResource

       Name or id of the resource for this request.
       
      string resource = 195806222 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The resource to set.
      Returns:
      This builder for chaining.
    • clearResource

       Name or id of the resource for this request.
       
      string resource = 195806222 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setResourceBytes

      public GetIamPolicyReservationSubBlockRequest.Builder setResourceBytes(com.google.protobuf.ByteString value)
       Name or id of the resource for this request.
       
      string resource = 195806222 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for resource to set.
      Returns:
      This builder for chaining.
    • getZone

      public String getZone()
       The name of the zone for this request.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getZone in interface GetIamPolicyReservationSubBlockRequestOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       The name of the zone for this request.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getZoneBytes in interface GetIamPolicyReservationSubBlockRequestOrBuilder
      Returns:
      The bytes for zone.
    • setZone

       The name of the zone for this request.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

       The name of the zone for this request.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setZoneBytes

      public GetIamPolicyReservationSubBlockRequest.Builder setZoneBytes(com.google.protobuf.ByteString value)
       The name of the zone for this request.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.