Class CreateProductRequest (3.14.0)

publicfinalclass CreateProductRequestextendsGeneratedMessageV3implementsCreateProductRequestOrBuilder

Request message for the CreateProduct method.

Protobuf type google.cloud.vision.v1.CreateProductRequest

Inherited Members

Static Fields

PARENT_FIELD_NUMBER

publicstaticfinalintPARENT_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_FIELD_NUMBER

publicstaticfinalintPRODUCT_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_ID_FIELD_NUMBER

publicstaticfinalintPRODUCT_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticCreateProductRequestgetDefaultInstance()
Returns
Type Description
CreateProductRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticCreateProductRequest.BuildernewBuilder()
Returns
Type Description
CreateProductRequest.Builder

newBuilder(CreateProductRequest prototype)

publicstaticCreateProductRequest.BuildernewBuilder(CreateProductRequestprototype)
Parameter
Name Description
prototype CreateProductRequest
Returns
Type Description
CreateProductRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticCreateProductRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateProductRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticCreateProductRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateProductRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticCreateProductRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateProductRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticCreateProductRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateProductRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticCreateProductRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateProductRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticCreateProductRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateProductRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateProductRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<CreateProductRequest>parser()
Returns
Type Description
Parser<CreateProductRequest>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicCreateProductRequestgetDefaultInstanceForType()
Returns
Type Description
CreateProductRequest

getParent()

publicStringgetParent()

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
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

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
Type Description
ByteString

The bytes for parent.

getParserForType()

publicParser<CreateProductRequest>getParserForType()
Returns
Type Description
Parser<CreateProductRequest>
Overrides

getProduct()

publicProductgetProduct()

Required. The product to create.

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

Returns
Type Description
Product

The product.

getProductId()

publicStringgetProductId()

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
Type Description
String

The productId.

getProductIdBytes()

publicByteStringgetProductIdBytes()

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
Type Description
ByteString

The bytes for productId.

getProductOrBuilder()

publicProductOrBuildergetProductOrBuilder()

Required. The product to create.

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

Returns
Type Description
ProductOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasProduct()

publicbooleanhasProduct()

Required. The product to create.

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

Returns
Type Description
boolean

Whether the product field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicCreateProductRequest.BuildernewBuilderForType()
Returns
Type Description
CreateProductRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCreateProductRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateProductRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicCreateProductRequest.BuildertoBuilder()
Returns
Type Description
CreateProductRequest.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.