Class Process.Builder

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

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

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

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

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

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

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

      public Process.Builder mergeFrom(Process other)
    • isInitialized

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

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

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

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

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

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

      public Process.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 ProcessOrBuilder
      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 ProcessOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Process.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 Process.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 Process.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 Process.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 ProcessOrBuilder
    • 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 ProcessOrBuilder
      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 ProcessOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Process.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 Process.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 Process.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 Process.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 ProcessOrBuilder
    • getAnalysis

      public String getAnalysis()
       Required. Reference to an existing Analysis resource.
       
      string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getAnalysis in interface ProcessOrBuilder
      Returns:
      The analysis.
    • getAnalysisBytes

      public com.google.protobuf.ByteString getAnalysisBytes()
       Required. Reference to an existing Analysis resource.
       
      string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getAnalysisBytes in interface ProcessOrBuilder
      Returns:
      The bytes for analysis.
    • setAnalysis

      public Process.Builder setAnalysis(String value)
       Required. Reference to an existing Analysis resource.
       
      string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The analysis to set.
      Returns:
      This builder for chaining.
    • clearAnalysis

      public Process.Builder clearAnalysis()
       Required. Reference to an existing Analysis resource.
       
      string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAnalysisBytes

      public Process.Builder setAnalysisBytes(com.google.protobuf.ByteString value)
       Required. Reference to an existing Analysis resource.
       
      string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for analysis to set.
      Returns:
      This builder for chaining.
    • getAttributeOverridesList

      public com.google.protobuf.ProtocolStringList getAttributeOverridesList()
       Optional. Attribute overrides of the Analyzers.
       Format for each single override item:
       "{analyzer_name}:{attribute_key}={value}"
       
      repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributeOverridesList in interface ProcessOrBuilder
      Returns:
      A list containing the attributeOverrides.
    • getAttributeOverridesCount

      public int getAttributeOverridesCount()
       Optional. Attribute overrides of the Analyzers.
       Format for each single override item:
       "{analyzer_name}:{attribute_key}={value}"
       
      repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributeOverridesCount in interface ProcessOrBuilder
      Returns:
      The count of attributeOverrides.
    • getAttributeOverrides

      public String getAttributeOverrides(int index)
       Optional. Attribute overrides of the Analyzers.
       Format for each single override item:
       "{analyzer_name}:{attribute_key}={value}"
       
      repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributeOverrides in interface ProcessOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The attributeOverrides at the given index.
    • getAttributeOverridesBytes

      public com.google.protobuf.ByteString getAttributeOverridesBytes(int index)
       Optional. Attribute overrides of the Analyzers.
       Format for each single override item:
       "{analyzer_name}:{attribute_key}={value}"
       
      repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributeOverridesBytes in interface ProcessOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the attributeOverrides at the given index.
    • setAttributeOverrides

      public Process.Builder setAttributeOverrides(int index, String value)
       Optional. Attribute overrides of the Analyzers.
       Format for each single override item:
       "{analyzer_name}:{attribute_key}={value}"
       
      repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The attributeOverrides to set.
      Returns:
      This builder for chaining.
    • addAttributeOverrides

      public Process.Builder addAttributeOverrides(String value)
       Optional. Attribute overrides of the Analyzers.
       Format for each single override item:
       "{analyzer_name}:{attribute_key}={value}"
       
      repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The attributeOverrides to add.
      Returns:
      This builder for chaining.
    • addAllAttributeOverrides

      public Process.Builder addAllAttributeOverrides(Iterable<String> values)
       Optional. Attribute overrides of the Analyzers.
       Format for each single override item:
       "{analyzer_name}:{attribute_key}={value}"
       
      repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The attributeOverrides to add.
      Returns:
      This builder for chaining.
    • clearAttributeOverrides

      public Process.Builder clearAttributeOverrides()
       Optional. Attribute overrides of the Analyzers.
       Format for each single override item:
       "{analyzer_name}:{attribute_key}={value}"
       
      repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addAttributeOverridesBytes

      public Process.Builder addAttributeOverridesBytes(com.google.protobuf.ByteString value)
       Optional. Attribute overrides of the Analyzers.
       Format for each single override item:
       "{analyzer_name}:{attribute_key}={value}"
       
      repeated string attribute_overrides = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the attributeOverrides to add.
      Returns:
      This builder for chaining.
    • hasRunStatus

      public boolean hasRunStatus()
       Optional. Status of the Process.
       
      .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRunStatus in interface ProcessOrBuilder
      Returns:
      Whether the runStatus field is set.
    • getRunStatus

      public RunStatus getRunStatus()
       Optional. Status of the Process.
       
      .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRunStatus in interface ProcessOrBuilder
      Returns:
      The runStatus.
    • setRunStatus

      public Process.Builder setRunStatus(RunStatus value)
       Optional. Status of the Process.
       
      .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setRunStatus

      public Process.Builder setRunStatus(RunStatus.Builder builderForValue)
       Optional. Status of the Process.
       
      .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRunStatus

      public Process.Builder mergeRunStatus(RunStatus value)
       Optional. Status of the Process.
       
      .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearRunStatus

      public Process.Builder clearRunStatus()
       Optional. Status of the Process.
       
      .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getRunStatusBuilder

      public RunStatus.Builder getRunStatusBuilder()
       Optional. Status of the Process.
       
      .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getRunStatusOrBuilder

      public RunStatusOrBuilder getRunStatusOrBuilder()
       Optional. Status of the Process.
       
      .google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRunStatusOrBuilder in interface ProcessOrBuilder
    • getRunModeValue

      public int getRunModeValue()
       Optional. Run mode of the Process.
       
      .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRunModeValue in interface ProcessOrBuilder
      Returns:
      The enum numeric value on the wire for runMode.
    • setRunModeValue

      public Process.Builder setRunModeValue(int value)
       Optional. Run mode of the Process.
       
      .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for runMode to set.
      Returns:
      This builder for chaining.
    • getRunMode

      public RunMode getRunMode()
       Optional. Run mode of the Process.
       
      .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRunMode in interface ProcessOrBuilder
      Returns:
      The runMode.
    • setRunMode

      public Process.Builder setRunMode(RunMode value)
       Optional. Run mode of the Process.
       
      .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The runMode to set.
      Returns:
      This builder for chaining.
    • clearRunMode

      public Process.Builder clearRunMode()
       Optional. Run mode of the Process.
       
      .google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getEventId

      public String getEventId()
       Optional. Event ID of the input/output streams.
       This is useful when you have a StreamSource/StreamSink operator in the
       Analysis, and you want to manually specify the Event to read from/write to.
       
      string event_id = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEventId in interface ProcessOrBuilder
      Returns:
      The eventId.
    • getEventIdBytes

      public com.google.protobuf.ByteString getEventIdBytes()
       Optional. Event ID of the input/output streams.
       This is useful when you have a StreamSource/StreamSink operator in the
       Analysis, and you want to manually specify the Event to read from/write to.
       
      string event_id = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEventIdBytes in interface ProcessOrBuilder
      Returns:
      The bytes for eventId.
    • setEventId

      public Process.Builder setEventId(String value)
       Optional. Event ID of the input/output streams.
       This is useful when you have a StreamSource/StreamSink operator in the
       Analysis, and you want to manually specify the Event to read from/write to.
       
      string event_id = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The eventId to set.
      Returns:
      This builder for chaining.
    • clearEventId

      public Process.Builder clearEventId()
       Optional. Event ID of the input/output streams.
       This is useful when you have a StreamSource/StreamSink operator in the
       Analysis, and you want to manually specify the Event to read from/write to.
       
      string event_id = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEventIdBytes

      public Process.Builder setEventIdBytes(com.google.protobuf.ByteString value)
       Optional. Event ID of the input/output streams.
       This is useful when you have a StreamSource/StreamSink operator in the
       Analysis, and you want to manually specify the Event to read from/write to.
       
      string event_id = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for eventId to set.
      Returns:
      This builder for chaining.
    • getBatchId

      public String getBatchId()
       Optional. Optional: Batch ID of the Process.
       
      string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBatchId in interface ProcessOrBuilder
      Returns:
      The batchId.
    • getBatchIdBytes

      public com.google.protobuf.ByteString getBatchIdBytes()
       Optional. Optional: Batch ID of the Process.
       
      string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBatchIdBytes in interface ProcessOrBuilder
      Returns:
      The bytes for batchId.
    • setBatchId

      public Process.Builder setBatchId(String value)
       Optional. Optional: Batch ID of the Process.
       
      string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The batchId to set.
      Returns:
      This builder for chaining.
    • clearBatchId

      public Process.Builder clearBatchId()
       Optional. Optional: Batch ID of the Process.
       
      string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setBatchIdBytes

      public Process.Builder setBatchIdBytes(com.google.protobuf.ByteString value)
       Optional. Optional: Batch ID of the Process.
       
      string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for batchId to set.
      Returns:
      This builder for chaining.
    • getRetryCount

      public int getRetryCount()
       Optional. Optional: The number of retries for a process in submission mode
       the system should try before declaring failure. By default, no retry will
       be performed.
       
      int32 retry_count = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetryCount in interface ProcessOrBuilder
      Returns:
      The retryCount.
    • setRetryCount

      public Process.Builder setRetryCount(int value)
       Optional. Optional: The number of retries for a process in submission mode
       the system should try before declaring failure. By default, no retry will
       be performed.
       
      int32 retry_count = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The retryCount to set.
      Returns:
      This builder for chaining.
    • clearRetryCount

      public Process.Builder clearRetryCount()
       Optional. Optional: The number of retries for a process in submission mode
       the system should try before declaring failure. By default, no retry will
       be performed.
       
      int32 retry_count = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.