Class SchemaKeySortingStrategy.Option.Builder (0.40.0)

public static final class SchemaKeySortingStrategy.Option.Builder extends GeneratedMessage.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

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.

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.

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 GeneratedMessage.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

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.

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.