Class Instance.Builder (0.2.0)

public static final class Instance.Builder extends GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder

Message describing Instance object Next ID: 12

Protobuf type google.cloud.visionai.v1.Instance

Implements

InstanceOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllInputResources(Iterable<? extends Instance.InputResource> values)

public Instance.Builder addAllInputResources(Iterable<? extends Instance.InputResource> values)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.Instance.InputResource>
Returns
Type Description
Instance.Builder

addAllOutputResources(Iterable<? extends Instance.OutputResource> values)

public Instance.Builder addAllOutputResources(Iterable<? extends Instance.OutputResource> values)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.Instance.OutputResource>
Returns
Type Description
Instance.Builder

addInputResources(Instance.InputResource value)

public Instance.Builder addInputResources(Instance.InputResource value)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameter
Name Description
value Instance.InputResource
Returns
Type Description
Instance.Builder

addInputResources(Instance.InputResource.Builder builderForValue)

public Instance.Builder addInputResources(Instance.InputResource.Builder builderForValue)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameter
Name Description
builderForValue Instance.InputResource.Builder
Returns
Type Description
Instance.Builder

addInputResources(int index, Instance.InputResource value)

public Instance.Builder addInputResources(int index, Instance.InputResource value)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameters
Name Description
index int
value Instance.InputResource
Returns
Type Description
Instance.Builder

addInputResources(int index, Instance.InputResource.Builder builderForValue)

public Instance.Builder addInputResources(int index, Instance.InputResource.Builder builderForValue)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameters
Name Description
index int
builderForValue Instance.InputResource.Builder
Returns
Type Description
Instance.Builder

addInputResourcesBuilder()

public Instance.InputResource.Builder addInputResourcesBuilder()

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Returns
Type Description
Instance.InputResource.Builder

addInputResourcesBuilder(int index)

public Instance.InputResource.Builder addInputResourcesBuilder(int index)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameter
Name Description
index int
Returns
Type Description
Instance.InputResource.Builder

addOutputResources(Instance.OutputResource value)

public Instance.Builder addOutputResources(Instance.OutputResource value)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameter
Name Description
value Instance.OutputResource
Returns
Type Description
Instance.Builder

addOutputResources(Instance.OutputResource.Builder builderForValue)

public Instance.Builder addOutputResources(Instance.OutputResource.Builder builderForValue)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameter
Name Description
builderForValue Instance.OutputResource.Builder
Returns
Type Description
Instance.Builder

addOutputResources(int index, Instance.OutputResource value)

public Instance.Builder addOutputResources(int index, Instance.OutputResource value)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameters
Name Description
index int
value Instance.OutputResource
Returns
Type Description
Instance.Builder

addOutputResources(int index, Instance.OutputResource.Builder builderForValue)

public Instance.Builder addOutputResources(int index, Instance.OutputResource.Builder builderForValue)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameters
Name Description
index int
builderForValue Instance.OutputResource.Builder
Returns
Type Description
Instance.Builder

addOutputResourcesBuilder()

public Instance.OutputResource.Builder addOutputResourcesBuilder()

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Returns
Type Description
Instance.OutputResource.Builder

addOutputResourcesBuilder(int index)

public Instance.OutputResource.Builder addOutputResourcesBuilder(int index)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameter
Name Description
index int
Returns
Type Description
Instance.OutputResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Instance build()
Returns
Type Description
Instance

buildPartial()

public Instance buildPartial()
Returns
Type Description
Instance

clear()

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

clearCreateTime()

public Instance.Builder clearCreateTime()

Output only. [Output only] Create timestamp

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

Returns
Type Description
Instance.Builder

clearDescription()

public Instance.Builder clearDescription()

A description for this instance.

string description = 5;

Returns
Type Description
Instance.Builder

This builder for chaining.

clearDisplayName()

public Instance.Builder clearDisplayName()

Required. A user friendly display name for the solution.

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

Returns
Type Description
Instance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInputResources()

public Instance.Builder clearInputResources()

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Returns
Type Description
Instance.Builder

clearInstanceType()

public Instance.Builder clearInstanceType()

The instance type for the current instance.

.google.cloud.visionai.v1.Instance.InstanceType instance_type = 10;

Returns
Type Description
Instance.Builder

This builder for chaining.

clearLabels()

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

clearName()

public Instance.Builder clearName()

Output only. name of resource

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputResources()

public Instance.Builder clearOutputResources()

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Returns
Type Description
Instance.Builder

clearState()

public Instance.Builder clearState()

State of the instance.

.google.cloud.visionai.v1.Instance.State state = 9;

Returns
Type Description
Instance.Builder

This builder for chaining.

clearUpdateTime()

public Instance.Builder clearUpdateTime()

Output only. [Output only] Update timestamp

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

Returns
Type Description
Instance.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

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

getDefaultInstanceForType()

public Instance getDefaultInstanceForType()
Returns
Type Description
Instance

getDescription()

public String getDescription()

A description for this instance.

string description = 5;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description for this instance.

string description = 5;

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 solution.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. A user friendly display name for the solution.

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

Returns
Type Description
ByteString

The bytes for displayName.

getInputResources(int index)

public Instance.InputResource getInputResources(int index)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameter
Name Description
index int
Returns
Type Description
Instance.InputResource

getInputResourcesBuilder(int index)

public Instance.InputResource.Builder getInputResourcesBuilder(int index)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameter
Name Description
index int
Returns
Type Description
Instance.InputResource.Builder

getInputResourcesBuilderList()

public List<Instance.InputResource.Builder> getInputResourcesBuilderList()

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Returns
Type Description
List<Builder>

getInputResourcesCount()

public int getInputResourcesCount()

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Returns
Type Description
int

getInputResourcesList()

public List<Instance.InputResource> getInputResourcesList()

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Returns
Type Description
List<InputResource>

getInputResourcesOrBuilder(int index)

public Instance.InputResourceOrBuilder getInputResourcesOrBuilder(int index)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameter
Name Description
index int
Returns
Type Description
Instance.InputResourceOrBuilder

getInputResourcesOrBuilderList()

public List<? extends Instance.InputResourceOrBuilder> getInputResourcesOrBuilderList()

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.Instance.InputResourceOrBuilder>

getInstanceType()

public Instance.InstanceType getInstanceType()

The instance type for the current instance.

.google.cloud.visionai.v1.Instance.InstanceType instance_type = 10;

Returns
Type Description
Instance.InstanceType

The instanceType.

getInstanceTypeValue()

public int getInstanceTypeValue()

The instance type for the current instance.

.google.cloud.visionai.v1.Instance.InstanceType instance_type = 10;

Returns
Type Description
int

The enum numeric value on the wire for instanceType.

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 = 3;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs

map<string, string> labels = 3;

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 = 3;

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 = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Output only. name of resource

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. name of resource

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getOutputResources(int index)

public Instance.OutputResource getOutputResources(int index)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameter
Name Description
index int
Returns
Type Description
Instance.OutputResource

getOutputResourcesBuilder(int index)

public Instance.OutputResource.Builder getOutputResourcesBuilder(int index)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameter
Name Description
index int
Returns
Type Description
Instance.OutputResource.Builder

getOutputResourcesBuilderList()

public List<Instance.OutputResource.Builder> getOutputResourcesBuilderList()

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Returns
Type Description
List<Builder>

getOutputResourcesCount()

public int getOutputResourcesCount()

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Returns
Type Description
int

getOutputResourcesList()

public List<Instance.OutputResource> getOutputResourcesList()

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Returns
Type Description
List<OutputResource>

getOutputResourcesOrBuilder(int index)

public Instance.OutputResourceOrBuilder getOutputResourcesOrBuilder(int index)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameter
Name Description
index int
Returns
Type Description
Instance.OutputResourceOrBuilder

getOutputResourcesOrBuilderList()

public List<? extends Instance.OutputResourceOrBuilder> getOutputResourcesOrBuilderList()

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.Instance.OutputResourceOrBuilder>

getState()

public Instance.State getState()

State of the instance.

.google.cloud.visionai.v1.Instance.State state = 9;

Returns
Type Description
Instance.State

The state.

getStateValue()

public int getStateValue()

State of the instance.

.google.cloud.visionai.v1.Instance.State state = 9;

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 8 [(.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 = 8 [(.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 = 8 [(.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.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 8 [(.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 Instance.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
Instance.Builder

mergeFrom(Instance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Instance.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Update timestamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

putAllLabels(Map<String,String> values)

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

Labels as key value pairs

map<string, string> labels = 3;

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

putLabels(String key, String value)

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

Labels as key value pairs

map<string, string> labels = 3;

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

removeInputResources(int index)

public Instance.Builder removeInputResources(int index)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

removeLabels(String key)

public Instance.Builder removeLabels(String key)

Labels as key value pairs

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
Instance.Builder

removeOutputResources(int index)

public Instance.Builder removeOutputResources(int index)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

setCreateTime(Timestamp value)

public Instance.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
Instance.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Instance.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
Instance.Builder

setDescription(String value)

public Instance.Builder setDescription(String value)

A description for this instance.

string description = 5;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Instance.Builder setDescriptionBytes(ByteString value)

A description for this instance.

string description = 5;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setDisplayName(String value)

public Instance.Builder setDisplayName(String value)

Required. A user friendly display name for the solution.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Instance.Builder setDisplayNameBytes(ByteString value)

Required. A user friendly display name for the solution.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputResources(int index, Instance.InputResource value)

public Instance.Builder setInputResources(int index, Instance.InputResource value)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameters
Name Description
index int
value Instance.InputResource
Returns
Type Description
Instance.Builder

setInputResources(int index, Instance.InputResource.Builder builderForValue)

public Instance.Builder setInputResources(int index, Instance.InputResource.Builder builderForValue)

The input resources for the current application instance. For example: input_resources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

repeated .google.cloud.visionai.v1.Instance.InputResource input_resources = 6;

Parameters
Name Description
index int
builderForValue Instance.InputResource.Builder
Returns
Type Description
Instance.Builder

setInstanceType(Instance.InstanceType value)

public Instance.Builder setInstanceType(Instance.InstanceType value)

The instance type for the current instance.

.google.cloud.visionai.v1.Instance.InstanceType instance_type = 10;

Parameter
Name Description
value Instance.InstanceType

The instanceType to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setInstanceTypeValue(int value)

public Instance.Builder setInstanceTypeValue(int value)

The instance type for the current instance.

.google.cloud.visionai.v1.Instance.InstanceType instance_type = 10;

Parameter
Name Description
value int

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

Returns
Type Description
Instance.Builder

This builder for chaining.

setName(String value)

public Instance.Builder setName(String value)

Output only. name of resource

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Instance.Builder setNameBytes(ByteString value)

Output only. name of resource

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setOutputResources(int index, Instance.OutputResource value)

public Instance.Builder setOutputResources(int index, Instance.OutputResource value)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameters
Name Description
index int
value Instance.OutputResource
Returns
Type Description
Instance.Builder

setOutputResources(int index, Instance.OutputResource.Builder builderForValue)

public Instance.Builder setOutputResources(int index, Instance.OutputResource.Builder builderForValue)

All the output resources associated to one application instance.

repeated .google.cloud.visionai.v1.Instance.OutputResource output_resources = 7;

Parameters
Name Description
index int
builderForValue Instance.OutputResource.Builder
Returns
Type Description
Instance.Builder

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

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

setState(Instance.State value)

public Instance.Builder setState(Instance.State value)

State of the instance.

.google.cloud.visionai.v1.Instance.State state = 9;

Parameter
Name Description
value Instance.State

The state to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setStateValue(int value)

public Instance.Builder setStateValue(int value)

State of the instance.

.google.cloud.visionai.v1.Instance.State state = 9;

Parameter
Name Description
value int

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

Returns
Type Description
Instance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Instance.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Update timestamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Instance.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Update timestamp

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Instance.Builder