Class CreateHardwareGroupRequest.Builder

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

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

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

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

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

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

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

      public CreateHardwareGroupRequest.Builder setParent(String value)
       Required. The order to create the hardware group in.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      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 CreateHardwareGroupRequest.Builder clearParent()
       Required. The order to create the hardware group in.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateHardwareGroupRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The order to create the hardware group in.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      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.
    • getHardwareGroupId

      public String getHardwareGroupId()
       Optional. ID used to uniquely identify the HardwareGroup 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_group.name field in the request will be ignored.
       
      string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHardwareGroupId in interface CreateHardwareGroupRequestOrBuilder
      Returns:
      The hardwareGroupId.
    • getHardwareGroupIdBytes

      public com.google.protobuf.ByteString getHardwareGroupIdBytes()
       Optional. ID used to uniquely identify the HardwareGroup 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_group.name field in the request will be ignored.
       
      string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHardwareGroupIdBytes in interface CreateHardwareGroupRequestOrBuilder
      Returns:
      The bytes for hardwareGroupId.
    • setHardwareGroupId

      public CreateHardwareGroupRequest.Builder setHardwareGroupId(String value)
       Optional. ID used to uniquely identify the HardwareGroup 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_group.name field in the request will be ignored.
       
      string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The hardwareGroupId to set.
      Returns:
      This builder for chaining.
    • clearHardwareGroupId

      public CreateHardwareGroupRequest.Builder clearHardwareGroupId()
       Optional. ID used to uniquely identify the HardwareGroup 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_group.name field in the request will be ignored.
       
      string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setHardwareGroupIdBytes

      public CreateHardwareGroupRequest.Builder setHardwareGroupIdBytes(com.google.protobuf.ByteString value)
       Optional. ID used to uniquely identify the HardwareGroup 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_group.name field in the request will be ignored.
       
      string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for hardwareGroupId to set.
      Returns:
      This builder for chaining.
    • hasHardwareGroup

      public boolean hasHardwareGroup()
       Required. The hardware group to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasHardwareGroup in interface CreateHardwareGroupRequestOrBuilder
      Returns:
      Whether the hardwareGroup field is set.
    • getHardwareGroup

      public HardwareGroup getHardwareGroup()
       Required. The hardware group to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHardwareGroup in interface CreateHardwareGroupRequestOrBuilder
      Returns:
      The hardwareGroup.
    • setHardwareGroup

      public CreateHardwareGroupRequest.Builder setHardwareGroup(HardwareGroup value)
       Required. The hardware group to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
    • setHardwareGroup

      public CreateHardwareGroupRequest.Builder setHardwareGroup(HardwareGroup.Builder builderForValue)
       Required. The hardware group to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeHardwareGroup

      public CreateHardwareGroupRequest.Builder mergeHardwareGroup(HardwareGroup value)
       Required. The hardware group to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearHardwareGroup

      public CreateHardwareGroupRequest.Builder clearHardwareGroup()
       Required. The hardware group to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
    • getHardwareGroupBuilder

      public HardwareGroup.Builder getHardwareGroupBuilder()
       Required. The hardware group to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
    • getHardwareGroupOrBuilder

      public HardwareGroupOrBuilder getHardwareGroupOrBuilder()
       Required. The hardware group to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHardwareGroupOrBuilder in interface CreateHardwareGroupRequestOrBuilder
    • 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];
      Specified by:
      getRequestId in interface CreateHardwareGroupRequestOrBuilder
      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];
      Specified by:
      getRequestIdBytes in interface CreateHardwareGroupRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public CreateHardwareGroupRequest.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];
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public CreateHardwareGroupRequest.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];
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public CreateHardwareGroupRequest.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];
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.