Package com.google.cloud.visionai.v1
Class Instance.InputResource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Instance.InputResource.Builder>
com.google.cloud.visionai.v1.Instance.InputResource.Builder
- All Implemented Interfaces:
Instance.InputResourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Instance.InputResource
public static final class Instance.InputResource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Instance.InputResource.Builder>
implements Instance.InputResourceOrBuilder
Message of input resource used in one application instance.Protobuf type
google.cloud.visionai.v1.Instance.InputResource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Deprecated.Contains resource annotations.The name of graph node who receives the input resource.Data type for the current input resource.The direct input resource name.The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.Deprecated.google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated.Deprecated.Deprecated.Contains resource annotations.Contains resource annotations.Contains resource annotations.The name of graph node who receives the input resource.com.google.protobuf.ByteStringThe name of graph node who receives the input resource.Data type for the current input resource.intData type for the current input resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe direct input resource name.The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.com.google.protobuf.ByteStringThe specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.com.google.protobuf.ByteStringThe direct input resource name.booleanDeprecated.google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated.booleanContains resource annotations.booleanThe direct input resource name.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanDeprecated.Contains resource annotations.mergeFrom(Instance.InputResource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Deprecated.setAnnotatedStream(StreamWithAnnotation.Builder builderForValue) Deprecated.Contains resource annotations.setAnnotations(ResourceAnnotations.Builder builderForValue) Contains resource annotations.setConsumerNode(String value) The name of graph node who receives the input resource.setConsumerNodeBytes(com.google.protobuf.ByteString value) The name of graph node who receives the input resource.setDataType(DataType value) Data type for the current input resource.setDataTypeValue(int value) Data type for the current input resource.setInputResource(String value) The direct input resource name.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.setInputResourceBindingBytes(com.google.protobuf.ByteString value) The specific input resource binding which will consume the current Input Resource, can be ignored is there is only 1 input binding.setInputResourceBytes(com.google.protobuf.ByteString value) The direct input resource name.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Instance.InputResource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Instance.InputResource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Instance.InputResource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.InputResource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Instance.InputResource.Builder>
-
mergeFrom
public Instance.InputResource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.InputResource.Builder>- Throws:
IOException
-
getInputResourceInformationCase
- Specified by:
getInputResourceInformationCasein interfaceInstance.InputResourceOrBuilder
-
clearInputResourceInformation
-
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;- Specified by:
hasInputResourcein interfaceInstance.InputResourceOrBuilder- Returns:
- Whether the inputResource field is set.
-
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;- Specified by:
getInputResourcein interfaceInstance.InputResourceOrBuilder- Returns:
- The inputResource.
-
getInputResourceBytes
public com.google.protobuf.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;- Specified by:
getInputResourceBytesin interfaceInstance.InputResourceOrBuilder- Returns:
- The bytes for inputResource.
-
setInputResource
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;- Parameters:
value- The inputResource to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setInputResourceBytes
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;- Parameters:
value- The bytes for inputResource to set.- Returns:
- This builder for chaining.
-
hasAnnotatedStream
Deprecated.google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated. See google/cloud/visionai/v1/platform.proto;l=1508If 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];- Specified by:
hasAnnotatedStreamin interfaceInstance.InputResourceOrBuilder- Returns:
- Whether the annotatedStream field is set.
-
getAnnotatedStream
Deprecated.google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated. See google/cloud/visionai/v1/platform.proto;l=1508If 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];- Specified by:
getAnnotatedStreamin interfaceInstance.InputResourceOrBuilder- Returns:
- The annotatedStream.
-
setAnnotatedStream
Deprecated.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]; -
setAnnotatedStream
@Deprecated public Instance.InputResource.Builder setAnnotatedStream(StreamWithAnnotation.Builder builderForValue) Deprecated.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]; -
mergeAnnotatedStream
Deprecated.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]; -
clearAnnotatedStream
Deprecated.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]; -
getAnnotatedStreamBuilder
Deprecated.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]; -
getAnnotatedStreamOrBuilder
Deprecated.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];- Specified by:
getAnnotatedStreamOrBuilderin interfaceInstance.InputResourceOrBuilder
-
getDataTypeValue
public int getDataTypeValue()Data type for the current input resource.
.google.cloud.visionai.v1.DataType data_type = 6;- Specified by:
getDataTypeValuein interfaceInstance.InputResourceOrBuilder- Returns:
- The enum numeric value on the wire for dataType.
-
setDataTypeValue
Data type for the current input resource.
.google.cloud.visionai.v1.DataType data_type = 6;- Parameters:
value- The enum numeric value on the wire for dataType to set.- Returns:
- This builder for chaining.
-
getDataType
Data type for the current input resource.
.google.cloud.visionai.v1.DataType data_type = 6;- Specified by:
getDataTypein interfaceInstance.InputResourceOrBuilder- Returns:
- The dataType.
-
setDataType
Data type for the current input resource.
.google.cloud.visionai.v1.DataType data_type = 6;- Parameters:
value- The dataType to set.- Returns:
- This builder for chaining.
-
clearDataType
Data type for the current input resource.
.google.cloud.visionai.v1.DataType data_type = 6;- Returns:
- This builder for chaining.
-
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;- Specified by:
getConsumerNodein interfaceInstance.InputResourceOrBuilder- Returns:
- The consumerNode.
-
getConsumerNodeBytes
public com.google.protobuf.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;- Specified by:
getConsumerNodeBytesin interfaceInstance.InputResourceOrBuilder- Returns:
- The bytes for consumerNode.
-
setConsumerNode
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;- Parameters:
value- The consumerNode to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setConsumerNodeBytes
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;- Parameters:
value- The bytes for consumerNode to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getInputResourceBindingin interfaceInstance.InputResourceOrBuilder- Returns:
- The inputResourceBinding.
-
getInputResourceBindingBytes
public com.google.protobuf.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;- Specified by:
getInputResourceBindingBytesin interfaceInstance.InputResourceOrBuilder- Returns:
- The bytes for inputResourceBinding.
-
setInputResourceBinding
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;- Parameters:
value- The inputResourceBinding to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setInputResourceBindingBytes
public Instance.InputResource.Builder setInputResourceBindingBytes(com.google.protobuf.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;- Parameters:
value- The bytes for inputResourceBinding to set.- Returns:
- This builder for chaining.
-
hasAnnotations
public boolean hasAnnotations()Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;- Specified by:
hasAnnotationsin interfaceInstance.InputResourceOrBuilder- Returns:
- Whether the annotations field is set.
-
getAnnotations
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;- Specified by:
getAnnotationsin interfaceInstance.InputResourceOrBuilder- Returns:
- The annotations.
-
setAnnotations
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5; -
setAnnotations
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5; -
mergeAnnotations
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5; -
clearAnnotations
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5; -
getAnnotationsBuilder
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5; -
getAnnotationsOrBuilder
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;- Specified by:
getAnnotationsOrBuilderin interfaceInstance.InputResourceOrBuilder
-