Class OperatorQuery.Builder (0.40.0)

public static final class OperatorQuery.Builder extends GeneratedMessage.Builder<OperatorQuery.Builder> implements OperatorQueryOrBuilder

OperatorQuery represents one query to a Operator.

Protobuf type google.cloud.visionai.v1.OperatorQuery

Static Methods

getDescriptor()

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

Methods

build()

public OperatorQuery build()
Returns
Type Description
OperatorQuery

buildPartial()

public OperatorQuery buildPartial()
Returns
Type Description
OperatorQuery

clear()

public OperatorQuery.Builder clear()
Returns
Type Description
OperatorQuery.Builder
Overrides

clearOperator()

public OperatorQuery.Builder clearOperator()

Required. The canonical Name of the operator. e.g. OccupancyCounting.

string operator = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OperatorQuery.Builder

This builder for chaining.

clearRegistry()

public OperatorQuery.Builder clearRegistry()

Optional. Registry of the operator.

.google.cloud.visionai.v1.Registry registry = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OperatorQuery.Builder

This builder for chaining.

clearTag()

public OperatorQuery.Builder clearTag()

Optional. Tag of the operator.

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OperatorQuery.Builder

This builder for chaining.

getDefaultInstanceForType()

public OperatorQuery getDefaultInstanceForType()
Returns
Type Description
OperatorQuery

getDescriptorForType()

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

getOperator()

public String getOperator()

Required. The canonical Name of the operator. e.g. OccupancyCounting.

string operator = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The operator.

getOperatorBytes()

public ByteString getOperatorBytes()

Required. The canonical Name of the operator. e.g. OccupancyCounting.

string operator = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for operator.

getRegistry()

public Registry getRegistry()

Optional. Registry of the operator.

.google.cloud.visionai.v1.Registry registry = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Registry

The registry.

getRegistryValue()

public int getRegistryValue()

Optional. Registry of the operator.

.google.cloud.visionai.v1.Registry registry = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for registry.

getTag()

public String getTag()

Optional. Tag of the operator.

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The tag.

getTagBytes()

public ByteString getTagBytes()

Optional. Tag of the operator.

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for tag.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OperatorQuery other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setOperator(String value)

public OperatorQuery.Builder setOperator(String value)

Required. The canonical Name of the operator. e.g. OccupancyCounting.

string operator = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The operator to set.

Returns
Type Description
OperatorQuery.Builder

This builder for chaining.

setOperatorBytes(ByteString value)

public OperatorQuery.Builder setOperatorBytes(ByteString value)

Required. The canonical Name of the operator. e.g. OccupancyCounting.

string operator = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for operator to set.

Returns
Type Description
OperatorQuery.Builder

This builder for chaining.

setRegistry(Registry value)

public OperatorQuery.Builder setRegistry(Registry value)

Optional. Registry of the operator.

.google.cloud.visionai.v1.Registry registry = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Registry

The registry to set.

Returns
Type Description
OperatorQuery.Builder

This builder for chaining.

setRegistryValue(int value)

public OperatorQuery.Builder setRegistryValue(int value)

Optional. Registry of the operator.

.google.cloud.visionai.v1.Registry registry = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
OperatorQuery.Builder

This builder for chaining.

setTag(String value)

public OperatorQuery.Builder setTag(String value)

Optional. Tag of the operator.

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The tag to set.

Returns
Type Description
OperatorQuery.Builder

This builder for chaining.

setTagBytes(ByteString value)

public OperatorQuery.Builder setTagBytes(ByteString value)

Optional. Tag of the operator.

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for tag to set.

Returns
Type Description
OperatorQuery.Builder

This builder for chaining.