Class StorageFormat.JsonOptions.Builder (1.81.0)

public static final class StorageFormat.JsonOptions.Builder extends GeneratedMessage.Builder<StorageFormat.JsonOptions.Builder> implements StorageFormat.JsonOptionsOrBuilder

Describes JSON data format.

Protobuf type google.cloud.dataplex.v1.StorageFormat.JsonOptions

Static Methods

getDescriptor()

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

Methods

build()

public StorageFormat.JsonOptions build()
Returns
Type Description
StorageFormat.JsonOptions

buildPartial()

public StorageFormat.JsonOptions buildPartial()
Returns
Type Description
StorageFormat.JsonOptions

clear()

public StorageFormat.JsonOptions.Builder clear()
Returns
Type Description
StorageFormat.JsonOptions.Builder
Overrides

clearEncoding()

public StorageFormat.JsonOptions.Builder clearEncoding()

Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and "ISO-8859-1". Defaults to UTF-8 if not specified.

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

Returns
Type Description
StorageFormat.JsonOptions.Builder

This builder for chaining.

getDefaultInstanceForType()

public StorageFormat.JsonOptions getDefaultInstanceForType()
Returns
Type Description
StorageFormat.JsonOptions

getDescriptorForType()

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

getEncoding()

public String getEncoding()

Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and "ISO-8859-1". Defaults to UTF-8 if not specified.

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. Accepts "US-ASCII", "UTF-8" and "ISO-8859-1". Defaults to UTF-8 if not specified.

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

Returns
Type Description
ByteString

The bytes for encoding.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StorageFormat.JsonOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEncoding(String value)

public StorageFormat.JsonOptions.Builder setEncoding(String value)

Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and "ISO-8859-1". Defaults to UTF-8 if not specified.

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

Parameter
Name Description
value String

The encoding to set.

Returns
Type Description
StorageFormat.JsonOptions.Builder

This builder for chaining.

setEncodingBytes(ByteString value)

public StorageFormat.JsonOptions.Builder setEncodingBytes(ByteString value)

Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and "ISO-8859-1". Defaults to UTF-8 if not specified.

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

Parameter
Name Description
value ByteString

The bytes for encoding to set.

Returns
Type Description
StorageFormat.JsonOptions.Builder

This builder for chaining.