Class OperatorDefinition.Builder (0.6.0)

public static final class OperatorDefinition.Builder extends GeneratedMessageV3.Builder<OperatorDefinition.Builder> implements OperatorDefinitionOrBuilder

Defines the interface of an Operator.

Arguments to an operator are input/output streams that are getting processesed/returned while attributes are fixed configuration parameters.

Protobuf type google.cloud.visionai.v1.OperatorDefinition

Static Methods

getDescriptor()

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

Methods

addAllAttributes(Iterable<? extends OperatorDefinition.AttributeDefinition> values)

public OperatorDefinition.Builder addAllAttributes(Iterable<? extends OperatorDefinition.AttributeDefinition> values)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition>
Returns
Type Description
OperatorDefinition.Builder

addAllInputArgs(Iterable<? extends OperatorDefinition.ArgumentDefinition> values)

public OperatorDefinition.Builder addAllInputArgs(Iterable<? extends OperatorDefinition.ArgumentDefinition> values)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition>
Returns
Type Description
OperatorDefinition.Builder

addAllOutputArgs(Iterable<? extends OperatorDefinition.ArgumentDefinition> values)

public OperatorDefinition.Builder addAllOutputArgs(Iterable<? extends OperatorDefinition.ArgumentDefinition> values)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition>
Returns
Type Description
OperatorDefinition.Builder

addAttributes(OperatorDefinition.AttributeDefinition value)

public OperatorDefinition.Builder addAttributes(OperatorDefinition.AttributeDefinition value)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameter
Name Description
value OperatorDefinition.AttributeDefinition
Returns
Type Description
OperatorDefinition.Builder

addAttributes(OperatorDefinition.AttributeDefinition.Builder builderForValue)

public OperatorDefinition.Builder addAttributes(OperatorDefinition.AttributeDefinition.Builder builderForValue)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameter
Name Description
builderForValue OperatorDefinition.AttributeDefinition.Builder
Returns
Type Description
OperatorDefinition.Builder

addAttributes(int index, OperatorDefinition.AttributeDefinition value)

public OperatorDefinition.Builder addAttributes(int index, OperatorDefinition.AttributeDefinition value)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameters
Name Description
index int
value OperatorDefinition.AttributeDefinition
Returns
Type Description
OperatorDefinition.Builder

addAttributes(int index, OperatorDefinition.AttributeDefinition.Builder builderForValue)

public OperatorDefinition.Builder addAttributes(int index, OperatorDefinition.AttributeDefinition.Builder builderForValue)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameters
Name Description
index int
builderForValue OperatorDefinition.AttributeDefinition.Builder
Returns
Type Description
OperatorDefinition.Builder

addAttributesBuilder()

public OperatorDefinition.AttributeDefinition.Builder addAttributesBuilder()

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

addAttributesBuilder(int index)

public OperatorDefinition.AttributeDefinition.Builder addAttributesBuilder(int index)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

addInputArgs(OperatorDefinition.ArgumentDefinition value)

public OperatorDefinition.Builder addInputArgs(OperatorDefinition.ArgumentDefinition value)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameter
Name Description
value OperatorDefinition.ArgumentDefinition
Returns
Type Description
OperatorDefinition.Builder

addInputArgs(OperatorDefinition.ArgumentDefinition.Builder builderForValue)

public OperatorDefinition.Builder addInputArgs(OperatorDefinition.ArgumentDefinition.Builder builderForValue)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameter
Name Description
builderForValue OperatorDefinition.ArgumentDefinition.Builder
Returns
Type Description
OperatorDefinition.Builder

addInputArgs(int index, OperatorDefinition.ArgumentDefinition value)

public OperatorDefinition.Builder addInputArgs(int index, OperatorDefinition.ArgumentDefinition value)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameters
Name Description
index int
value OperatorDefinition.ArgumentDefinition
Returns
Type Description
OperatorDefinition.Builder

addInputArgs(int index, OperatorDefinition.ArgumentDefinition.Builder builderForValue)

public OperatorDefinition.Builder addInputArgs(int index, OperatorDefinition.ArgumentDefinition.Builder builderForValue)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameters
Name Description
index int
builderForValue OperatorDefinition.ArgumentDefinition.Builder
Returns
Type Description
OperatorDefinition.Builder

addInputArgsBuilder()

public OperatorDefinition.ArgumentDefinition.Builder addInputArgsBuilder()

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Returns
Type Description
OperatorDefinition.ArgumentDefinition.Builder

addInputArgsBuilder(int index)

public OperatorDefinition.ArgumentDefinition.Builder addInputArgsBuilder(int index)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.ArgumentDefinition.Builder

addOutputArgs(OperatorDefinition.ArgumentDefinition value)

public OperatorDefinition.Builder addOutputArgs(OperatorDefinition.ArgumentDefinition value)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameter
Name Description
value OperatorDefinition.ArgumentDefinition
Returns
Type Description
OperatorDefinition.Builder

addOutputArgs(OperatorDefinition.ArgumentDefinition.Builder builderForValue)

public OperatorDefinition.Builder addOutputArgs(OperatorDefinition.ArgumentDefinition.Builder builderForValue)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameter
Name Description
builderForValue OperatorDefinition.ArgumentDefinition.Builder
Returns
Type Description
OperatorDefinition.Builder

addOutputArgs(int index, OperatorDefinition.ArgumentDefinition value)

public OperatorDefinition.Builder addOutputArgs(int index, OperatorDefinition.ArgumentDefinition value)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameters
Name Description
index int
value OperatorDefinition.ArgumentDefinition
Returns
Type Description
OperatorDefinition.Builder

addOutputArgs(int index, OperatorDefinition.ArgumentDefinition.Builder builderForValue)

public OperatorDefinition.Builder addOutputArgs(int index, OperatorDefinition.ArgumentDefinition.Builder builderForValue)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameters
Name Description
index int
builderForValue OperatorDefinition.ArgumentDefinition.Builder
Returns
Type Description
OperatorDefinition.Builder

addOutputArgsBuilder()

public OperatorDefinition.ArgumentDefinition.Builder addOutputArgsBuilder()

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Returns
Type Description
OperatorDefinition.ArgumentDefinition.Builder

addOutputArgsBuilder(int index)

public OperatorDefinition.ArgumentDefinition.Builder addOutputArgsBuilder(int index)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.ArgumentDefinition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OperatorDefinition build()
Returns
Type Description
OperatorDefinition

buildPartial()

public OperatorDefinition buildPartial()
Returns
Type Description
OperatorDefinition

clear()

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

clearAttributes()

public OperatorDefinition.Builder clearAttributes()

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Returns
Type Description
OperatorDefinition.Builder

clearDescription()

public OperatorDefinition.Builder clearDescription()

Full description of the operator.

string description = 7;

Returns
Type Description
OperatorDefinition.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInputArgs()

public OperatorDefinition.Builder clearInputArgs()

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Returns
Type Description
OperatorDefinition.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperator()

public OperatorDefinition.Builder clearOperator()

The name of this operator.

Tentatively A-Z*, e.g., BboxCounter, PetDetector, PetDetector1.

string operator = 1;

Returns
Type Description
OperatorDefinition.Builder

This builder for chaining.

clearOutputArgs()

public OperatorDefinition.Builder clearOutputArgs()

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Returns
Type Description
OperatorDefinition.Builder

clearResources()

public OperatorDefinition.Builder clearResources()

The resources for running the operator.

.google.cloud.visionai.v1.ResourceSpecification resources = 5;

Returns
Type Description
OperatorDefinition.Builder

clearShortDescription()

public OperatorDefinition.Builder clearShortDescription()

Short description of the operator.

string short_description = 6;

Returns
Type Description
OperatorDefinition.Builder

This builder for chaining.

clone()

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

getAttributes(int index)

public OperatorDefinition.AttributeDefinition getAttributes(int index)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.AttributeDefinition

getAttributesBuilder(int index)

public OperatorDefinition.AttributeDefinition.Builder getAttributesBuilder(int index)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

getAttributesBuilderList()

public List<OperatorDefinition.AttributeDefinition.Builder> getAttributesBuilderList()

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Returns
Type Description
List<Builder>

getAttributesCount()

public int getAttributesCount()

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Returns
Type Description
int

getAttributesList()

public List<OperatorDefinition.AttributeDefinition> getAttributesList()

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Returns
Type Description
List<AttributeDefinition>

getAttributesOrBuilder(int index)

public OperatorDefinition.AttributeDefinitionOrBuilder getAttributesOrBuilder(int index)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.AttributeDefinitionOrBuilder

getAttributesOrBuilderList()

public List<? extends OperatorDefinition.AttributeDefinitionOrBuilder> getAttributesOrBuilderList()

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.OperatorDefinition.AttributeDefinitionOrBuilder>

getDefaultInstanceForType()

public OperatorDefinition getDefaultInstanceForType()
Returns
Type Description
OperatorDefinition

getDescription()

public String getDescription()

Full description of the operator.

string description = 7;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Full description of the operator.

string description = 7;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getInputArgs(int index)

public OperatorDefinition.ArgumentDefinition getInputArgs(int index)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.ArgumentDefinition

getInputArgsBuilder(int index)

public OperatorDefinition.ArgumentDefinition.Builder getInputArgsBuilder(int index)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.ArgumentDefinition.Builder

getInputArgsBuilderList()

public List<OperatorDefinition.ArgumentDefinition.Builder> getInputArgsBuilderList()

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Returns
Type Description
List<Builder>

getInputArgsCount()

public int getInputArgsCount()

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Returns
Type Description
int

getInputArgsList()

public List<OperatorDefinition.ArgumentDefinition> getInputArgsList()

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Returns
Type Description
List<ArgumentDefinition>

getInputArgsOrBuilder(int index)

public OperatorDefinition.ArgumentDefinitionOrBuilder getInputArgsOrBuilder(int index)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.ArgumentDefinitionOrBuilder

getInputArgsOrBuilderList()

public List<? extends OperatorDefinition.ArgumentDefinitionOrBuilder> getInputArgsOrBuilderList()

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinitionOrBuilder>

getOperator()

public String getOperator()

The name of this operator.

Tentatively A-Z*, e.g., BboxCounter, PetDetector, PetDetector1.

string operator = 1;

Returns
Type Description
String

The operator.

getOperatorBytes()

public ByteString getOperatorBytes()

The name of this operator.

Tentatively A-Z*, e.g., BboxCounter, PetDetector, PetDetector1.

string operator = 1;

Returns
Type Description
ByteString

The bytes for operator.

getOutputArgs(int index)

public OperatorDefinition.ArgumentDefinition getOutputArgs(int index)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.ArgumentDefinition

getOutputArgsBuilder(int index)

public OperatorDefinition.ArgumentDefinition.Builder getOutputArgsBuilder(int index)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.ArgumentDefinition.Builder

getOutputArgsBuilderList()

public List<OperatorDefinition.ArgumentDefinition.Builder> getOutputArgsBuilderList()

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Returns
Type Description
List<Builder>

getOutputArgsCount()

public int getOutputArgsCount()

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Returns
Type Description
int

getOutputArgsList()

public List<OperatorDefinition.ArgumentDefinition> getOutputArgsList()

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Returns
Type Description
List<ArgumentDefinition>

getOutputArgsOrBuilder(int index)

public OperatorDefinition.ArgumentDefinitionOrBuilder getOutputArgsOrBuilder(int index)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.ArgumentDefinitionOrBuilder

getOutputArgsOrBuilderList()

public List<? extends OperatorDefinition.ArgumentDefinitionOrBuilder> getOutputArgsOrBuilderList()

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinitionOrBuilder>

getResources()

public ResourceSpecification getResources()

The resources for running the operator.

.google.cloud.visionai.v1.ResourceSpecification resources = 5;

Returns
Type Description
ResourceSpecification

The resources.

getResourcesBuilder()

public ResourceSpecification.Builder getResourcesBuilder()

The resources for running the operator.

.google.cloud.visionai.v1.ResourceSpecification resources = 5;

Returns
Type Description
ResourceSpecification.Builder

getResourcesOrBuilder()

public ResourceSpecificationOrBuilder getResourcesOrBuilder()

The resources for running the operator.

.google.cloud.visionai.v1.ResourceSpecification resources = 5;

Returns
Type Description
ResourceSpecificationOrBuilder

getShortDescription()

public String getShortDescription()

Short description of the operator.

string short_description = 6;

Returns
Type Description
String

The shortDescription.

getShortDescriptionBytes()

public ByteString getShortDescriptionBytes()

Short description of the operator.

string short_description = 6;

Returns
Type Description
ByteString

The bytes for shortDescription.

hasResources()

public boolean hasResources()

The resources for running the operator.

.google.cloud.visionai.v1.ResourceSpecification resources = 5;

Returns
Type Description
boolean

Whether the resources field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OperatorDefinition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResources(ResourceSpecification value)

public OperatorDefinition.Builder mergeResources(ResourceSpecification value)

The resources for running the operator.

.google.cloud.visionai.v1.ResourceSpecification resources = 5;

Parameter
Name Description
value ResourceSpecification
Returns
Type Description
OperatorDefinition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAttributes(int index)

public OperatorDefinition.Builder removeAttributes(int index)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.Builder

removeInputArgs(int index)

public OperatorDefinition.Builder removeInputArgs(int index)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.Builder

removeOutputArgs(int index)

public OperatorDefinition.Builder removeOutputArgs(int index)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameter
Name Description
index int
Returns
Type Description
OperatorDefinition.Builder

setAttributes(int index, OperatorDefinition.AttributeDefinition value)

public OperatorDefinition.Builder setAttributes(int index, OperatorDefinition.AttributeDefinition value)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameters
Name Description
index int
value OperatorDefinition.AttributeDefinition
Returns
Type Description
OperatorDefinition.Builder

setAttributes(int index, OperatorDefinition.AttributeDefinition.Builder builderForValue)

public OperatorDefinition.Builder setAttributes(int index, OperatorDefinition.AttributeDefinition.Builder builderForValue)

Declares the attributes.

repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;

Parameters
Name Description
index int
builderForValue OperatorDefinition.AttributeDefinition.Builder
Returns
Type Description
OperatorDefinition.Builder

setDescription(String value)

public OperatorDefinition.Builder setDescription(String value)

Full description of the operator.

string description = 7;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
OperatorDefinition.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public OperatorDefinition.Builder setDescriptionBytes(ByteString value)

Full description of the operator.

string description = 7;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
OperatorDefinition.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputArgs(int index, OperatorDefinition.ArgumentDefinition value)

public OperatorDefinition.Builder setInputArgs(int index, OperatorDefinition.ArgumentDefinition value)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameters
Name Description
index int
value OperatorDefinition.ArgumentDefinition
Returns
Type Description
OperatorDefinition.Builder

setInputArgs(int index, OperatorDefinition.ArgumentDefinition.Builder builderForValue)

public OperatorDefinition.Builder setInputArgs(int index, OperatorDefinition.ArgumentDefinition.Builder builderForValue)

Declares input arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;

Parameters
Name Description
index int
builderForValue OperatorDefinition.ArgumentDefinition.Builder
Returns
Type Description
OperatorDefinition.Builder

setOperator(String value)

public OperatorDefinition.Builder setOperator(String value)

The name of this operator.

Tentatively A-Z*, e.g., BboxCounter, PetDetector, PetDetector1.

string operator = 1;

Parameter
Name Description
value String

The operator to set.

Returns
Type Description
OperatorDefinition.Builder

This builder for chaining.

setOperatorBytes(ByteString value)

public OperatorDefinition.Builder setOperatorBytes(ByteString value)

The name of this operator.

Tentatively A-Z*, e.g., BboxCounter, PetDetector, PetDetector1.

string operator = 1;

Parameter
Name Description
value ByteString

The bytes for operator to set.

Returns
Type Description
OperatorDefinition.Builder

This builder for chaining.

setOutputArgs(int index, OperatorDefinition.ArgumentDefinition value)

public OperatorDefinition.Builder setOutputArgs(int index, OperatorDefinition.ArgumentDefinition value)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameters
Name Description
index int
value OperatorDefinition.ArgumentDefinition
Returns
Type Description
OperatorDefinition.Builder

setOutputArgs(int index, OperatorDefinition.ArgumentDefinition.Builder builderForValue)

public OperatorDefinition.Builder setOutputArgs(int index, OperatorDefinition.ArgumentDefinition.Builder builderForValue)

Declares output arguments.

repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;

Parameters
Name Description
index int
builderForValue OperatorDefinition.ArgumentDefinition.Builder
Returns
Type Description
OperatorDefinition.Builder

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

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

setResources(ResourceSpecification value)

public OperatorDefinition.Builder setResources(ResourceSpecification value)

The resources for running the operator.

.google.cloud.visionai.v1.ResourceSpecification resources = 5;

Parameter
Name Description
value ResourceSpecification
Returns
Type Description
OperatorDefinition.Builder

setResources(ResourceSpecification.Builder builderForValue)

public OperatorDefinition.Builder setResources(ResourceSpecification.Builder builderForValue)

The resources for running the operator.

.google.cloud.visionai.v1.ResourceSpecification resources = 5;

Parameter
Name Description
builderForValue ResourceSpecification.Builder
Returns
Type Description
OperatorDefinition.Builder

setShortDescription(String value)

public OperatorDefinition.Builder setShortDescription(String value)

Short description of the operator.

string short_description = 6;

Parameter
Name Description
value String

The shortDescription to set.

Returns
Type Description
OperatorDefinition.Builder

This builder for chaining.

setShortDescriptionBytes(ByteString value)

public OperatorDefinition.Builder setShortDescriptionBytes(ByteString value)

Short description of the operator.

string short_description = 6;

Parameter
Name Description
value ByteString

The bytes for shortDescription to set.

Returns
Type Description
OperatorDefinition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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