Class Analysis.Builder

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

public static final class Analysis.Builder extends com.google.protobuf.GeneratedMessage.Builder<Analysis.Builder> implements AnalysisOrBuilder
 Message describing the Analysis object.
 
Protobuf type google.cloud.visionai.v1.Analysis
  • 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<Analysis.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public Analysis.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<Analysis.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<Analysis.Builder>
    • getDefaultInstanceForType

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

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

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

      public Analysis.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<Analysis.Builder>
    • mergeFrom

      public Analysis.Builder mergeFrom(Analysis other)
    • isInitialized

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

      public Analysis.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<Analysis.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of resource.
       
      string name = 1;
      Specified by:
      getName in interface AnalysisOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of resource.
       
      string name = 1;
      Specified by:
      getNameBytes in interface AnalysisOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Analysis.Builder setName(String value)
       The name of resource.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Analysis.Builder clearName()
       The name of resource.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Analysis.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of resource.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface AnalysisOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface AnalysisOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Analysis.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Analysis.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Analysis.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Analysis.Builder clearCreateTime()
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface AnalysisOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AnalysisOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AnalysisOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Analysis.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Analysis.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Analysis.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Analysis.Builder clearUpdateTime()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AnalysisOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: AnalysisOrBuilder
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface AnalysisOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface AnalysisOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface AnalysisOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface AnalysisOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface AnalysisOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface AnalysisOrBuilder
    • clearLabels

      public Analysis.Builder clearLabels()
    • removeLabels

      public Analysis.Builder removeLabels(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Analysis.Builder putLabels(String key, String value)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • putAllLabels

      public Analysis.Builder putAllLabels(Map<String,String> values)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • hasAnalysisDefinition

      public boolean hasAnalysisDefinition()
       The definition of the analysis.
       
      .google.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;
      Specified by:
      hasAnalysisDefinition in interface AnalysisOrBuilder
      Returns:
      Whether the analysisDefinition field is set.
    • getAnalysisDefinition

      public AnalysisDefinition getAnalysisDefinition()
       The definition of the analysis.
       
      .google.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;
      Specified by:
      getAnalysisDefinition in interface AnalysisOrBuilder
      Returns:
      The analysisDefinition.
    • setAnalysisDefinition

      public Analysis.Builder setAnalysisDefinition(AnalysisDefinition value)
       The definition of the analysis.
       
      .google.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;
    • setAnalysisDefinition

      public Analysis.Builder setAnalysisDefinition(AnalysisDefinition.Builder builderForValue)
       The definition of the analysis.
       
      .google.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;
    • mergeAnalysisDefinition

      public Analysis.Builder mergeAnalysisDefinition(AnalysisDefinition value)
       The definition of the analysis.
       
      .google.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;
    • clearAnalysisDefinition

      public Analysis.Builder clearAnalysisDefinition()
       The definition of the analysis.
       
      .google.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;
    • getAnalysisDefinitionBuilder

      public AnalysisDefinition.Builder getAnalysisDefinitionBuilder()
       The definition of the analysis.
       
      .google.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;
    • getAnalysisDefinitionOrBuilder

      public AnalysisDefinitionOrBuilder getAnalysisDefinitionOrBuilder()
       The definition of the analysis.
       
      .google.cloud.visionai.v1.AnalysisDefinition analysis_definition = 5;
      Specified by:
      getAnalysisDefinitionOrBuilder in interface AnalysisOrBuilder
    • getInputStreamsMappingCount

      public int getInputStreamsMappingCount()
      Description copied from interface: AnalysisOrBuilder
       Map from the input parameter in the definition to the real stream.
       E.g., suppose you had a stream source operator named "input-0" and you try
       to receive from the real stream "stream-0". You can add the following
       mapping: [input-0: stream-0].
       
      map<string, string> input_streams_mapping = 6;
      Specified by:
      getInputStreamsMappingCount in interface AnalysisOrBuilder
    • containsInputStreamsMapping

      public boolean containsInputStreamsMapping(String key)
       Map from the input parameter in the definition to the real stream.
       E.g., suppose you had a stream source operator named "input-0" and you try
       to receive from the real stream "stream-0". You can add the following
       mapping: [input-0: stream-0].
       
      map<string, string> input_streams_mapping = 6;
      Specified by:
      containsInputStreamsMapping in interface AnalysisOrBuilder
    • getInputStreamsMapping

      @Deprecated public Map<String,String> getInputStreamsMapping()
      Deprecated.
      Specified by:
      getInputStreamsMapping in interface AnalysisOrBuilder
    • getInputStreamsMappingMap

      public Map<String,String> getInputStreamsMappingMap()
       Map from the input parameter in the definition to the real stream.
       E.g., suppose you had a stream source operator named "input-0" and you try
       to receive from the real stream "stream-0". You can add the following
       mapping: [input-0: stream-0].
       
      map<string, string> input_streams_mapping = 6;
      Specified by:
      getInputStreamsMappingMap in interface AnalysisOrBuilder
    • getInputStreamsMappingOrDefault

      public String getInputStreamsMappingOrDefault(String key, String defaultValue)
       Map from the input parameter in the definition to the real stream.
       E.g., suppose you had a stream source operator named "input-0" and you try
       to receive from the real stream "stream-0". You can add the following
       mapping: [input-0: stream-0].
       
      map<string, string> input_streams_mapping = 6;
      Specified by:
      getInputStreamsMappingOrDefault in interface AnalysisOrBuilder
    • getInputStreamsMappingOrThrow

      public String getInputStreamsMappingOrThrow(String key)
       Map from the input parameter in the definition to the real stream.
       E.g., suppose you had a stream source operator named "input-0" and you try
       to receive from the real stream "stream-0". You can add the following
       mapping: [input-0: stream-0].
       
      map<string, string> input_streams_mapping = 6;
      Specified by:
      getInputStreamsMappingOrThrow in interface AnalysisOrBuilder
    • clearInputStreamsMapping

      public Analysis.Builder clearInputStreamsMapping()
    • removeInputStreamsMapping

      public Analysis.Builder removeInputStreamsMapping(String key)
       Map from the input parameter in the definition to the real stream.
       E.g., suppose you had a stream source operator named "input-0" and you try
       to receive from the real stream "stream-0". You can add the following
       mapping: [input-0: stream-0].
       
      map<string, string> input_streams_mapping = 6;
    • getMutableInputStreamsMapping

      @Deprecated public Map<String,String> getMutableInputStreamsMapping()
      Deprecated.
      Use alternate mutation accessors instead.
    • putInputStreamsMapping

      public Analysis.Builder putInputStreamsMapping(String key, String value)
       Map from the input parameter in the definition to the real stream.
       E.g., suppose you had a stream source operator named "input-0" and you try
       to receive from the real stream "stream-0". You can add the following
       mapping: [input-0: stream-0].
       
      map<string, string> input_streams_mapping = 6;
    • putAllInputStreamsMapping

      public Analysis.Builder putAllInputStreamsMapping(Map<String,String> values)
       Map from the input parameter in the definition to the real stream.
       E.g., suppose you had a stream source operator named "input-0" and you try
       to receive from the real stream "stream-0". You can add the following
       mapping: [input-0: stream-0].
       
      map<string, string> input_streams_mapping = 6;
    • getOutputStreamsMappingCount

      public int getOutputStreamsMappingCount()
      Description copied from interface: AnalysisOrBuilder
       Map from the output parameter in the definition to the real stream.
       E.g., suppose you had a stream sink operator named "output-0" and you try
       to send to the real stream "stream-0". You can add the following
       mapping: [output-0: stream-0].
       
      map<string, string> output_streams_mapping = 7;
      Specified by:
      getOutputStreamsMappingCount in interface AnalysisOrBuilder
    • containsOutputStreamsMapping

      public boolean containsOutputStreamsMapping(String key)
       Map from the output parameter in the definition to the real stream.
       E.g., suppose you had a stream sink operator named "output-0" and you try
       to send to the real stream "stream-0". You can add the following
       mapping: [output-0: stream-0].
       
      map<string, string> output_streams_mapping = 7;
      Specified by:
      containsOutputStreamsMapping in interface AnalysisOrBuilder
    • getOutputStreamsMapping

      @Deprecated public Map<String,String> getOutputStreamsMapping()
      Deprecated.
      Specified by:
      getOutputStreamsMapping in interface AnalysisOrBuilder
    • getOutputStreamsMappingMap

      public Map<String,String> getOutputStreamsMappingMap()
       Map from the output parameter in the definition to the real stream.
       E.g., suppose you had a stream sink operator named "output-0" and you try
       to send to the real stream "stream-0". You can add the following
       mapping: [output-0: stream-0].
       
      map<string, string> output_streams_mapping = 7;
      Specified by:
      getOutputStreamsMappingMap in interface AnalysisOrBuilder
    • getOutputStreamsMappingOrDefault

      public String getOutputStreamsMappingOrDefault(String key, String defaultValue)
       Map from the output parameter in the definition to the real stream.
       E.g., suppose you had a stream sink operator named "output-0" and you try
       to send to the real stream "stream-0". You can add the following
       mapping: [output-0: stream-0].
       
      map<string, string> output_streams_mapping = 7;
      Specified by:
      getOutputStreamsMappingOrDefault in interface AnalysisOrBuilder
    • getOutputStreamsMappingOrThrow

      public String getOutputStreamsMappingOrThrow(String key)
       Map from the output parameter in the definition to the real stream.
       E.g., suppose you had a stream sink operator named "output-0" and you try
       to send to the real stream "stream-0". You can add the following
       mapping: [output-0: stream-0].
       
      map<string, string> output_streams_mapping = 7;
      Specified by:
      getOutputStreamsMappingOrThrow in interface AnalysisOrBuilder
    • clearOutputStreamsMapping

      public Analysis.Builder clearOutputStreamsMapping()
    • removeOutputStreamsMapping

      public Analysis.Builder removeOutputStreamsMapping(String key)
       Map from the output parameter in the definition to the real stream.
       E.g., suppose you had a stream sink operator named "output-0" and you try
       to send to the real stream "stream-0". You can add the following
       mapping: [output-0: stream-0].
       
      map<string, string> output_streams_mapping = 7;
    • getMutableOutputStreamsMapping

      @Deprecated public Map<String,String> getMutableOutputStreamsMapping()
      Deprecated.
      Use alternate mutation accessors instead.
    • putOutputStreamsMapping

      public Analysis.Builder putOutputStreamsMapping(String key, String value)
       Map from the output parameter in the definition to the real stream.
       E.g., suppose you had a stream sink operator named "output-0" and you try
       to send to the real stream "stream-0". You can add the following
       mapping: [output-0: stream-0].
       
      map<string, string> output_streams_mapping = 7;
    • putAllOutputStreamsMapping

      public Analysis.Builder putAllOutputStreamsMapping(Map<String,String> values)
       Map from the output parameter in the definition to the real stream.
       E.g., suppose you had a stream sink operator named "output-0" and you try
       to send to the real stream "stream-0". You can add the following
       mapping: [output-0: stream-0].
       
      map<string, string> output_streams_mapping = 7;
    • getDisableEventWatch

      public boolean getDisableEventWatch()
       Boolean flag to indicate whether you would like to disable the ability
       to automatically start a Process when new event happening in the input
       Stream. If you would like to start a Process manually, the field needs
       to be set to true.
       
      bool disable_event_watch = 8;
      Specified by:
      getDisableEventWatch in interface AnalysisOrBuilder
      Returns:
      The disableEventWatch.
    • setDisableEventWatch

      public Analysis.Builder setDisableEventWatch(boolean value)
       Boolean flag to indicate whether you would like to disable the ability
       to automatically start a Process when new event happening in the input
       Stream. If you would like to start a Process manually, the field needs
       to be set to true.
       
      bool disable_event_watch = 8;
      Parameters:
      value - The disableEventWatch to set.
      Returns:
      This builder for chaining.
    • clearDisableEventWatch

      public Analysis.Builder clearDisableEventWatch()
       Boolean flag to indicate whether you would like to disable the ability
       to automatically start a Process when new event happening in the input
       Stream. If you would like to start a Process manually, the field needs
       to be set to true.
       
      bool disable_event_watch = 8;
      Returns:
      This builder for chaining.