publicfinalclass CreateAnnotationRequestextendsGeneratedMessageV3implementsCreateAnnotationRequestOrBuilder
Request message for CreateAnnotation.
Protobuf type google.cloud.visionai.v1.CreateAnnotationRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ANNOTATION_FIELD_NUMBER
publicstaticfinalintANNOTATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
ANNOTATION_ID_FIELD_NUMBER
publicstaticfinalintANNOTATION_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PARENT_FIELD_NUMBER
publicstaticfinalintPARENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticCreateAnnotationRequestgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticCreateAnnotationRequest.BuildernewBuilder()
newBuilder(CreateAnnotationRequest prototype)
publicstaticCreateAnnotationRequest.BuildernewBuilder(CreateAnnotationRequestprototype)
publicstaticCreateAnnotationRequestparseDelimitedFrom(InputStreaminput)
publicstaticCreateAnnotationRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticCreateAnnotationRequestparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticCreateAnnotationRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticCreateAnnotationRequestparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticCreateAnnotationRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticCreateAnnotationRequestparseFrom(CodedInputStreaminput)
publicstaticCreateAnnotationRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticCreateAnnotationRequestparseFrom(InputStreaminput)
publicstaticCreateAnnotationRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticCreateAnnotationRequestparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticCreateAnnotationRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<CreateAnnotationRequest>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAnnotation()
publicAnnotationgetAnnotation()
Required. The annotation to create.
.google.cloud.visionai.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
Annotation |
The annotation.
|
getAnnotationId()
publicStringgetAnnotationId()
Optional. The ID to use for the annotation, which will become the final
component of the annotation's resource name if user choose to specify.
Otherwise, annotation id will be generated by system.
This value should be up to 63 characters, and valid characters
are /a-z-/. The first character must be a letter, the last could be
a letter or a number.
optional string annotation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The annotationId.
|
getAnnotationIdBytes()
publicByteStringgetAnnotationIdBytes()
Optional. The ID to use for the annotation, which will become the final
component of the annotation's resource name if user choose to specify.
Otherwise, annotation id will be generated by system.
This value should be up to 63 characters, and valid characters
are /a-z-/. The first character must be a letter, the last could be
a letter or a number.
optional string annotation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for annotationId.
|
getAnnotationOrBuilder()
publicAnnotationOrBuildergetAnnotationOrBuilder()
Required. The annotation to create.
.google.cloud.visionai.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
publicCreateAnnotationRequestgetDefaultInstanceForType()
getParent()
Required. The parent resource where this annotation will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The parent.
|
getParentBytes()
publicByteStringgetParentBytes()
Required. The parent resource where this annotation will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for parent.
|
getParserForType()
publicParser<CreateAnnotationRequest>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
hasAnnotation()
publicbooleanhasAnnotation()
Required. The annotation to create.
.google.cloud.visionai.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the annotation field is set.
|
hasAnnotationId()
publicbooleanhasAnnotationId()
Optional. The ID to use for the annotation, which will become the final
component of the annotation's resource name if user choose to specify.
Otherwise, annotation id will be generated by system.
This value should be up to 63 characters, and valid characters
are /a-z-/. The first character must be a letter, the last could be
a letter or a number.
optional string annotation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the annotationId field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicCreateAnnotationRequest.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedCreateAnnotationRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicCreateAnnotationRequest.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides