Class DatasetInputConfig.InputFile (2.49.0)

public static final class DatasetInputConfig.InputFile extends GeneratedMessageV3 implements DatasetInputConfig.InputFileOrBuilder

An input file.

Protobuf type google.cloud.translation.v3.DatasetInputConfig.InputFile

Static Fields

GCS_SOURCE_FIELD_NUMBER

public static final int GCS_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

USAGE_FIELD_NUMBER

public static final int USAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DatasetInputConfig.InputFile getDefaultInstance()
Returns
Type Description
DatasetInputConfig.InputFile

getDescriptor()

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

newBuilder()

public static DatasetInputConfig.InputFile.Builder newBuilder()
Returns
Type Description
DatasetInputConfig.InputFile.Builder

newBuilder(DatasetInputConfig.InputFile prototype)

public static DatasetInputConfig.InputFile.Builder newBuilder(DatasetInputConfig.InputFile prototype)
Parameter
Name Description
prototype DatasetInputConfig.InputFile
Returns
Type Description
DatasetInputConfig.InputFile.Builder

parseDelimitedFrom(InputStream input)

public static DatasetInputConfig.InputFile parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DatasetInputConfig.InputFile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DatasetInputConfig.InputFile parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DatasetInputConfig.InputFile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DatasetInputConfig.InputFile parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DatasetInputConfig.InputFile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DatasetInputConfig.InputFile parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DatasetInputConfig.InputFile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DatasetInputConfig.InputFile parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DatasetInputConfig.InputFile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DatasetInputConfig.InputFile parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DatasetInputConfig.InputFile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatasetInputConfig.InputFile
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DatasetInputConfig.InputFile> parser()
Returns
Type Description
Parser<InputFile>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getGcsSource()

public GcsInputSource getGcsSource()

Google Cloud Storage file source.

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

Returns
Type Description
GcsInputSource

The gcsSource.

getGcsSourceOrBuilder()

public GcsInputSourceOrBuilder getGcsSourceOrBuilder()

Google Cloud Storage file source.

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

Returns
Type Description
GcsInputSourceOrBuilder

getParserForType()

public Parser<DatasetInputConfig.InputFile> getParserForType()
Returns
Type Description
Parser<InputFile>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DatasetInputConfig.InputFile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DatasetInputConfig.InputFile.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException