Class OperatorQuery.Builder (0.3.0)

public static final class OperatorQuery.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public OperatorQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public OperatorQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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