Class LocationMetadata.Builder (2.42.0)

public static final class LocationMetadata.Builder extends GeneratedMessageV3.Builder<LocationMetadata.Builder> implements LocationMetadataOrBuilder

Metadata about the service in a location.

Protobuf type google.cloud.metastore.v1alpha.LocationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllSupportedHiveMetastoreVersions(Iterable<? extends LocationMetadata.HiveMetastoreVersion> values)

public LocationMetadata.Builder addAllSupportedHiveMetastoreVersions(Iterable<? extends LocationMetadata.HiveMetastoreVersion> values)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion>
Returns
TypeDescription
LocationMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedHiveMetastoreVersions(LocationMetadata.HiveMetastoreVersion value)

public LocationMetadata.Builder addSupportedHiveMetastoreVersions(LocationMetadata.HiveMetastoreVersion value)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
valueLocationMetadata.HiveMetastoreVersion
Returns
TypeDescription
LocationMetadata.Builder

addSupportedHiveMetastoreVersions(LocationMetadata.HiveMetastoreVersion.Builder builderForValue)

public LocationMetadata.Builder addSupportedHiveMetastoreVersions(LocationMetadata.HiveMetastoreVersion.Builder builderForValue)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
builderForValueLocationMetadata.HiveMetastoreVersion.Builder
Returns
TypeDescription
LocationMetadata.Builder

addSupportedHiveMetastoreVersions(int index, LocationMetadata.HiveMetastoreVersion value)

public LocationMetadata.Builder addSupportedHiveMetastoreVersions(int index, LocationMetadata.HiveMetastoreVersion value)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameters
NameDescription
indexint
valueLocationMetadata.HiveMetastoreVersion
Returns
TypeDescription
LocationMetadata.Builder

addSupportedHiveMetastoreVersions(int index, LocationMetadata.HiveMetastoreVersion.Builder builderForValue)

public LocationMetadata.Builder addSupportedHiveMetastoreVersions(int index, LocationMetadata.HiveMetastoreVersion.Builder builderForValue)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameters
NameDescription
indexint
builderForValueLocationMetadata.HiveMetastoreVersion.Builder
Returns
TypeDescription
LocationMetadata.Builder

addSupportedHiveMetastoreVersionsBuilder()

public LocationMetadata.HiveMetastoreVersion.Builder addSupportedHiveMetastoreVersionsBuilder()

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Returns
TypeDescription
LocationMetadata.HiveMetastoreVersion.Builder

addSupportedHiveMetastoreVersionsBuilder(int index)

public LocationMetadata.HiveMetastoreVersion.Builder addSupportedHiveMetastoreVersionsBuilder(int index)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationMetadata.HiveMetastoreVersion.Builder

build()

public LocationMetadata build()
Returns
TypeDescription
LocationMetadata

buildPartial()

public LocationMetadata buildPartial()
Returns
TypeDescription
LocationMetadata

clear()

public LocationMetadata.Builder clear()
Returns
TypeDescription
LocationMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSupportedHiveMetastoreVersions()

public LocationMetadata.Builder clearSupportedHiveMetastoreVersions()

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Returns
TypeDescription
LocationMetadata.Builder

clone()

public LocationMetadata.Builder clone()
Returns
TypeDescription
LocationMetadata.Builder
Overrides

getDefaultInstanceForType()

public LocationMetadata getDefaultInstanceForType()
Returns
TypeDescription
LocationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSupportedHiveMetastoreVersions(int index)

public LocationMetadata.HiveMetastoreVersion getSupportedHiveMetastoreVersions(int index)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationMetadata.HiveMetastoreVersion

getSupportedHiveMetastoreVersionsBuilder(int index)

public LocationMetadata.HiveMetastoreVersion.Builder getSupportedHiveMetastoreVersionsBuilder(int index)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationMetadata.HiveMetastoreVersion.Builder

getSupportedHiveMetastoreVersionsBuilderList()

public List<LocationMetadata.HiveMetastoreVersion.Builder> getSupportedHiveMetastoreVersionsBuilderList()

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Returns
TypeDescription
List<Builder>

getSupportedHiveMetastoreVersionsCount()

public int getSupportedHiveMetastoreVersionsCount()

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Returns
TypeDescription
int

getSupportedHiveMetastoreVersionsList()

public List<LocationMetadata.HiveMetastoreVersion> getSupportedHiveMetastoreVersionsList()

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Returns
TypeDescription
List<HiveMetastoreVersion>

getSupportedHiveMetastoreVersionsOrBuilder(int index)

public LocationMetadata.HiveMetastoreVersionOrBuilder getSupportedHiveMetastoreVersionsOrBuilder(int index)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationMetadata.HiveMetastoreVersionOrBuilder

getSupportedHiveMetastoreVersionsOrBuilderList()

public List<? extends LocationMetadata.HiveMetastoreVersionOrBuilder> getSupportedHiveMetastoreVersionsOrBuilderList()

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Returns
TypeDescription
List<? extends com.google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LocationMetadata other)

public LocationMetadata.Builder mergeFrom(LocationMetadata other)
Parameter
NameDescription
otherLocationMetadata
Returns
TypeDescription
LocationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocationMetadata.Builder
Overrides

removeSupportedHiveMetastoreVersions(int index)

public LocationMetadata.Builder removeSupportedHiveMetastoreVersions(int index)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LocationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

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

public LocationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

setSupportedHiveMetastoreVersions(int index, LocationMetadata.HiveMetastoreVersion value)

public LocationMetadata.Builder setSupportedHiveMetastoreVersions(int index, LocationMetadata.HiveMetastoreVersion value)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameters
NameDescription
indexint
valueLocationMetadata.HiveMetastoreVersion
Returns
TypeDescription
LocationMetadata.Builder

setSupportedHiveMetastoreVersions(int index, LocationMetadata.HiveMetastoreVersion.Builder builderForValue)

public LocationMetadata.Builder setSupportedHiveMetastoreVersions(int index, LocationMetadata.HiveMetastoreVersion.Builder builderForValue)

The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.

repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameters
NameDescription
indexint
builderForValueLocationMetadata.HiveMetastoreVersion.Builder
Returns
TypeDescription
LocationMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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