public final class AsyncBatchAnnotateImagesRequest extends GeneratedMessageV3 implements AsyncBatchAnnotateImagesRequestOrBuilder
Request for async image annotation for a list of images.
Protobuf type google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest
Static Fields
OUTPUT_CONFIG_FIELD_NUMBER
public static final int OUTPUT_CONFIG_FIELD_NUMBER
Field Value
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
REQUESTS_FIELD_NUMBER
public static final int REQUESTS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AsyncBatchAnnotateImagesRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AsyncBatchAnnotateImagesRequest.Builder newBuilder()
Returns
newBuilder(AsyncBatchAnnotateImagesRequest prototype)
public static AsyncBatchAnnotateImagesRequest.Builder newBuilder(AsyncBatchAnnotateImagesRequest prototype)
Parameter
Returns
public static AsyncBatchAnnotateImagesRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AsyncBatchAnnotateImagesRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AsyncBatchAnnotateImagesRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AsyncBatchAnnotateImagesRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AsyncBatchAnnotateImagesRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AsyncBatchAnnotateImagesRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AsyncBatchAnnotateImagesRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AsyncBatchAnnotateImagesRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AsyncBatchAnnotateImagesRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AsyncBatchAnnotateImagesRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AsyncBatchAnnotateImagesRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AsyncBatchAnnotateImagesRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AsyncBatchAnnotateImagesRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AsyncBatchAnnotateImagesRequest getDefaultInstanceForType()
Returns
getOutputConfig()
public OutputConfig getOutputConfig()
Required. The desired output location and metadata (e.g. format).
.google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getOutputConfigOrBuilder()
public OutputConfigOrBuilder getOutputConfigOrBuilder()
Required. The desired output location and metadata (e.g. format).
.google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getParent()
public String getParent()
Optional. Target project and location to make a call.
Format: projects/{project-id}/locations/{location-id}
.
If no parent is specified, a region will be chosen automatically.
Supported location-ids:
us
: USA country only,
asia
: East asia areas, like Japan, Taiwan,
eu
: The European Union.
Example: projects/project-A/locations/eu
.
string parent = 4;
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Optional. Target project and location to make a call.
Format: projects/{project-id}/locations/{location-id}
.
If no parent is specified, a region will be chosen automatically.
Supported location-ids:
us
: USA country only,
asia
: East asia areas, like Japan, Taiwan,
eu
: The European Union.
Example: projects/project-A/locations/eu
.
string parent = 4;
Returns
getParserForType()
public Parser<AsyncBatchAnnotateImagesRequest> getParserForType()
Returns
Overrides
getRequests(int index)
public AnnotateImageRequest getRequests(int index)
Required. Individual image annotation requests for this batch.
repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getRequestsCount()
public int getRequestsCount()
Required. Individual image annotation requests for this batch.
repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getRequestsList()
public List<AnnotateImageRequest> getRequestsList()
Required. Individual image annotation requests for this batch.
repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getRequestsOrBuilder(int index)
public AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index)
Required. Individual image annotation requests for this batch.
repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getRequestsOrBuilderList()
public List<? extends AnnotateImageRequestOrBuilder> getRequestsOrBuilderList()
Required. Individual image annotation requests for this batch.
repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
List<? extends com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasOutputConfig()
public boolean hasOutputConfig()
Required. The desired output location and metadata (e.g. format).
.google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the outputConfig field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AsyncBatchAnnotateImagesRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AsyncBatchAnnotateImagesRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AsyncBatchAnnotateImagesRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions