Class GetReservationSubBlockRequest.Builder

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

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

      public GetReservationSubBlockRequest 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 GetReservationSubBlockRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public GetReservationSubBlockRequest.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<GetReservationSubBlockRequest.Builder>
      Throws:
      IOException
    • getParentName

      public String getParentName()
       The name of the parent reservation and parent block. In the format of
       reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
       
      string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentName in interface GetReservationSubBlockRequestOrBuilder
      Returns:
      The parentName.
    • getParentNameBytes

      public com.google.protobuf.ByteString getParentNameBytes()
       The name of the parent reservation and parent block. In the format of
       reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
       
      string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentNameBytes in interface GetReservationSubBlockRequestOrBuilder
      Returns:
      The bytes for parentName.
    • setParentName

      public GetReservationSubBlockRequest.Builder setParentName(String value)
       The name of the parent reservation and parent block. In the format of
       reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
       
      string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The parentName to set.
      Returns:
      This builder for chaining.
    • clearParentName

      public GetReservationSubBlockRequest.Builder clearParentName()
       The name of the parent reservation and parent block. In the format of
       reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
       
      string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setParentNameBytes

      public GetReservationSubBlockRequest.Builder setParentNameBytes(com.google.protobuf.ByteString value)
       The name of the parent reservation and parent block. In the format of
       reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
       
      string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for parentName 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 GetReservationSubBlockRequestOrBuilder
      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 GetReservationSubBlockRequestOrBuilder
      Returns:
      The bytes for project.
    • setProject

      public GetReservationSubBlockRequest.Builder setProject(String value)
       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 GetReservationSubBlockRequest.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.
    • getReservationSubBlock

      public String getReservationSubBlock()
       The name of the reservation subBlock.
       Name should conform to RFC1035 or be a resource ID.
       
      string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReservationSubBlock in interface GetReservationSubBlockRequestOrBuilder
      Returns:
      The reservationSubBlock.
    • getReservationSubBlockBytes

      public com.google.protobuf.ByteString getReservationSubBlockBytes()
       The name of the reservation subBlock.
       Name should conform to RFC1035 or be a resource ID.
       
      string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReservationSubBlockBytes in interface GetReservationSubBlockRequestOrBuilder
      Returns:
      The bytes for reservationSubBlock.
    • setReservationSubBlock

      public GetReservationSubBlockRequest.Builder setReservationSubBlock(String value)
       The name of the reservation subBlock.
       Name should conform to RFC1035 or be a resource ID.
       
      string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The reservationSubBlock to set.
      Returns:
      This builder for chaining.
    • clearReservationSubBlock

      public GetReservationSubBlockRequest.Builder clearReservationSubBlock()
       The name of the reservation subBlock.
       Name should conform to RFC1035 or be a resource ID.
       
      string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setReservationSubBlockBytes

      public GetReservationSubBlockRequest.Builder setReservationSubBlockBytes(com.google.protobuf.ByteString value)
       The name of the reservation subBlock.
       Name should conform to RFC1035 or be a resource ID.
       
      string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for reservationSubBlock to set.
      Returns:
      This builder for chaining.
    • hasView

      public boolean hasView()
       View of the subBlock.
       Check the View enum for the list of possible values.
       
      optional string view = 3619493;
      Specified by:
      hasView in interface GetReservationSubBlockRequestOrBuilder
      Returns:
      Whether the view field is set.
    • getView

      public String getView()
       View of the subBlock.
       Check the View enum for the list of possible values.
       
      optional string view = 3619493;
      Specified by:
      getView in interface GetReservationSubBlockRequestOrBuilder
      Returns:
      The view.
    • getViewBytes

      public com.google.protobuf.ByteString getViewBytes()
       View of the subBlock.
       Check the View enum for the list of possible values.
       
      optional string view = 3619493;
      Specified by:
      getViewBytes in interface GetReservationSubBlockRequestOrBuilder
      Returns:
      The bytes for view.
    • setView

       View of the subBlock.
       Check the View enum for the list of possible values.
       
      optional string view = 3619493;
      Parameters:
      value - The view to set.
      Returns:
      This builder for chaining.
    • clearView

       View of the subBlock.
       Check the View enum for the list of possible values.
       
      optional string view = 3619493;
      Returns:
      This builder for chaining.
    • setViewBytes

      public GetReservationSubBlockRequest.Builder setViewBytes(com.google.protobuf.ByteString value)
       View of the subBlock.
       Check the View enum for the list of possible values.
       
      optional string view = 3619493;
      Parameters:
      value - The bytes for view to set.
      Returns:
      This builder for chaining.
    • getZone

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

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

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

       Name of the zone for this request. Zone name should conform to RFC1035.
       
      string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setZoneBytes

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