Class Value.Builder (1.29.0)

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

The data in a setting value.

Protobuf type google.cloud.resourcesettings.v1.Value

Implements

ValueOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Value build()
Returns
TypeDescription
Value

buildPartial()

public Value buildPartial()
Returns
TypeDescription
Value

clear()

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

clearBooleanValue()

public Value.Builder clearBooleanValue()

Defines this value as being a boolean value.

bool boolean_value = 1;

Returns
TypeDescription
Value.Builder

This builder for chaining.

clearEnumValue()

public Value.Builder clearEnumValue()

Defines this value as being a Enum.

.google.cloud.resourcesettings.v1.Value.EnumValue enum_value = 4;

Returns
TypeDescription
Value.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStringSetValue()

public Value.Builder clearStringSetValue()

Defines this value as being a StringSet.

.google.cloud.resourcesettings.v1.Value.StringSet string_set_value = 3;

Returns
TypeDescription
Value.Builder

clearStringValue()

public Value.Builder clearStringValue()

Defines this value as being a string value.

string string_value = 2;

Returns
TypeDescription
Value.Builder

This builder for chaining.

clearValue()

public Value.Builder clearValue()
Returns
TypeDescription
Value.Builder

clone()

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

getBooleanValue()

public boolean getBooleanValue()

Defines this value as being a boolean value.

bool boolean_value = 1;

Returns
TypeDescription
boolean

The booleanValue.

getDefaultInstanceForType()

public Value getDefaultInstanceForType()
Returns
TypeDescription
Value

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnumValue()

public Value.EnumValue getEnumValue()

Defines this value as being a Enum.

.google.cloud.resourcesettings.v1.Value.EnumValue enum_value = 4;

Returns
TypeDescription
Value.EnumValue

The enumValue.

getEnumValueBuilder()

public Value.EnumValue.Builder getEnumValueBuilder()

Defines this value as being a Enum.

.google.cloud.resourcesettings.v1.Value.EnumValue enum_value = 4;

Returns
TypeDescription
Value.EnumValue.Builder

getEnumValueOrBuilder()

public Value.EnumValueOrBuilder getEnumValueOrBuilder()

Defines this value as being a Enum.

.google.cloud.resourcesettings.v1.Value.EnumValue enum_value = 4;

Returns
TypeDescription
Value.EnumValueOrBuilder

getStringSetValue()

public Value.StringSet getStringSetValue()

Defines this value as being a StringSet.

.google.cloud.resourcesettings.v1.Value.StringSet string_set_value = 3;

Returns
TypeDescription
Value.StringSet

The stringSetValue.

getStringSetValueBuilder()

public Value.StringSet.Builder getStringSetValueBuilder()

Defines this value as being a StringSet.

.google.cloud.resourcesettings.v1.Value.StringSet string_set_value = 3;

Returns
TypeDescription
Value.StringSet.Builder

getStringSetValueOrBuilder()

public Value.StringSetOrBuilder getStringSetValueOrBuilder()

Defines this value as being a StringSet.

.google.cloud.resourcesettings.v1.Value.StringSet string_set_value = 3;

Returns
TypeDescription
Value.StringSetOrBuilder

getStringValue()

public String getStringValue()

Defines this value as being a string value.

string string_value = 2;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

Defines this value as being a string value.

string string_value = 2;

Returns
TypeDescription
ByteString

The bytes for stringValue.

getValueCase()

public Value.ValueCase getValueCase()
Returns
TypeDescription
Value.ValueCase

hasBooleanValue()

public boolean hasBooleanValue()

Defines this value as being a boolean value.

bool boolean_value = 1;

Returns
TypeDescription
boolean

Whether the booleanValue field is set.

hasEnumValue()

public boolean hasEnumValue()

Defines this value as being a Enum.

.google.cloud.resourcesettings.v1.Value.EnumValue enum_value = 4;

Returns
TypeDescription
boolean

Whether the enumValue field is set.

hasStringSetValue()

public boolean hasStringSetValue()

Defines this value as being a StringSet.

.google.cloud.resourcesettings.v1.Value.StringSet string_set_value = 3;

Returns
TypeDescription
boolean

Whether the stringSetValue field is set.

hasStringValue()

public boolean hasStringValue()

Defines this value as being a string value.

string string_value = 2;

Returns
TypeDescription
boolean

Whether the stringValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEnumValue(Value.EnumValue value)

public Value.Builder mergeEnumValue(Value.EnumValue value)

Defines this value as being a Enum.

.google.cloud.resourcesettings.v1.Value.EnumValue enum_value = 4;

Parameter
NameDescription
valueValue.EnumValue
Returns
TypeDescription
Value.Builder

mergeFrom(Value other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStringSetValue(Value.StringSet value)

public Value.Builder mergeStringSetValue(Value.StringSet value)

Defines this value as being a StringSet.

.google.cloud.resourcesettings.v1.Value.StringSet string_set_value = 3;

Parameter
NameDescription
valueValue.StringSet
Returns
TypeDescription
Value.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBooleanValue(boolean value)

public Value.Builder setBooleanValue(boolean value)

Defines this value as being a boolean value.

bool boolean_value = 1;

Parameter
NameDescription
valueboolean

The booleanValue to set.

Returns
TypeDescription
Value.Builder

This builder for chaining.

setEnumValue(Value.EnumValue value)

public Value.Builder setEnumValue(Value.EnumValue value)

Defines this value as being a Enum.

.google.cloud.resourcesettings.v1.Value.EnumValue enum_value = 4;

Parameter
NameDescription
valueValue.EnumValue
Returns
TypeDescription
Value.Builder

setEnumValue(Value.EnumValue.Builder builderForValue)

public Value.Builder setEnumValue(Value.EnumValue.Builder builderForValue)

Defines this value as being a Enum.

.google.cloud.resourcesettings.v1.Value.EnumValue enum_value = 4;

Parameter
NameDescription
builderForValueValue.EnumValue.Builder
Returns
TypeDescription
Value.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStringSetValue(Value.StringSet value)

public Value.Builder setStringSetValue(Value.StringSet value)

Defines this value as being a StringSet.

.google.cloud.resourcesettings.v1.Value.StringSet string_set_value = 3;

Parameter
NameDescription
valueValue.StringSet
Returns
TypeDescription
Value.Builder

setStringSetValue(Value.StringSet.Builder builderForValue)

public Value.Builder setStringSetValue(Value.StringSet.Builder builderForValue)

Defines this value as being a StringSet.

.google.cloud.resourcesettings.v1.Value.StringSet string_set_value = 3;

Parameter
NameDescription
builderForValueValue.StringSet.Builder
Returns
TypeDescription
Value.Builder

setStringValue(String value)

public Value.Builder setStringValue(String value)

Defines this value as being a string value.

string string_value = 2;

Parameter
NameDescription
valueString

The stringValue to set.

Returns
TypeDescription
Value.Builder

This builder for chaining.

setStringValueBytes(ByteString value)

public Value.Builder setStringValueBytes(ByteString value)

Defines this value as being a string value.

string string_value = 2;

Parameter
NameDescription
valueByteString

The bytes for stringValue to set.

Returns
TypeDescription
Value.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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