Class Process.Builder (0.15.0)

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
Type Description
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
Name Description
values Iterable<String>

The attributeOverrides to add.

Returns
Type Description
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
Name Description
value String

The attributeOverrides to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the attributeOverrides to add.

Returns
Type Description
Process.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Process.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Process.Builder
Overrides

build()

public Process build()
Returns
Type Description
Process

buildPartial()

public Process buildPartial()
Returns
Type Description
Process

clear()

public Process.Builder clear()
Returns
Type Description
Process.Builder
Overrides

clearAnalysis()

public Process.Builder clearAnalysis()

Required. Reference to an existing Analysis resource.

string analysis = 4;

Returns
Type Description
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
Type Description
Process.Builder

This builder for chaining.

clearBatchId()

public Process.Builder clearBatchId()

Optional. Optional: Batch ID of the Process.

string batch_id = 9;

Returns
Type Description
Process.Builder

This builder for chaining.

clearCreateTime()

public Process.Builder clearCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
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
Type Description
Process.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Process.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Process.Builder
Overrides

clearName()

public Process.Builder clearName()

The name of resource.

string name = 1;

Returns
Type Description
Process.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Process.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Process.Builder

clearUpdateTime()

public Process.Builder clearUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Process.Builder

clone()

public Process.Builder clone()
Returns
Type Description
Process.Builder
Overrides

getAnalysis()

public String getAnalysis()

Required. Reference to an existing Analysis resource.

string analysis = 4;

Returns
Type Description
String

The analysis.

getAnalysisBytes()

public ByteString getAnalysisBytes()

Required. Reference to an existing Analysis resource.

string analysis = 4;

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the attributeOverrides.

getBatchId()

public String getBatchId()

Optional. Optional: Batch ID of the Process.

string batch_id = 9;

Returns
Type Description
String

The batchId.

getBatchIdBytes()

public ByteString getBatchIdBytes()

Optional. Optional: Batch ID of the Process.

string batch_id = 9;

Returns
Type Description
ByteString

The bytes for batchId.

getCreateTime()

public Timestamp getCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Process getDefaultInstanceForType()
Returns
Type Description
Process

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for eventId.

getName()

public String getName()

The name of resource.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of resource.

string name = 1;

Returns
Type Description
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
Type Description
int

The retryCount.

getRunMode()

public RunMode getRunMode()

Optional. Run mode of the Process.

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

Returns
Type Description
RunMode

The runMode.

getRunModeValue()

public int getRunModeValue()

Optional. Run mode of the Process.

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

Returns
Type Description
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
Type Description
RunStatus

The runStatus.

getRunStatusBuilder()

public RunStatus.Builder getRunStatusBuilder()

Optional. Status of the Process.

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

Returns
Type Description
RunStatus.Builder

getRunStatusOrBuilder()

public RunStatusOrBuilder getRunStatusOrBuilder()

Optional. Status of the Process.

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

Returns
Type Description
RunStatusOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
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
Type Description
boolean

Whether the runStatus field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Process.Builder mergeCreateTime(Timestamp value)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
Process.Builder

mergeFrom(Process other)

public Process.Builder mergeFrom(Process other)
Parameter
Name Description
other Process
Returns
Type Description
Process.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Process.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Process.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Process.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value RunStatus
Returns
Type Description
Process.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Process.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Process.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Process.Builder mergeUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
Process.Builder

setAnalysis(String value)

public Process.Builder setAnalysis(String value)

Required. Reference to an existing Analysis resource.

string analysis = 4;

Parameter
Name Description
value String

The analysis to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for analysis to set.

Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The attributeOverrides to set.

Returns
Type Description
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
Name Description
value String

The batchId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for batchId to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The eventId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for eventId to set.

Returns
Type Description
Process.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Process.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Process.Builder
Overrides

setName(String value)

public Process.Builder setName(String value)

The name of resource.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Process.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Process.Builder setNameBytes(ByteString value)

The name of resource.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value int

The retryCount to set.

Returns
Type Description
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
Name Description
value RunMode

The runMode to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value RunStatus
Returns
Type Description
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
Name Description
builderForValue RunStatus.Builder
Returns
Type Description
Process.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Process.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Process.Builder
Overrides

setUpdateTime(Timestamp value)

public Process.Builder setUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Process.Builder