Class FacetBucket (0.1.0)

public final class FacetBucket extends GeneratedMessageV3 implements FacetBucketOrBuilder

Holds the facet value, selections state, and metadata.

Protobuf type google.cloud.visionai.v1.FacetBucket

Static Fields

RANGE_FIELD_NUMBER

public static final int RANGE_FIELD_NUMBER
Field Value
Type Description
int

SELECTED_FIELD_NUMBER

public static final int SELECTED_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FacetBucket getDefaultInstance()
Returns
Type Description
FacetBucket

getDescriptor()

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

newBuilder()

public static FacetBucket.Builder newBuilder()
Returns
Type Description
FacetBucket.Builder

newBuilder(FacetBucket prototype)

public static FacetBucket.Builder newBuilder(FacetBucket prototype)
Parameter
Name Description
prototype FacetBucket
Returns
Type Description
FacetBucket.Builder

parseDelimitedFrom(InputStream input)

public static FacetBucket parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FacetBucket
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FacetBucket parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FacetBucket
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FacetBucket parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FacetBucket
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FacetBucket parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FacetBucket
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FacetBucket parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FacetBucket
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FacetBucket parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FacetBucket
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FacetBucket parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FacetBucket
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FacetBucket parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FacetBucket
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FacetBucket parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FacetBucket
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FacetBucket parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FacetBucket
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FacetBucket parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FacetBucket
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FacetBucket parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FacetBucket
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FacetBucket> parser()
Returns
Type Description
Parser<FacetBucket>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBucketValueCase()

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

getDefaultInstanceForType()

public FacetBucket getDefaultInstanceForType()
Returns
Type Description
FacetBucket

getParserForType()

public Parser<FacetBucket> getParserForType()
Returns
Type Description
Parser<FacetBucket>
Overrides

getRange()

public FacetBucket.Range getRange()

Range value.

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

Returns
Type Description
FacetBucket.Range

The range.

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getValue()

public FacetValue getValue()

Singular value.

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

Returns
Type Description
FacetValue

The value.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FacetBucket.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FacetBucket.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException