Class Value.EnumValue.Builder (1.12.0)

public static final class Value.EnumValue.Builder extends GeneratedMessageV3.Builder<Value.EnumValue.Builder> implements Value.EnumValueOrBuilder

A enum value that can hold any enum type setting values. Each enum type is represented by a number, this representation is stored in the definitions.

Protobuf type google.cloud.resourcesettings.v1.Value.EnumValue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Value.EnumValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Value.EnumValue.Builder
Overrides

build()

public Value.EnumValue build()
Returns
TypeDescription
Value.EnumValue

buildPartial()

public Value.EnumValue buildPartial()
Returns
TypeDescription
Value.EnumValue

clear()

public Value.EnumValue.Builder clear()
Returns
TypeDescription
Value.EnumValue.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Value.EnumValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Value.EnumValue.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Value.EnumValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Value.EnumValue.Builder
Overrides

clearValue()

public Value.EnumValue.Builder clearValue()

The value of this enum

string value = 1;

Returns
TypeDescription
Value.EnumValue.Builder

This builder for chaining.

clone()

public Value.EnumValue.Builder clone()
Returns
TypeDescription
Value.EnumValue.Builder
Overrides

getDefaultInstanceForType()

public Value.EnumValue getDefaultInstanceForType()
Returns
TypeDescription
Value.EnumValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValue()

public String getValue()

The value of this enum

string value = 1;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of this enum

string value = 1;

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Value.EnumValue other)

public Value.EnumValue.Builder mergeFrom(Value.EnumValue other)
Parameter
NameDescription
otherValue.EnumValue
Returns
TypeDescription
Value.EnumValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Value.EnumValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value.EnumValue.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Value.EnumValue.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Value.EnumValue.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Value.EnumValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Value.EnumValue.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Value.EnumValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Value.EnumValue.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Value.EnumValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Value.EnumValue.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Value.EnumValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Value.EnumValue.Builder
Overrides

setValue(String value)

public Value.EnumValue.Builder setValue(String value)

The value of this enum

string value = 1;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
Value.EnumValue.Builder

This builder for chaining.

setValueBytes(ByteString value)

public Value.EnumValue.Builder setValueBytes(ByteString value)

The value of this enum

string value = 1;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
Value.EnumValue.Builder

This builder for chaining.