Class Process.Builder (0.14.1)

public static final class Process.Builder extends GeneratedMessageV3.Builder<Process.Builder> implements ProcessOrBuilder

Message describing the Process object.

Protobuf type google.events.cloud.visionai.v1.Process

Implements

ProcessOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAttributeOverrides(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The attributeOverrides to add.

Returns
TypeDescription
Process.Builder

This builder for chaining.

addAttributeOverrides(String value)

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;

Parameter
NameDescription
valueString

The attributeOverrides to add.

Returns
TypeDescription
Process.Builder

This builder for chaining.

addAttributeOverridesBytes(ByteString value)

public Process.Builder addAttributeOverridesBytes(ByteString value)

Optional. Attribute overrides of the Analyzers. Format for each single override item: "{analyzer_name}:{attribute_key}={value}"

repeated string attribute_overrides = 5;

Parameter
NameDescription
valueByteString

The bytes of the attributeOverrides to add.

Returns
TypeDescription
Process.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Process.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Process.Builder
Overrides

build()

public Process build()
Returns
TypeDescription
Process

buildPartial()

public Process buildPartial()
Returns
TypeDescription
Process

clear()

public Process.Builder clear()
Returns
TypeDescription
Process.Builder
Overrides

clearAnalysis()

public Process.Builder clearAnalysis()

Required. Reference to an existing Analysis resource.

string analysis = 4;

Returns
TypeDescription
Process.Builder

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;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearBatchId()

public Process.Builder clearBatchId()

Optional. Optional: Batch ID of the Process.

string batch_id = 9;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearCreateTime()

public Process.Builder clearCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Process.Builder

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;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Process.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Process.Builder
Overrides

clearName()

public Process.Builder clearName()

The name of resource.

string name = 1;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Process.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Process.Builder
Overrides

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;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearRunMode()

public Process.Builder clearRunMode()

Optional. Run mode of the Process.

.google.events.cloud.visionai.v1.RunMode run_mode = 7;

Returns
TypeDescription
Process.Builder

This builder for chaining.

clearRunStatus()

public Process.Builder clearRunStatus()

Optional. Status of the Process.

.google.events.cloud.visionai.v1.RunStatus run_status = 6;

Returns
TypeDescription
Process.Builder

clearUpdateTime()

public Process.Builder clearUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Process.Builder

clone()

public Process.Builder clone()
Returns
TypeDescription
Process.Builder
Overrides

getAnalysis()

public String getAnalysis()

Required. Reference to an existing Analysis resource.

string analysis = 4;

Returns
TypeDescription
String

The analysis.

getAnalysisBytes()

public ByteString getAnalysisBytes()

Required. Reference to an existing Analysis resource.

string analysis = 4;

Returns
TypeDescription
ByteString

The bytes for analysis.

getAttributeOverrides(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The attributeOverrides at the given index.

getAttributeOverridesBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the attributeOverrides at the given index.

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;

Returns
TypeDescription
int

The count of attributeOverrides.

getAttributeOverridesList()

public ProtocolStringList getAttributeOverridesList()

Optional. Attribute overrides of the Analyzers. Format for each single override item: "{analyzer_name}:{attribute_key}={value}"

repeated string attribute_overrides = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the attributeOverrides.

getBatchId()

public String getBatchId()

Optional. Optional: Batch ID of the Process.

string batch_id = 9;

Returns
TypeDescription
String

The batchId.

getBatchIdBytes()

public ByteString getBatchIdBytes()

Optional. Optional: Batch ID of the Process.

string batch_id = 9;

Returns
TypeDescription
ByteString

The bytes for batchId.

getCreateTime()

public Timestamp getCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Process getDefaultInstanceForType()
Returns
TypeDescription
Process

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The eventId.

getEventIdBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for eventId.

getName()

public String getName()

The name of resource.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of resource.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

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;

Returns
TypeDescription
int

The retryCount.

getRunMode()

public RunMode getRunMode()

Optional. Run mode of the Process.

.google.events.cloud.visionai.v1.RunMode run_mode = 7;

Returns
TypeDescription
RunMode

The runMode.

getRunModeValue()

public int getRunModeValue()

Optional. Run mode of the Process.

.google.events.cloud.visionai.v1.RunMode run_mode = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for runMode.

getRunStatus()

public RunStatus getRunStatus()

Optional. Status of the Process.

.google.events.cloud.visionai.v1.RunStatus run_status = 6;

Returns
TypeDescription
RunStatus

The runStatus.

getRunStatusBuilder()

public RunStatus.Builder getRunStatusBuilder()

Optional. Status of the Process.

.google.events.cloud.visionai.v1.RunStatus run_status = 6;

Returns
TypeDescription
RunStatus.Builder

getRunStatusOrBuilder()

public RunStatusOrBuilder getRunStatusOrBuilder()

Optional. Status of the Process.

.google.events.cloud.visionai.v1.RunStatus run_status = 6;

Returns
TypeDescription
RunStatusOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasRunStatus()

public boolean hasRunStatus()

Optional. Status of the Process.

.google.events.cloud.visionai.v1.RunStatus run_status = 6;

Returns
TypeDescription
boolean

Whether the runStatus field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Process.Builder mergeCreateTime(Timestamp value)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Process.Builder

mergeFrom(Process other)

public Process.Builder mergeFrom(Process other)
Parameter
NameDescription
otherProcess
Returns
TypeDescription
Process.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Process.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Process.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Process.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Process.Builder
Overrides

mergeRunStatus(RunStatus value)

public Process.Builder mergeRunStatus(RunStatus value)

Optional. Status of the Process.

.google.events.cloud.visionai.v1.RunStatus run_status = 6;

Parameter
NameDescription
valueRunStatus
Returns
TypeDescription
Process.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Process.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Process.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Process.Builder mergeUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Process.Builder

setAnalysis(String value)

public Process.Builder setAnalysis(String value)

Required. Reference to an existing Analysis resource.

string analysis = 4;

Parameter
NameDescription
valueString

The analysis to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setAnalysisBytes(ByteString value)

public Process.Builder setAnalysisBytes(ByteString value)

Required. Reference to an existing Analysis resource.

string analysis = 4;

Parameter
NameDescription
valueByteString

The bytes for analysis to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setAttributeOverrides(int index, String value)

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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The attributeOverrides to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setBatchId(String value)

public Process.Builder setBatchId(String value)

Optional. Optional: Batch ID of the Process.

string batch_id = 9;

Parameter
NameDescription
valueString

The batchId to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setBatchIdBytes(ByteString value)

public Process.Builder setBatchIdBytes(ByteString value)

Optional. Optional: Batch ID of the Process.

string batch_id = 9;

Parameter
NameDescription
valueByteString

The bytes for batchId to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Process.Builder setCreateTime(Timestamp value)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Process.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Process.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Process.Builder

setEventId(String value)

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;

Parameter
NameDescription
valueString

The eventId to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setEventIdBytes(ByteString value)

public Process.Builder setEventIdBytes(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;

Parameter
NameDescription
valueByteString

The bytes for eventId to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Process.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Process.Builder
Overrides

setName(String value)

public Process.Builder setName(String value)

The name of resource.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Process.Builder setNameBytes(ByteString value)

The name of resource.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Process.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Process.Builder
Overrides

setRetryCount(int value)

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;

Parameter
NameDescription
valueint

The retryCount to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setRunMode(RunMode value)

public Process.Builder setRunMode(RunMode value)

Optional. Run mode of the Process.

.google.events.cloud.visionai.v1.RunMode run_mode = 7;

Parameter
NameDescription
valueRunMode

The runMode to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setRunModeValue(int value)

public Process.Builder setRunModeValue(int value)

Optional. Run mode of the Process.

.google.events.cloud.visionai.v1.RunMode run_mode = 7;

Parameter
NameDescription
valueint

The enum numeric value on the wire for runMode to set.

Returns
TypeDescription
Process.Builder

This builder for chaining.

setRunStatus(RunStatus value)

public Process.Builder setRunStatus(RunStatus value)

Optional. Status of the Process.

.google.events.cloud.visionai.v1.RunStatus run_status = 6;

Parameter
NameDescription
valueRunStatus
Returns
TypeDescription
Process.Builder

setRunStatus(RunStatus.Builder builderForValue)

public Process.Builder setRunStatus(RunStatus.Builder builderForValue)

Optional. Status of the Process.

.google.events.cloud.visionai.v1.RunStatus run_status = 6;

Parameter
NameDescription
builderForValueRunStatus.Builder
Returns
TypeDescription
Process.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Process.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Process.Builder
Overrides

setUpdateTime(Timestamp value)

public Process.Builder setUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Process.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Process.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Process.Builder