Class Meta.ObjectMeta

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.Meta.ObjectMeta
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Meta.ObjectMetaOrBuilder, Serializable
Enclosing class:
Meta

public static final class Meta.ObjectMeta extends com.google.protobuf.GeneratedMessageV3 implements Meta.ObjectMetaOrBuilder
 ObjectMeta is metadata that all persisted resources must have, which includes all objects
 users must create.
 
Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • GENERATENAME_FIELD_NUMBER

      public static final int GENERATENAME_FIELD_NUMBER
      See Also:
    • NAMESPACE_FIELD_NUMBER

      public static final int NAMESPACE_FIELD_NUMBER
      See Also:
    • UID_FIELD_NUMBER

      public static final int UID_FIELD_NUMBER
      See Also:
    • RESOURCEVERSION_FIELD_NUMBER

      public static final int RESOURCEVERSION_FIELD_NUMBER
      See Also:
    • GENERATION_FIELD_NUMBER

      public static final int GENERATION_FIELD_NUMBER
      See Also:
    • CREATIONTIMESTAMP_FIELD_NUMBER

      public static final int CREATIONTIMESTAMP_FIELD_NUMBER
      See Also:
    • DELETIONTIMESTAMP_FIELD_NUMBER

      public static final int DELETIONTIMESTAMP_FIELD_NUMBER
      See Also:
    • DELETIONGRACEPERIODSECONDS_FIELD_NUMBER

      public static final int DELETIONGRACEPERIODSECONDS_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • ANNOTATIONS_FIELD_NUMBER

      public static final int ANNOTATIONS_FIELD_NUMBER
      See Also:
    • OWNERREFERENCES_FIELD_NUMBER

      public static final int OWNERREFERENCES_FIELD_NUMBER
      See Also:
    • FINALIZERS_FIELD_NUMBER

      public static final int FINALIZERS_FIELD_NUMBER
      See Also:
    • CLUSTERNAME_FIELD_NUMBER

      public static final int CLUSTERNAME_FIELD_NUMBER
      See Also:
    • MANAGEDFIELDS_FIELD_NUMBER

      public static final int MANAGEDFIELDS_FIELD_NUMBER
      See Also:
    • PARSER

      @Deprecated public static final com.google.protobuf.Parser<Meta.ObjectMeta> PARSER
      Deprecated.
  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasName

      public boolean hasName()
       Name must be unique within a namespace. Is required when creating resources, although
       some resources may allow a client to request the generation of an appropriate name
       automatically. Name is primarily intended for creation idempotence and configuration
       definition.
       Cannot be updated.
       More info: https://kubernetes.io/docs/user-guide/identifiers#names
       +optional
       
      optional string name = 1;
      Specified by:
      hasName in interface Meta.ObjectMetaOrBuilder
    • getName

      public String getName()
       Name must be unique within a namespace. Is required when creating resources, although
       some resources may allow a client to request the generation of an appropriate name
       automatically. Name is primarily intended for creation idempotence and configuration
       definition.
       Cannot be updated.
       More info: https://kubernetes.io/docs/user-guide/identifiers#names
       +optional
       
      optional string name = 1;
      Specified by:
      getName in interface Meta.ObjectMetaOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name must be unique within a namespace. Is required when creating resources, although
       some resources may allow a client to request the generation of an appropriate name
       automatically. Name is primarily intended for creation idempotence and configuration
       definition.
       Cannot be updated.
       More info: https://kubernetes.io/docs/user-guide/identifiers#names
       +optional
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface Meta.ObjectMetaOrBuilder
    • hasGenerateName

      public boolean hasGenerateName()
       GenerateName is an optional prefix, used by the server, to generate a unique
       name ONLY IF the Name field has not been provided.
       If this field is used, the name returned to the client will be different
       than the name passed. This value will also be combined with a unique suffix.
       The provided value has the same validation rules as the Name field,
       and may be truncated by the length of the suffix required to make the value
       unique on the server.
       If this field is specified and the generated name exists, the server will
       NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
       ServerTimeout indicating a unique name could not be found in the time allotted, and the client
       should retry (optionally after the time indicated in the Retry-After header).
       Applied only if Name is not specified.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
       +optional
       
      optional string generateName = 2;
      Specified by:
      hasGenerateName in interface Meta.ObjectMetaOrBuilder
    • getGenerateName

      public String getGenerateName()
       GenerateName is an optional prefix, used by the server, to generate a unique
       name ONLY IF the Name field has not been provided.
       If this field is used, the name returned to the client will be different
       than the name passed. This value will also be combined with a unique suffix.
       The provided value has the same validation rules as the Name field,
       and may be truncated by the length of the suffix required to make the value
       unique on the server.
       If this field is specified and the generated name exists, the server will
       NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
       ServerTimeout indicating a unique name could not be found in the time allotted, and the client
       should retry (optionally after the time indicated in the Retry-After header).
       Applied only if Name is not specified.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
       +optional
       
      optional string generateName = 2;
      Specified by:
      getGenerateName in interface Meta.ObjectMetaOrBuilder
    • getGenerateNameBytes

      public com.google.protobuf.ByteString getGenerateNameBytes()
       GenerateName is an optional prefix, used by the server, to generate a unique
       name ONLY IF the Name field has not been provided.
       If this field is used, the name returned to the client will be different
       than the name passed. This value will also be combined with a unique suffix.
       The provided value has the same validation rules as the Name field,
       and may be truncated by the length of the suffix required to make the value
       unique on the server.
       If this field is specified and the generated name exists, the server will
       NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
       ServerTimeout indicating a unique name could not be found in the time allotted, and the client
       should retry (optionally after the time indicated in the Retry-After header).
       Applied only if Name is not specified.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
       +optional
       
      optional string generateName = 2;
      Specified by:
      getGenerateNameBytes in interface Meta.ObjectMetaOrBuilder
    • hasNamespace

      public boolean hasNamespace()
       Namespace defines the space within which each name must be unique. An empty namespace is
       equivalent to the "default" namespace, but "default" is the canonical representation.
       Not all objects are required to be scoped to a namespace - the value of this field for
       those objects will be empty.
       Must be a DNS_LABEL.
       Cannot be updated.
       More info: https://kubernetes.io/docs/user-guide/namespaces
       +optional
       
      optional string namespace = 3;
      Specified by:
      hasNamespace in interface Meta.ObjectMetaOrBuilder
    • getNamespace

      public String getNamespace()
       Namespace defines the space within which each name must be unique. An empty namespace is
       equivalent to the "default" namespace, but "default" is the canonical representation.
       Not all objects are required to be scoped to a namespace - the value of this field for
       those objects will be empty.
       Must be a DNS_LABEL.
       Cannot be updated.
       More info: https://kubernetes.io/docs/user-guide/namespaces
       +optional
       
      optional string namespace = 3;
      Specified by:
      getNamespace in interface Meta.ObjectMetaOrBuilder
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       Namespace defines the space within which each name must be unique. An empty namespace is
       equivalent to the "default" namespace, but "default" is the canonical representation.
       Not all objects are required to be scoped to a namespace - the value of this field for
       those objects will be empty.
       Must be a DNS_LABEL.
       Cannot be updated.
       More info: https://kubernetes.io/docs/user-guide/namespaces
       +optional
       
      optional string namespace = 3;
      Specified by:
      getNamespaceBytes in interface Meta.ObjectMetaOrBuilder
    • hasSelfLink

      public boolean hasSelfLink()
       SelfLink is a URL representing this object.
       Populated by the system.
       Read-only.
       DEPRECATED
       Kubernetes will stop propagating this field in 1.20 release and the field is planned
       to be removed in 1.21 release.
       +optional
       
      optional string selfLink = 4;
      Specified by:
      hasSelfLink in interface Meta.ObjectMetaOrBuilder
    • getSelfLink

      public String getSelfLink()
       SelfLink is a URL representing this object.
       Populated by the system.
       Read-only.
       DEPRECATED
       Kubernetes will stop propagating this field in 1.20 release and the field is planned
       to be removed in 1.21 release.
       +optional
       
      optional string selfLink = 4;
      Specified by:
      getSelfLink in interface Meta.ObjectMetaOrBuilder
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       SelfLink is a URL representing this object.
       Populated by the system.
       Read-only.
       DEPRECATED
       Kubernetes will stop propagating this field in 1.20 release and the field is planned
       to be removed in 1.21 release.
       +optional
       
      optional string selfLink = 4;
      Specified by:
      getSelfLinkBytes in interface Meta.ObjectMetaOrBuilder
    • hasUid

      public boolean hasUid()
       UID is the unique in time and space value for this object. It is typically generated by
       the server on successful creation of a resource and is not allowed to change on PUT
       operations.
       Populated by the system.
       Read-only.
       More info: https://kubernetes.io/docs/user-guide/identifiers#uids
       +optional
       
      optional string uid = 5;
      Specified by:
      hasUid in interface Meta.ObjectMetaOrBuilder
    • getUid

      public String getUid()
       UID is the unique in time and space value for this object. It is typically generated by
       the server on successful creation of a resource and is not allowed to change on PUT
       operations.
       Populated by the system.
       Read-only.
       More info: https://kubernetes.io/docs/user-guide/identifiers#uids
       +optional
       
      optional string uid = 5;
      Specified by:
      getUid in interface Meta.ObjectMetaOrBuilder
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       UID is the unique in time and space value for this object. It is typically generated by
       the server on successful creation of a resource and is not allowed to change on PUT
       operations.
       Populated by the system.
       Read-only.
       More info: https://kubernetes.io/docs/user-guide/identifiers#uids
       +optional
       
      optional string uid = 5;
      Specified by:
      getUidBytes in interface Meta.ObjectMetaOrBuilder
    • hasResourceVersion

      public boolean hasResourceVersion()
       An opaque value that represents the internal version of this object that can
       be used by clients to determine when objects have changed. May be used for optimistic
       concurrency, change detection, and the watch operation on a resource or set of resources.
       Clients must treat these values as opaque and passed unmodified back to the server.
       They may only be valid for a particular resource or set of resources.
       Populated by the system.
       Read-only.
       Value must be treated as opaque by clients and .
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
       +optional
       
      optional string resourceVersion = 6;
      Specified by:
      hasResourceVersion in interface Meta.ObjectMetaOrBuilder
    • getResourceVersion

      public String getResourceVersion()
       An opaque value that represents the internal version of this object that can
       be used by clients to determine when objects have changed. May be used for optimistic
       concurrency, change detection, and the watch operation on a resource or set of resources.
       Clients must treat these values as opaque and passed unmodified back to the server.
       They may only be valid for a particular resource or set of resources.
       Populated by the system.
       Read-only.
       Value must be treated as opaque by clients and .
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
       +optional
       
      optional string resourceVersion = 6;
      Specified by:
      getResourceVersion in interface Meta.ObjectMetaOrBuilder
    • getResourceVersionBytes

      public com.google.protobuf.ByteString getResourceVersionBytes()
       An opaque value that represents the internal version of this object that can
       be used by clients to determine when objects have changed. May be used for optimistic
       concurrency, change detection, and the watch operation on a resource or set of resources.
       Clients must treat these values as opaque and passed unmodified back to the server.
       They may only be valid for a particular resource or set of resources.
       Populated by the system.
       Read-only.
       Value must be treated as opaque by clients and .
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
       +optional
       
      optional string resourceVersion = 6;
      Specified by:
      getResourceVersionBytes in interface Meta.ObjectMetaOrBuilder
    • hasGeneration

      public boolean hasGeneration()
       A sequence number representing a specific generation of the desired state.
       Populated by the system. Read-only.
       +optional
       
      optional int64 generation = 7;
      Specified by:
      hasGeneration in interface Meta.ObjectMetaOrBuilder
    • getGeneration

      public long getGeneration()
       A sequence number representing a specific generation of the desired state.
       Populated by the system. Read-only.
       +optional
       
      optional int64 generation = 7;
      Specified by:
      getGeneration in interface Meta.ObjectMetaOrBuilder
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       CreationTimestamp is a timestamp representing the server time when this object was
       created. It is not guaranteed to be set in happens-before order across separate operations.
       Clients may not set this value. It is represented in RFC3339 form and is in UTC.
       Populated by the system.
       Read-only.
       Null for lists.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
      Specified by:
      hasCreationTimestamp in interface Meta.ObjectMetaOrBuilder
    • getCreationTimestamp

      public Meta.Time getCreationTimestamp()
       CreationTimestamp is a timestamp representing the server time when this object was
       created. It is not guaranteed to be set in happens-before order across separate operations.
       Clients may not set this value. It is represented in RFC3339 form and is in UTC.
       Populated by the system.
       Read-only.
       Null for lists.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
      Specified by:
      getCreationTimestamp in interface Meta.ObjectMetaOrBuilder
    • getCreationTimestampOrBuilder

      public Meta.TimeOrBuilder getCreationTimestampOrBuilder()
       CreationTimestamp is a timestamp representing the server time when this object was
       created. It is not guaranteed to be set in happens-before order across separate operations.
       Clients may not set this value. It is represented in RFC3339 form and is in UTC.
       Populated by the system.
       Read-only.
       Null for lists.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
      Specified by:
      getCreationTimestampOrBuilder in interface Meta.ObjectMetaOrBuilder
    • hasDeletionTimestamp

      public boolean hasDeletionTimestamp()
       DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
       field is set by the server when a graceful deletion is requested by the user, and is not
       directly settable by a client. The resource is expected to be deleted (no longer visible
       from resource lists, and not reachable by name) after the time in this field, once the
       finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.
       Once the deletionTimestamp is set, this value may not be unset or be set further into the
       future, although it may be shortened or the resource may be deleted prior to this time.
       For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react
       by sending a graceful termination signal to the containers in the pod. After that 30 seconds,
       the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,
       remove the pod from the API. In the presence of network partitions, this object may still
       exist after this timestamp, until an administrator or automated process can determine the
       resource is fully terminated.
       If not set, graceful deletion of the object has not been requested.
       Populated by the system when a graceful deletion is requested.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
      Specified by:
      hasDeletionTimestamp in interface Meta.ObjectMetaOrBuilder
    • getDeletionTimestamp

      public Meta.Time getDeletionTimestamp()
       DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
       field is set by the server when a graceful deletion is requested by the user, and is not
       directly settable by a client. The resource is expected to be deleted (no longer visible
       from resource lists, and not reachable by name) after the time in this field, once the
       finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.
       Once the deletionTimestamp is set, this value may not be unset or be set further into the
       future, although it may be shortened or the resource may be deleted prior to this time.
       For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react
       by sending a graceful termination signal to the containers in the pod. After that 30 seconds,
       the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,
       remove the pod from the API. In the presence of network partitions, this object may still
       exist after this timestamp, until an administrator or automated process can determine the
       resource is fully terminated.
       If not set, graceful deletion of the object has not been requested.
       Populated by the system when a graceful deletion is requested.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
      Specified by:
      getDeletionTimestamp in interface Meta.ObjectMetaOrBuilder
    • getDeletionTimestampOrBuilder

      public Meta.TimeOrBuilder getDeletionTimestampOrBuilder()
       DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
       field is set by the server when a graceful deletion is requested by the user, and is not
       directly settable by a client. The resource is expected to be deleted (no longer visible
       from resource lists, and not reachable by name) after the time in this field, once the
       finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.
       Once the deletionTimestamp is set, this value may not be unset or be set further into the
       future, although it may be shortened or the resource may be deleted prior to this time.
       For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react
       by sending a graceful termination signal to the containers in the pod. After that 30 seconds,
       the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,
       remove the pod from the API. In the presence of network partitions, this object may still
       exist after this timestamp, until an administrator or automated process can determine the
       resource is fully terminated.
       If not set, graceful deletion of the object has not been requested.
       Populated by the system when a graceful deletion is requested.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
      Specified by:
      getDeletionTimestampOrBuilder in interface Meta.ObjectMetaOrBuilder
    • hasDeletionGracePeriodSeconds

      public boolean hasDeletionGracePeriodSeconds()
       Number of seconds allowed for this object to gracefully terminate before
       it will be removed from the system. Only set when deletionTimestamp is also set.
       May only be shortened.
       Read-only.
       +optional
       
      optional int64 deletionGracePeriodSeconds = 10;
      Specified by:
      hasDeletionGracePeriodSeconds in interface Meta.ObjectMetaOrBuilder
    • getDeletionGracePeriodSeconds

      public long getDeletionGracePeriodSeconds()
       Number of seconds allowed for this object to gracefully terminate before
       it will be removed from the system. Only set when deletionTimestamp is also set.
       May only be shortened.
       Read-only.
       +optional
       
      optional int64 deletionGracePeriodSeconds = 10;
      Specified by:
      getDeletionGracePeriodSeconds in interface Meta.ObjectMetaOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: Meta.ObjectMetaOrBuilder
       Map of string keys and values that can be used to organize and categorize
       (scope and select) objects. May match selectors of replication controllers
       and services.
       More info: https://kubernetes.io/docs/user-guide/labels
       +optional
       
      map<string, string> labels = 11;
      Specified by:
      getLabelsCount in interface Meta.ObjectMetaOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Map of string keys and values that can be used to organize and categorize
       (scope and select) objects. May match selectors of replication controllers
       and services.
       More info: https://kubernetes.io/docs/user-guide/labels
       +optional
       
      map<string, string> labels = 11;
      Specified by:
      containsLabels in interface Meta.ObjectMetaOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface Meta.ObjectMetaOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Map of string keys and values that can be used to organize and categorize
       (scope and select) objects. May match selectors of replication controllers
       and services.
       More info: https://kubernetes.io/docs/user-guide/labels
       +optional
       
      map<string, string> labels = 11;
      Specified by:
      getLabelsMap in interface Meta.ObjectMetaOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Map of string keys and values that can be used to organize and categorize
       (scope and select) objects. May match selectors of replication controllers
       and services.
       More info: https://kubernetes.io/docs/user-guide/labels
       +optional
       
      map<string, string> labels = 11;
      Specified by:
      getLabelsOrDefault in interface Meta.ObjectMetaOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Map of string keys and values that can be used to organize and categorize
       (scope and select) objects. May match selectors of replication controllers
       and services.
       More info: https://kubernetes.io/docs/user-guide/labels
       +optional
       
      map<string, string> labels = 11;
      Specified by:
      getLabelsOrThrow in interface Meta.ObjectMetaOrBuilder
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: Meta.ObjectMetaOrBuilder
       Annotations is an unstructured key value map stored with a resource that may be
       set by external tools to store and retrieve arbitrary metadata. They are not
       queryable and should be preserved when modifying objects.
       More info: https://kubernetes.io/docs/user-guide/annotations
       +optional
       
      map<string, string> annotations = 12;
      Specified by:
      getAnnotationsCount in interface Meta.ObjectMetaOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Annotations is an unstructured key value map stored with a resource that may be
       set by external tools to store and retrieve arbitrary metadata. They are not
       queryable and should be preserved when modifying objects.
       More info: https://kubernetes.io/docs/user-guide/annotations
       +optional
       
      map<string, string> annotations = 12;
      Specified by:
      containsAnnotations in interface Meta.ObjectMetaOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface Meta.ObjectMetaOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Annotations is an unstructured key value map stored with a resource that may be
       set by external tools to store and retrieve arbitrary metadata. They are not
       queryable and should be preserved when modifying objects.
       More info: https://kubernetes.io/docs/user-guide/annotations
       +optional
       
      map<string, string> annotations = 12;
      Specified by:
      getAnnotationsMap in interface Meta.ObjectMetaOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Annotations is an unstructured key value map stored with a resource that may be
       set by external tools to store and retrieve arbitrary metadata. They are not
       queryable and should be preserved when modifying objects.
       More info: https://kubernetes.io/docs/user-guide/annotations
       +optional
       
      map<string, string> annotations = 12;
      Specified by:
      getAnnotationsOrDefault in interface Meta.ObjectMetaOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Annotations is an unstructured key value map stored with a resource that may be
       set by external tools to store and retrieve arbitrary metadata. They are not
       queryable and should be preserved when modifying objects.
       More info: https://kubernetes.io/docs/user-guide/annotations
       +optional
       
      map<string, string> annotations = 12;
      Specified by:
      getAnnotationsOrThrow in interface Meta.ObjectMetaOrBuilder
    • getOwnerReferencesList

      public List<Meta.OwnerReference> getOwnerReferencesList()
       List of objects depended by this object. If ALL objects in the list have
       been deleted, this object will be garbage collected. If this object is managed by a controller,
       then an entry in this list will point to this controller, with the controller field set to true.
       There cannot be more than one managing controller.
       +optional
       +patchMergeKey=uid
       +patchStrategy=merge
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
      Specified by:
      getOwnerReferencesList in interface Meta.ObjectMetaOrBuilder
    • getOwnerReferencesOrBuilderList

      public List<? extends Meta.OwnerReferenceOrBuilder> getOwnerReferencesOrBuilderList()
       List of objects depended by this object. If ALL objects in the list have
       been deleted, this object will be garbage collected. If this object is managed by a controller,
       then an entry in this list will point to this controller, with the controller field set to true.
       There cannot be more than one managing controller.
       +optional
       +patchMergeKey=uid
       +patchStrategy=merge
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
      Specified by:
      getOwnerReferencesOrBuilderList in interface Meta.ObjectMetaOrBuilder
    • getOwnerReferencesCount

      public int getOwnerReferencesCount()
       List of objects depended by this object. If ALL objects in the list have
       been deleted, this object will be garbage collected. If this object is managed by a controller,
       then an entry in this list will point to this controller, with the controller field set to true.
       There cannot be more than one managing controller.
       +optional
       +patchMergeKey=uid
       +patchStrategy=merge
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
      Specified by:
      getOwnerReferencesCount in interface Meta.ObjectMetaOrBuilder
    • getOwnerReferences

      public Meta.OwnerReference getOwnerReferences(int index)
       List of objects depended by this object. If ALL objects in the list have
       been deleted, this object will be garbage collected. If this object is managed by a controller,
       then an entry in this list will point to this controller, with the controller field set to true.
       There cannot be more than one managing controller.
       +optional
       +patchMergeKey=uid
       +patchStrategy=merge
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
      Specified by:
      getOwnerReferences in interface Meta.ObjectMetaOrBuilder
    • getOwnerReferencesOrBuilder

      public Meta.OwnerReferenceOrBuilder getOwnerReferencesOrBuilder(int index)
       List of objects depended by this object. If ALL objects in the list have
       been deleted, this object will be garbage collected. If this object is managed by a controller,
       then an entry in this list will point to this controller, with the controller field set to true.
       There cannot be more than one managing controller.
       +optional
       +patchMergeKey=uid
       +patchStrategy=merge
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
      Specified by:
      getOwnerReferencesOrBuilder in interface Meta.ObjectMetaOrBuilder
    • getFinalizersList

      public com.google.protobuf.ProtocolStringList getFinalizersList()
       Must be empty before the object is deleted from the registry. Each entry
       is an identifier for the responsible component that will remove the entry
       from the list. If the deletionTimestamp of the object is non-nil, entries
       in this list can only be removed.
       Finalizers may be processed and removed in any order.  Order is NOT enforced
       because it introduces significant risk of stuck finalizers.
       finalizers is a shared field, any actor with permission can reorder it.
       If the finalizer list is processed in order, then this can lead to a situation
       in which the component responsible for the first finalizer in the list is
       waiting for a signal (field value, external system, or other) produced by a
       component responsible for a finalizer later in the list, resulting in a deadlock.
       Without enforced ordering finalizers are free to order amongst themselves and
       are not vulnerable to ordering changes in the list.
       +optional
       +patchStrategy=merge
       
      repeated string finalizers = 14;
      Specified by:
      getFinalizersList in interface Meta.ObjectMetaOrBuilder
    • getFinalizersCount

      public int getFinalizersCount()
       Must be empty before the object is deleted from the registry. Each entry
       is an identifier for the responsible component that will remove the entry
       from the list. If the deletionTimestamp of the object is non-nil, entries
       in this list can only be removed.
       Finalizers may be processed and removed in any order.  Order is NOT enforced
       because it introduces significant risk of stuck finalizers.
       finalizers is a shared field, any actor with permission can reorder it.
       If the finalizer list is processed in order, then this can lead to a situation
       in which the component responsible for the first finalizer in the list is
       waiting for a signal (field value, external system, or other) produced by a
       component responsible for a finalizer later in the list, resulting in a deadlock.
       Without enforced ordering finalizers are free to order amongst themselves and
       are not vulnerable to ordering changes in the list.
       +optional
       +patchStrategy=merge
       
      repeated string finalizers = 14;
      Specified by:
      getFinalizersCount in interface Meta.ObjectMetaOrBuilder
    • getFinalizers

      public String getFinalizers(int index)
       Must be empty before the object is deleted from the registry. Each entry
       is an identifier for the responsible component that will remove the entry
       from the list. If the deletionTimestamp of the object is non-nil, entries
       in this list can only be removed.
       Finalizers may be processed and removed in any order.  Order is NOT enforced
       because it introduces significant risk of stuck finalizers.
       finalizers is a shared field, any actor with permission can reorder it.
       If the finalizer list is processed in order, then this can lead to a situation
       in which the component responsible for the first finalizer in the list is
       waiting for a signal (field value, external system, or other) produced by a
       component responsible for a finalizer later in the list, resulting in a deadlock.
       Without enforced ordering finalizers are free to order amongst themselves and
       are not vulnerable to ordering changes in the list.
       +optional
       +patchStrategy=merge
       
      repeated string finalizers = 14;
      Specified by:
      getFinalizers in interface Meta.ObjectMetaOrBuilder
    • getFinalizersBytes

      public com.google.protobuf.ByteString getFinalizersBytes(int index)
       Must be empty before the object is deleted from the registry. Each entry
       is an identifier for the responsible component that will remove the entry
       from the list. If the deletionTimestamp of the object is non-nil, entries
       in this list can only be removed.
       Finalizers may be processed and removed in any order.  Order is NOT enforced
       because it introduces significant risk of stuck finalizers.
       finalizers is a shared field, any actor with permission can reorder it.
       If the finalizer list is processed in order, then this can lead to a situation
       in which the component responsible for the first finalizer in the list is
       waiting for a signal (field value, external system, or other) produced by a
       component responsible for a finalizer later in the list, resulting in a deadlock.
       Without enforced ordering finalizers are free to order amongst themselves and
       are not vulnerable to ordering changes in the list.
       +optional
       +patchStrategy=merge
       
      repeated string finalizers = 14;
      Specified by:
      getFinalizersBytes in interface Meta.ObjectMetaOrBuilder
    • hasClusterName

      public boolean hasClusterName()
       The name of the cluster which the object belongs to.
       This is used to distinguish resources with same name and namespace in different clusters.
       This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
       +optional
       
      optional string clusterName = 15;
      Specified by:
      hasClusterName in interface Meta.ObjectMetaOrBuilder
    • getClusterName

      public String getClusterName()
       The name of the cluster which the object belongs to.
       This is used to distinguish resources with same name and namespace in different clusters.
       This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
       +optional
       
      optional string clusterName = 15;
      Specified by:
      getClusterName in interface Meta.ObjectMetaOrBuilder
    • getClusterNameBytes

      public com.google.protobuf.ByteString getClusterNameBytes()
       The name of the cluster which the object belongs to.
       This is used to distinguish resources with same name and namespace in different clusters.
       This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
       +optional
       
      optional string clusterName = 15;
      Specified by:
      getClusterNameBytes in interface Meta.ObjectMetaOrBuilder
    • getManagedFieldsList

      public List<Meta.ManagedFieldsEntry> getManagedFieldsList()
       ManagedFields maps workflow-id and version to the set of fields
       that are managed by that workflow. This is mostly for internal
       housekeeping, and users typically shouldn't need to set or
       understand this field. A workflow can be the user's name, a
       controller's name, or the name of a specific apply path like
       "ci-cd". The set of fields is always in the version that the
       workflow used when modifying the object.
       +optional
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry managedFields = 17;
      Specified by:
      getManagedFieldsList in interface Meta.ObjectMetaOrBuilder
    • getManagedFieldsOrBuilderList

      public List<? extends Meta.ManagedFieldsEntryOrBuilder> getManagedFieldsOrBuilderList()
       ManagedFields maps workflow-id and version to the set of fields
       that are managed by that workflow. This is mostly for internal
       housekeeping, and users typically shouldn't need to set or
       understand this field. A workflow can be the user's name, a
       controller's name, or the name of a specific apply path like
       "ci-cd". The set of fields is always in the version that the
       workflow used when modifying the object.
       +optional
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry managedFields = 17;
      Specified by:
      getManagedFieldsOrBuilderList in interface Meta.ObjectMetaOrBuilder
    • getManagedFieldsCount

      public int getManagedFieldsCount()
       ManagedFields maps workflow-id and version to the set of fields
       that are managed by that workflow. This is mostly for internal
       housekeeping, and users typically shouldn't need to set or
       understand this field. A workflow can be the user's name, a
       controller's name, or the name of a specific apply path like
       "ci-cd". The set of fields is always in the version that the
       workflow used when modifying the object.
       +optional
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry managedFields = 17;
      Specified by:
      getManagedFieldsCount in interface Meta.ObjectMetaOrBuilder
    • getManagedFields

      public Meta.ManagedFieldsEntry getManagedFields(int index)
       ManagedFields maps workflow-id and version to the set of fields
       that are managed by that workflow. This is mostly for internal
       housekeeping, and users typically shouldn't need to set or
       understand this field. A workflow can be the user's name, a
       controller's name, or the name of a specific apply path like
       "ci-cd". The set of fields is always in the version that the
       workflow used when modifying the object.
       +optional
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry managedFields = 17;
      Specified by:
      getManagedFields in interface Meta.ObjectMetaOrBuilder
    • getManagedFieldsOrBuilder

      public Meta.ManagedFieldsEntryOrBuilder getManagedFieldsOrBuilder(int index)
       ManagedFields maps workflow-id and version to the set of fields
       that are managed by that workflow. This is mostly for internal
       housekeeping, and users typically shouldn't need to set or
       understand this field. A workflow can be the user's name, a
       controller's name, or the name of a specific apply path like
       "ci-cd". The set of fields is always in the version that the
       workflow used when modifying the object.
       +optional
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry managedFields = 17;
      Specified by:
      getManagedFieldsOrBuilder in interface Meta.ObjectMetaOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Meta.ObjectMeta parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.ObjectMeta parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.ObjectMeta parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.ObjectMeta parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.ObjectMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.ObjectMeta parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.ObjectMeta parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Meta.ObjectMeta parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Meta.ObjectMeta parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Meta.ObjectMeta parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Meta.ObjectMeta parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Meta.ObjectMeta parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Meta.ObjectMeta.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Meta.ObjectMeta.Builder newBuilder()
    • newBuilder

      public static Meta.ObjectMeta.Builder newBuilder(Meta.ObjectMeta prototype)
    • toBuilder

      public Meta.ObjectMeta.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Meta.ObjectMeta.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Meta.ObjectMeta getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Meta.ObjectMeta> parser()
    • getParserForType

      public com.google.protobuf.Parser<Meta.ObjectMeta> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Meta.ObjectMeta getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder