public final class Metadata extends com.google.protobuf.GeneratedMessageV3 implements MetadataOrBuilder
Metadata information that all resources within the Mesh Configuration Protocol must have.Protobuf type
istio.mcp.v1alpha1.Metadata| 限定符和类型 | 类和说明 |
|---|---|
private static class |
Metadata.AnnotationsDefaultEntryHolder |
static class |
Metadata.Builder
Metadata information that all resources within the Mesh Configuration Protocol must have.
|
private static class |
Metadata.LabelsDefaultEntryHolder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 限定符和类型 | 字段和说明 |
|---|---|
private com.google.protobuf.MapField<java.lang.String,java.lang.String> |
annotations_ |
static int |
ANNOTATIONS_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
private com.google.protobuf.Timestamp |
createTime_ |
private static Metadata |
DEFAULT_INSTANCE |
private com.google.protobuf.MapField<java.lang.String,java.lang.String> |
labels_ |
static int |
LABELS_FIELD_NUMBER |
private byte |
memoizedIsInitialized |
private java.lang.Object |
name_ |
static int |
NAME_FIELD_NUMBER |
private static com.google.protobuf.Parser<Metadata> |
PARSER |
private static long |
serialVersionUID |
private java.lang.Object |
version_ |
static int |
VERSION_FIELD_NUMBER |
| 限定符 | 构造器和说明 |
|---|---|
private |
Metadata() |
private |
Metadata(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
private |
Metadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
boolean |
equals(java.lang.Object obj) |
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.
|
static Metadata |
getDefaultInstance() |
Metadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<Metadata> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
java.lang.String |
getVersion()
Resource version.
|
com.google.protobuf.ByteString |
getVersionBytes()
Resource version.
|
boolean |
hasCreateTime()
The creation timestamp of the resource.
|
int |
hashCode() |
private com.google.protobuf.MapField<java.lang.String,java.lang.String> |
internalGetAnnotations() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
private com.google.protobuf.MapField<java.lang.String,java.lang.String> |
internalGetLabels() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Metadata.Builder |
newBuilder() |
static Metadata.Builder |
newBuilder(Metadata prototype) |
Metadata.Builder |
newBuilderForType() |
protected Metadata.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Metadata |
parseDelimitedFrom(java.io.InputStream input) |
static Metadata |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Metadata |
parseFrom(byte[] data) |
static Metadata |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Metadata |
parseFrom(java.nio.ByteBuffer data) |
static Metadata |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Metadata |
parseFrom(com.google.protobuf.ByteString data) |
static Metadata |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Metadata |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Metadata |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Metadata |
parseFrom(java.io.InputStream input) |
static Metadata |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Metadata> |
parser() |
Metadata.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, 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, getSerializedSizeInternal, isInitializedInternal, makeImmutableInternal, mergeFromInternal, toByteArray, toByteString, writeDelimitedTo, writeTo, writeToInternalprivate static final long serialVersionUID
public static final int NAME_FIELD_NUMBER
private volatile java.lang.Object name_
public static final int CREATE_TIME_FIELD_NUMBER
private com.google.protobuf.Timestamp createTime_
public static final int VERSION_FIELD_NUMBER
private volatile java.lang.Object version_
public static final int LABELS_FIELD_NUMBER
private com.google.protobuf.MapField<java.lang.String,java.lang.String> labels_
public static final int ANNOTATIONS_FIELD_NUMBER
private com.google.protobuf.MapField<java.lang.String,java.lang.String> annotations_
private byte memoizedIsInitialized
private static final Metadata DEFAULT_INSTANCE
private static final com.google.protobuf.Parser<Metadata> PARSER
private Metadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
private Metadata()
private Metadata(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionprotected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public 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;getName 在接口中 MetadataOrBuilderpublic 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;getNameBytes 在接口中 MetadataOrBuilderpublic boolean hasCreateTime()
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;hasCreateTime 在接口中 MetadataOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;getCreateTime 在接口中 MetadataOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;getCreateTimeOrBuilder 在接口中 MetadataOrBuilderpublic 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;getVersion 在接口中 MetadataOrBuilderpublic 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;getVersionBytes 在接口中 MetadataOrBuilderprivate com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetLabels()
public int getLabelsCount()
MetadataOrBuilderMap of string keys and values that can be used to organize and categorize resources within a collection.
map<string, string> labels = 4;getLabelsCount 在接口中 MetadataOrBuilderpublic 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;containsLabels 在接口中 MetadataOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels 在接口中 MetadataOrBuilderpublic 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;getLabelsMap 在接口中 MetadataOrBuilderpublic 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;getLabelsOrDefault 在接口中 MetadataOrBuilderpublic 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;getLabelsOrThrow 在接口中 MetadataOrBuilderprivate com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetAnnotations()
public int getAnnotationsCount()
MetadataOrBuilderMap 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;getAnnotationsCount 在接口中 MetadataOrBuilderpublic 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;containsAnnotations 在接口中 MetadataOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getAnnotations()
getAnnotationsMap() instead.getAnnotations 在接口中 MetadataOrBuilderpublic 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;getAnnotationsMap 在接口中 MetadataOrBuilderpublic 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;getAnnotationsOrDefault 在接口中 MetadataOrBuilderpublic 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;getAnnotationsOrThrow 在接口中 MetadataOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static Metadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metadata parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Metadata parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Metadata parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Metadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Metadata parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Metadata parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Metadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Metadata.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static Metadata.Builder newBuilder()
public static Metadata.Builder newBuilder(Metadata prototype)
public Metadata.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected Metadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static Metadata getDefaultInstance()
public static com.google.protobuf.Parser<Metadata> parser()
public com.google.protobuf.Parser<Metadata> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public Metadata getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2018–2020 Alibaba Group. All rights reserved.