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()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticCreateAssetRequest.BuildernewBuilder()
newBuilder(CreateAssetRequest prototype)
publicstaticCreateAssetRequest.BuildernewBuilder(CreateAssetRequestprototype)
publicstaticCreateAssetRequestparseDelimitedFrom(InputStreaminput)
publicstaticCreateAssetRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticCreateAssetRequestparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticCreateAssetRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticCreateAssetRequestparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticCreateAssetRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticCreateAssetRequestparseFrom(CodedInputStreaminput)
publicstaticCreateAssetRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticCreateAssetRequestparseFrom(InputStreaminput)
publicstaticCreateAssetRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticCreateAssetRequestparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticCreateAssetRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<CreateAssetRequest>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAsset()
Required. The asset to create.
.google.cloud.visionai.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
Asset |
The asset.
|
getAssetId()
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];
getDefaultInstanceForType()
publicCreateAssetRequestgetDefaultInstanceForType()
getParent()
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()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
hasAsset()
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()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicCreateAssetRequest.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedCreateAssetRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicCreateAssetRequest.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides