Class FacetProperty.DateTimeBucketSpec.Builder (0.4.0)

public static final class FacetProperty.DateTimeBucketSpec.Builder extends GeneratedMessageV3.Builder<FacetProperty.DateTimeBucketSpec.Builder> implements FacetProperty.DateTimeBucketSpecOrBuilder

If bucket type is DATE, specify how date values are bucketized.

Protobuf type google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FacetProperty.DateTimeBucketSpec build()
Returns
Type Description
FacetProperty.DateTimeBucketSpec

buildPartial()

public FacetProperty.DateTimeBucketSpec buildPartial()
Returns
Type Description
FacetProperty.DateTimeBucketSpec

clear()

public FacetProperty.DateTimeBucketSpec.Builder clear()
Returns
Type Description
FacetProperty.DateTimeBucketSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearGranularity()

public FacetProperty.DateTimeBucketSpec.Builder clearGranularity()

Granularity of date type facet.

.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity granularity = 1;

Returns
Type Description
FacetProperty.DateTimeBucketSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public FacetProperty.DateTimeBucketSpec.Builder clone()
Returns
Type Description
FacetProperty.DateTimeBucketSpec.Builder
Overrides

getDefaultInstanceForType()

public FacetProperty.DateTimeBucketSpec getDefaultInstanceForType()
Returns
Type Description
FacetProperty.DateTimeBucketSpec

getDescriptorForType()

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

getGranularity()

public FacetProperty.DateTimeBucketSpec.Granularity getGranularity()

Granularity of date type facet.

.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity granularity = 1;

Returns
Type Description
FacetProperty.DateTimeBucketSpec.Granularity

The granularity.

getGranularityValue()

public int getGranularityValue()

Granularity of date type facet.

.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity granularity = 1;

Returns
Type Description
int

The enum numeric value on the wire for granularity.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FacetProperty.DateTimeBucketSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGranularity(FacetProperty.DateTimeBucketSpec.Granularity value)

public FacetProperty.DateTimeBucketSpec.Builder setGranularity(FacetProperty.DateTimeBucketSpec.Granularity value)

Granularity of date type facet.

.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity granularity = 1;

Parameter
Name Description
value FacetProperty.DateTimeBucketSpec.Granularity

The granularity to set.

Returns
Type Description
FacetProperty.DateTimeBucketSpec.Builder

This builder for chaining.

setGranularityValue(int value)

public FacetProperty.DateTimeBucketSpec.Builder setGranularityValue(int value)

Granularity of date type facet.

.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity granularity = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for granularity to set.

Returns
Type Description
FacetProperty.DateTimeBucketSpec.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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