Class DatasetInputConfig.InputFile.Builder (2.49.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DatasetInputConfig.InputFile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

build()

public DatasetInputConfig.InputFile build()
Returns
Type Description
DatasetInputConfig.InputFile

buildPartial()

public DatasetInputConfig.InputFile buildPartial()
Returns
Type Description
DatasetInputConfig.InputFile

clear()

public DatasetInputConfig.InputFile.Builder clear()
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DatasetInputConfig.InputFile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

clearGcsSource()

public DatasetInputConfig.InputFile.Builder clearGcsSource()

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_source = 3;

Returns
Type Description
DatasetInputConfig.InputFile.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DatasetInputConfig.InputFile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

clearSource()

public DatasetInputConfig.InputFile.Builder clearSource()
Returns
Type Description
DatasetInputConfig.InputFile.Builder

clearUsage()

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];

Returns
Type Description
DatasetInputConfig.InputFile.Builder

This builder for chaining.

clone()

public DatasetInputConfig.InputFile.Builder clone()
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

getDefaultInstanceForType()

public DatasetInputConfig.InputFile getDefaultInstanceForType()
Returns
Type Description
DatasetInputConfig.InputFile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcsSource()

public GcsInputSource getGcsSource()

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_source = 3;

Returns
Type Description
GcsInputSource

The gcsSource.

getGcsSourceBuilder()

public GcsInputSource.Builder getGcsSourceBuilder()

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_source = 3;

Returns
Type Description
GcsInputSource.Builder

getGcsSourceOrBuilder()

public GcsInputSourceOrBuilder getGcsSourceOrBuilder()

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_source = 3;

Returns
Type Description
GcsInputSourceOrBuilder

getSourceCase()

public DatasetInputConfig.InputFile.SourceCase getSourceCase()
Returns
Type Description
DatasetInputConfig.InputFile.SourceCase

getUsage()

public String getUsage()

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.

getUsageBytes()

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.

hasGcsSource()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DatasetInputConfig.InputFile other)

public DatasetInputConfig.InputFile.Builder mergeFrom(DatasetInputConfig.InputFile other)
Parameter
Name Description
other DatasetInputConfig.InputFile
Returns
Type Description
DatasetInputConfig.InputFile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DatasetInputConfig.InputFile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DatasetInputConfig.InputFile.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

mergeGcsSource(GcsInputSource value)

public DatasetInputConfig.InputFile.Builder mergeGcsSource(GcsInputSource value)

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_source = 3;

Parameter
Name Description
value GcsInputSource
Returns
Type Description
DatasetInputConfig.InputFile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DatasetInputConfig.InputFile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DatasetInputConfig.InputFile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

setGcsSource(GcsInputSource value)

public DatasetInputConfig.InputFile.Builder setGcsSource(GcsInputSource value)

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_source = 3;

Parameter
Name Description
value GcsInputSource
Returns
Type Description
DatasetInputConfig.InputFile.Builder

setGcsSource(GcsInputSource.Builder builderForValue)

public DatasetInputConfig.InputFile.Builder setGcsSource(GcsInputSource.Builder builderForValue)

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_source = 3;

Parameter
Name Description
builderForValue GcsInputSource.Builder
Returns
Type Description
DatasetInputConfig.InputFile.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DatasetInputConfig.InputFile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DatasetInputConfig.InputFile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

setUsage(String value)

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.

Returns
Type Description
DatasetInputConfig.InputFile.Builder

This builder for chaining.

setUsageBytes(ByteString value)

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.

Returns
Type Description
DatasetInputConfig.InputFile.Builder

This builder for chaining.