Interface NamespaceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Namespace,Namespace.Builder
@Generated
public interface NamespaceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Optional.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.getName()Immutable.com.google.protobuf.ByteStringImmutable.getUid()Output only.com.google.protobuf.ByteStringOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Immutable. The resource name for the namespace in the format `projects/*/locations/*/namespaces/*`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Immutable. The resource name for the namespace in the format `projects/*/locations/*/namespaces/*`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for name.
-
getLabelsCount
int getLabelsCount()Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; -
containsLabels
Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
getLabelsMap
Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getLabelsOrDefault
Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getLabelsOrThrow
Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getUid
String getUid()Output only. The globally unique identifier of the namespace in the UUID4 format.
string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The uid.
-
getUidBytes
com.google.protobuf.ByteString getUidBytes()Output only. The globally unique identifier of the namespace in the UUID4 format.
string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for uid.
-