public final class OperatorDefinition extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int INPUT_ARGS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
OPERATOR_FIELD_NUMBER
public static final int OPERATOR_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
OUTPUT_ARGS_FIELD_NUMBER
public static final int OUTPUT_ARGS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SHORT_DESCRIPTION_FIELD_NUMBER
public static final int SHORT_DESCRIPTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static OperatorDefinition getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static OperatorDefinition.Builder newBuilder()
newBuilder(OperatorDefinition prototype)
public static OperatorDefinition.Builder newBuilder(OperatorDefinition prototype)
public static OperatorDefinition parseDelimitedFrom(InputStream input)
public static OperatorDefinition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static OperatorDefinition parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OperatorDefinition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static OperatorDefinition parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OperatorDefinition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OperatorDefinition parseFrom(CodedInputStream input)
public static OperatorDefinition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OperatorDefinition parseFrom(InputStream input)
public static OperatorDefinition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static OperatorDefinition parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OperatorDefinition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<OperatorDefinition> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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
|
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;
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
|
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()
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.
|
public OperatorDefinition.ArgumentDefinition getInputArgs(int index)
Declares input arguments.
repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;
Parameter |
Name |
Description |
index |
int
|
public int getInputArgsCount()
Declares input arguments.
repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;
Returns |
Type |
Description |
int |
|
public List<OperatorDefinition.ArgumentDefinition> getInputArgsList()
Declares input arguments.
repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;
public OperatorDefinition.ArgumentDefinitionOrBuilder getInputArgsOrBuilder(int index)
Declares input arguments.
repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;
Parameter |
Name |
Description |
index |
int
|
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
|
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;
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
|
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> |
|
getParserForType()
public Parser<OperatorDefinition> getParserForType()
Overrides
getResources()
public ResourceSpecification getResources()
The resources for running the operator.
.google.cloud.visionai.v1.ResourceSpecification resources = 5;
getResourcesOrBuilder()
public ResourceSpecificationOrBuilder getResourcesOrBuilder()
The resources for running the operator.
.google.cloud.visionai.v1.ResourceSpecification resources = 5;
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public OperatorDefinition.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OperatorDefinition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public OperatorDefinition.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides