public static final class MetadataOuterClass.Metadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder> implements MetadataOuterClass.MetadataOrBuilder
Metadata information that all resources within the Mesh Configuration Protocol must have.Protobuf type
istio.mcp.v1alpha1.Metadata| 限定符和类型 | 方法和说明 |
|---|---|
MetadataOuterClass.Metadata.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MetadataOuterClass.Metadata |
build() |
MetadataOuterClass.Metadata |
buildPartial() |
MetadataOuterClass.Metadata.Builder |
clear() |
MetadataOuterClass.Metadata.Builder |
clearAnnotations() |
MetadataOuterClass.Metadata.Builder |
clearCreateTime()
The creation timestamp of the resource.
|
MetadataOuterClass.Metadata.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MetadataOuterClass.Metadata.Builder |
clearLabels() |
MetadataOuterClass.Metadata.Builder |
clearName()
Fully qualified name of the resource.
|
MetadataOuterClass.Metadata.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MetadataOuterClass.Metadata.Builder |
clearVersion()
Resource version.
|
MetadataOuterClass.Metadata.Builder |
clone() |
boolean |
containsAnnotations(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(String key)
Map of string keys and values that can be used to organize and categorize
resources within a collection.
|
Map<String,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.
|
Map<String,String> |
getAnnotationsMap()
Map of string keys and values that can be used by source and sink to communicate
arbitrary metadata about this resource.
|
String |
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.
|
String |
getAnnotationsOrThrow(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.Timestamp.Builder |
getCreateTimeBuilder()
The creation timestamp of the resource.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The creation timestamp of the resource.
|
MetadataOuterClass.Metadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getLabels()
已过时。
|
int |
getLabelsCount()
Map of string keys and values that can be used to organize and categorize
resources within a collection.
|
Map<String,String> |
getLabelsMap()
Map of string keys and values that can be used to organize and categorize
resources within a collection.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Map of string keys and values that can be used to organize and categorize
resources within a collection.
|
String |
getLabelsOrThrow(String key)
Map of string keys and values that can be used to organize and categorize
resources within a collection.
|
Map<String,String> |
getMutableAnnotations()
已过时。
|
Map<String,String> |
getMutableLabels()
已过时。
|
String |
getName()
Fully qualified name of the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
Fully qualified name of the resource.
|
String |
getVersion()
Resource version.
|
com.google.protobuf.ByteString |
getVersionBytes()
Resource version.
|
boolean |
hasCreateTime()
The creation timestamp of the resource.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
MetadataOuterClass.Metadata.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
The creation timestamp of the resource.
|
MetadataOuterClass.Metadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MetadataOuterClass.Metadata.Builder |
mergeFrom(com.google.protobuf.Message other) |
MetadataOuterClass.Metadata.Builder |
mergeFrom(MetadataOuterClass.Metadata other) |
MetadataOuterClass.Metadata.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MetadataOuterClass.Metadata.Builder |
putAllAnnotations(Map<String,String> values)
Map of string keys and values that can be used by source and sink to communicate
arbitrary metadata about this resource.
|
MetadataOuterClass.Metadata.Builder |
putAllLabels(Map<String,String> values)
Map of string keys and values that can be used to organize and categorize
resources within a collection.
|
MetadataOuterClass.Metadata.Builder |
putAnnotations(String key,
String value)
Map of string keys and values that can be used by source and sink to communicate
arbitrary metadata about this resource.
|
MetadataOuterClass.Metadata.Builder |
putLabels(String key,
String value)
Map of string keys and values that can be used to organize and categorize
resources within a collection.
|
MetadataOuterClass.Metadata.Builder |
removeAnnotations(String key)
Map of string keys and values that can be used by source and sink to communicate
arbitrary metadata about this resource.
|
MetadataOuterClass.Metadata.Builder |
removeLabels(String key)
Map of string keys and values that can be used to organize and categorize
resources within a collection.
|
MetadataOuterClass.Metadata.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The creation timestamp of the resource.
|
MetadataOuterClass.Metadata.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
The creation timestamp of the resource.
|
MetadataOuterClass.Metadata.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MetadataOuterClass.Metadata.Builder |
setName(String value)
Fully qualified name of the resource.
|
MetadataOuterClass.Metadata.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Fully qualified name of the resource.
|
MetadataOuterClass.Metadata.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MetadataOuterClass.Metadata.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MetadataOuterClass.Metadata.Builder |
setVersion(String value)
Resource version.
|
MetadataOuterClass.Metadata.Builder |
setVersionBytes(com.google.protobuf.ByteString value)
Resource version.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public MetadataOuterClass.Metadata.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public MetadataOuterClass.Metadata getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic MetadataOuterClass.Metadata build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic MetadataOuterClass.Metadata buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic MetadataOuterClass.Metadata.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public MetadataOuterClass.Metadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public MetadataOuterClass.Metadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public MetadataOuterClass.Metadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public MetadataOuterClass.Metadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public MetadataOuterClass.Metadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public MetadataOuterClass.Metadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<MetadataOuterClass.Metadata.Builder>public MetadataOuterClass.Metadata.Builder mergeFrom(MetadataOuterClass.Metadata other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public MetadataOuterClass.Metadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<MetadataOuterClass.Metadata.Builder>IOExceptionpublic 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 在接口中 MetadataOuterClass.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 在接口中 MetadataOuterClass.MetadataOrBuilderpublic MetadataOuterClass.Metadata.Builder setName(String value)
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;value - The name to set.public MetadataOuterClass.Metadata.Builder clearName()
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;public MetadataOuterClass.Metadata.Builder setNameBytes(com.google.protobuf.ByteString value)
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;value - The bytes for name to set.public boolean hasCreateTime()
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;hasCreateTime 在接口中 MetadataOuterClass.MetadataOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;getCreateTime 在接口中 MetadataOuterClass.MetadataOrBuilderpublic MetadataOuterClass.Metadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;public MetadataOuterClass.Metadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;public MetadataOuterClass.Metadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;public MetadataOuterClass.Metadata.Builder clearCreateTime()
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;public 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 在接口中 MetadataOuterClass.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 在接口中 MetadataOuterClass.MetadataOrBuilderpublic MetadataOuterClass.Metadata.Builder setVersion(String value)
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;value - The version to set.public MetadataOuterClass.Metadata.Builder clearVersion()
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;public MetadataOuterClass.Metadata.Builder setVersionBytes(com.google.protobuf.ByteString value)
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;value - The bytes for version to set.public int getLabelsCount()
MetadataOuterClass.MetadataOrBuilderMap of string keys and values that can be used to organize and categorize resources within a collection.
map<string, string> labels = 4;public boolean containsLabels(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;@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.public Map<String,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;public String getLabelsOrDefault(String key, 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;public String getLabelsOrThrow(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;public MetadataOuterClass.Metadata.Builder clearLabels()
public MetadataOuterClass.Metadata.Builder removeLabels(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;@Deprecated public Map<String,String> getMutableLabels()
public MetadataOuterClass.Metadata.Builder putLabels(String key, String value)
Map of string keys and values that can be used to organize and categorize resources within a collection.
map<string, string> labels = 4;public MetadataOuterClass.Metadata.Builder putAllLabels(Map<String,String> values)
Map of string keys and values that can be used to organize and categorize resources within a collection.
map<string, string> labels = 4;public int getAnnotationsCount()
MetadataOuterClass.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;public boolean containsAnnotations(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;@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.public Map<String,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;public String 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<string, string> annotations = 5;public String getAnnotationsOrThrow(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;public MetadataOuterClass.Metadata.Builder clearAnnotations()
public MetadataOuterClass.Metadata.Builder removeAnnotations(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;@Deprecated public Map<String,String> getMutableAnnotations()
public MetadataOuterClass.Metadata.Builder putAnnotations(String key, String value)
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;public MetadataOuterClass.Metadata.Builder putAllAnnotations(Map<String,String> values)
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;public final MetadataOuterClass.Metadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>public final MetadataOuterClass.Metadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.