Class AnalyzerDefinition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnalyzerDefinition.Builder>
com.google.cloud.visionai.v1.AnalyzerDefinition.Builder
All Implemented Interfaces:
AnalyzerDefinitionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AnalyzerDefinition

public static final class AnalyzerDefinition.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnalyzerDefinition.Builder> implements AnalyzerDefinitionOrBuilder
 Defines an Analyzer.

 An analyzer processes data from its input streams using the logic defined in
 the Operator that it represents. Of course, it produces data for the output
 streams declared in the Operator.
 
Protobuf type google.cloud.visionai.v1.AnalyzerDefinition
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AnalyzerDefinition.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AnalyzerDefinition.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AnalyzerDefinition.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AnalyzerDefinition.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AnalyzerDefinition.Builder>
    • getDefaultInstanceForType

      public AnalyzerDefinition getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AnalyzerDefinition build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AnalyzerDefinition buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AnalyzerDefinition.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnalyzerDefinition.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AnalyzerDefinition.Builder>
    • mergeFrom

      public AnalyzerDefinition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnalyzerDefinition.Builder>
      Throws:
      IOException
    • getAnalyzer

      public String getAnalyzer()
       The name of this analyzer.
      
       Tentatively [a-z][a-z0-9]*(_[a-z0-9]+)*.
       
      string analyzer = 1;
      Specified by:
      getAnalyzer in interface AnalyzerDefinitionOrBuilder
      Returns:
      The analyzer.
    • getAnalyzerBytes

      public com.google.protobuf.ByteString getAnalyzerBytes()
       The name of this analyzer.
      
       Tentatively [a-z][a-z0-9]*(_[a-z0-9]+)*.
       
      string analyzer = 1;
      Specified by:
      getAnalyzerBytes in interface AnalyzerDefinitionOrBuilder
      Returns:
      The bytes for analyzer.
    • setAnalyzer

      public AnalyzerDefinition.Builder setAnalyzer(String value)
       The name of this analyzer.
      
       Tentatively [a-z][a-z0-9]*(_[a-z0-9]+)*.
       
      string analyzer = 1;
      Parameters:
      value - The analyzer to set.
      Returns:
      This builder for chaining.
    • clearAnalyzer

      public AnalyzerDefinition.Builder clearAnalyzer()
       The name of this analyzer.
      
       Tentatively [a-z][a-z0-9]*(_[a-z0-9]+)*.
       
      string analyzer = 1;
      Returns:
      This builder for chaining.
    • setAnalyzerBytes

      public AnalyzerDefinition.Builder setAnalyzerBytes(com.google.protobuf.ByteString value)
       The name of this analyzer.
      
       Tentatively [a-z][a-z0-9]*(_[a-z0-9]+)*.
       
      string analyzer = 1;
      Parameters:
      value - The bytes for analyzer to set.
      Returns:
      This builder for chaining.
    • getOperator

      public String getOperator()
       The name of the operator that this analyzer runs.
      
       Must match the name of a supported operator.
       
      string operator = 2;
      Specified by:
      getOperator in interface AnalyzerDefinitionOrBuilder
      Returns:
      The operator.
    • getOperatorBytes

      public com.google.protobuf.ByteString getOperatorBytes()
       The name of the operator that this analyzer runs.
      
       Must match the name of a supported operator.
       
      string operator = 2;
      Specified by:
      getOperatorBytes in interface AnalyzerDefinitionOrBuilder
      Returns:
      The bytes for operator.
    • setOperator

      public AnalyzerDefinition.Builder setOperator(String value)
       The name of the operator that this analyzer runs.
      
       Must match the name of a supported operator.
       
      string operator = 2;
      Parameters:
      value - The operator to set.
      Returns:
      This builder for chaining.
    • clearOperator

      public AnalyzerDefinition.Builder clearOperator()
       The name of the operator that this analyzer runs.
      
       Must match the name of a supported operator.
       
      string operator = 2;
      Returns:
      This builder for chaining.
    • setOperatorBytes

      public AnalyzerDefinition.Builder setOperatorBytes(com.google.protobuf.ByteString value)
       The name of the operator that this analyzer runs.
      
       Must match the name of a supported operator.
       
      string operator = 2;
      Parameters:
      value - The bytes for operator to set.
      Returns:
      This builder for chaining.
    • getInputsList

      public List<AnalyzerDefinition.StreamInput> getInputsList()
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
      Specified by:
      getInputsList in interface AnalyzerDefinitionOrBuilder
    • getInputsCount

      public int getInputsCount()
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
      Specified by:
      getInputsCount in interface AnalyzerDefinitionOrBuilder
    • getInputs

      public AnalyzerDefinition.StreamInput getInputs(int index)
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
      Specified by:
      getInputs in interface AnalyzerDefinitionOrBuilder
    • setInputs

      public AnalyzerDefinition.Builder setInputs(int index, AnalyzerDefinition.StreamInput value)
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • setInputs

      public AnalyzerDefinition.Builder setInputs(int index, AnalyzerDefinition.StreamInput.Builder builderForValue)
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • addInputs

       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • addInputs

      public AnalyzerDefinition.Builder addInputs(int index, AnalyzerDefinition.StreamInput value)
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • addInputs

       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • addInputs

      public AnalyzerDefinition.Builder addInputs(int index, AnalyzerDefinition.StreamInput.Builder builderForValue)
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • addAllInputs

      public AnalyzerDefinition.Builder addAllInputs(Iterable<? extends AnalyzerDefinition.StreamInput> values)
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • clearInputs

      public AnalyzerDefinition.Builder clearInputs()
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • removeInputs

      public AnalyzerDefinition.Builder removeInputs(int index)
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • getInputsBuilder

      public AnalyzerDefinition.StreamInput.Builder getInputsBuilder(int index)
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • getInputsOrBuilder

      public AnalyzerDefinition.StreamInputOrBuilder getInputsOrBuilder(int index)
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
      Specified by:
      getInputsOrBuilder in interface AnalyzerDefinitionOrBuilder
    • getInputsOrBuilderList

      public List<? extends AnalyzerDefinition.StreamInputOrBuilder> getInputsOrBuilderList()
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
      Specified by:
      getInputsOrBuilderList in interface AnalyzerDefinitionOrBuilder
    • addInputsBuilder

      public AnalyzerDefinition.StreamInput.Builder addInputsBuilder()
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • addInputsBuilder

      public AnalyzerDefinition.StreamInput.Builder addInputsBuilder(int index)
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • getInputsBuilderList

      public List<AnalyzerDefinition.StreamInput.Builder> getInputsBuilderList()
       Input streams.
       
      repeated .google.cloud.visionai.v1.AnalyzerDefinition.StreamInput inputs = 3;
    • getAttrsCount

      public int getAttrsCount()
      Description copied from interface: AnalyzerDefinitionOrBuilder
       The attribute values that this analyzer applies to the operator.
      
       Supply a mapping between the attribute names and the actual value you wish
       to apply. If an attribute name is omitted, then it will take a
       preconfigured default value.
       
      map<string, .google.cloud.visionai.v1.AttributeValue> attrs = 4;
      Specified by:
      getAttrsCount in interface AnalyzerDefinitionOrBuilder
    • containsAttrs

      public boolean containsAttrs(String key)
       The attribute values that this analyzer applies to the operator.
      
       Supply a mapping between the attribute names and the actual value you wish
       to apply. If an attribute name is omitted, then it will take a
       preconfigured default value.
       
      map<string, .google.cloud.visionai.v1.AttributeValue> attrs = 4;
      Specified by:
      containsAttrs in interface AnalyzerDefinitionOrBuilder
    • getAttrs

      @Deprecated public Map<String,AttributeValue> getAttrs()
      Deprecated.
      Use getAttrsMap() instead.
      Specified by:
      getAttrs in interface AnalyzerDefinitionOrBuilder
    • getAttrsMap

      public Map<String,AttributeValue> getAttrsMap()
       The attribute values that this analyzer applies to the operator.
      
       Supply a mapping between the attribute names and the actual value you wish
       to apply. If an attribute name is omitted, then it will take a
       preconfigured default value.
       
      map<string, .google.cloud.visionai.v1.AttributeValue> attrs = 4;
      Specified by:
      getAttrsMap in interface AnalyzerDefinitionOrBuilder
    • getAttrsOrDefault

      public AttributeValue getAttrsOrDefault(String key, AttributeValue defaultValue)
       The attribute values that this analyzer applies to the operator.
      
       Supply a mapping between the attribute names and the actual value you wish
       to apply. If an attribute name is omitted, then it will take a
       preconfigured default value.
       
      map<string, .google.cloud.visionai.v1.AttributeValue> attrs = 4;
      Specified by:
      getAttrsOrDefault in interface AnalyzerDefinitionOrBuilder
    • getAttrsOrThrow

      public AttributeValue getAttrsOrThrow(String key)
       The attribute values that this analyzer applies to the operator.
      
       Supply a mapping between the attribute names and the actual value you wish
       to apply. If an attribute name is omitted, then it will take a
       preconfigured default value.
       
      map<string, .google.cloud.visionai.v1.AttributeValue> attrs = 4;
      Specified by:
      getAttrsOrThrow in interface AnalyzerDefinitionOrBuilder
    • clearAttrs

      public AnalyzerDefinition.Builder clearAttrs()
    • removeAttrs

      public AnalyzerDefinition.Builder removeAttrs(String key)
       The attribute values that this analyzer applies to the operator.
      
       Supply a mapping between the attribute names and the actual value you wish
       to apply. If an attribute name is omitted, then it will take a
       preconfigured default value.
       
      map<string, .google.cloud.visionai.v1.AttributeValue> attrs = 4;
    • getMutableAttrs

      @Deprecated public Map<String,AttributeValue> getMutableAttrs()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAttrs

      public AnalyzerDefinition.Builder putAttrs(String key, AttributeValue value)
       The attribute values that this analyzer applies to the operator.
      
       Supply a mapping between the attribute names and the actual value you wish
       to apply. If an attribute name is omitted, then it will take a
       preconfigured default value.
       
      map<string, .google.cloud.visionai.v1.AttributeValue> attrs = 4;
    • putAllAttrs

      public AnalyzerDefinition.Builder putAllAttrs(Map<String,AttributeValue> values)
       The attribute values that this analyzer applies to the operator.
      
       Supply a mapping between the attribute names and the actual value you wish
       to apply. If an attribute name is omitted, then it will take a
       preconfigured default value.
       
      map<string, .google.cloud.visionai.v1.AttributeValue> attrs = 4;
    • putAttrsBuilderIfAbsent

      public AttributeValue.Builder putAttrsBuilderIfAbsent(String key)
       The attribute values that this analyzer applies to the operator.
      
       Supply a mapping between the attribute names and the actual value you wish
       to apply. If an attribute name is omitted, then it will take a
       preconfigured default value.
       
      map<string, .google.cloud.visionai.v1.AttributeValue> attrs = 4;
    • hasDebugOptions

      public boolean hasDebugOptions()
       Debug options.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;
      Specified by:
      hasDebugOptions in interface AnalyzerDefinitionOrBuilder
      Returns:
      Whether the debugOptions field is set.
    • getDebugOptions

      public AnalyzerDefinition.DebugOptions getDebugOptions()
       Debug options.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;
      Specified by:
      getDebugOptions in interface AnalyzerDefinitionOrBuilder
      Returns:
      The debugOptions.
    • setDebugOptions

       Debug options.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;
    • setDebugOptions

      public AnalyzerDefinition.Builder setDebugOptions(AnalyzerDefinition.DebugOptions.Builder builderForValue)
       Debug options.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;
    • mergeDebugOptions

       Debug options.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;
    • clearDebugOptions

      public AnalyzerDefinition.Builder clearDebugOptions()
       Debug options.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;
    • getDebugOptionsBuilder

      public AnalyzerDefinition.DebugOptions.Builder getDebugOptionsBuilder()
       Debug options.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;
    • getDebugOptionsOrBuilder

      public AnalyzerDefinition.DebugOptionsOrBuilder getDebugOptionsOrBuilder()
       Debug options.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions debug_options = 5;
      Specified by:
      getDebugOptionsOrBuilder in interface AnalyzerDefinitionOrBuilder
    • hasOperatorOption

      public boolean hasOperatorOption()
       Operator option.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;
      Specified by:
      hasOperatorOption in interface AnalyzerDefinitionOrBuilder
      Returns:
      Whether the operatorOption field is set.
    • getOperatorOption

      public AnalyzerDefinition.OperatorOption getOperatorOption()
       Operator option.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;
      Specified by:
      getOperatorOption in interface AnalyzerDefinitionOrBuilder
      Returns:
      The operatorOption.
    • setOperatorOption

       Operator option.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;
    • setOperatorOption

      public AnalyzerDefinition.Builder setOperatorOption(AnalyzerDefinition.OperatorOption.Builder builderForValue)
       Operator option.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;
    • mergeOperatorOption

       Operator option.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;
    • clearOperatorOption

      public AnalyzerDefinition.Builder clearOperatorOption()
       Operator option.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;
    • getOperatorOptionBuilder

      public AnalyzerDefinition.OperatorOption.Builder getOperatorOptionBuilder()
       Operator option.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;
    • getOperatorOptionOrBuilder

      public AnalyzerDefinition.OperatorOptionOrBuilder getOperatorOptionOrBuilder()
       Operator option.
       
      .google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption operator_option = 6;
      Specified by:
      getOperatorOptionOrBuilder in interface AnalyzerDefinitionOrBuilder