Package com.google.cloud.vision.v1
Interface CreateProductRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CreateProductRequest,CreateProductRequest.Builder
@Generated
public interface CreateProductRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.com.google.protobuf.ByteStringRequired.Required.A user-supplied resource id for this Product.com.google.protobuf.ByteStringA user-supplied resource id for this Product.Required.booleanRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getParent
String getParent()Required. The project in which the Product should be created. Format is `projects/PROJECT_ID/locations/LOC_ID`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The parent.
-
getParentBytes
com.google.protobuf.ByteString getParentBytes()Required. The project in which the Product should be created. Format is `projects/PROJECT_ID/locations/LOC_ID`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for parent.
-
hasProduct
boolean hasProduct()Required. The product to create.
.google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the product field is set.
-
getProduct
Product getProduct()Required. The product to create.
.google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The product.
-
getProductOrBuilder
ProductOrBuilder getProductOrBuilder()Required. The product to create.
.google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; -
getProductId
String getProductId()A user-supplied resource id for this Product. 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 product_id = 3;- Returns:
- The productId.
-
getProductIdBytes
com.google.protobuf.ByteString getProductIdBytes()A user-supplied resource id for this Product. 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 product_id = 3;- Returns:
- The bytes for productId.
-