接口 MetadataOuterClass.MetadataOrBuilder
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 封闭类:
MetadataOuterClass
public static interface MetadataOuterClass.MetadataOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
方法概要
修饰符和类型方法说明booleanMap of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.booleancontainsLabels(String key) Map of string keys and values that can be used to organize and categorize resources within a collection.已过时。intMap of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.Map of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.getAnnotationsOrDefault(String key, String defaultValue) Map of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.Map of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.com.google.protobuf.TimestampThe creation timestamp of the resource.com.google.protobuf.TimestampOrBuilderThe creation timestamp of the resource.已过时。intMap of string keys and values that can be used to organize and categorize resources within a collection.Map of string keys and values that can be used to organize and categorize resources within a collection.getLabelsOrDefault(String key, String defaultValue) Map of string keys and values that can be used to organize and categorize resources within a collection.getLabelsOrThrow(String key) Map of string keys and values that can be used to organize and categorize resources within a collection.getName()Fully qualified name of the resource.com.google.protobuf.ByteStringFully qualified name of the resource.Resource version.com.google.protobuf.ByteStringResource version.booleanThe 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
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
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
Map of string keys and values that can be used to organize and categorize resources within a collection.
map<string, string> labels = 4; -
getLabels
已过时。UsegetLabelsMap()instead. -
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
Map of string keys and values that can be used to organize and categorize resources within a collection.
map<string, string> labels = 4; -
getLabelsOrThrow
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
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
已过时。UsegetAnnotationsMap()instead. -
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
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
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;
-