接口 MetadataOuterClass.MetadataOrBuilder

    • 方法概要

      所有方法 实例方法 抽象方法 已过时的方法 
      修饰符和类型 方法 说明
      boolean containsAnnotations​(java.lang.String key)
      Map of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.
      boolean containsLabels​(java.lang.String key)
      Map of string keys and values that can be used to organize and categorize resources within a collection.
      java.util.Map<java.lang.String,​java.lang.String> getAnnotations()
      已过时。
      int getAnnotationsCount()
      Map of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.
      java.util.Map<java.lang.String,​java.lang.String> getAnnotationsMap()
      Map of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.
      java.lang.String getAnnotationsOrDefault​(java.lang.String key, java.lang.String defaultValue)
      Map of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.
      java.lang.String getAnnotationsOrThrow​(java.lang.String key)
      Map of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.
      com.google.protobuf.Timestamp getCreateTime()
      The creation timestamp of the resource.
      com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
      The creation timestamp of the resource.
      java.util.Map<java.lang.String,​java.lang.String> getLabels()
      已过时。
      int getLabelsCount()
      Map of string keys and values that can be used to organize and categorize resources within a collection.
      java.util.Map<java.lang.String,​java.lang.String> getLabelsMap()
      Map of string keys and values that can be used to organize and categorize resources within a collection.
      java.lang.String getLabelsOrDefault​(java.lang.String key, java.lang.String defaultValue)
      Map of string keys and values that can be used to organize and categorize resources within a collection.
      java.lang.String getLabelsOrThrow​(java.lang.String key)
      Map of string keys and values that can be used to organize and categorize resources within a collection.
      java.lang.String getName()
      Fully qualified name of the resource.
      com.google.protobuf.ByteString getNameBytes()
      Fully qualified name of the resource.
      java.lang.String getVersion()
      Resource version.
      com.google.protobuf.ByteString getVersionBytes()
      Resource version.
      boolean hasCreateTime()
      The creation timestamp of the resource.
      • 从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • 从接口继承的方法 com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • 方法详细资料

      • getName

        java.lang.String getName()
         Fully qualified name of the resource. Unique in context of a collection.
         The fully qualified name consists of a directory and basename. The directory identifies
         the resources location in a resource hierarchy. The basename identifies the specific
         resource name within the context of that directory.
         The directory and basename are composed of one or more segments. Segments must be
         valid [DNS labels](https://tools.ietf.org/html/rfc1123). "/" is the delimiter between
         segments
         The rightmost segment is the basename. All segments to the
         left of the basename form the directory. Segments moving towards the left
         represent higher positions in the resource hierarchy, similar to reverse
         DNS notation. e.g.
            /<org>/<team>/<subteam>/<resource basename>
         An empty directory indicates a resource that is located at the root of the
         hierarchy, e.g.
            /<globally scoped resource>
         On Kubernetes the resource hierarchy is two-levels: namespaces and
         cluster-scoped (i.e. global).
         Namespace resources fully qualified name is of the form:
            "<k8s namespace>/<k8s resource name>"
         Cluster scoped resources are located at the root of the hierarchy and are of the form:
            "/<k8s resource name>"
         
        string name = 1;
        返回:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Fully qualified name of the resource. Unique in context of a collection.
         The fully qualified name consists of a directory and basename. The directory identifies
         the resources location in a resource hierarchy. The basename identifies the specific
         resource name within the context of that directory.
         The directory and basename are composed of one or more segments. Segments must be
         valid [DNS labels](https://tools.ietf.org/html/rfc1123). "/" is the delimiter between
         segments
         The rightmost segment is the basename. All segments to the
         left of the basename form the directory. Segments moving towards the left
         represent higher positions in the resource hierarchy, similar to reverse
         DNS notation. e.g.
            /<org>/<team>/<subteam>/<resource basename>
         An empty directory indicates a resource that is located at the root of the
         hierarchy, e.g.
            /<globally scoped resource>
         On Kubernetes the resource hierarchy is two-levels: namespaces and
         cluster-scoped (i.e. global).
         Namespace resources fully qualified name is of the form:
            "<k8s namespace>/<k8s resource name>"
         Cluster scoped resources are located at the root of the hierarchy and are of the form:
            "/<k8s resource name>"
         
        string name = 1;
        返回:
        The bytes for name.
      • hasCreateTime

        boolean hasCreateTime()
         The creation timestamp of the resource.
         
        .google.protobuf.Timestamp create_time = 2;
        返回:
        Whether the createTime field is set.
      • getCreateTime

        com.google.protobuf.Timestamp getCreateTime()
         The creation timestamp of the resource.
         
        .google.protobuf.Timestamp create_time = 2;
        返回:
        The createTime.
      • getCreateTimeOrBuilder

        com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         The creation timestamp of the resource.
         
        .google.protobuf.Timestamp create_time = 2;
      • getVersion

        java.lang.String getVersion()
         Resource version. This is used to determine when resources change across
         resource updates. It should be treated as opaque by consumers/sinks.
         
        string version = 3;
        返回:
        The version.
      • getVersionBytes

        com.google.protobuf.ByteString getVersionBytes()
         Resource version. This is used to determine when resources change across
         resource updates. It should be treated as opaque by consumers/sinks.
         
        string version = 3;
        返回:
        The bytes for version.
      • getLabelsCount

        int getLabelsCount()
         Map of string keys and values that can be used to organize and categorize
         resources within a collection.
         
        map<string, string> labels = 4;
      • containsLabels

        boolean containsLabels​(java.lang.String key)
         Map of string keys and values that can be used to organize and categorize
         resources within a collection.
         
        map<string, string> labels = 4;
      • getLabels

        @Deprecated
        java.util.Map<java.lang.String,​java.lang.String> getLabels()
        已过时。
        Use getLabelsMap() instead.
      • getLabelsMap

        java.util.Map<java.lang.String,​java.lang.String> getLabelsMap()
         Map of string keys and values that can be used to organize and categorize
         resources within a collection.
         
        map<string, string> labels = 4;
      • getLabelsOrDefault

        java.lang.String getLabelsOrDefault​(java.lang.String key,
                                            java.lang.String defaultValue)
         Map of string keys and values that can be used to organize and categorize
         resources within a collection.
         
        map<string, string> labels = 4;
      • getLabelsOrThrow

        java.lang.String getLabelsOrThrow​(java.lang.String key)
         Map of string keys and values that can be used to organize and categorize
         resources within a collection.
         
        map<string, string> labels = 4;
      • getAnnotationsCount

        int getAnnotationsCount()
         Map of string keys and values that can be used by source and sink to communicate
         arbitrary metadata about this resource.
         
        map<string, string> annotations = 5;
      • containsAnnotations

        boolean containsAnnotations​(java.lang.String key)
         Map of string keys and values that can be used by source and sink to communicate
         arbitrary metadata about this resource.
         
        map<string, string> annotations = 5;
      • getAnnotations

        @Deprecated
        java.util.Map<java.lang.String,​java.lang.String> getAnnotations()
        已过时。
        Use getAnnotationsMap() instead.
      • getAnnotationsMap

        java.util.Map<java.lang.String,​java.lang.String> getAnnotationsMap()
         Map of string keys and values that can be used by source and sink to communicate
         arbitrary metadata about this resource.
         
        map<string, string> annotations = 5;
      • getAnnotationsOrDefault

        java.lang.String getAnnotationsOrDefault​(java.lang.String key,
                                                 java.lang.String defaultValue)
         Map of string keys and values that can be used by source and sink to communicate
         arbitrary metadata about this resource.
         
        map<string, string> annotations = 5;
      • getAnnotationsOrThrow

        java.lang.String getAnnotationsOrThrow​(java.lang.String key)
         Map of string keys and values that can be used by source and sink to communicate
         arbitrary metadata about this resource.
         
        map<string, string> annotations = 5;