Class CancelOrderRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CancelOrderRequest.Builder>
com.google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.Builder
All Implemented Interfaces:
CancelOrderRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CancelOrderRequest

public static final class CancelOrderRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CancelOrderRequest.Builder> implements CancelOrderRequestOrBuilder
 Request message for
 [ConsumerProcurementService.CancelOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.CancelOrder].
 
Protobuf type google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest
  • 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<CancelOrderRequest.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<CancelOrderRequest.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<CancelOrderRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getName()
       Required. The resource name of the order.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface CancelOrderRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of the order.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface CancelOrderRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public CancelOrderRequest.Builder setName(String value)
       Required. The resource name of the order.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CancelOrderRequest.Builder clearName()
       Required. The resource name of the order.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public CancelOrderRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the order.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getEtag

      public String getEtag()
       Optional. The weak etag, which can be optionally populated, of the order
       that this cancel request is based on. Validation checking will only happen
       if the invoker supplies this field.
       
      string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface CancelOrderRequestOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. The weak etag, which can be optionally populated, of the order
       that this cancel request is based on. Validation checking will only happen
       if the invoker supplies this field.
       
      string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface CancelOrderRequestOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public CancelOrderRequest.Builder setEtag(String value)
       Optional. The weak etag, which can be optionally populated, of the order
       that this cancel request is based on. Validation checking will only happen
       if the invoker supplies this field.
       
      string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public CancelOrderRequest.Builder clearEtag()
       Optional. The weak etag, which can be optionally populated, of the order
       that this cancel request is based on. Validation checking will only happen
       if the invoker supplies this field.
       
      string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public CancelOrderRequest.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Optional. The weak etag, which can be optionally populated, of the order
       that this cancel request is based on. Validation checking will only happen
       if the invoker supplies this field.
       
      string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getCancellationPolicyValue

      public int getCancellationPolicyValue()
       Optional. Cancellation policy of this request.
       
      .google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy cancellation_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCancellationPolicyValue in interface CancelOrderRequestOrBuilder
      Returns:
      The enum numeric value on the wire for cancellationPolicy.
    • setCancellationPolicyValue

      public CancelOrderRequest.Builder setCancellationPolicyValue(int value)
       Optional. Cancellation policy of this request.
       
      .google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy cancellation_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for cancellationPolicy to set.
      Returns:
      This builder for chaining.
    • getCancellationPolicy

      public CancelOrderRequest.CancellationPolicy getCancellationPolicy()
       Optional. Cancellation policy of this request.
       
      .google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy cancellation_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCancellationPolicy in interface CancelOrderRequestOrBuilder
      Returns:
      The cancellationPolicy.
    • setCancellationPolicy

       Optional. Cancellation policy of this request.
       
      .google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy cancellation_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The cancellationPolicy to set.
      Returns:
      This builder for chaining.
    • clearCancellationPolicy

      public CancelOrderRequest.Builder clearCancellationPolicy()
       Optional. Cancellation policy of this request.
       
      .google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy cancellation_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.