Class UnitVariable.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UnitVariable.Builder>
com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder
All Implemented Interfaces:
UnitVariableOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UnitVariable

public static final class UnitVariable.Builder extends com.google.protobuf.GeneratedMessage.Builder<UnitVariable.Builder> implements UnitVariableOrBuilder
 UnitVariable describes a parameter for a Unit.
 
Protobuf type google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable
  • 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<UnitVariable.Builder>
    • clear

      public UnitVariable.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<UnitVariable.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<UnitVariable.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UnitVariable.Builder mergeFrom(UnitVariable other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UnitVariable.Builder>
    • mergeFrom

      public UnitVariable.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<UnitVariable.Builder>
      Throws:
      IOException
    • getVariable

      public String getVariable()
       Required. Immutable. Name of the variable from actuation configs.
       
      string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getVariable in interface UnitVariableOrBuilder
      Returns:
      The variable.
    • getVariableBytes

      public com.google.protobuf.ByteString getVariableBytes()
       Required. Immutable. Name of the variable from actuation configs.
       
      string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getVariableBytes in interface UnitVariableOrBuilder
      Returns:
      The bytes for variable.
    • setVariable

      public UnitVariable.Builder setVariable(String value)
       Required. Immutable. Name of the variable from actuation configs.
       
      string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The variable to set.
      Returns:
      This builder for chaining.
    • clearVariable

      public UnitVariable.Builder clearVariable()
       Required. Immutable. Name of the variable from actuation configs.
       
      string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setVariableBytes

      public UnitVariable.Builder setVariableBytes(com.google.protobuf.ByteString value)
       Required. Immutable. Name of the variable from actuation configs.
       
      string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for variable to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Optional. Immutable. Name of a supported variable type. Supported types are
       string, int, bool.
       
      .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTypeValue in interface UnitVariableOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public UnitVariable.Builder setTypeValue(int value)
       Optional. Immutable. Name of a supported variable type. Supported types are
       string, int, bool.
       
      .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public UnitVariable.Type getType()
       Optional. Immutable. Name of a supported variable type. Supported types are
       string, int, bool.
       
      .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getType in interface UnitVariableOrBuilder
      Returns:
      The type.
    • setType

      public UnitVariable.Builder setType(UnitVariable.Type value)
       Optional. Immutable. Name of a supported variable type. Supported types are
       string, int, bool.
       
      .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public UnitVariable.Builder clearType()
       Optional. Immutable. Name of a supported variable type. Supported types are
       string, int, bool.
       
      .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • getValue

      public String getValue()
       Optional. String encoded value for the variable.
       
      string value = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValue in interface UnitVariableOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       Optional. String encoded value for the variable.
       
      string value = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValueBytes in interface UnitVariableOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public UnitVariable.Builder setValue(String value)
       Optional. String encoded value for the variable.
       
      string value = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public UnitVariable.Builder clearValue()
       Optional. String encoded value for the variable.
       
      string value = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setValueBytes

      public UnitVariable.Builder setValueBytes(com.google.protobuf.ByteString value)
       Optional. String encoded value for the variable.
       
      string value = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.