类 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
封闭类:
MetadataOuterClass.Metadata

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
  • 方法详细资料

    • 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

      public MetadataOuterClass.Metadata 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

      public MetadataOuterClass.Metadata 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

      public MetadataOuterClass.Metadata.Builder mergeFrom(com.google.protobuf.Message other)
      指定者:
      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

      public 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.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

      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.
      返回:
      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

      public MetadataOuterClass.Metadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
       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

      public MetadataOuterClass.Metadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       The creation timestamp of the resource.
       
      .google.protobuf.Timestamp create_time = 2;
    • clearCreateTime

      public MetadataOuterClass.Metadata.Builder 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;
      指定者:
      getCreateTimeOrBuilder 在接口中 MetadataOuterClass.MetadataOrBuilder
    • getVersion

      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.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

      public 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.
      返回:
      This builder for chaining.
    • clearVersion

      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;
      返回:
      This builder for chaining.
    • setVersionBytes

      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.
      返回:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      从接口复制的说明: MetadataOuterClass.MetadataOrBuilder
       Map of string keys and values that can be used to organize and categorize
       resources within a collection.
       
      map<string, string> labels = 4;
      指定者:
      getLabelsCount 在接口中 MetadataOuterClass.MetadataOrBuilder
    • containsLabels

      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;
      指定者:
      containsLabels 在接口中 MetadataOuterClass.MetadataOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      已过时。
      Use getLabelsMap() instead.
      指定者:
      getLabels 在接口中 MetadataOuterClass.MetadataOrBuilder
    • getLabelsMap

      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;
      指定者:
      getLabelsMap 在接口中 MetadataOuterClass.MetadataOrBuilder
    • getLabelsOrDefault

      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;
      指定者:
      getLabelsOrDefault 在接口中 MetadataOuterClass.MetadataOrBuilder
    • getLabelsOrThrow

      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;
      指定者:
      getLabelsOrThrow 在接口中 MetadataOuterClass.MetadataOrBuilder
    • clearLabels

    • removeLabels

      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;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      已过时。
      Use alternate mutation accessors instead.
    • putLabels

      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;
    • putAllLabels

      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;
    • getAnnotationsCount

      public int getAnnotationsCount()
      从接口复制的说明: MetadataOuterClass.MetadataOrBuilder
       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;
      指定者:
      getAnnotationsCount 在接口中 MetadataOuterClass.MetadataOrBuilder
    • containsAnnotations

      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;
      指定者:
      containsAnnotations 在接口中 MetadataOuterClass.MetadataOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      已过时。
      Use getAnnotationsMap() instead.
      指定者:
      getAnnotations 在接口中 MetadataOuterClass.MetadataOrBuilder
    • getAnnotationsMap

      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;
      指定者:
      getAnnotationsMap 在接口中 MetadataOuterClass.MetadataOrBuilder
    • getAnnotationsOrDefault

      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;
      指定者:
      getAnnotationsOrDefault 在接口中 MetadataOuterClass.MetadataOrBuilder
    • getAnnotationsOrThrow

      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;
      指定者:
      getAnnotationsOrThrow 在接口中 MetadataOuterClass.MetadataOrBuilder
    • clearAnnotations

      public MetadataOuterClass.Metadata.Builder clearAnnotations()
    • removeAnnotations

      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;
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      已过时。
      Use alternate mutation accessors instead.
    • putAnnotations

      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;
    • putAllAnnotations

      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;
    • 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>