Class StorageDescriptor.Builder (3.20.0)

public static final class StorageDescriptor.Builder extends GeneratedMessage.Builder<StorageDescriptor.Builder> implements StorageDescriptorOrBuilder

Contains information about the physical storage of the data in the metastore partition.

Protobuf type google.cloud.bigquery.storage.v1beta.StorageDescriptor

Static Methods

getDescriptor()

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

Methods

build()

public StorageDescriptor build()
Returns
Type Description
StorageDescriptor

buildPartial()

public StorageDescriptor buildPartial()
Returns
Type Description
StorageDescriptor

clear()

public StorageDescriptor.Builder clear()
Returns
Type Description
StorageDescriptor.Builder
Overrides

clearInputFormat()

public StorageDescriptor.Builder clearInputFormat()

Optional. Specifies the fully qualified class name of the InputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum length is 128 characters.

string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StorageDescriptor.Builder

This builder for chaining.

clearLocationUri()

public StorageDescriptor.Builder clearLocationUri()

Optional. The physical location of the metastore partition (e.g. gs://spark-dataproc-data/pangea-data/case_sensitive/ or gs://spark-dataproc-data/pangea-data/*).

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

Returns
Type Description
StorageDescriptor.Builder

This builder for chaining.

clearOutputFormat()

public StorageDescriptor.Builder clearOutputFormat()

Optional. Specifies the fully qualified class name of the OutputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). The maximum length is 128 characters.

string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StorageDescriptor.Builder

This builder for chaining.

clearSerdeInfo()

public StorageDescriptor.Builder clearSerdeInfo()

Optional. Serializer and deserializer information.

.google.cloud.bigquery.storage.v1beta.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StorageDescriptor.Builder

getDefaultInstanceForType()

public StorageDescriptor getDefaultInstanceForType()
Returns
Type Description
StorageDescriptor

getDescriptorForType()

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

getInputFormat()

public String getInputFormat()

Optional. Specifies the fully qualified class name of the InputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum length is 128 characters.

string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The inputFormat.

getInputFormatBytes()

public ByteString getInputFormatBytes()

Optional. Specifies the fully qualified class name of the InputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum length is 128 characters.

string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for inputFormat.

getLocationUri()

public String getLocationUri()

Optional. The physical location of the metastore partition (e.g. gs://spark-dataproc-data/pangea-data/case_sensitive/ or gs://spark-dataproc-data/pangea-data/*).

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

Returns
Type Description
String

The locationUri.

getLocationUriBytes()

public ByteString getLocationUriBytes()

Optional. The physical location of the metastore partition (e.g. gs://spark-dataproc-data/pangea-data/case_sensitive/ or gs://spark-dataproc-data/pangea-data/*).

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

Returns
Type Description
ByteString

The bytes for locationUri.

getOutputFormat()

public String getOutputFormat()

Optional. Specifies the fully qualified class name of the OutputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). The maximum length is 128 characters.

string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The outputFormat.

getOutputFormatBytes()

public ByteString getOutputFormatBytes()

Optional. Specifies the fully qualified class name of the OutputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). The maximum length is 128 characters.

string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for outputFormat.

getSerdeInfo()

public SerDeInfo getSerdeInfo()

Optional. Serializer and deserializer information.

.google.cloud.bigquery.storage.v1beta.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SerDeInfo

The serdeInfo.

getSerdeInfoBuilder()

public SerDeInfo.Builder getSerdeInfoBuilder()

Optional. Serializer and deserializer information.

.google.cloud.bigquery.storage.v1beta.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SerDeInfo.Builder

getSerdeInfoOrBuilder()

public SerDeInfoOrBuilder getSerdeInfoOrBuilder()

Optional. Serializer and deserializer information.

.google.cloud.bigquery.storage.v1beta.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SerDeInfoOrBuilder

hasSerdeInfo()

public boolean hasSerdeInfo()

Optional. Serializer and deserializer information.

.google.cloud.bigquery.storage.v1beta.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the serdeInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StorageDescriptor other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSerdeInfo(SerDeInfo value)

public StorageDescriptor.Builder mergeSerdeInfo(SerDeInfo value)

Optional. Serializer and deserializer information.

.google.cloud.bigquery.storage.v1beta.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SerDeInfo
Returns
Type Description
StorageDescriptor.Builder

setInputFormat(String value)

public StorageDescriptor.Builder setInputFormat(String value)

Optional. Specifies the fully qualified class name of the InputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum length is 128 characters.

string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The inputFormat to set.

Returns
Type Description
StorageDescriptor.Builder

This builder for chaining.

setInputFormatBytes(ByteString value)

public StorageDescriptor.Builder setInputFormatBytes(ByteString value)

Optional. Specifies the fully qualified class name of the InputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum length is 128 characters.

string input_format = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for inputFormat to set.

Returns
Type Description
StorageDescriptor.Builder

This builder for chaining.

setLocationUri(String value)

public StorageDescriptor.Builder setLocationUri(String value)

Optional. The physical location of the metastore partition (e.g. gs://spark-dataproc-data/pangea-data/case_sensitive/ or gs://spark-dataproc-data/pangea-data/*).

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

Parameter
Name Description
value String

The locationUri to set.

Returns
Type Description
StorageDescriptor.Builder

This builder for chaining.

setLocationUriBytes(ByteString value)

public StorageDescriptor.Builder setLocationUriBytes(ByteString value)

Optional. The physical location of the metastore partition (e.g. gs://spark-dataproc-data/pangea-data/case_sensitive/ or gs://spark-dataproc-data/pangea-data/*).

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

Parameter
Name Description
value ByteString

The bytes for locationUri to set.

Returns
Type Description
StorageDescriptor.Builder

This builder for chaining.

setOutputFormat(String value)

public StorageDescriptor.Builder setOutputFormat(String value)

Optional. Specifies the fully qualified class name of the OutputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). The maximum length is 128 characters.

string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The outputFormat to set.

Returns
Type Description
StorageDescriptor.Builder

This builder for chaining.

setOutputFormatBytes(ByteString value)

public StorageDescriptor.Builder setOutputFormatBytes(ByteString value)

Optional. Specifies the fully qualified class name of the OutputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). The maximum length is 128 characters.

string output_format = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for outputFormat to set.

Returns
Type Description
StorageDescriptor.Builder

This builder for chaining.

setSerdeInfo(SerDeInfo value)

public StorageDescriptor.Builder setSerdeInfo(SerDeInfo value)

Optional. Serializer and deserializer information.

.google.cloud.bigquery.storage.v1beta.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SerDeInfo
Returns
Type Description
StorageDescriptor.Builder

setSerdeInfo(SerDeInfo.Builder builderForValue)

public StorageDescriptor.Builder setSerdeInfo(SerDeInfo.Builder builderForValue)

Optional. Serializer and deserializer information.

.google.cloud.bigquery.storage.v1beta.SerDeInfo serde_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SerDeInfo.Builder
Returns
Type Description
StorageDescriptor.Builder