Class StorageFormat.JsonOptions.Builder (1.21.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StorageFormat.JsonOptions build()
Returns
TypeDescription
StorageFormat.JsonOptions

buildPartial()

public StorageFormat.JsonOptions buildPartial()
Returns
TypeDescription
StorageFormat.JsonOptions

clear()

public StorageFormat.JsonOptions.Builder clear()
Returns
TypeDescription
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
TypeDescription
StorageFormat.JsonOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public StorageFormat.JsonOptions.Builder clone()
Returns
TypeDescription
StorageFormat.JsonOptions.Builder
Overrides

getDefaultInstanceForType()

public StorageFormat.JsonOptions getDefaultInstanceForType()
Returns
TypeDescription
StorageFormat.JsonOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for encoding.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StorageFormat.JsonOptions other)

public StorageFormat.JsonOptions.Builder mergeFrom(StorageFormat.JsonOptions other)
Parameter
NameDescription
otherStorageFormat.JsonOptions
Returns
TypeDescription
StorageFormat.JsonOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StorageFormat.JsonOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The encoding to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for encoding to set.

Returns
TypeDescription
StorageFormat.JsonOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StorageFormat.JsonOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StorageFormat.JsonOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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