Class Value.EnumValue.Builder (1.43.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Value.EnumValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Value.EnumValue.Builder
Overrides

build()

public Value.EnumValue build()
Returns
Type Description
Value.EnumValue

buildPartial()

public Value.EnumValue buildPartial()
Returns
Type Description
Value.EnumValue

clear()

public Value.EnumValue.Builder clear()
Returns
Type Description
Value.EnumValue.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Value.EnumValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Value.EnumValue.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Value.EnumValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Value.EnumValue.Builder
Overrides

clearValue()

public Value.EnumValue.Builder clearValue()

The value of this enum

string value = 1;

Returns
Type Description
Value.EnumValue.Builder

This builder for chaining.

clone()

public Value.EnumValue.Builder clone()
Returns
Type Description
Value.EnumValue.Builder
Overrides

getDefaultInstanceForType()

public Value.EnumValue getDefaultInstanceForType()
Returns
Type Description
Value.EnumValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getValue()

public String getValue()

The value of this enum

string value = 1;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of this enum

string value = 1;

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Value.EnumValue other)

public Value.EnumValue.Builder mergeFrom(Value.EnumValue other)
Parameter
Name Description
other Value.EnumValue
Returns
Type Description
Value.EnumValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Value.EnumValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Value.EnumValue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Value.EnumValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Value.EnumValue.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Value.EnumValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Value.EnumValue.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Value.EnumValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Value.EnumValue.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Value.EnumValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Value.EnumValue.Builder
Overrides

setValue(String value)

public Value.EnumValue.Builder setValue(String value)

The value of this enum

string value = 1;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
Value.EnumValue.Builder

This builder for chaining.