Class CreateOrderRequest.Builder

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

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

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

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

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

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

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

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

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

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

      public String getOrderId()
       Optional. ID used to uniquely identify the Order 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 order.name field in the request will be ignored.
       
      string order_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrderId in interface CreateOrderRequestOrBuilder
      Returns:
      The orderId.
    • getOrderIdBytes

      public com.google.protobuf.ByteString getOrderIdBytes()
       Optional. ID used to uniquely identify the Order 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 order.name field in the request will be ignored.
       
      string order_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrderIdBytes in interface CreateOrderRequestOrBuilder
      Returns:
      The bytes for orderId.
    • setOrderId

      public CreateOrderRequest.Builder setOrderId(String value)
       Optional. ID used to uniquely identify the Order 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 order.name field in the request will be ignored.
       
      string order_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The orderId to set.
      Returns:
      This builder for chaining.
    • clearOrderId

      public CreateOrderRequest.Builder clearOrderId()
       Optional. ID used to uniquely identify the Order 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 order.name field in the request will be ignored.
       
      string order_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOrderIdBytes

      public CreateOrderRequest.Builder setOrderIdBytes(com.google.protobuf.ByteString value)
       Optional. ID used to uniquely identify the Order 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 order.name field in the request will be ignored.
       
      string order_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for orderId to set.
      Returns:
      This builder for chaining.
    • hasOrder

      public boolean hasOrder()
       Required. The order to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasOrder in interface CreateOrderRequestOrBuilder
      Returns:
      Whether the order field is set.
    • getOrder

      public Order getOrder()
       Required. The order to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOrder in interface CreateOrderRequestOrBuilder
      Returns:
      The order.
    • setOrder

      public CreateOrderRequest.Builder setOrder(Order value)
       Required. The order to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];
    • setOrder

      public CreateOrderRequest.Builder setOrder(Order.Builder builderForValue)
       Required. The order to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeOrder

      public CreateOrderRequest.Builder mergeOrder(Order value)
       Required. The order to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearOrder

      public CreateOrderRequest.Builder clearOrder()
       Required. The order to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];
    • getOrderBuilder

      public Order.Builder getOrderBuilder()
       Required. The order to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];
    • getOrderOrBuilder

      public OrderOrBuilder getOrderOrBuilder()
       Required. The order to create.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOrderOrBuilder in interface CreateOrderRequestOrBuilder
    • 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 CreateOrderRequestOrBuilder
      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 CreateOrderRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public CreateOrderRequest.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 CreateOrderRequest.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 CreateOrderRequest.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.