Package com.google.cloud.visionai.v1
Class Instance.InputResource
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.Instance.InputResource
- All Implemented Interfaces:
Instance.InputResourceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Instance
public static final class Instance.InputResource
extends com.google.protobuf.GeneratedMessage
implements Instance.InputResourceOrBuilder
Message of input resource used in one application instance.Protobuf type
google.cloud.visionai.v1.Instance.InputResource- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMessage of input resource used in one application instance.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated.Deprecated.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 Instance.InputResourcestatic final com.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.com.google.protobuf.Parser<Instance.InputResource>intbooleanDeprecated.google.cloud.visionai.v1.Instance.InputResource.annotated_stream is deprecated.booleanContains resource annotations.inthashCode()booleanThe direct input resource name.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(Instance.InputResource prototype) protected Instance.InputResource.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Instance.InputResourceparseDelimitedFrom(InputStream input) static Instance.InputResourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Instance.InputResourceparseFrom(byte[] data) static Instance.InputResourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Instance.InputResourceparseFrom(com.google.protobuf.ByteString data) static Instance.InputResourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Instance.InputResourceparseFrom(com.google.protobuf.CodedInputStream input) static Instance.InputResourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Instance.InputResourceparseFrom(InputStream input) static Instance.InputResourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Instance.InputResourceparseFrom(ByteBuffer data) static Instance.InputResourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Instance.InputResource>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INPUT_RESOURCE_FIELD_NUMBER
public static final int INPUT_RESOURCE_FIELD_NUMBER- See Also:
-
ANNOTATED_STREAM_FIELD_NUMBER
public static final int ANNOTATED_STREAM_FIELD_NUMBER- See Also:
-
DATA_TYPE_FIELD_NUMBER
public static final int DATA_TYPE_FIELD_NUMBER- See Also:
-
CONSUMER_NODE_FIELD_NUMBER
public static final int CONSUMER_NODE_FIELD_NUMBER- See Also:
-
INPUT_RESOURCE_BINDING_FIELD_NUMBER
public static final int INPUT_RESOURCE_BINDING_FIELD_NUMBER- See Also:
-
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER- See Also:
-
-
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
-
getInputResourceInformationCase
- Specified by:
getInputResourceInformationCasein interfaceInstance.InputResourceOrBuilder
-
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.
-
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.
-
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.
-
getDataType
Data type for the current input resource.
.google.cloud.visionai.v1.DataType data_type = 6;- Specified by:
getDataTypein interfaceInstance.InputResourceOrBuilder- Returns:
- The dataType.
-
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.
-
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.
-
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.
-
getAnnotationsOrBuilder
Contains resource annotations.
.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;- Specified by:
getAnnotationsOrBuilderin interfaceInstance.InputResourceOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Instance.InputResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance.InputResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance.InputResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance.InputResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance.InputResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance.InputResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Instance.InputResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Instance.InputResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Instance.InputResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Instance.InputResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Instance.InputResource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-