public static final class UploadAssetRequest.Builder extends GeneratedMessageV3.Builder<UploadAssetRequest.Builder> implements UploadAssetRequestOrBuilder
Request message for UploadAsset.
Protobuf type google.cloud.visionai.v1.UploadAssetRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UploadAssetRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UploadAssetRequest build()
buildPartial()
public UploadAssetRequest buildPartial()
clear()
public UploadAssetRequest.Builder clear()
Overrides
clearAssetSource()
public UploadAssetRequest.Builder clearAssetSource()
The source of the asset.
.google.cloud.visionai.v1.AssetSource asset_source = 2;
clearField(Descriptors.FieldDescriptor field)
public UploadAssetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public UploadAssetRequest.Builder clearName()
Required. The resource name of the asset to upload.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public UploadAssetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public UploadAssetRequest.Builder clone()
Overrides
getAssetSource()
public AssetSource getAssetSource()
The source of the asset.
.google.cloud.visionai.v1.AssetSource asset_source = 2;
getAssetSourceBuilder()
public AssetSource.Builder getAssetSourceBuilder()
The source of the asset.
.google.cloud.visionai.v1.AssetSource asset_source = 2;
getAssetSourceOrBuilder()
public AssetSourceOrBuilder getAssetSourceOrBuilder()
The source of the asset.
.google.cloud.visionai.v1.AssetSource asset_source = 2;
getDefaultInstanceForType()
public UploadAssetRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getName()
Required. The resource name of the asset to upload.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The resource name of the asset to upload.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
hasAssetSource()
public boolean hasAssetSource()
The source of the asset.
.google.cloud.visionai.v1.AssetSource asset_source = 2;
Returns |
Type |
Description |
boolean |
Whether the assetSource field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAssetSource(AssetSource value)
public UploadAssetRequest.Builder mergeAssetSource(AssetSource value)
The source of the asset.
.google.cloud.visionai.v1.AssetSource asset_source = 2;
mergeFrom(UploadAssetRequest other)
public UploadAssetRequest.Builder mergeFrom(UploadAssetRequest other)
public UploadAssetRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UploadAssetRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UploadAssetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAssetSource(AssetSource value)
public UploadAssetRequest.Builder setAssetSource(AssetSource value)
The source of the asset.
.google.cloud.visionai.v1.AssetSource asset_source = 2;
setAssetSource(AssetSource.Builder builderForValue)
public UploadAssetRequest.Builder setAssetSource(AssetSource.Builder builderForValue)
The source of the asset.
.google.cloud.visionai.v1.AssetSource asset_source = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public UploadAssetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setName(String value)
public UploadAssetRequest.Builder setName(String value)
Required. The resource name of the asset to upload.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The name to set.
|
setNameBytes(ByteString value)
public UploadAssetRequest.Builder setNameBytes(ByteString value)
Required. The resource name of the asset to upload.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UploadAssetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UploadAssetRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides