public static final class ImportAdaptiveMtFileRequest.Builder extends GeneratedMessageV3.Builder<ImportAdaptiveMtFileRequest.Builder> implements ImportAdaptiveMtFileRequestOrBuilder
The request for importing an AdaptiveMt file along with its sentences.
Protobuf type google.cloud.translation.v3.ImportAdaptiveMtFileRequest
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 ImportAdaptiveMtFileRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ImportAdaptiveMtFileRequest build()
buildPartial()
public ImportAdaptiveMtFileRequest buildPartial()
clear()
public ImportAdaptiveMtFileRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ImportAdaptiveMtFileRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ImportAdaptiveMtFileRequest.Builder clearFileInputSource()
Inline file source.
.google.cloud.translation.v3.FileInputSource file_input_source = 2;
public ImportAdaptiveMtFileRequest.Builder clearGcsInputSource()
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportAdaptiveMtFileRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParent()
public ImportAdaptiveMtFileRequest.Builder clearParent()
Required. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clearSource()
public ImportAdaptiveMtFileRequest.Builder clearSource()
clone()
public ImportAdaptiveMtFileRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public ImportAdaptiveMtFileRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public FileInputSource getFileInputSource()
Inline file source.
.google.cloud.translation.v3.FileInputSource file_input_source = 2;
public FileInputSource.Builder getFileInputSourceBuilder()
Inline file source.
.google.cloud.translation.v3.FileInputSource file_input_source = 2;
public FileInputSourceOrBuilder getFileInputSourceOrBuilder()
Inline file source.
.google.cloud.translation.v3.FileInputSource file_input_source = 2;
public GcsInputSource getGcsInputSource()
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
public GcsInputSource.Builder getGcsInputSourceBuilder()
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
public GcsInputSourceOrBuilder getGcsInputSourceOrBuilder()
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
getParent()
public String getParent()
Required. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
ByteString | The bytes for parent.
|
getSourceCase()
public ImportAdaptiveMtFileRequest.SourceCase getSourceCase()
public boolean hasFileInputSource()
Inline file source.
.google.cloud.translation.v3.FileInputSource file_input_source = 2;
Returns |
---|
Type | Description |
boolean | Whether the fileInputSource field is set.
|
public boolean hasGcsInputSource()
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
Returns |
---|
Type | Description |
boolean | Whether the gcsInputSource field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public ImportAdaptiveMtFileRequest.Builder mergeFileInputSource(FileInputSource value)
Inline file source.
.google.cloud.translation.v3.FileInputSource file_input_source = 2;
mergeFrom(ImportAdaptiveMtFileRequest other)
public ImportAdaptiveMtFileRequest.Builder mergeFrom(ImportAdaptiveMtFileRequest other)
public ImportAdaptiveMtFileRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ImportAdaptiveMtFileRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public ImportAdaptiveMtFileRequest.Builder mergeGcsInputSource(GcsInputSource value)
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportAdaptiveMtFileRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ImportAdaptiveMtFileRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ImportAdaptiveMtFileRequest.Builder setFileInputSource(FileInputSource value)
Inline file source.
.google.cloud.translation.v3.FileInputSource file_input_source = 2;
public ImportAdaptiveMtFileRequest.Builder setFileInputSource(FileInputSource.Builder builderForValue)
Inline file source.
.google.cloud.translation.v3.FileInputSource file_input_source = 2;
public ImportAdaptiveMtFileRequest.Builder setGcsInputSource(GcsInputSource value)
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
public ImportAdaptiveMtFileRequest.Builder setGcsInputSource(GcsInputSource.Builder builderForValue)
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
setParent(String value)
public ImportAdaptiveMtFileRequest.Builder setParent(String value)
Required. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | String
The parent to set.
|
setParentBytes(ByteString value)
public ImportAdaptiveMtFileRequest.Builder setParentBytes(ByteString value)
Required. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportAdaptiveMtFileRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportAdaptiveMtFileRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides