类 MetadataOuterClass.Metadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MetadataOuterClass.Metadata.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
istio.mcp.v1alpha1.MetadataOuterClass.Metadata.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MetadataOuterClass.MetadataOrBuilder,Cloneable
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-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The creation timestamp of the resource.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Fully qualified name of the resource.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Resource version.clone()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.Timestamp.BuilderThe creation timestamp of the resource.com.google.protobuf.TimestampOrBuilderThe creation timestamp of the resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor已过时。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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) The creation timestamp of the resource.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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.putAllLabels(Map<String, String> values) Map of string keys and values that can be used to organize and categorize resources within a collection.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 of string keys and values that can be used to organize and categorize resources within a collection.removeAnnotations(String key) Map of string keys and values that can be used by source and sink to communicate arbitrary metadata about this resource.removeLabels(String key) Map of string keys and values that can be used to organize and categorize resources within a collection.setCreateTime(com.google.protobuf.Timestamp value) The creation timestamp of the resource.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The creation timestamp of the resource.Fully qualified name of the resource.setNameBytes(com.google.protobuf.ByteString value) Fully qualified name of the resource.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVersion(String value) Resource version.setVersionBytes(com.google.protobuf.ByteString value) Resource version.从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - 覆盖:
internalGetMapFieldReflection在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - 覆盖:
internalGetMutableMapFieldReflection在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- 指定者:
getDescriptorForType在接口中com.google.protobuf.Message.Builder- 指定者:
getDescriptorForType在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getDescriptorForType在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
setField
public MetadataOuterClass.Metadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
clearField
public MetadataOuterClass.Metadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
clearOneof
public MetadataOuterClass.Metadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
setRepeatedField
public MetadataOuterClass.Metadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
addRepeatedField
public MetadataOuterClass.Metadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
mergeFrom
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<MetadataOuterClass.Metadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
mergeFrom
public MetadataOuterClass.Metadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<MetadataOuterClass.Metadata.Builder>- 抛出:
IOException
-
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.MetadataOrBuilder- 返回:
- The name.
-
getNameBytes
public 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.MetadataOrBuilder- 返回:
- The bytes for name.
-
setName
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.- 返回:
- This builder for chaining.
-
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;- 返回:
- This builder for chaining.
-
setNameBytes
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.- 返回:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;- 指定者:
hasCreateTime在接口中MetadataOuterClass.MetadataOrBuilder- 返回:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2;- 指定者:
getCreateTime在接口中MetadataOuterClass.MetadataOrBuilder- 返回:
- The createTime.
-
setCreateTime
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2; -
setCreateTime
public MetadataOuterClass.Metadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2; -
mergeCreateTime
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2; -
clearCreateTime
The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()The creation timestamp of the resource.
.google.protobuf.Timestamp create_time = 2; -
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.MetadataOrBuilder- 返回:
- The version.
-
getVersionBytes
public 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.MetadataOrBuilder- 返回:
- The bytes for version.
-
setVersion
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.- 返回:
- This builder for chaining.
-
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;- 返回:
- This builder for chaining.
-
setVersionBytes
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.- 返回:
- This builder for chaining.
-
getLabelsCount
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; -
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; -
clearLabels
-
removeLabels
Map of string keys and values that can be used to organize and categorize resources within a collection.
map<string, string> labels = 4; -
getMutableLabels
已过时。Use alternate mutation accessors instead. -
putLabels
Map of string keys and values that can be used to organize and categorize resources within a collection.
map<string, string> labels = 4; -
putAllLabels
Map of string keys and values that can be used to organize and categorize resources within a collection.
map<string, string> labels = 4; -
getAnnotationsCount
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; -
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; -
clearAnnotations
-
removeAnnotations
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; -
getMutableAnnotations
已过时。Use alternate mutation accessors instead. -
putAnnotations
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; -
putAllAnnotations
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; -
setUnknownFields
public final MetadataOuterClass.Metadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-
mergeUnknownFields
public final MetadataOuterClass.Metadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<MetadataOuterClass.Metadata.Builder>
-