public final class Federation extends com.google.protobuf.GeneratedMessageV3 implements FederationOrBuilder
Represents a federation of multiple backend metastores.Protobuf type
google.cloud.metastore.v1beta.Federation| Modifier and Type | Class and Description |
|---|---|
static class |
Federation.Builder
Represents a federation of multiple backend metastores.
|
static class |
Federation.State
The current state of the federation.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BACKEND_METASTORES_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
ENDPOINT_URI_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
STATE_MESSAGE_FIELD_NUMBER |
static int |
UID_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsBackendMetastores(int key)
A map from `BackendMetastore` rank to `BackendMetastore`s from which the
federation service serves metadata at query time.
|
boolean |
containsLabels(String key)
User-defined labels for the metastore federation.
|
boolean |
equals(Object obj) |
Map<Integer,BackendMetastore> |
getBackendMetastores()
Deprecated.
|
int |
getBackendMetastoresCount()
A map from `BackendMetastore` rank to `BackendMetastore`s from which the
federation service serves metadata at query time.
|
Map<Integer,BackendMetastore> |
getBackendMetastoresMap()
A map from `BackendMetastore` rank to `BackendMetastore`s from which the
federation service serves metadata at query time.
|
BackendMetastore |
getBackendMetastoresOrDefault(int key,
BackendMetastore defaultValue)
A map from `BackendMetastore` rank to `BackendMetastore`s from which the
federation service serves metadata at query time.
|
BackendMetastore |
getBackendMetastoresOrThrow(int key)
A map from `BackendMetastore` rank to `BackendMetastore`s from which the
federation service serves metadata at query time.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Federation |
getDefaultInstance() |
Federation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getEndpointUri()
Output only.
|
com.google.protobuf.ByteString |
getEndpointUriBytes()
Output only.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
User-defined labels for the metastore federation.
|
Map<String,String> |
getLabelsMap()
User-defined labels for the metastore federation.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
User-defined labels for the metastore federation.
|
String |
getLabelsOrThrow(String key)
User-defined labels for the metastore federation.
|
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
com.google.protobuf.Parser<Federation> |
getParserForType() |
int |
getSerializedSize() |
Federation.State |
getState()
Output only.
|
String |
getStateMessage()
Output only.
|
com.google.protobuf.ByteString |
getStateMessageBytes()
Output only.
|
int |
getStateValue()
Output only.
|
String |
getUid()
Output only.
|
com.google.protobuf.ByteString |
getUidBytes()
Output only.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
String |
getVersion()
Immutable.
|
com.google.protobuf.ByteString |
getVersionBytes()
Immutable.
|
boolean |
hasCreateTime()
Output only.
|
int |
hashCode() |
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Federation.Builder |
newBuilder() |
static Federation.Builder |
newBuilder(Federation prototype) |
Federation.Builder |
newBuilderForType() |
protected Federation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Federation |
parseDelimitedFrom(InputStream input) |
static Federation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Federation |
parseFrom(byte[] data) |
static Federation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Federation |
parseFrom(ByteBuffer data) |
static Federation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Federation |
parseFrom(com.google.protobuf.ByteString data) |
static Federation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Federation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Federation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Federation |
parseFrom(InputStream input) |
static Federation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Federation> |
parser() |
Federation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int BACKEND_METASTORES_FIELD_NUMBER
public static final int ENDPOINT_URI_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int STATE_MESSAGE_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Immutable. The relative resource name of the federation, of the
form:
projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getName in interface FederationOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Immutable. The relative resource name of the federation, of the
form:
projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getNameBytes in interface FederationOrBuilderpublic boolean hasCreateTime()
Output only. The time when the metastore federation was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface FederationOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the metastore federation was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface FederationOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the metastore federation was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface FederationOrBuilderpublic boolean hasUpdateTime()
Output only. The time when the metastore federation was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface FederationOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. The time when the metastore federation was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface FederationOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time when the metastore federation was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface FederationOrBuilderpublic int getLabelsCount()
FederationOrBuilderUser-defined labels for the metastore federation.
map<string, string> labels = 4;getLabelsCount in interface FederationOrBuilderpublic boolean containsLabels(String key)
User-defined labels for the metastore federation.
map<string, string> labels = 4;containsLabels in interface FederationOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface FederationOrBuilderpublic Map<String,String> getLabelsMap()
User-defined labels for the metastore federation.
map<string, string> labels = 4;getLabelsMap in interface FederationOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
User-defined labels for the metastore federation.
map<string, string> labels = 4;getLabelsOrDefault in interface FederationOrBuilderpublic String getLabelsOrThrow(String key)
User-defined labels for the metastore federation.
map<string, string> labels = 4;getLabelsOrThrow in interface FederationOrBuilderpublic String getVersion()
Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.
string version = 5 [(.google.api.field_behavior) = IMMUTABLE];getVersion in interface FederationOrBuilderpublic com.google.protobuf.ByteString getVersionBytes()
Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.
string version = 5 [(.google.api.field_behavior) = IMMUTABLE];getVersionBytes in interface FederationOrBuilderpublic int getBackendMetastoresCount()
FederationOrBuilderA map from `BackendMetastore` rank to `BackendMetastore`s from which the federation service serves metadata at query time. The map key represents the order in which `BackendMetastore`s should be evaluated to resolve database names at query time and should be greater than or equal to zero. A `BackendMetastore` with a lower number will be evaluated before a `BackendMetastore` with a higher number.
map<int32, .google.cloud.metastore.v1beta.BackendMetastore> backend_metastores = 6;
getBackendMetastoresCount in interface FederationOrBuilderpublic boolean containsBackendMetastores(int key)
A map from `BackendMetastore` rank to `BackendMetastore`s from which the federation service serves metadata at query time. The map key represents the order in which `BackendMetastore`s should be evaluated to resolve database names at query time and should be greater than or equal to zero. A `BackendMetastore` with a lower number will be evaluated before a `BackendMetastore` with a higher number.
map<int32, .google.cloud.metastore.v1beta.BackendMetastore> backend_metastores = 6;
containsBackendMetastores in interface FederationOrBuilder@Deprecated public Map<Integer,BackendMetastore> getBackendMetastores()
getBackendMetastoresMap() instead.getBackendMetastores in interface FederationOrBuilderpublic Map<Integer,BackendMetastore> getBackendMetastoresMap()
A map from `BackendMetastore` rank to `BackendMetastore`s from which the federation service serves metadata at query time. The map key represents the order in which `BackendMetastore`s should be evaluated to resolve database names at query time and should be greater than or equal to zero. A `BackendMetastore` with a lower number will be evaluated before a `BackendMetastore` with a higher number.
map<int32, .google.cloud.metastore.v1beta.BackendMetastore> backend_metastores = 6;
getBackendMetastoresMap in interface FederationOrBuilderpublic BackendMetastore getBackendMetastoresOrDefault(int key, BackendMetastore defaultValue)
A map from `BackendMetastore` rank to `BackendMetastore`s from which the federation service serves metadata at query time. The map key represents the order in which `BackendMetastore`s should be evaluated to resolve database names at query time and should be greater than or equal to zero. A `BackendMetastore` with a lower number will be evaluated before a `BackendMetastore` with a higher number.
map<int32, .google.cloud.metastore.v1beta.BackendMetastore> backend_metastores = 6;
getBackendMetastoresOrDefault in interface FederationOrBuilderpublic BackendMetastore getBackendMetastoresOrThrow(int key)
A map from `BackendMetastore` rank to `BackendMetastore`s from which the federation service serves metadata at query time. The map key represents the order in which `BackendMetastore`s should be evaluated to resolve database names at query time and should be greater than or equal to zero. A `BackendMetastore` with a lower number will be evaluated before a `BackendMetastore` with a higher number.
map<int32, .google.cloud.metastore.v1beta.BackendMetastore> backend_metastores = 6;
getBackendMetastoresOrThrow in interface FederationOrBuilderpublic String getEndpointUri()
Output only. The federation endpoint.
string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];getEndpointUri in interface FederationOrBuilderpublic com.google.protobuf.ByteString getEndpointUriBytes()
Output only. The federation endpoint.
string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];getEndpointUriBytes in interface FederationOrBuilderpublic int getStateValue()
Output only. The current state of the federation.
.google.cloud.metastore.v1beta.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface FederationOrBuilderpublic Federation.State getState()
Output only. The current state of the federation.
.google.cloud.metastore.v1beta.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface FederationOrBuilderpublic String getStateMessage()
Output only. Additional information about the current state of the metastore federation, if available.
string state_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateMessage in interface FederationOrBuilderpublic com.google.protobuf.ByteString getStateMessageBytes()
Output only. Additional information about the current state of the metastore federation, if available.
string state_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateMessageBytes in interface FederationOrBuilderpublic String getUid()
Output only. The globally unique resource identifier of the metastore federation.
string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];getUid in interface FederationOrBuilderpublic com.google.protobuf.ByteString getUidBytes()
Output only. The globally unique resource identifier of the metastore federation.
string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];getUidBytes in interface FederationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Federation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Federation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Federation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Federation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Federation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Federation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Federation parseFrom(InputStream input) throws IOException
IOExceptionpublic static Federation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Federation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Federation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Federation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Federation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Federation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Federation.Builder newBuilder()
public static Federation.Builder newBuilder(Federation prototype)
public Federation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Federation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Federation getDefaultInstance()
public static com.google.protobuf.Parser<Federation> parser()
public com.google.protobuf.Parser<Federation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Federation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.