Class SubscriptionConfig.Builder

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

public static final class SubscriptionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SubscriptionConfig.Builder> implements SubscriptionConfigOrBuilder
 A message to store a subscription configuration.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig
  • 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<SubscriptionConfig.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<SubscriptionConfig.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<SubscriptionConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SubscriptionConfig.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<SubscriptionConfig.Builder>
      Throws:
      IOException
    • getSubscriptionId

      public String getSubscriptionId()
       Output only. The unique identifier of the subscription.
       
      string subscription_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSubscriptionId in interface SubscriptionConfigOrBuilder
      Returns:
      The subscriptionId.
    • getSubscriptionIdBytes

      public com.google.protobuf.ByteString getSubscriptionIdBytes()
       Output only. The unique identifier of the subscription.
       
      string subscription_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSubscriptionIdBytes in interface SubscriptionConfigOrBuilder
      Returns:
      The bytes for subscriptionId.
    • setSubscriptionId

      public SubscriptionConfig.Builder setSubscriptionId(String value)
       Output only. The unique identifier of the subscription.
       
      string subscription_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The subscriptionId to set.
      Returns:
      This builder for chaining.
    • clearSubscriptionId

      public SubscriptionConfig.Builder clearSubscriptionId()
       Output only. The unique identifier of the subscription.
       
      string subscription_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSubscriptionIdBytes

      public SubscriptionConfig.Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value)
       Output only. The unique identifier of the subscription.
       
      string subscription_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for subscriptionId to set.
      Returns:
      This builder for chaining.
    • getBillingId

      public String getBillingId()
       Output only. The Google Cloud Billing ID that the subscription is created
       under.
       
      string billing_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBillingId in interface SubscriptionConfigOrBuilder
      Returns:
      The billingId.
    • getBillingIdBytes

      public com.google.protobuf.ByteString getBillingIdBytes()
       Output only. The Google Cloud Billing ID that the subscription is created
       under.
       
      string billing_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBillingIdBytes in interface SubscriptionConfigOrBuilder
      Returns:
      The bytes for billingId.
    • setBillingId

      public SubscriptionConfig.Builder setBillingId(String value)
       Output only. The Google Cloud Billing ID that the subscription is created
       under.
       
      string billing_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The billingId to set.
      Returns:
      This builder for chaining.
    • clearBillingId

      public SubscriptionConfig.Builder clearBillingId()
       Output only. The Google Cloud Billing ID that the subscription is created
       under.
       
      string billing_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setBillingIdBytes

      public SubscriptionConfig.Builder setBillingIdBytes(com.google.protobuf.ByteString value)
       Output only. The Google Cloud Billing ID that the subscription is created
       under.
       
      string billing_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for billingId to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The current state of the subscription.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig.SubscriptionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface SubscriptionConfigOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public SubscriptionConfig.Builder setStateValue(int value)
       Output only. The current state of the subscription.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig.SubscriptionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

       Output only. The current state of the subscription.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig.SubscriptionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface SubscriptionConfigOrBuilder
      Returns:
      The state.
    • setState

       Output only. The current state of the subscription.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig.SubscriptionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public SubscriptionConfig.Builder clearState()
       Output only. The current state of the subscription.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig.SubscriptionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.