Class OperatorDefinition

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.OperatorDefinition
All Implemented Interfaces:
OperatorDefinitionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class OperatorDefinition extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • OPERATOR_FIELD_NUMBER

      public static final int OPERATOR_FIELD_NUMBER
      See Also:
    • INPUT_ARGS_FIELD_NUMBER

      public static final int INPUT_ARGS_FIELD_NUMBER
      See Also:
    • OUTPUT_ARGS_FIELD_NUMBER

      public static final int OUTPUT_ARGS_FIELD_NUMBER
      See Also:
    • ATTRIBUTES_FIELD_NUMBER

      public static final int ATTRIBUTES_FIELD_NUMBER
      See Also:
    • RESOURCES_FIELD_NUMBER

      public static final int RESOURCES_FIELD_NUMBER
      See Also:
    • SHORT_DESCRIPTION_FIELD_NUMBER

      public static final int SHORT_DESCRIPTION_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getOperator

      public String getOperator()
       The name of this operator.
      
       Tentatively [A-Z][a-zA-Z0-9]*, e.g., BboxCounter, PetDetector,
       PetDetector1.
       
      string operator = 1;
      Specified by:
      getOperator in interface OperatorDefinitionOrBuilder
      Returns:
      The operator.
    • getOperatorBytes

      public com.google.protobuf.ByteString getOperatorBytes()
       The name of this operator.
      
       Tentatively [A-Z][a-zA-Z0-9]*, e.g., BboxCounter, PetDetector,
       PetDetector1.
       
      string operator = 1;
      Specified by:
      getOperatorBytes in interface OperatorDefinitionOrBuilder
      Returns:
      The bytes for operator.
    • getInputArgsList

      public List<OperatorDefinition.ArgumentDefinition> getInputArgsList()
       Declares input arguments.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;
      Specified by:
      getInputArgsList in interface OperatorDefinitionOrBuilder
    • getInputArgsOrBuilderList

      public List<? extends OperatorDefinition.ArgumentDefinitionOrBuilder> getInputArgsOrBuilderList()
       Declares input arguments.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;
      Specified by:
      getInputArgsOrBuilderList in interface OperatorDefinitionOrBuilder
    • getInputArgsCount

      public int getInputArgsCount()
       Declares input arguments.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;
      Specified by:
      getInputArgsCount in interface OperatorDefinitionOrBuilder
    • getInputArgs

      public OperatorDefinition.ArgumentDefinition getInputArgs(int index)
       Declares input arguments.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;
      Specified by:
      getInputArgs in interface OperatorDefinitionOrBuilder
    • getInputArgsOrBuilder

      public OperatorDefinition.ArgumentDefinitionOrBuilder getInputArgsOrBuilder(int index)
       Declares input arguments.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition input_args = 2;
      Specified by:
      getInputArgsOrBuilder in interface OperatorDefinitionOrBuilder
    • getOutputArgsList

      public List<OperatorDefinition.ArgumentDefinition> getOutputArgsList()
       Declares output arguments.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;
      Specified by:
      getOutputArgsList in interface OperatorDefinitionOrBuilder
    • getOutputArgsOrBuilderList

      public List<? extends OperatorDefinition.ArgumentDefinitionOrBuilder> getOutputArgsOrBuilderList()
       Declares output arguments.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;
      Specified by:
      getOutputArgsOrBuilderList in interface OperatorDefinitionOrBuilder
    • getOutputArgsCount

      public int getOutputArgsCount()
       Declares output arguments.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;
      Specified by:
      getOutputArgsCount in interface OperatorDefinitionOrBuilder
    • getOutputArgs

      public OperatorDefinition.ArgumentDefinition getOutputArgs(int index)
       Declares output arguments.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;
      Specified by:
      getOutputArgs in interface OperatorDefinitionOrBuilder
    • getOutputArgsOrBuilder

      public OperatorDefinition.ArgumentDefinitionOrBuilder getOutputArgsOrBuilder(int index)
       Declares output arguments.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition output_args = 3;
      Specified by:
      getOutputArgsOrBuilder in interface OperatorDefinitionOrBuilder
    • getAttributesList

      public List<OperatorDefinition.AttributeDefinition> getAttributesList()
       Declares the attributes.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;
      Specified by:
      getAttributesList in interface OperatorDefinitionOrBuilder
    • getAttributesOrBuilderList

      public List<? extends OperatorDefinition.AttributeDefinitionOrBuilder> getAttributesOrBuilderList()
       Declares the attributes.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;
      Specified by:
      getAttributesOrBuilderList in interface OperatorDefinitionOrBuilder
    • getAttributesCount

      public int getAttributesCount()
       Declares the attributes.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;
      Specified by:
      getAttributesCount in interface OperatorDefinitionOrBuilder
    • getAttributes

      public OperatorDefinition.AttributeDefinition getAttributes(int index)
       Declares the attributes.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;
      Specified by:
      getAttributes in interface OperatorDefinitionOrBuilder
    • getAttributesOrBuilder

      public OperatorDefinition.AttributeDefinitionOrBuilder getAttributesOrBuilder(int index)
       Declares the attributes.
       
      repeated .google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition attributes = 4;
      Specified by:
      getAttributesOrBuilder in interface OperatorDefinitionOrBuilder
    • hasResources

      public boolean hasResources()
       The resources for running the operator.
       
      .google.cloud.visionai.v1.ResourceSpecification resources = 5;
      Specified by:
      hasResources in interface OperatorDefinitionOrBuilder
      Returns:
      Whether the resources field is set.
    • getResources

      public ResourceSpecification getResources()
       The resources for running the operator.
       
      .google.cloud.visionai.v1.ResourceSpecification resources = 5;
      Specified by:
      getResources in interface OperatorDefinitionOrBuilder
      Returns:
      The resources.
    • getResourcesOrBuilder

      public ResourceSpecificationOrBuilder getResourcesOrBuilder()
       The resources for running the operator.
       
      .google.cloud.visionai.v1.ResourceSpecification resources = 5;
      Specified by:
      getResourcesOrBuilder in interface OperatorDefinitionOrBuilder
    • getShortDescription

      public String getShortDescription()
       Short description of the operator.
       
      string short_description = 6;
      Specified by:
      getShortDescription in interface OperatorDefinitionOrBuilder
      Returns:
      The shortDescription.
    • getShortDescriptionBytes

      public com.google.protobuf.ByteString getShortDescriptionBytes()
       Short description of the operator.
       
      string short_description = 6;
      Specified by:
      getShortDescriptionBytes in interface OperatorDefinitionOrBuilder
      Returns:
      The bytes for shortDescription.
    • getDescription

      public String getDescription()
       Full description of the operator.
       
      string description = 7;
      Specified by:
      getDescription in interface OperatorDefinitionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Full description of the operator.
       
      string description = 7;
      Specified by:
      getDescriptionBytes in interface OperatorDefinitionOrBuilder
      Returns:
      The bytes for description.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static OperatorDefinition parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OperatorDefinition parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OperatorDefinition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OperatorDefinition parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OperatorDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OperatorDefinition parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OperatorDefinition parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OperatorDefinition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OperatorDefinition parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OperatorDefinition parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OperatorDefinition parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OperatorDefinition parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public OperatorDefinition.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static OperatorDefinition.Builder newBuilder()
    • newBuilder

      public static OperatorDefinition.Builder newBuilder(OperatorDefinition prototype)
    • toBuilder

      public OperatorDefinition.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected OperatorDefinition.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static OperatorDefinition getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<OperatorDefinition> parser()
    • getParserForType

      public com.google.protobuf.Parser<OperatorDefinition> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public OperatorDefinition getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder