Class Processor.Builder (0.6.0)

public static final class Processor.Builder extends GeneratedMessageV3.Builder<Processor.Builder> implements ProcessorOrBuilder

Message describing Processor object. Next ID: 19

Protobuf type google.cloud.visionai.v1.Processor

Implements

ProcessorOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSupportedAnnotationTypes(Iterable<? extends StreamAnnotationType> values)

public Processor.Builder addAllSupportedAnnotationTypes(Iterable<? extends StreamAnnotationType> values)

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.StreamAnnotationType>

The supportedAnnotationTypes to add.

Returns
Type Description
Processor.Builder

This builder for chaining.

addAllSupportedAnnotationTypesValue(Iterable<Integer> values)

public Processor.Builder addAllSupportedAnnotationTypesValue(Iterable<Integer> values)

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for supportedAnnotationTypes to add.

Returns
Type Description
Processor.Builder

This builder for chaining.

addAllSupportedInstanceTypes(Iterable<? extends Instance.InstanceType> values)

public Processor.Builder addAllSupportedInstanceTypes(Iterable<? extends Instance.InstanceType> values)

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.Instance.InstanceType>

The supportedInstanceTypes to add.

Returns
Type Description
Processor.Builder

This builder for chaining.

addAllSupportedInstanceTypesValue(Iterable<Integer> values)

public Processor.Builder addAllSupportedInstanceTypesValue(Iterable<Integer> values)

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for supportedInstanceTypes to add.

Returns
Type Description
Processor.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedAnnotationTypes(StreamAnnotationType value)

public Processor.Builder addSupportedAnnotationTypes(StreamAnnotationType value)

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value StreamAnnotationType

The supportedAnnotationTypes to add.

Returns
Type Description
Processor.Builder

This builder for chaining.

addSupportedAnnotationTypesValue(int value)

public Processor.Builder addSupportedAnnotationTypesValue(int value)

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for supportedAnnotationTypes to add.

Returns
Type Description
Processor.Builder

This builder for chaining.

addSupportedInstanceTypes(Instance.InstanceType value)

public Processor.Builder addSupportedInstanceTypes(Instance.InstanceType value)

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Parameter
Name Description
value Instance.InstanceType

The supportedInstanceTypes to add.

Returns
Type Description
Processor.Builder

This builder for chaining.

addSupportedInstanceTypesValue(int value)

public Processor.Builder addSupportedInstanceTypesValue(int value)

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Parameter
Name Description
value int

The enum numeric value on the wire for supportedInstanceTypes to add.

Returns
Type Description
Processor.Builder

This builder for chaining.

build()

public Processor build()
Returns
Type Description
Processor

buildPartial()

public Processor buildPartial()
Returns
Type Description
Processor

clear()

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

clearConfigurationTypeurl()

public Processor.Builder clearConfigurationTypeurl()

Output only. The corresponding configuration can be used in the Application to customize the behavior of the processor.

string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Processor.Builder

This builder for chaining.

clearCreateTime()

public Processor.Builder clearCreateTime()

Output only. [Output only] Create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Processor.Builder

clearCustomProcessorSourceInfo()

public Processor.Builder clearCustomProcessorSourceInfo()

Source info for customer created processor.

.google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;

Returns
Type Description
Processor.Builder

clearDescription()

public Processor.Builder clearDescription()

Illustrative sentences for describing the functionality of the processor.

string description = 10;

Returns
Type Description
Processor.Builder

This builder for chaining.

clearDisplayName()

public Processor.Builder clearDisplayName()

Required. A user friendly display name for the processor.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Processor.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public Processor.Builder clearLabels()
Returns
Type Description
Processor.Builder

clearModelType()

public Processor.Builder clearModelType()

Model Type.

.google.cloud.visionai.v1.ModelType model_type = 13;

Returns
Type Description
Processor.Builder

This builder for chaining.

clearName()

public Processor.Builder clearName()

name of resource.

string name = 1;

Returns
Type Description
Processor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Processor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Processor.Builder
Overrides

clearProcessorIoSpec()

public Processor.Builder clearProcessorIoSpec()

Output only. [Output only] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer.

.google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Processor.Builder

clearProcessorType()

public Processor.Builder clearProcessorType()

Output only. Processor Type.

.google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Processor.Builder

This builder for chaining.

clearState()

public Processor.Builder clearState()

Output only. State of the Processor.

.google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Processor.Builder

This builder for chaining.

clearSupportedAnnotationTypes()

public Processor.Builder clearSupportedAnnotationTypes()

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Processor.Builder

This builder for chaining.

clearSupportedInstanceTypes()

public Processor.Builder clearSupportedInstanceTypes()

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Returns
Type Description
Processor.Builder

This builder for chaining.

clearSupportsPostProcessing()

public Processor.Builder clearSupportsPostProcessing()

Indicates if the processor supports post processing.

bool supports_post_processing = 17;

Returns
Type Description
Processor.Builder

This builder for chaining.

clearUpdateTime()

public Processor.Builder clearUpdateTime()

Output only. [Output only] Update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Processor.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getConfigurationTypeurl()

public String getConfigurationTypeurl()

Output only. The corresponding configuration can be used in the Application to customize the behavior of the processor.

string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The configurationTypeurl.

getConfigurationTypeurlBytes()

public ByteString getConfigurationTypeurlBytes()

Output only. The corresponding configuration can be used in the Application to customize the behavior of the processor.

string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for configurationTypeurl.

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCustomProcessorSourceInfo()

public CustomProcessorSourceInfo getCustomProcessorSourceInfo()

Source info for customer created processor.

.google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;

Returns
Type Description
CustomProcessorSourceInfo

The customProcessorSourceInfo.

getCustomProcessorSourceInfoBuilder()

public CustomProcessorSourceInfo.Builder getCustomProcessorSourceInfoBuilder()

Source info for customer created processor.

.google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;

Returns
Type Description
CustomProcessorSourceInfo.Builder

getCustomProcessorSourceInfoOrBuilder()

public CustomProcessorSourceInfoOrBuilder getCustomProcessorSourceInfoOrBuilder()

Source info for customer created processor.

.google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;

Returns
Type Description
CustomProcessorSourceInfoOrBuilder

getDefaultInstanceForType()

public Processor getDefaultInstanceForType()
Returns
Type Description
Processor

getDescription()

public String getDescription()

Illustrative sentences for describing the functionality of the processor.

string description = 10;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Illustrative sentences for describing the functionality of the processor.

string description = 10;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. A user friendly display name for the processor.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. A user friendly display name for the processor.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getModelType()

public ModelType getModelType()

Model Type.

.google.cloud.visionai.v1.ModelType model_type = 13;

Returns
Type Description
ModelType

The modelType.

getModelTypeValue()

public int getModelTypeValue()

Model Type.

.google.cloud.visionai.v1.ModelType model_type = 13;

Returns
Type Description
int

The enum numeric value on the wire for modelType.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

name of resource.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

name of resource.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getProcessorIoSpec()

public ProcessorIOSpec getProcessorIoSpec()

Output only. [Output only] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer.

.google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProcessorIOSpec

The processorIoSpec.

getProcessorIoSpecBuilder()

public ProcessorIOSpec.Builder getProcessorIoSpecBuilder()

Output only. [Output only] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer.

.google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProcessorIOSpec.Builder

getProcessorIoSpecOrBuilder()

public ProcessorIOSpecOrBuilder getProcessorIoSpecOrBuilder()

Output only. [Output only] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer.

.google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProcessorIOSpecOrBuilder

getProcessorType()

public Processor.ProcessorType getProcessorType()

Output only. Processor Type.

.google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Processor.ProcessorType

The processorType.

getProcessorTypeValue()

public int getProcessorTypeValue()

Output only. Processor Type.

.google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for processorType.

getState()

public Processor.ProcessorState getState()

Output only. State of the Processor.

.google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Processor.ProcessorState

The state.

getStateValue()

public int getStateValue()

Output only. State of the Processor.

.google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getSupportedAnnotationTypes(int index)

public StreamAnnotationType getSupportedAnnotationTypes(int index)

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
StreamAnnotationType

The supportedAnnotationTypes at the given index.

getSupportedAnnotationTypesCount()

public int getSupportedAnnotationTypesCount()

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of supportedAnnotationTypes.

getSupportedAnnotationTypesList()

public List<StreamAnnotationType> getSupportedAnnotationTypesList()

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<StreamAnnotationType>

A list containing the supportedAnnotationTypes.

getSupportedAnnotationTypesValue(int index)

public int getSupportedAnnotationTypesValue(int index)

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of supportedAnnotationTypes at the given index.

getSupportedAnnotationTypesValueList()

public List<Integer> getSupportedAnnotationTypesValueList()

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for supportedAnnotationTypes.

getSupportedInstanceTypes(int index)

public Instance.InstanceType getSupportedInstanceTypes(int index)

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
Instance.InstanceType

The supportedInstanceTypes at the given index.

getSupportedInstanceTypesCount()

public int getSupportedInstanceTypesCount()

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Returns
Type Description
int

The count of supportedInstanceTypes.

getSupportedInstanceTypesList()

public List<Instance.InstanceType> getSupportedInstanceTypesList()

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Returns
Type Description
List<InstanceType>

A list containing the supportedInstanceTypes.

getSupportedInstanceTypesValue(int index)

public int getSupportedInstanceTypesValue(int index)

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of supportedInstanceTypes at the given index.

getSupportedInstanceTypesValueList()

public List<Integer> getSupportedInstanceTypesValueList()

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for supportedInstanceTypes.

getSupportsPostProcessing()

public boolean getSupportsPostProcessing()

Indicates if the processor supports post processing.

bool supports_post_processing = 17;

Returns
Type Description
boolean

The supportsPostProcessing.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasCustomProcessorSourceInfo()

public boolean hasCustomProcessorSourceInfo()

Source info for customer created processor.

.google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;

Returns
Type Description
boolean

Whether the customProcessorSourceInfo field is set.

hasProcessorIoSpec()

public boolean hasProcessorIoSpec()

Output only. [Output only] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer.

.google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the processorIoSpec field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Processor.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Processor.Builder

mergeCustomProcessorSourceInfo(CustomProcessorSourceInfo value)

public Processor.Builder mergeCustomProcessorSourceInfo(CustomProcessorSourceInfo value)

Source info for customer created processor.

.google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;

Parameter
Name Description
value CustomProcessorSourceInfo
Returns
Type Description
Processor.Builder

mergeFrom(Processor other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Processor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Processor.Builder
Overrides

mergeProcessorIoSpec(ProcessorIOSpec value)

public Processor.Builder mergeProcessorIoSpec(ProcessorIOSpec value)

Output only. [Output only] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer.

.google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ProcessorIOSpec
Returns
Type Description
Processor.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Processor.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Processor.Builder

putAllLabels(Map<String,String> values)

public Processor.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Processor.Builder

putLabels(String key, String value)

public Processor.Builder putLabels(String key, String value)

Labels as key value pairs.

map<string, string> labels = 4;

Parameters
Name Description
key String
value String
Returns
Type Description
Processor.Builder

removeLabels(String key)

public Processor.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
Processor.Builder

setConfigurationTypeurl(String value)

public Processor.Builder setConfigurationTypeurl(String value)

Output only. The corresponding configuration can be used in the Application to customize the behavior of the processor.

string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The configurationTypeurl to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setConfigurationTypeurlBytes(ByteString value)

public Processor.Builder setConfigurationTypeurlBytes(ByteString value)

Output only. The corresponding configuration can be used in the Application to customize the behavior of the processor.

string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for configurationTypeurl to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Processor.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Processor.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Processor.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Processor.Builder

setCustomProcessorSourceInfo(CustomProcessorSourceInfo value)

public Processor.Builder setCustomProcessorSourceInfo(CustomProcessorSourceInfo value)

Source info for customer created processor.

.google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;

Parameter
Name Description
value CustomProcessorSourceInfo
Returns
Type Description
Processor.Builder

setCustomProcessorSourceInfo(CustomProcessorSourceInfo.Builder builderForValue)

public Processor.Builder setCustomProcessorSourceInfo(CustomProcessorSourceInfo.Builder builderForValue)

Source info for customer created processor.

.google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;

Parameter
Name Description
builderForValue CustomProcessorSourceInfo.Builder
Returns
Type Description
Processor.Builder

setDescription(String value)

public Processor.Builder setDescription(String value)

Illustrative sentences for describing the functionality of the processor.

string description = 10;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Processor.Builder setDescriptionBytes(ByteString value)

Illustrative sentences for describing the functionality of the processor.

string description = 10;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setDisplayName(String value)

public Processor.Builder setDisplayName(String value)

Required. A user friendly display name for the processor.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Processor.Builder setDisplayNameBytes(ByteString value)

Required. A user friendly display name for the processor.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setModelType(ModelType value)

public Processor.Builder setModelType(ModelType value)

Model Type.

.google.cloud.visionai.v1.ModelType model_type = 13;

Parameter
Name Description
value ModelType

The modelType to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setModelTypeValue(int value)

public Processor.Builder setModelTypeValue(int value)

Model Type.

.google.cloud.visionai.v1.ModelType model_type = 13;

Parameter
Name Description
value int

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

Returns
Type Description
Processor.Builder

This builder for chaining.

setName(String value)

public Processor.Builder setName(String value)

name of resource.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Processor.Builder setNameBytes(ByteString value)

name of resource.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setProcessorIoSpec(ProcessorIOSpec value)

public Processor.Builder setProcessorIoSpec(ProcessorIOSpec value)

Output only. [Output only] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer.

.google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ProcessorIOSpec
Returns
Type Description
Processor.Builder

setProcessorIoSpec(ProcessorIOSpec.Builder builderForValue)

public Processor.Builder setProcessorIoSpec(ProcessorIOSpec.Builder builderForValue)

Output only. [Output only] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer.

.google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ProcessorIOSpec.Builder
Returns
Type Description
Processor.Builder

setProcessorType(Processor.ProcessorType value)

public Processor.Builder setProcessorType(Processor.ProcessorType value)

Output only. Processor Type.

.google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Processor.ProcessorType

The processorType to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setProcessorTypeValue(int value)

public Processor.Builder setProcessorTypeValue(int value)

Output only. Processor Type.

.google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Processor.Builder

This builder for chaining.

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

public Processor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Processor.Builder
Overrides

setState(Processor.ProcessorState value)

public Processor.Builder setState(Processor.ProcessorState value)

Output only. State of the Processor.

.google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Processor.ProcessorState

The state to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setStateValue(int value)

public Processor.Builder setStateValue(int value)

Output only. State of the Processor.

.google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Processor.Builder

This builder for chaining.

setSupportedAnnotationTypes(int index, StreamAnnotationType value)

public Processor.Builder setSupportedAnnotationTypes(int index, StreamAnnotationType value)

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value StreamAnnotationType

The supportedAnnotationTypes to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setSupportedAnnotationTypesValue(int index, int value)

public Processor.Builder setSupportedAnnotationTypesValue(int index, int value)

repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
Processor.Builder

This builder for chaining.

setSupportedInstanceTypes(int index, Instance.InstanceType value)

public Processor.Builder setSupportedInstanceTypes(int index, Instance.InstanceType value)

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Parameters
Name Description
index int

The index to set the value at.

value Instance.InstanceType

The supportedInstanceTypes to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setSupportedInstanceTypesValue(int index, int value)

public Processor.Builder setSupportedInstanceTypesValue(int index, int value)

Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION.

repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
Processor.Builder

This builder for chaining.

setSupportsPostProcessing(boolean value)

public Processor.Builder setSupportsPostProcessing(boolean value)

Indicates if the processor supports post processing.

bool supports_post_processing = 17;

Parameter
Name Description
value boolean

The supportsPostProcessing to set.

Returns
Type Description
Processor.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Processor.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Processor.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Processor.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Processor.Builder