Send feedback
Class DatasetInputConfig.InputFile.Builder (2.48.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.48.0 keyboard_arrow_down
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.
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]