Class JsonFileFormat.Builder (1.6.0)

public static final class JsonFileFormat.Builder extends GeneratedMessageV3.Builder<JsonFileFormat.Builder> implements JsonFileFormatOrBuilder

JSON file format configuration.

Protobuf type google.cloud.datastream.v1alpha1.JsonFileFormat

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JsonFileFormat.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
JsonFileFormat.Builder
Overrides

build()

public JsonFileFormat build()
Returns
TypeDescription
JsonFileFormat

buildPartial()

public JsonFileFormat buildPartial()
Returns
TypeDescription
JsonFileFormat

clear()

public JsonFileFormat.Builder clear()
Returns
TypeDescription
JsonFileFormat.Builder
Overrides

clearCompression()

public JsonFileFormat.Builder clearCompression()

Compression of the loaded JSON file.

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

Returns
TypeDescription
JsonFileFormat.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public JsonFileFormat.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
JsonFileFormat.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public JsonFileFormat.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
JsonFileFormat.Builder
Overrides

clearSchemaFileFormat()

public JsonFileFormat.Builder clearSchemaFileFormat()

The schema file format along JSON data files.

.google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1;

Returns
TypeDescription
JsonFileFormat.Builder

This builder for chaining.

clone()

public JsonFileFormat.Builder clone()
Returns
TypeDescription
JsonFileFormat.Builder
Overrides

getCompression()

public JsonFileFormat.JsonCompression getCompression()

Compression of the loaded JSON file.

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

Returns
TypeDescription
JsonFileFormat.JsonCompression

The compression.

getCompressionValue()

public int getCompressionValue()

Compression of the loaded JSON file.

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

Returns
TypeDescription
int

The enum numeric value on the wire for compression.

getDefaultInstanceForType()

public JsonFileFormat getDefaultInstanceForType()
Returns
TypeDescription
JsonFileFormat

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSchemaFileFormat()

public SchemaFileFormat getSchemaFileFormat()

The schema file format along JSON data files.

.google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1;

Returns
TypeDescription
SchemaFileFormat

The schemaFileFormat.

getSchemaFileFormatValue()

public int getSchemaFileFormatValue()

The schema file format along JSON data files.

.google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for schemaFileFormat.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(JsonFileFormat other)

public JsonFileFormat.Builder mergeFrom(JsonFileFormat other)
Parameter
NameDescription
otherJsonFileFormat
Returns
TypeDescription
JsonFileFormat.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JsonFileFormat.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JsonFileFormat.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public JsonFileFormat.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
JsonFileFormat.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JsonFileFormat.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JsonFileFormat.Builder
Overrides

setCompression(JsonFileFormat.JsonCompression value)

public JsonFileFormat.Builder setCompression(JsonFileFormat.JsonCompression value)

Compression of the loaded JSON file.

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

Parameter
NameDescription
valueJsonFileFormat.JsonCompression

The compression to set.

Returns
TypeDescription
JsonFileFormat.Builder

This builder for chaining.

setCompressionValue(int value)

public JsonFileFormat.Builder setCompressionValue(int value)

Compression of the loaded JSON file.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for compression to set.

Returns
TypeDescription
JsonFileFormat.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public JsonFileFormat.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
JsonFileFormat.Builder
Overrides

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

public JsonFileFormat.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
JsonFileFormat.Builder
Overrides

setSchemaFileFormat(SchemaFileFormat value)

public JsonFileFormat.Builder setSchemaFileFormat(SchemaFileFormat value)

The schema file format along JSON data files.

.google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1;

Parameter
NameDescription
valueSchemaFileFormat

The schemaFileFormat to set.

Returns
TypeDescription
JsonFileFormat.Builder

This builder for chaining.

setSchemaFileFormatValue(int value)

public JsonFileFormat.Builder setSchemaFileFormatValue(int value)

The schema file format along JSON data files.

.google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for schemaFileFormat to set.

Returns
TypeDescription
JsonFileFormat.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final JsonFileFormat.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JsonFileFormat.Builder
Overrides