Class CreateZoneRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateZoneRequest.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest.Builder
All Implemented Interfaces:
CreateZoneRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateZoneRequest

public static final class CreateZoneRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateZoneRequest.Builder> implements CreateZoneRequestOrBuilder
 A request to create a zone.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest
  • 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<CreateZoneRequest.Builder>
    • clear

      public CreateZoneRequest.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<CreateZoneRequest.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<CreateZoneRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateZoneRequest.Builder mergeFrom(CreateZoneRequest other)
    • isInitialized

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

      public CreateZoneRequest.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<CreateZoneRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The project and location to create the zone in.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateZoneRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The project and location to create the zone in.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateZoneRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateZoneRequest.Builder setParent(String value)
       Required. The project and location to create the zone in.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateZoneRequest.Builder clearParent()
       Required. The project and location to create the zone in.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateZoneRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project and location to create the zone in.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getZoneId

      public String getZoneId()
       Optional. ID used to uniquely identify the Zone within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The zone.name field in the request will be ignored.
       
      string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getZoneId in interface CreateZoneRequestOrBuilder
      Returns:
      The zoneId.
    • getZoneIdBytes

      public com.google.protobuf.ByteString getZoneIdBytes()
       Optional. ID used to uniquely identify the Zone within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The zone.name field in the request will be ignored.
       
      string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getZoneIdBytes in interface CreateZoneRequestOrBuilder
      Returns:
      The bytes for zoneId.
    • setZoneId

      public CreateZoneRequest.Builder setZoneId(String value)
       Optional. ID used to uniquely identify the Zone within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The zone.name field in the request will be ignored.
       
      string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The zoneId to set.
      Returns:
      This builder for chaining.
    • clearZoneId

      public CreateZoneRequest.Builder clearZoneId()
       Optional. ID used to uniquely identify the Zone within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The zone.name field in the request will be ignored.
       
      string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setZoneIdBytes

      public CreateZoneRequest.Builder setZoneIdBytes(com.google.protobuf.ByteString value)
       Optional. ID used to uniquely identify the Zone within its parent scope.
       This field should contain at most 63 characters and must start with
       lowercase characters.
       Only lowercase characters, numbers and `-` are accepted.
       The `-` character cannot be the first or the last one.
       A system generated ID will be used if the field is not set.
      
       The zone.name field in the request will be ignored.
       
      string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for zoneId to set.
      Returns:
      This builder for chaining.
    • hasZone

      public boolean hasZone()
       Required. The zone to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasZone in interface CreateZoneRequestOrBuilder
      Returns:
      Whether the zone field is set.
    • getZone

      public Zone getZone()
       Required. The zone to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getZone in interface CreateZoneRequestOrBuilder
      Returns:
      The zone.
    • setZone

      public CreateZoneRequest.Builder setZone(Zone value)
       Required. The zone to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];
    • setZone

      public CreateZoneRequest.Builder setZone(Zone.Builder builderForValue)
       Required. The zone to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeZone

      public CreateZoneRequest.Builder mergeZone(Zone value)
       Required. The zone to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearZone

      public CreateZoneRequest.Builder clearZone()
       Required. The zone to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];
    • getZoneBuilder

      public Zone.Builder getZoneBuilder()
       Required. The zone to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];
    • getZoneOrBuilder

      public ZoneOrBuilder getZoneOrBuilder()
       Required. The zone to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getZoneOrBuilder in interface CreateZoneRequestOrBuilder
    • getRequestId

      public String getRequestId()
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Specified by:
      getRequestId in interface CreateZoneRequestOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Specified by:
      getRequestIdBytes in interface CreateZoneRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public CreateZoneRequest.Builder setRequestId(String value)
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public CreateZoneRequest.Builder clearRequestId()
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public CreateZoneRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.