Class CreateAssetRequest (0.6.0)

publicfinalclass CreateAssetRequestextendsGeneratedMessageV3implementsCreateAssetRequestOrBuilder

Request message for CreateAssetRequest.

Protobuf type google.cloud.visionai.v1.CreateAssetRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

ASSET_FIELD_NUMBER

publicstaticfinalintASSET_FIELD_NUMBER
Field Value
Type Description
int

ASSET_ID_FIELD_NUMBER

publicstaticfinalintASSET_ID_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

publicstaticfinalintPARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticCreateAssetRequestgetDefaultInstance()
Returns
Type Description
CreateAssetRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticCreateAssetRequest.BuildernewBuilder()
Returns
Type Description
CreateAssetRequest.Builder

newBuilder(CreateAssetRequest prototype)

publicstaticCreateAssetRequest.BuildernewBuilder(CreateAssetRequestprototype)
Parameter
Name Description
prototype CreateAssetRequest
Returns
Type Description
CreateAssetRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticCreateAssetRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAssetRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticCreateAssetRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateAssetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticCreateAssetRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateAssetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticCreateAssetRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateAssetRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticCreateAssetRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAssetRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticCreateAssetRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateAssetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAsset()

publicAssetgetAsset()

Required. The asset to create.

.google.cloud.visionai.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Asset

The asset.

getAssetId()

publicStringgetAssetId()

Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify. Otherwise, asset id will be generated by system.

This value should be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

optional string asset_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The assetId.

getAssetIdBytes()

publicByteStringgetAssetIdBytes()

Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify. Otherwise, asset id will be generated by system.

This value should be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

optional string asset_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for assetId.

getAssetOrBuilder()

publicAssetOrBuildergetAssetOrBuilder()

Required. The asset to create.

.google.cloud.visionai.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AssetOrBuilder

getDefaultInstanceForType()

publicCreateAssetRequestgetDefaultInstanceForType()
Returns
Type Description
CreateAssetRequest

getParent()

publicStringgetParent()

Required. The parent resource where this asset will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

Required. The parent resource where this asset will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasAsset()

publicbooleanhasAsset()

Required. The asset to create.

.google.cloud.visionai.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the asset field is set.

hasAssetId()

publicbooleanhasAssetId()

Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify. Otherwise, asset id will be generated by system.

This value should be up to 63 characters, and valid characters are /a-z-/. The first character must be a letter, the last could be a letter or a number.

optional string asset_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the assetId 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()

publicCreateAssetRequest.BuildernewBuilderForType()
Returns
Type Description
CreateAssetRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCreateAssetRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateAssetRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicCreateAssetRequest.BuildertoBuilder()
Returns
Type Description
CreateAssetRequest.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年10月30日 UTC.