Class FacetValue.Builder (0.11.0)

public static final class FacetValue.Builder extends GeneratedMessageV3.Builder<FacetValue.Builder> implements FacetValueOrBuilder

Definition of a single value with generic type.

Protobuf type google.cloud.visionai.v1.FacetValue

Implements

FacetValueOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FacetValue build()
Returns
Type Description
FacetValue

buildPartial()

public FacetValue buildPartial()
Returns
Type Description
FacetValue

clear()

public FacetValue.Builder clear()
Returns
Type Description
FacetValue.Builder
Overrides

clearDatetimeValue()

public FacetValue.Builder clearDatetimeValue()

Datetime type value.

.google.type.DateTime datetime_value = 3;

Returns
Type Description
FacetValue.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIntegerValue()

public FacetValue.Builder clearIntegerValue()

Integer type value.

int64 integer_value = 2;

Returns
Type Description
FacetValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStringValue()

public FacetValue.Builder clearStringValue()

String type value.

string string_value = 1;

Returns
Type Description
FacetValue.Builder

This builder for chaining.

clearValue()

public FacetValue.Builder clearValue()
Returns
Type Description
FacetValue.Builder

clone()

public FacetValue.Builder clone()
Returns
Type Description
FacetValue.Builder
Overrides

getDatetimeValue()

public DateTime getDatetimeValue()

Datetime type value.

.google.type.DateTime datetime_value = 3;

Returns
Type Description
com.google.type.DateTime

The datetimeValue.

getDatetimeValueBuilder()

public DateTime.Builder getDatetimeValueBuilder()

Datetime type value.

.google.type.DateTime datetime_value = 3;

Returns
Type Description
com.google.type.DateTime.Builder

getDatetimeValueOrBuilder()

public DateTimeOrBuilder getDatetimeValueOrBuilder()

Datetime type value.

.google.type.DateTime datetime_value = 3;

Returns
Type Description
com.google.type.DateTimeOrBuilder

getDefaultInstanceForType()

public FacetValue getDefaultInstanceForType()
Returns
Type Description
FacetValue

getDescriptorForType()

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

getIntegerValue()

public long getIntegerValue()

Integer type value.

int64 integer_value = 2;

Returns
Type Description
long

The integerValue.

getStringValue()

public String getStringValue()

String type value.

string string_value = 1;

Returns
Type Description
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

String type value.

string string_value = 1;

Returns
Type Description
ByteString

The bytes for stringValue.

getValueCase()

public FacetValue.ValueCase getValueCase()
Returns
Type Description
FacetValue.ValueCase

hasDatetimeValue()

public boolean hasDatetimeValue()

Datetime type value.

.google.type.DateTime datetime_value = 3;

Returns
Type Description
boolean

Whether the datetimeValue field is set.

hasIntegerValue()

public boolean hasIntegerValue()

Integer type value.

int64 integer_value = 2;

Returns
Type Description
boolean

Whether the integerValue field is set.

hasStringValue()

public boolean hasStringValue()

String type value.

string string_value = 1;

Returns
Type Description
boolean

Whether the stringValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDatetimeValue(DateTime value)

public FacetValue.Builder mergeDatetimeValue(DateTime value)

Datetime type value.

.google.type.DateTime datetime_value = 3;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
FacetValue.Builder

mergeFrom(FacetValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatetimeValue(DateTime value)

public FacetValue.Builder setDatetimeValue(DateTime value)

Datetime type value.

.google.type.DateTime datetime_value = 3;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
FacetValue.Builder

setDatetimeValue(DateTime.Builder builderForValue)

public FacetValue.Builder setDatetimeValue(DateTime.Builder builderForValue)

Datetime type value.

.google.type.DateTime datetime_value = 3;

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
FacetValue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FacetValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FacetValue.Builder
Overrides

setIntegerValue(long value)

public FacetValue.Builder setIntegerValue(long value)

Integer type value.

int64 integer_value = 2;

Parameter
Name Description
value long

The integerValue to set.

Returns
Type Description
FacetValue.Builder

This builder for chaining.

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

public FacetValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FacetValue.Builder
Overrides

setStringValue(String value)

public FacetValue.Builder setStringValue(String value)

String type value.

string string_value = 1;

Parameter
Name Description
value String

The stringValue to set.

Returns
Type Description
FacetValue.Builder

This builder for chaining.

setStringValueBytes(ByteString value)

public FacetValue.Builder setStringValueBytes(ByteString value)

String type value.

string string_value = 1;

Parameter
Name Description
value ByteString

The bytes for stringValue to set.

Returns
Type Description
FacetValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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