Package com.google.cloud.visionai.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllAttributeOverrides(Iterable<String> values) Optional.addAttributeOverrides(String value) Optional.addAttributeOverridesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Required.Optional.Optional.Output only.Optional.The name of resource.Optional.Optional.Optional.Output only.Required.com.google.protobuf.ByteStringRequired.getAttributeOverrides(int index) Optional.com.google.protobuf.ByteStringgetAttributeOverridesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.getName()The name of resource.com.google.protobuf.ByteStringThe name of resource.intOptional.Optional.intOptional.Optional.Optional.Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRunStatus(RunStatus value) Optional.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setAnalysis(String value) Required.setAnalysisBytes(com.google.protobuf.ByteString value) Required.setAttributeOverrides(int index, String value) Optional.setBatchId(String value) Optional.setBatchIdBytes(com.google.protobuf.ByteString value) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setEventId(String value) Optional.setEventIdBytes(com.google.protobuf.ByteString value) Optional.The name of resource.setNameBytes(com.google.protobuf.ByteString value) The name of resource.setRetryCount(int value) Optional.setRunMode(RunMode value) Optional.setRunModeValue(int value) Optional.setRunStatus(RunStatus value) Optional.setRunStatus(RunStatus.Builder builderForValue) Optional.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Process.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Process.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Process.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Process.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Process.Builder>- Throws:
IOException
-
getName
The name of resource.
string name = 1;- Specified by:
getNamein interfaceProcessOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of resource.
string name = 1;- Specified by:
getNameBytesin interfaceProcessOrBuilder- Returns:
- The bytes for name.
-
setName
The name of resource.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of resource.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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:
hasCreateTimein interfaceProcessOrBuilder- 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:
getCreateTimein interfaceProcessOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getCreateTimeOrBuilderin interfaceProcessOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceProcessOrBuilder- 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:
getUpdateTimein interfaceProcessOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getUpdateTimeOrBuilderin interfaceProcessOrBuilder
-
getAnalysis
Required. Reference to an existing Analysis resource.
string analysis = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getAnalysisin interfaceProcessOrBuilder- 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:
getAnalysisBytesin interfaceProcessOrBuilder- Returns:
- The bytes for analysis.
-
setAnalysis
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
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
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:
getAttributeOverridesListin interfaceProcessOrBuilder- 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:
getAttributeOverridesCountin interfaceProcessOrBuilder- Returns:
- The count of attributeOverrides.
-
getAttributeOverrides
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:
getAttributeOverridesin interfaceProcessOrBuilder- 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:
getAttributeOverridesBytesin interfaceProcessOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the attributeOverrides at the given index.
-
setAttributeOverrides
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
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
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
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
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:
hasRunStatusin interfaceProcessOrBuilder- Returns:
- Whether the runStatus field is set.
-
getRunStatus
Optional. Status of the Process.
.google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRunStatusin interfaceProcessOrBuilder- Returns:
- The runStatus.
-
setRunStatus
Optional. Status of the Process.
.google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setRunStatus
Optional. Status of the Process.
.google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRunStatus
Optional. Status of the Process.
.google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearRunStatus
Optional. Status of the Process.
.google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getRunStatusBuilder
Optional. Status of the Process.
.google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getRunStatusOrBuilder
Optional. Status of the Process.
.google.cloud.visionai.v1.RunStatus run_status = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRunStatusOrBuilderin interfaceProcessOrBuilder
-
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:
getRunModeValuein interfaceProcessOrBuilder- Returns:
- The enum numeric value on the wire for runMode.
-
setRunModeValue
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
Optional. Run mode of the Process.
.google.cloud.visionai.v1.RunMode run_mode = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRunModein interfaceProcessOrBuilder- Returns:
- The runMode.
-
setRunMode
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
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
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:
getEventIdin interfaceProcessOrBuilder- 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:
getEventIdBytesin interfaceProcessOrBuilder- Returns:
- The bytes for eventId.
-
setEventId
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
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
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
Optional. Optional: Batch ID of the Process.
string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBatchIdin interfaceProcessOrBuilder- 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:
getBatchIdBytesin interfaceProcessOrBuilder- Returns:
- The bytes for batchId.
-
setBatchId
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
Optional. Optional: Batch ID of the Process.
string batch_id = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setBatchIdBytes
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:
getRetryCountin interfaceProcessOrBuilder- Returns:
- The retryCount.
-
setRetryCount
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
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.
-