public static final class CreateReferenceImageRequest.Builder extends GeneratedMessageV3.Builder<CreateReferenceImageRequest.Builder> implements CreateReferenceImageRequestOrBuilder
Request message for the CreateReferenceImage
method.
Protobuf type google.cloud.vision.v1p4beta1.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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateReferenceImageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateReferenceImageRequest build()
buildPartial()
public CreateReferenceImageRequest buildPartial()
clear()
public CreateReferenceImageRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateReferenceImageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateReferenceImageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clearReferenceImage()
public CreateReferenceImageRequest.Builder clearReferenceImage()
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
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;
clone()
public CreateReferenceImageRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateReferenceImageRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for parent.
|
getReferenceImage()
public ReferenceImage getReferenceImage()
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
getReferenceImageBuilder()
public ReferenceImage.Builder getReferenceImageBuilder()
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
hasReferenceImage()
public boolean hasReferenceImage()
Required. The reference image to create.
If an image ID is specified, it is ignored.
.google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the referenceImage field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateReferenceImageRequest other)
public CreateReferenceImageRequest.Builder mergeFrom(CreateReferenceImageRequest other)
public CreateReferenceImageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateReferenceImageRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateReferenceImageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateReferenceImageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED];
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateReferenceImageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateReferenceImageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides