Class StorageFormat.JsonOptions.Builder (1.53.0)

public static final class StorageFormat.JsonOptions.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StorageFormat.JsonOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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