Class FacetBucket.Builder (0.5.0)

public static final class FacetBucket.Builder extends GeneratedMessageV3.Builder<FacetBucket.Builder> implements FacetBucketOrBuilder

Holds the facet value, selections state, and metadata.

Protobuf type google.cloud.visionai.v1.FacetBucket

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FacetBucket build()
Returns
Type Description
FacetBucket

buildPartial()

public FacetBucket buildPartial()
Returns
Type Description
FacetBucket

clear()

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

clearBucketValue()

public FacetBucket.Builder clearBucketValue()
Returns
Type Description
FacetBucket.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRange()

public FacetBucket.Builder clearRange()

Range value.

.google.cloud.visionai.v1.FacetBucket.Range range = 4;

Returns
Type Description
FacetBucket.Builder

clearSelected()

public FacetBucket.Builder clearSelected()

Whether one facet bucket is selected. This field represents user's facet selection. It is set by frontend in SearchVideosRequest.

bool selected = 3;

Returns
Type Description
FacetBucket.Builder

This builder for chaining.

clearValue()

public FacetBucket.Builder clearValue()

Singular value.

.google.cloud.visionai.v1.FacetValue value = 2;

Returns
Type Description
FacetBucket.Builder

clone()

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

getBucketValueCase()

public FacetBucket.BucketValueCase getBucketValueCase()
Returns
Type Description
FacetBucket.BucketValueCase

getDefaultInstanceForType()

public FacetBucket getDefaultInstanceForType()
Returns
Type Description
FacetBucket

getDescriptorForType()

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

getRange()

public FacetBucket.Range getRange()

Range value.

.google.cloud.visionai.v1.FacetBucket.Range range = 4;

Returns
Type Description
FacetBucket.Range

The range.

getRangeBuilder()

public FacetBucket.Range.Builder getRangeBuilder()

Range value.

.google.cloud.visionai.v1.FacetBucket.Range range = 4;

Returns
Type Description
FacetBucket.Range.Builder

getRangeOrBuilder()

public FacetBucket.RangeOrBuilder getRangeOrBuilder()

Range value.

.google.cloud.visionai.v1.FacetBucket.Range range = 4;

Returns
Type Description
FacetBucket.RangeOrBuilder

getSelected()

public boolean getSelected()

Whether one facet bucket is selected. This field represents user's facet selection. It is set by frontend in SearchVideosRequest.

bool selected = 3;

Returns
Type Description
boolean

The selected.

getValue()

public FacetValue getValue()

Singular value.

.google.cloud.visionai.v1.FacetValue value = 2;

Returns
Type Description
FacetValue

The value.

getValueBuilder()

public FacetValue.Builder getValueBuilder()

Singular value.

.google.cloud.visionai.v1.FacetValue value = 2;

Returns
Type Description
FacetValue.Builder

getValueOrBuilder()

public FacetValueOrBuilder getValueOrBuilder()

Singular value.

.google.cloud.visionai.v1.FacetValue value = 2;

Returns
Type Description
FacetValueOrBuilder

hasRange()

public boolean hasRange()

Range value.

.google.cloud.visionai.v1.FacetBucket.Range range = 4;

Returns
Type Description
boolean

Whether the range field is set.

hasValue()

public boolean hasValue()

Singular value.

.google.cloud.visionai.v1.FacetValue value = 2;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FacetBucket other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRange(FacetBucket.Range value)

public FacetBucket.Builder mergeRange(FacetBucket.Range value)

Range value.

.google.cloud.visionai.v1.FacetBucket.Range range = 4;

Parameter
Name Description
value FacetBucket.Range
Returns
Type Description
FacetBucket.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeValue(FacetValue value)

public FacetBucket.Builder mergeValue(FacetValue value)

Singular value.

.google.cloud.visionai.v1.FacetValue value = 2;

Parameter
Name Description
value FacetValue
Returns
Type Description
FacetBucket.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRange(FacetBucket.Range value)

public FacetBucket.Builder setRange(FacetBucket.Range value)

Range value.

.google.cloud.visionai.v1.FacetBucket.Range range = 4;

Parameter
Name Description
value FacetBucket.Range
Returns
Type Description
FacetBucket.Builder

setRange(FacetBucket.Range.Builder builderForValue)

public FacetBucket.Builder setRange(FacetBucket.Range.Builder builderForValue)

Range value.

.google.cloud.visionai.v1.FacetBucket.Range range = 4;

Parameter
Name Description
builderForValue FacetBucket.Range.Builder
Returns
Type Description
FacetBucket.Builder

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

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

setSelected(boolean value)

public FacetBucket.Builder setSelected(boolean value)

Whether one facet bucket is selected. This field represents user's facet selection. It is set by frontend in SearchVideosRequest.

bool selected = 3;

Parameter
Name Description
value boolean

The selected to set.

Returns
Type Description
FacetBucket.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(FacetValue value)

public FacetBucket.Builder setValue(FacetValue value)

Singular value.

.google.cloud.visionai.v1.FacetValue value = 2;

Parameter
Name Description
value FacetValue
Returns
Type Description
FacetBucket.Builder

setValue(FacetValue.Builder builderForValue)

public FacetBucket.Builder setValue(FacetValue.Builder builderForValue)

Singular value.

.google.cloud.visionai.v1.FacetValue value = 2;

Parameter
Name Description
builderForValue FacetValue.Builder
Returns
Type Description
FacetBucket.Builder