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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FacetBucket.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public FacetBucket build()
buildPartial()
public FacetBucket buildPartial()
clear()
public FacetBucket.Builder clear()
Overrides
clearBucketValue()
public FacetBucket.Builder clearBucketValue()
clearField(Descriptors.FieldDescriptor field)
public FacetBucket.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public FacetBucket.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRange()
public FacetBucket.Builder clearRange()
Range value.
.google.cloud.visionai.v1.FacetBucket.Range range = 4;
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;
clearValue()
public FacetBucket.Builder clearValue()
Singular value.
.google.cloud.visionai.v1.FacetValue value = 2;
clone()
public FacetBucket.Builder clone()
Overrides
getBucketValueCase()
public FacetBucket.BucketValueCase getBucketValueCase()
getDefaultInstanceForType()
public FacetBucket getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getRange()
public FacetBucket.Range getRange()
Range value.
.google.cloud.visionai.v1.FacetBucket.Range range = 4;
getRangeBuilder()
public FacetBucket.Range.Builder getRangeBuilder()
Range value.
.google.cloud.visionai.v1.FacetBucket.Range range = 4;
getRangeOrBuilder()
public FacetBucket.RangeOrBuilder getRangeOrBuilder()
Range value.
.google.cloud.visionai.v1.FacetBucket.Range range = 4;
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;
getValueBuilder()
public FacetValue.Builder getValueBuilder()
Singular value.
.google.cloud.visionai.v1.FacetValue value = 2;
getValueOrBuilder()
public FacetValueOrBuilder getValueOrBuilder()
Singular value.
.google.cloud.visionai.v1.FacetValue value = 2;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(FacetBucket other)
public FacetBucket.Builder mergeFrom(FacetBucket other)
public FacetBucket.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public FacetBucket.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeRange(FacetBucket.Range value)
public FacetBucket.Builder mergeRange(FacetBucket.Range value)
Range value.
.google.cloud.visionai.v1.FacetBucket.Range range = 4;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FacetBucket.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeValue(FacetValue value)
public FacetBucket.Builder mergeValue(FacetValue value)
Singular value.
.google.cloud.visionai.v1.FacetValue value = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public FacetBucket.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRange(FacetBucket.Range value)
public FacetBucket.Builder setRange(FacetBucket.Range value)
Range value.
.google.cloud.visionai.v1.FacetBucket.Range range = 4;
setRange(FacetBucket.Range.Builder builderForValue)
public FacetBucket.Builder setRange(FacetBucket.Range.Builder builderForValue)
Range value.
.google.cloud.visionai.v1.FacetBucket.Range range = 4;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FacetBucket.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final FacetBucket.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setValue(FacetValue value)
public FacetBucket.Builder setValue(FacetValue value)
Singular value.
.google.cloud.visionai.v1.FacetValue value = 2;
setValue(FacetValue.Builder builderForValue)
public FacetBucket.Builder setValue(FacetValue.Builder builderForValue)
Singular value.
.google.cloud.visionai.v1.FacetValue value = 2;