Class SubmitOrderRequest.Builder

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

public static final class SubmitOrderRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SubmitOrderRequest.Builder> implements SubmitOrderRequestOrBuilder
 A request to submit an order.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest
  • 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<SubmitOrderRequest.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<SubmitOrderRequest.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<SubmitOrderRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SubmitOrderRequest.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<SubmitOrderRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The name of the order.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface SubmitOrderRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the order.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface SubmitOrderRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SubmitOrderRequest.Builder setName(String value)
       Required. The name of the order.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SubmitOrderRequest.Builder clearName()
       Required. The name of the order.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public SubmitOrderRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the order.
       Format: `projects/{project}/locations/{location}/orders/{order}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getRequestId

      public String getRequestId()
       Optional. An optional unique identifier for this request. See
       [AIP-155](https://google.aip.dev/155).
       
      string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestId in interface SubmitOrderRequestOrBuilder
      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 = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestIdBytes in interface SubmitOrderRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

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

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

      public SubmitOrderRequest.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 = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Optional. Type of this request. If unset, the request type is assumed to be
       `INFO_PENDING`.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.Type type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTypeValue in interface SubmitOrderRequestOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public SubmitOrderRequest.Builder setTypeValue(int value)
       Optional. Type of this request. If unset, the request type is assumed to be
       `INFO_PENDING`.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.Type type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public SubmitOrderRequest.Type getType()
       Optional. Type of this request. If unset, the request type is assumed to be
       `INFO_PENDING`.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.Type type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getType in interface SubmitOrderRequestOrBuilder
      Returns:
      The type.
    • setType

       Optional. Type of this request. If unset, the request type is assumed to be
       `INFO_PENDING`.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.Type type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public SubmitOrderRequest.Builder clearType()
       Optional. Type of this request. If unset, the request type is assumed to be
       `INFO_PENDING`.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.Type type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.