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 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

      boolean containsLabels(String key)
       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.
      Use getLabelsMap() instead.
    • getLabelsMap

      Map<String,String> 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

      String getLabelsOrDefault(String key, String defaultValue)
       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

      String getLabelsOrThrow(String key)
       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.