public static final class CreateReferenceImageRequest.Builder extends GeneratedMessageV3.Builder<CreateReferenceImageRequest.Builder> implements CreateReferenceImageRequestOrBuilder
Request message for the CreateReferenceImage
method.
Protobuf type google.cloud.vision.v1p3beta1.CreateReferenceImageRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateReferenceImageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateReferenceImageRequest build()
Returns
buildPartial()
public CreateReferenceImageRequest buildPartial()
Returns
clear()
public CreateReferenceImageRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateReferenceImageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateReferenceImageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateReferenceImageRequest.Builder clearParent()
Required. Resource name of the product in which to create the reference image.
Format is
projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearReferenceImage()
public CreateReferenceImageRequest.Builder clearReferenceImage()
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearReferenceImageId()
public CreateReferenceImageRequest.Builder clearReferenceImageId()
A user-supplied resource id for the ReferenceImage to be added. If set,
the server will attempt to use this value as the resource id. If it is
already in use, an error is returned with code ALREADY_EXISTS. Must be at
most 128 characters long. It cannot contain the character /
.
string reference_image_id = 3;
Returns
clone()
public CreateReferenceImageRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateReferenceImageRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getParent()
public String getParent()
Required. Resource name of the product in which to create the reference image.
Format is
projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. Resource name of the product in which to create the reference image.
Format is
projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getReferenceImage()
public ReferenceImage getReferenceImage()
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getReferenceImageBuilder()
public ReferenceImage.Builder getReferenceImageBuilder()
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getReferenceImageId()
public String getReferenceImageId()
A user-supplied resource id for the ReferenceImage to be added. If set,
the server will attempt to use this value as the resource id. If it is
already in use, an error is returned with code ALREADY_EXISTS. Must be at
most 128 characters long. It cannot contain the character /
.
string reference_image_id = 3;
Returns
Type | Description |
String | The referenceImageId.
|
getReferenceImageIdBytes()
public ByteString getReferenceImageIdBytes()
A user-supplied resource id for the ReferenceImage to be added. If set,
the server will attempt to use this value as the resource id. If it is
already in use, an error is returned with code ALREADY_EXISTS. Must be at
most 128 characters long. It cannot contain the character /
.
string reference_image_id = 3;
Returns
Type | Description |
ByteString | The bytes for referenceImageId.
|
getReferenceImageOrBuilder()
public ReferenceImageOrBuilder getReferenceImageOrBuilder()
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
hasReferenceImage()
public boolean hasReferenceImage()
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the referenceImage field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateReferenceImageRequest other)
public CreateReferenceImageRequest.Builder mergeFrom(CreateReferenceImageRequest other)
Parameter
Returns
public CreateReferenceImageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateReferenceImageRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeReferenceImage(ReferenceImage value)
public CreateReferenceImageRequest.Builder mergeReferenceImage(ReferenceImage value)
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateReferenceImageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateReferenceImageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public CreateReferenceImageRequest.Builder setParent(String value)
Required. Resource name of the product in which to create the reference image.
Format is
projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateReferenceImageRequest.Builder setParentBytes(ByteString value)
Required. Resource name of the product in which to create the reference image.
Format is
projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setReferenceImage(ReferenceImage value)
public CreateReferenceImageRequest.Builder setReferenceImage(ReferenceImage value)
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setReferenceImage(ReferenceImage.Builder builderForValue)
public CreateReferenceImageRequest.Builder setReferenceImage(ReferenceImage.Builder builderForValue)
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p3beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setReferenceImageId(String value)
public CreateReferenceImageRequest.Builder setReferenceImageId(String value)
A user-supplied resource id for the ReferenceImage to be added. If set,
the server will attempt to use this value as the resource id. If it is
already in use, an error is returned with code ALREADY_EXISTS. Must be at
most 128 characters long. It cannot contain the character /
.
string reference_image_id = 3;
Parameter
Name | Description |
value | String
The referenceImageId to set.
|
Returns
setReferenceImageIdBytes(ByteString value)
public CreateReferenceImageRequest.Builder setReferenceImageIdBytes(ByteString value)
A user-supplied resource id for the ReferenceImage to be added. If set,
the server will attempt to use this value as the resource id. If it is
already in use, an error is returned with code ALREADY_EXISTS. Must be at
most 128 characters long. It cannot contain the character /
.
string reference_image_id = 3;
Parameter
Name | Description |
value | ByteString
The bytes for referenceImageId to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateReferenceImageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateReferenceImageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides