Class CreateHardwareRequest.Builder

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

public static final class CreateHardwareRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateHardwareRequest.Builder> implements CreateHardwareRequestOrBuilder
 A request to create hardware.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest
  • 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<CreateHardwareRequest.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<CreateHardwareRequest.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<CreateHardwareRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public CreateHardwareRequest.Builder setParent(String value)
       Required. The project and location to create hardware 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 CreateHardwareRequest.Builder clearParent()
       Required. The project and location to create hardware 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 CreateHardwareRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project and location to create hardware 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.
    • getHardwareId

      public String getHardwareId()
       Optional. ID used to uniquely identify the Hardware 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 hardware.name field in the request will be ignored.
       
      string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHardwareId in interface CreateHardwareRequestOrBuilder
      Returns:
      The hardwareId.
    • getHardwareIdBytes

      public com.google.protobuf.ByteString getHardwareIdBytes()
       Optional. ID used to uniquely identify the Hardware 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 hardware.name field in the request will be ignored.
       
      string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHardwareIdBytes in interface CreateHardwareRequestOrBuilder
      Returns:
      The bytes for hardwareId.
    • setHardwareId

      public CreateHardwareRequest.Builder setHardwareId(String value)
       Optional. ID used to uniquely identify the Hardware 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 hardware.name field in the request will be ignored.
       
      string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The hardwareId to set.
      Returns:
      This builder for chaining.
    • clearHardwareId

      public CreateHardwareRequest.Builder clearHardwareId()
       Optional. ID used to uniquely identify the Hardware 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 hardware.name field in the request will be ignored.
       
      string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setHardwareIdBytes

      public CreateHardwareRequest.Builder setHardwareIdBytes(com.google.protobuf.ByteString value)
       Optional. ID used to uniquely identify the Hardware 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 hardware.name field in the request will be ignored.
       
      string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for hardwareId to set.
      Returns:
      This builder for chaining.
    • hasHardware

      public boolean hasHardware()
       Required. The resource to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasHardware in interface CreateHardwareRequestOrBuilder
      Returns:
      Whether the hardware field is set.
    • getHardware

      public Hardware getHardware()
       Required. The resource to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHardware in interface CreateHardwareRequestOrBuilder
      Returns:
      The hardware.
    • setHardware

      public CreateHardwareRequest.Builder setHardware(Hardware value)
       Required. The resource to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];
    • setHardware

      public CreateHardwareRequest.Builder setHardware(Hardware.Builder builderForValue)
       Required. The resource to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeHardware

      public CreateHardwareRequest.Builder mergeHardware(Hardware value)
       Required. The resource to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearHardware

      public CreateHardwareRequest.Builder clearHardware()
       Required. The resource to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];
    • getHardwareBuilder

      public Hardware.Builder getHardwareBuilder()
       Required. The resource to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];
    • getHardwareOrBuilder

      public HardwareOrBuilder getHardwareOrBuilder()
       Required. The resource to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHardwareOrBuilder in interface CreateHardwareRequestOrBuilder