Class JsonFileFormat (1.22.0)

public final class JsonFileFormat extends GeneratedMessageV3 implements JsonFileFormatOrBuilder

JSON file format configuration.

Protobuf type google.cloud.datastream.v1.JsonFileFormat

Static Fields

COMPRESSION_FIELD_NUMBER

public static final int COMPRESSION_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEMA_FILE_FORMAT_FIELD_NUMBER

public static final int SCHEMA_FILE_FORMAT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static JsonFileFormat getDefaultInstance()
Returns
TypeDescription
JsonFileFormat

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static JsonFileFormat.Builder newBuilder()
Returns
TypeDescription
JsonFileFormat.Builder

newBuilder(JsonFileFormat prototype)

public static JsonFileFormat.Builder newBuilder(JsonFileFormat prototype)
Parameter
NameDescription
prototypeJsonFileFormat
Returns
TypeDescription
JsonFileFormat.Builder

parseDelimitedFrom(InputStream input)

public static JsonFileFormat parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static JsonFileFormat parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static JsonFileFormat parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static JsonFileFormat parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static JsonFileFormat parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static JsonFileFormat parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static JsonFileFormat parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static JsonFileFormat parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static JsonFileFormat parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static JsonFileFormat parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static JsonFileFormat parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static JsonFileFormat parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JsonFileFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<JsonFileFormat> parser()
Returns
TypeDescription
Parser<JsonFileFormat>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCompression()

public JsonFileFormat.JsonCompression getCompression()

Compression of the loaded JSON file.

.google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2;

Returns
TypeDescription
JsonFileFormat.JsonCompression

The compression.

getCompressionValue()

public int getCompressionValue()

Compression of the loaded JSON file.

.google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for compression.

getDefaultInstanceForType()

public JsonFileFormat getDefaultInstanceForType()
Returns
TypeDescription
JsonFileFormat

getParserForType()

public Parser<JsonFileFormat> getParserForType()
Returns
TypeDescription
Parser<JsonFileFormat>
Overrides

getSchemaFileFormat()

public JsonFileFormat.SchemaFileFormat getSchemaFileFormat()

The schema file format along JSON data files.

.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1;

Returns
TypeDescription
JsonFileFormat.SchemaFileFormat

The schemaFileFormat.

getSchemaFileFormatValue()

public int getSchemaFileFormatValue()

The schema file format along JSON data files.

.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for schemaFileFormat.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public JsonFileFormat.Builder newBuilderForType()
Returns
TypeDescription
JsonFileFormat.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected JsonFileFormat.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
JsonFileFormat.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public JsonFileFormat.Builder toBuilder()
Returns
TypeDescription
JsonFileFormat.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException