Class LocationMetadata.Builder (2.12.0)

See more code actions.
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.v1.LocationMetadata

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion>
Returns

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter Returns

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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
builderForValueLocationMetadata.HiveMetastoreVersion.Builder
Returns

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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameters Returns

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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameters
NameDescription
indexint
builderForValueLocationMetadata.HiveMetastoreVersion.Builder
Returns

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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Returns

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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
indexint
Returns

build()

public LocationMetadata build()
Returns
TypeDescription
LocationMetadata

buildPartial()

public LocationMetadata buildPartial()
Returns
TypeDescription
LocationMetadata

clear()

public LocationMetadata.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public LocationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns 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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Returns

clone()

public LocationMetadata.Builder clone()
Returns 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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
indexint
Returns

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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
indexint
Returns

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.v1.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.v1.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.v1.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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
indexint
Returns

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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Returns
TypeDescription
List<? extends com.google.cloud.metastore.v1.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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns 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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameter
NameDescription
indexint
Returns

setField(Descriptors.FieldDescriptor field, Object value)

public LocationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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 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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameters Returns

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.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1;

Parameters
NameDescription
indexint
builderForValueLocationMetadata.HiveMetastoreVersion.Builder
Returns

setUnknownFields(UnknownFieldSet unknownFields)

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