Class DataDiscoverySpec.StorageConfig.JsonOptions.Builder (1.52.0)

public static final class DataDiscoverySpec.StorageConfig.JsonOptions.Builder extends GeneratedMessageV3.Builder<DataDiscoverySpec.StorageConfig.JsonOptions.Builder> implements DataDiscoverySpec.StorageConfig.JsonOptionsOrBuilder

Describes JSON data format.

Protobuf type google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Overrides

build()

public DataDiscoverySpec.StorageConfig.JsonOptions build()
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions

buildPartial()

public DataDiscoverySpec.StorageConfig.JsonOptions buildPartial()
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions

clear()

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder clear()
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Overrides

clearEncoding()

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder clearEncoding()

Optional. The character encoding of the data. The default is UTF-8.

string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Overrides

clearTypeInferenceDisabled()

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder clearTypeInferenceDisabled()

Optional. Whether to disable the inference of data types for JSON data. If true, all columns are registered as their primitive types (strings, number, or boolean).

bool type_inference_disabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder

This builder for chaining.

clone()

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder clone()
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Overrides

getDefaultInstanceForType()

public DataDiscoverySpec.StorageConfig.JsonOptions getDefaultInstanceForType()
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions

getDescriptorForType()

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

getEncoding()

public String getEncoding()

Optional. The character encoding of the data. The default is UTF-8.

string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The encoding.

getEncodingBytes()

public ByteString getEncodingBytes()

Optional. The character encoding of the data. The default is UTF-8.

string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for encoding.

getTypeInferenceDisabled()

public boolean getTypeInferenceDisabled()

Optional. Whether to disable the inference of data types for JSON data. If true, all columns are registered as their primitive types (strings, number, or boolean).

bool type_inference_disabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The typeInferenceDisabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataDiscoverySpec.StorageConfig.JsonOptions other)

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder mergeFrom(DataDiscoverySpec.StorageConfig.JsonOptions other)
Parameter
Name Description
other DataDiscoverySpec.StorageConfig.JsonOptions
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataDiscoverySpec.StorageConfig.JsonOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Overrides

setEncoding(String value)

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder setEncoding(String value)

Optional. The character encoding of the data. The default is UTF-8.

string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The encoding to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder

This builder for chaining.

setEncodingBytes(ByteString value)

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder setEncodingBytes(ByteString value)

Optional. The character encoding of the data. The default is UTF-8.

string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for encoding to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Overrides

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

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

setTypeInferenceDisabled(boolean value)

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder setTypeInferenceDisabled(boolean value)

Optional. Whether to disable the inference of data types for JSON data. If true, all columns are registered as their primitive types (strings, number, or boolean).

bool type_inference_disabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The typeInferenceDisabled to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataDiscoverySpec.StorageConfig.JsonOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Overrides