Class EnumValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<EnumValue,EnumValue.Builder>
com.google.api.expr.v1beta1.EnumValue.Builder
All Implemented Interfaces:
EnumValueOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
EnumValue

public static final class EnumValue.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<EnumValue,EnumValue.Builder> implements EnumValueOrBuilder
 An enum value.
 
Protobuf type google.api.expr.v1beta1.EnumValue
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    The fully qualified name of the enum type.
    The value of the enum.
    The fully qualified name of the enum type.
    com.google.protobuf.ByteString
    The fully qualified name of the enum type.
    int
    The value of the enum.
    setType(String value)
    The fully qualified name of the enum type.
    setTypeBytes(com.google.protobuf.ByteString value)
    The fully qualified name of the enum type.
    setValue(int value)
    The value of the enum.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getType

      public String getType()
       The fully qualified name of the enum type.
       
      string type = 1 [json_name = "type"];
      Specified by:
      getType in interface EnumValueOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The fully qualified name of the enum type.
       
      string type = 1 [json_name = "type"];
      Specified by:
      getTypeBytes in interface EnumValueOrBuilder
      Returns:
      The bytes for type.
    • setType

      public EnumValue.Builder setType(String value)
       The fully qualified name of the enum type.
       
      string type = 1 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public EnumValue.Builder clearType()
       The fully qualified name of the enum type.
       
      string type = 1 [json_name = "type"];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public EnumValue.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The fully qualified name of the enum type.
       
      string type = 1 [json_name = "type"];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getValue

      public int getValue()
       The value of the enum.
       
      int32 value = 2 [json_name = "value"];
      Specified by:
      getValue in interface EnumValueOrBuilder
      Returns:
      The value.
    • setValue

      public EnumValue.Builder setValue(int value)
       The value of the enum.
       
      int32 value = 2 [json_name = "value"];
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public EnumValue.Builder clearValue()
       The value of the enum.
       
      int32 value = 2 [json_name = "value"];
      Returns:
      This builder for chaining.