Interface CreateProductRequestOrBuilder (3.34.0)

public interface CreateProductRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

public abstract 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
TypeDescription
String

The parent.

getParentBytes()

public abstract 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
TypeDescription
ByteString

The bytes for parent.

getProduct()

public abstract Product getProduct()

Required. The product to create.

.google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Product

The product.

getProductId()

public abstract 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
TypeDescription
String

The productId.

getProductIdBytes()

public abstract 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
TypeDescription
ByteString

The bytes for productId.

getProductOrBuilder()

public abstract ProductOrBuilder getProductOrBuilder()

Required. The product to create.

.google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductOrBuilder

hasProduct()

public abstract boolean hasProduct()

Required. The product to create.

.google.cloud.vision.v1p3beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the product field is set.