Class MetastorePartition (3.9.1)

public final class MetastorePartition extends GeneratedMessageV3 implements MetastorePartitionOrBuilder

Information about a Hive partition.

Protobuf type google.cloud.bigquery.storage.v1alpha.MetastorePartition

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

FIELDS_FIELD_NUMBER

public static final int FIELDS_FIELD_NUMBER
Field Value
Type Description
int

PARAMETERS_FIELD_NUMBER

public static final int PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

STORAGE_DESCRIPTOR_FIELD_NUMBER

public static final int STORAGE_DESCRIPTOR_FIELD_NUMBER
Field Value
Type Description
int

VALUES_FIELD_NUMBER

public static final int VALUES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MetastorePartition getDefaultInstance()
Returns
Type Description
MetastorePartition

getDescriptor()

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

newBuilder()

public static MetastorePartition.Builder newBuilder()
Returns
Type Description
MetastorePartition.Builder

newBuilder(MetastorePartition prototype)

public static MetastorePartition.Builder newBuilder(MetastorePartition prototype)
Parameter
Name Description
prototype MetastorePartition
Returns
Type Description
MetastorePartition.Builder

parseDelimitedFrom(InputStream input)

public static MetastorePartition parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MetastorePartition
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetastorePartition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetastorePartition
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MetastorePartition parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MetastorePartition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MetastorePartition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetastorePartition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MetastorePartition parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MetastorePartition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MetastorePartition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetastorePartition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MetastorePartition parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MetastorePartition
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MetastorePartition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetastorePartition
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MetastorePartition parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MetastorePartition
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetastorePartition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetastorePartition
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MetastorePartition parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MetastorePartition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MetastorePartition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetastorePartition
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MetastorePartition> parser()
Returns
Type Description
Parser<MetastorePartition>

Methods

containsParameters(String key)

public boolean containsParameters(String key)

Optional. Additional parameters or metadata associated with the partition. Maximum size 10 KiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time of the partition.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time of the partition.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MetastorePartition getDefaultInstanceForType()
Returns
Type Description
MetastorePartition

getFields(int index)

public FieldSchema getFields(int index)

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FieldSchema

getFieldsCount()

public int getFieldsCount()

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getFieldsList()

public List<FieldSchema> getFieldsList()

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<FieldSchema>

getFieldsOrBuilder(int index)

public FieldSchemaOrBuilder getFieldsOrBuilder(int index)

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FieldSchemaOrBuilder

getFieldsOrBuilderList()

public List<? extends FieldSchemaOrBuilder> getFieldsOrBuilderList()

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder>

getParameters() (deprecated)

public Map<String,String> getParameters()

Use #getParametersMap() instead.

Returns
Type Description
Map<String,String>

getParametersCount()

public int getParametersCount()

Optional. Additional parameters or metadata associated with the partition. Maximum size 10 KiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getParametersMap()

public Map<String,String> getParametersMap()

Optional. Additional parameters or metadata associated with the partition. Maximum size 10 KiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getParametersOrDefault(String key, String defaultValue)

public String getParametersOrDefault(String key, String defaultValue)

Optional. Additional parameters or metadata associated with the partition. Maximum size 10 KiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getParametersOrThrow(String key)

public String getParametersOrThrow(String key)

Optional. Additional parameters or metadata associated with the partition. Maximum size 10 KiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getParserForType()

public Parser<MetastorePartition> getParserForType()
Returns
Type Description
Parser<MetastorePartition>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStorageDescriptor()

public StorageDescriptor getStorageDescriptor()

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

.google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StorageDescriptor

The storageDescriptor.

getStorageDescriptorOrBuilder()

public StorageDescriptorOrBuilder getStorageDescriptorOrBuilder()

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

.google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StorageDescriptorOrBuilder

getValues(int index)

public String getValues(int index)

Required. Represents the values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined. Each value is limited to 1024 characters.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

Required. Represents the values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined. Each value is limited to 1024 characters.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

Required. Represents the values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined. Each value is limited to 1024 characters.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

Required. Represents the values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined. Each value is limited to 1024 characters.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the values.

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time of the partition.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasStorageDescriptor()

public boolean hasStorageDescriptor()

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

.google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the storageDescriptor field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MetastorePartition.Builder newBuilderForType()
Returns
Type Description
MetastorePartition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MetastorePartition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MetastorePartition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public MetastorePartition.Builder toBuilder()
Returns
Type Description
MetastorePartition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException