public static final class DatasetInputConfig.InputFile.Builder extends GeneratedMessageV3.Builder<DatasetInputConfig.InputFile.Builder> implements DatasetInputConfig.InputFileOrBuilder
An input file.
Protobuf type google.cloud.translation.v3.DatasetInputConfig.InputFile
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public DatasetInputConfig.InputFile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public DatasetInputConfig.InputFile build()
public DatasetInputConfig.InputFile buildPartial()
public DatasetInputConfig.InputFile.Builder clear()
Overrides
public DatasetInputConfig.InputFile.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public DatasetInputConfig.InputFile.Builder clearGcsSource()
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_source = 3;
public DatasetInputConfig.InputFile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public DatasetInputConfig.InputFile.Builder clearSource()
public DatasetInputConfig.InputFile.Builder clearUsage()
Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST,
or UNASSIGNED (by default) for auto split.
string usage = 2 [(.google.api.field_behavior) = OPTIONAL];
public DatasetInputConfig.InputFile.Builder clone()
Overrides
public DatasetInputConfig.InputFile getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public GcsInputSource getGcsSource()
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_source = 3;
public GcsInputSource.Builder getGcsSourceBuilder()
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_source = 3;
public GcsInputSourceOrBuilder getGcsSourceOrBuilder()
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_source = 3;
public DatasetInputConfig.InputFile.SourceCase getSourceCase()
Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST,
or UNASSIGNED (by default) for auto split.
string usage = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The usage.
|
public ByteString getUsageBytes()
Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST,
or UNASSIGNED (by default) for auto split.
string usage = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for usage.
|
public boolean hasGcsSource()
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_source = 3;
Returns |
Type |
Description |
boolean |
Whether the gcsSource field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public DatasetInputConfig.InputFile.Builder mergeFrom(DatasetInputConfig.InputFile other)
public DatasetInputConfig.InputFile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public DatasetInputConfig.InputFile.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public DatasetInputConfig.InputFile.Builder mergeGcsSource(GcsInputSource value)
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_source = 3;
public final DatasetInputConfig.InputFile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public DatasetInputConfig.InputFile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public DatasetInputConfig.InputFile.Builder setGcsSource(GcsInputSource value)
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_source = 3;
public DatasetInputConfig.InputFile.Builder setGcsSource(GcsInputSource.Builder builderForValue)
Google Cloud Storage file source.
.google.cloud.translation.v3.GcsInputSource gcs_source = 3;
public DatasetInputConfig.InputFile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final DatasetInputConfig.InputFile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public DatasetInputConfig.InputFile.Builder setUsage(String value)
Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST,
or UNASSIGNED (by default) for auto split.
string usage = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The usage to set.
|
public DatasetInputConfig.InputFile.Builder setUsageBytes(ByteString value)
Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST,
or UNASSIGNED (by default) for auto split.
string usage = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for usage to set.
|