public static final class Instance.InputResource.Builder extends GeneratedMessageV3.Builder<Instance.InputResource.Builder> implements Instance.InputResourceOrBuilderMessage of input resource used in one application instance.
 Protobuf type google.cloud.visionai.v1.Instance.InputResource
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Instance.InputResource.BuilderImplements
Instance.InputResourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Instance.InputResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
build()
public Instance.InputResource build()| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource | |
buildPartial()
public Instance.InputResource buildPartial()| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource | |
clear()
public Instance.InputResource.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
clearAnnotatedStream() (deprecated)
public Instance.InputResource.Builder clearAnnotatedStream()If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
 
 .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
clearAnnotations()
public Instance.InputResource.Builder clearAnnotations()Contains resource annotations.
 .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
clearConsumerNode()
public Instance.InputResource.Builder clearConsumerNode()The name of graph node who receives the input resource. For example: input_resource: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a consumer_node: stream-input
 string consumer_node = 2;
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
clearDataType()
public Instance.InputResource.Builder clearDataType()Data type for the current input resource.
 .google.cloud.visionai.v1.DataType data_type = 6;
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
clearField(Descriptors.FieldDescriptor field)
public Instance.InputResource.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
clearInputResource()
public Instance.InputResource.Builder clearInputResource()The direct input resource name. If the instance type is STREAMING_PREDICTION, the input resource is in format of "projects/123/locations/us-central1/clusters/456/streams/stream-a". If the instance type is BATCH_PREDICTION from Cloud Storage input container, the input resource is in format of "gs://bucket-a".
 string input_resource = 1;
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
clearInputResourceBinding()
public Instance.InputResource.Builder clearInputResourceBinding()The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.
 string input_resource_binding = 3;
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
clearInputResourceInformation()
public Instance.InputResource.Builder clearInputResourceInformation()| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
clearOneof(Descriptors.OneofDescriptor oneof)
public Instance.InputResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
clone()
public Instance.InputResource.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
getAnnotatedStream() (deprecated)
public StreamWithAnnotation getAnnotatedStream()Deprecated. google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated. See google/cloud/visionai/v1/platform.proto;l=1508
If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
 
 .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
 
| Returns | |
|---|---|
| Type | Description | 
| StreamWithAnnotation | The annotatedStream. | 
getAnnotatedStreamBuilder() (deprecated)
public StreamWithAnnotation.Builder getAnnotatedStreamBuilder()If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
 
 .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
 
| Returns | |
|---|---|
| Type | Description | 
| StreamWithAnnotation.Builder | |
getAnnotatedStreamOrBuilder() (deprecated)
public StreamWithAnnotationOrBuilder getAnnotatedStreamOrBuilder()If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
 
 .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
 
| Returns | |
|---|---|
| Type | Description | 
| StreamWithAnnotationOrBuilder | |
getAnnotations()
public ResourceAnnotations getAnnotations()Contains resource annotations.
 .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
| Returns | |
|---|---|
| Type | Description | 
| ResourceAnnotations | The annotations. | 
getAnnotationsBuilder()
public ResourceAnnotations.Builder getAnnotationsBuilder()Contains resource annotations.
 .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
| Returns | |
|---|---|
| Type | Description | 
| ResourceAnnotations.Builder | |
getAnnotationsOrBuilder()
public ResourceAnnotationsOrBuilder getAnnotationsOrBuilder()Contains resource annotations.
 .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
| Returns | |
|---|---|
| Type | Description | 
| ResourceAnnotationsOrBuilder | |
getConsumerNode()
public String getConsumerNode()The name of graph node who receives the input resource. For example: input_resource: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a consumer_node: stream-input
 string consumer_node = 2;
| Returns | |
|---|---|
| Type | Description | 
| String | The consumerNode. | 
getConsumerNodeBytes()
public ByteString getConsumerNodeBytes()The name of graph node who receives the input resource. For example: input_resource: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a consumer_node: stream-input
 string consumer_node = 2;
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for consumerNode. | 
getDataType()
public DataType getDataType()Data type for the current input resource.
 .google.cloud.visionai.v1.DataType data_type = 6;
| Returns | |
|---|---|
| Type | Description | 
| DataType | The dataType. | 
getDataTypeValue()
public int getDataTypeValue()Data type for the current input resource.
 .google.cloud.visionai.v1.DataType data_type = 6;
| Returns | |
|---|---|
| Type | Description | 
| int | The enum numeric value on the wire for dataType. | 
getDefaultInstanceForType()
public Instance.InputResource getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getInputResource()
public String getInputResource()The direct input resource name. If the instance type is STREAMING_PREDICTION, the input resource is in format of "projects/123/locations/us-central1/clusters/456/streams/stream-a". If the instance type is BATCH_PREDICTION from Cloud Storage input container, the input resource is in format of "gs://bucket-a".
 string input_resource = 1;
| Returns | |
|---|---|
| Type | Description | 
| String | The inputResource. | 
getInputResourceBinding()
public String getInputResourceBinding()The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.
 string input_resource_binding = 3;
| Returns | |
|---|---|
| Type | Description | 
| String | The inputResourceBinding. | 
getInputResourceBindingBytes()
public ByteString getInputResourceBindingBytes()The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.
 string input_resource_binding = 3;
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for inputResourceBinding. | 
getInputResourceBytes()
public ByteString getInputResourceBytes()The direct input resource name. If the instance type is STREAMING_PREDICTION, the input resource is in format of "projects/123/locations/us-central1/clusters/456/streams/stream-a". If the instance type is BATCH_PREDICTION from Cloud Storage input container, the input resource is in format of "gs://bucket-a".
 string input_resource = 1;
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for inputResource. | 
getInputResourceInformationCase()
public Instance.InputResource.InputResourceInformationCase getInputResourceInformationCase()| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.InputResourceInformationCase | |
hasAnnotatedStream() (deprecated)
public boolean hasAnnotatedStream()Deprecated. google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated. See google/cloud/visionai/v1/platform.proto;l=1508
If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
 
 .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the annotatedStream field is set. | 
hasAnnotations()
public boolean hasAnnotations()Contains resource annotations.
 .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the annotations field is set. | 
hasInputResource()
public boolean hasInputResource()The direct input resource name. If the instance type is STREAMING_PREDICTION, the input resource is in format of "projects/123/locations/us-central1/clusters/456/streams/stream-a". If the instance type is BATCH_PREDICTION from Cloud Storage input container, the input resource is in format of "gs://bucket-a".
 string input_resource = 1;
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the inputResource field is set. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeAnnotatedStream(StreamWithAnnotation value) (deprecated)
public Instance.InputResource.Builder mergeAnnotatedStream(StreamWithAnnotation value)If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
 
 .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | StreamWithAnnotation | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
mergeAnnotations(ResourceAnnotations value)
public Instance.InputResource.Builder mergeAnnotations(ResourceAnnotations value)Contains resource annotations.
 .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
| Parameter | |
|---|---|
| Name | Description | 
| value | ResourceAnnotations | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
mergeFrom(Instance.InputResource other)
public Instance.InputResource.Builder mergeFrom(Instance.InputResource other)| Parameter | |
|---|---|
| Name | Description | 
| other | Instance.InputResource | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Instance.InputResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public Instance.InputResource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Instance.InputResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
setAnnotatedStream(StreamWithAnnotation value) (deprecated)
public Instance.InputResource.Builder setAnnotatedStream(StreamWithAnnotation value)If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
 
 .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | StreamWithAnnotation | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
setAnnotatedStream(StreamWithAnnotation.Builder builderForValue) (deprecated)
public Instance.InputResource.Builder setAnnotatedStream(StreamWithAnnotation.Builder builderForValue)If the input resource is VisionAI Stream, the associated annotations can be specified using annotated_stream instead.
 
 .google.cloud.visionai.v1.StreamWithAnnotation annotated_stream = 4 [deprecated = true];
 
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | StreamWithAnnotation.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
setAnnotations(ResourceAnnotations value)
public Instance.InputResource.Builder setAnnotations(ResourceAnnotations value)Contains resource annotations.
 .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
| Parameter | |
|---|---|
| Name | Description | 
| value | ResourceAnnotations | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
setAnnotations(ResourceAnnotations.Builder builderForValue)
public Instance.InputResource.Builder setAnnotations(ResourceAnnotations.Builder builderForValue)Contains resource annotations.
 .google.cloud.visionai.v1.ResourceAnnotations annotations = 5;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | ResourceAnnotations.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
setConsumerNode(String value)
public Instance.InputResource.Builder setConsumerNode(String value)The name of graph node who receives the input resource. For example: input_resource: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a consumer_node: stream-input
 string consumer_node = 2;
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe consumerNode to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
setConsumerNodeBytes(ByteString value)
public Instance.InputResource.Builder setConsumerNodeBytes(ByteString value)The name of graph node who receives the input resource. For example: input_resource: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a consumer_node: stream-input
 string consumer_node = 2;
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for consumerNode to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
setDataType(DataType value)
public Instance.InputResource.Builder setDataType(DataType value)Data type for the current input resource.
 .google.cloud.visionai.v1.DataType data_type = 6;
| Parameter | |
|---|---|
| Name | Description | 
| value | DataTypeThe dataType to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
setDataTypeValue(int value)
public Instance.InputResource.Builder setDataTypeValue(int value)Data type for the current input resource.
 .google.cloud.visionai.v1.DataType data_type = 6;
| Parameter | |
|---|---|
| Name | Description | 
| value | intThe enum numeric value on the wire for dataType to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
setField(Descriptors.FieldDescriptor field, Object value)
public Instance.InputResource.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
setInputResource(String value)
public Instance.InputResource.Builder setInputResource(String value)The direct input resource name. If the instance type is STREAMING_PREDICTION, the input resource is in format of "projects/123/locations/us-central1/clusters/456/streams/stream-a". If the instance type is BATCH_PREDICTION from Cloud Storage input container, the input resource is in format of "gs://bucket-a".
 string input_resource = 1;
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe inputResource to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
setInputResourceBinding(String value)
public Instance.InputResource.Builder setInputResourceBinding(String value)The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.
 string input_resource_binding = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe inputResourceBinding to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
setInputResourceBindingBytes(ByteString value)
public Instance.InputResource.Builder setInputResourceBindingBytes(ByteString value)The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.
 string input_resource_binding = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for inputResourceBinding to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
setInputResourceBytes(ByteString value)
public Instance.InputResource.Builder setInputResourceBytes(ByteString value)The direct input resource name. If the instance type is STREAMING_PREDICTION, the input resource is in format of "projects/123/locations/us-central1/clusters/456/streams/stream-a". If the instance type is BATCH_PREDICTION from Cloud Storage input container, the input resource is in format of "gs://bucket-a".
 string input_resource = 1;
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for inputResource to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | This builder for chaining. | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Instance.InputResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |
setUnknownFields(UnknownFieldSet unknownFields)
public final Instance.InputResource.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| Instance.InputResource.Builder | |