Class Value.Builder (3.7.6)

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

Data type and value of a parameter.

Protobuf type google.cloud.channel.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

clearBoolValue()

public Value.Builder clearBoolValue()

Represents a boolean value.

bool bool_value = 5;

Returns
TypeDescription
Value.Builder

This builder for chaining.

clearDoubleValue()

public Value.Builder clearDoubleValue()

Represents a double value.

double double_value = 3;

Returns
TypeDescription
Value.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInt64Value()

public Value.Builder clearInt64Value()

Represents an int64 value.

int64 int64_value = 1;

Returns
TypeDescription
Value.Builder

This builder for chaining.

clearKind()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProtoValue()

public Value.Builder clearProtoValue()

Represents an 'Any' proto value.

.google.protobuf.Any proto_value = 4;

Returns
TypeDescription
Value.Builder

clearStringValue()

public Value.Builder clearStringValue()

Represents a string value.

string string_value = 2;

Returns
TypeDescription
Value.Builder

This builder for chaining.

clone()

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

getBoolValue()

public boolean getBoolValue()

Represents a boolean value.

bool bool_value = 5;

Returns
TypeDescription
boolean

The boolValue.

getDefaultInstanceForType()

public Value getDefaultInstanceForType()
Returns
TypeDescription
Value

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDoubleValue()

public double getDoubleValue()

Represents a double value.

double double_value = 3;

Returns
TypeDescription
double

The doubleValue.

getInt64Value()

public long getInt64Value()

Represents an int64 value.

int64 int64_value = 1;

Returns
TypeDescription
long

The int64Value.

getKindCase()

public Value.KindCase getKindCase()
Returns
TypeDescription
Value.KindCase

getProtoValue()

public Any getProtoValue()

Represents an 'Any' proto value.

.google.protobuf.Any proto_value = 4;

Returns
TypeDescription
Any

The protoValue.

getProtoValueBuilder()

public Any.Builder getProtoValueBuilder()

Represents an 'Any' proto value.

.google.protobuf.Any proto_value = 4;

Returns
TypeDescription
Builder

getProtoValueOrBuilder()

public AnyOrBuilder getProtoValueOrBuilder()

Represents an 'Any' proto value.

.google.protobuf.Any proto_value = 4;

Returns
TypeDescription
AnyOrBuilder

getStringValue()

public String getStringValue()

Represents a string value.

string string_value = 2;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

Represents a string value.

string string_value = 2;

Returns
TypeDescription
ByteString

The bytes for stringValue.

hasBoolValue()

public boolean hasBoolValue()

Represents a boolean value.

bool bool_value = 5;

Returns
TypeDescription
boolean

Whether the boolValue field is set.

hasDoubleValue()

public boolean hasDoubleValue()

Represents a double value.

double double_value = 3;

Returns
TypeDescription
boolean

Whether the doubleValue field is set.

hasInt64Value()

public boolean hasInt64Value()

Represents an int64 value.

int64 int64_value = 1;

Returns
TypeDescription
boolean

Whether the int64Value field is set.

hasProtoValue()

public boolean hasProtoValue()

Represents an 'Any' proto value.

.google.protobuf.Any proto_value = 4;

Returns
TypeDescription
boolean

Whether the protoValue field is set.

hasStringValue()

public boolean hasStringValue()

Represents 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

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

mergeProtoValue(Any value)

public Value.Builder mergeProtoValue(Any value)

Represents an 'Any' proto value.

.google.protobuf.Any proto_value = 4;

Parameter
NameDescription
valueAny
Returns
TypeDescription
Value.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBoolValue(boolean value)

public Value.Builder setBoolValue(boolean value)

Represents a boolean value.

bool bool_value = 5;

Parameter
NameDescription
valueboolean

The boolValue to set.

Returns
TypeDescription
Value.Builder

This builder for chaining.

setDoubleValue(double value)

public Value.Builder setDoubleValue(double value)

Represents a double value.

double double_value = 3;

Parameter
NameDescription
valuedouble

The doubleValue to set.

Returns
TypeDescription
Value.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInt64Value(long value)

public Value.Builder setInt64Value(long value)

Represents an int64 value.

int64 int64_value = 1;

Parameter
NameDescription
valuelong

The int64Value to set.

Returns
TypeDescription
Value.Builder

This builder for chaining.

setProtoValue(Any value)

public Value.Builder setProtoValue(Any value)

Represents an 'Any' proto value.

.google.protobuf.Any proto_value = 4;

Parameter
NameDescription
valueAny
Returns
TypeDescription
Value.Builder

setProtoValue(Any.Builder builderForValue)

public Value.Builder setProtoValue(Any.Builder builderForValue)

Represents an 'Any' proto value.

.google.protobuf.Any proto_value = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Value.Builder

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

setStringValue(String value)

public Value.Builder setStringValue(String value)

Represents 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)

Represents 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