Class SchemaKeySortingStrategy.Option.Builder (0.12.0)

public static final class SchemaKeySortingStrategy.Option.Builder extends GeneratedMessageV3.Builder<SchemaKeySortingStrategy.Option.Builder> implements SchemaKeySortingStrategy.OptionOrBuilder

Option for one data schema key.

Protobuf type google.cloud.visionai.v1.SchemaKeySortingStrategy.Option

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SchemaKeySortingStrategy.Option build()
Returns
Type Description
SchemaKeySortingStrategy.Option

buildPartial()

public SchemaKeySortingStrategy.Option buildPartial()
Returns
Type Description
SchemaKeySortingStrategy.Option

clear()

public SchemaKeySortingStrategy.Option.Builder clear()
Returns
Type Description
SchemaKeySortingStrategy.Option.Builder
Overrides

clearAggregateMethod()

public SchemaKeySortingStrategy.Option.Builder clearAggregateMethod()

Aggregate method for the current data schema key.

optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;

Returns
Type Description
SchemaKeySortingStrategy.Option.Builder

This builder for chaining.

clearDataSchemaKey()

public SchemaKeySortingStrategy.Option.Builder clearDataSchemaKey()

The data used to sort.

string data_schema_key = 1;

Returns
Type Description
SchemaKeySortingStrategy.Option.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSortDecreasing()

public SchemaKeySortingStrategy.Option.Builder clearSortDecreasing()

Whether to sort in decreasing order or increasing order. By default, results are sorted in incresing order.

bool sort_decreasing = 2;

Returns
Type Description
SchemaKeySortingStrategy.Option.Builder

This builder for chaining.

clone()

public SchemaKeySortingStrategy.Option.Builder clone()
Returns
Type Description
SchemaKeySortingStrategy.Option.Builder
Overrides

getAggregateMethod()

public SchemaKeySortingStrategy.Option.AggregateMethod getAggregateMethod()

Aggregate method for the current data schema key.

optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;

Returns
Type Description
SchemaKeySortingStrategy.Option.AggregateMethod

The aggregateMethod.

getAggregateMethodValue()

public int getAggregateMethodValue()

Aggregate method for the current data schema key.

optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;

Returns
Type Description
int

The enum numeric value on the wire for aggregateMethod.

getDataSchemaKey()

public String getDataSchemaKey()

The data used to sort.

string data_schema_key = 1;

Returns
Type Description
String

The dataSchemaKey.

getDataSchemaKeyBytes()

public ByteString getDataSchemaKeyBytes()

The data used to sort.

string data_schema_key = 1;

Returns
Type Description
ByteString

The bytes for dataSchemaKey.

getDefaultInstanceForType()

public SchemaKeySortingStrategy.Option getDefaultInstanceForType()
Returns
Type Description
SchemaKeySortingStrategy.Option

getDescriptorForType()

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

getSortDecreasing()

public boolean getSortDecreasing()

Whether to sort in decreasing order or increasing order. By default, results are sorted in incresing order.

bool sort_decreasing = 2;

Returns
Type Description
boolean

The sortDecreasing.

hasAggregateMethod()

public boolean hasAggregateMethod()

Aggregate method for the current data schema key.

optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;

Returns
Type Description
boolean

Whether the aggregateMethod field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SchemaKeySortingStrategy.Option other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAggregateMethod(SchemaKeySortingStrategy.Option.AggregateMethod value)

public SchemaKeySortingStrategy.Option.Builder setAggregateMethod(SchemaKeySortingStrategy.Option.AggregateMethod value)

Aggregate method for the current data schema key.

optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;

Parameter
Name Description
value SchemaKeySortingStrategy.Option.AggregateMethod

The aggregateMethod to set.

Returns
Type Description
SchemaKeySortingStrategy.Option.Builder

This builder for chaining.

setAggregateMethodValue(int value)

public SchemaKeySortingStrategy.Option.Builder setAggregateMethodValue(int value)

Aggregate method for the current data schema key.

optional .google.cloud.visionai.v1.SchemaKeySortingStrategy.Option.AggregateMethod aggregate_method = 3;

Parameter
Name Description
value int

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

Returns
Type Description
SchemaKeySortingStrategy.Option.Builder

This builder for chaining.

setDataSchemaKey(String value)

public SchemaKeySortingStrategy.Option.Builder setDataSchemaKey(String value)

The data used to sort.

string data_schema_key = 1;

Parameter
Name Description
value String

The dataSchemaKey to set.

Returns
Type Description
SchemaKeySortingStrategy.Option.Builder

This builder for chaining.

setDataSchemaKeyBytes(ByteString value)

public SchemaKeySortingStrategy.Option.Builder setDataSchemaKeyBytes(ByteString value)

The data used to sort.

string data_schema_key = 1;

Parameter
Name Description
value ByteString

The bytes for dataSchemaKey to set.

Returns
Type Description
SchemaKeySortingStrategy.Option.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSortDecreasing(boolean value)

public SchemaKeySortingStrategy.Option.Builder setSortDecreasing(boolean value)

Whether to sort in decreasing order or increasing order. By default, results are sorted in incresing order.

bool sort_decreasing = 2;

Parameter
Name Description
value boolean

The sortDecreasing to set.

Returns
Type Description
SchemaKeySortingStrategy.Option.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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