Package com.google.api.expr.v1alpha1
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.v1alpha1.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.v1alpha1.EnumValue
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionThe fully qualified name of the enum type.The value of the enum.getType()
The fully qualified name of the enum type.com.google.protobuf.ByteString
The fully qualified name of the enum type.int
getValue()
The value of the enum.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
The fully qualified name of the enum type.
string type = 1 [json_name = "type"];
- Specified by:
getType
in interfaceEnumValueOrBuilder
- 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 interfaceEnumValueOrBuilder
- Returns:
- The bytes for type.
-
setType
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
The fully qualified name of the enum type.
string type = 1 [json_name = "type"];
- Returns:
- This builder for chaining.
-
setTypeBytes
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 interfaceEnumValueOrBuilder
- Returns:
- The value.
-
setValue
The value of the enum.
int32 value = 2 [json_name = "value"];
- Parameters:
value
- The value to set.- Returns:
- This builder for chaining.
-
clearValue
The value of the enum.
int32 value = 2 [json_name = "value"];
- Returns:
- This builder for chaining.
-