Class V1.Pod.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
io.kubernetes.client.proto.V1.Pod.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.PodOrBuilder, Cloneable
Enclosing class:
V1.Pod

public static final class V1.Pod.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder> implements V1.PodOrBuilder
 Pod is a collection of containers that can run on a host. This resource is created
 by clients and scheduled onto hosts.
 
Protobuf type k8s.io.api.core.v1.Pod
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • clear

      public V1.Pod.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • getDefaultInstanceForType

      public V1.Pod getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public V1.Pod build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1.Pod buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public V1.Pod.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • setField

      public V1.Pod.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • clearField

      public V1.Pod.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • clearOneof

      public V1.Pod.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • setRepeatedField

      public V1.Pod.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • addRepeatedField

      public V1.Pod.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • mergeFrom

      public V1.Pod.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.Pod.Builder>
    • mergeFrom

      public V1.Pod.Builder mergeFrom(V1.Pod other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • mergeFrom

      public V1.Pod.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.Pod.Builder>
      Throws:
      IOException
    • hasMetadata

      public boolean hasMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      hasMetadata in interface V1.PodOrBuilder
    • getMetadata

      public Meta.ObjectMeta getMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      getMetadata in interface V1.PodOrBuilder
    • setMetadata

      public V1.Pod.Builder setMetadata(Meta.ObjectMeta value)
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • setMetadata

      public V1.Pod.Builder setMetadata(Meta.ObjectMeta.Builder builderForValue)
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • mergeMetadata

      public V1.Pod.Builder mergeMetadata(Meta.ObjectMeta value)
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • clearMetadata

      public V1.Pod.Builder clearMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • getMetadataBuilder

      public Meta.ObjectMeta.Builder getMetadataBuilder()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • getMetadataOrBuilder

      public Meta.ObjectMetaOrBuilder getMetadataOrBuilder()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      getMetadataOrBuilder in interface V1.PodOrBuilder
    • hasSpec

      public boolean hasSpec()
       Specification of the desired behavior of the pod.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodSpec spec = 2;
      Specified by:
      hasSpec in interface V1.PodOrBuilder
    • getSpec

      public V1.PodSpec getSpec()
       Specification of the desired behavior of the pod.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodSpec spec = 2;
      Specified by:
      getSpec in interface V1.PodOrBuilder
    • setSpec

      public V1.Pod.Builder setSpec(V1.PodSpec value)
       Specification of the desired behavior of the pod.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodSpec spec = 2;
    • setSpec

      public V1.Pod.Builder setSpec(V1.PodSpec.Builder builderForValue)
       Specification of the desired behavior of the pod.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodSpec spec = 2;
    • mergeSpec

      public V1.Pod.Builder mergeSpec(V1.PodSpec value)
       Specification of the desired behavior of the pod.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodSpec spec = 2;
    • clearSpec

      public V1.Pod.Builder clearSpec()
       Specification of the desired behavior of the pod.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodSpec spec = 2;
    • getSpecBuilder

      public V1.PodSpec.Builder getSpecBuilder()
       Specification of the desired behavior of the pod.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodSpec spec = 2;
    • getSpecOrBuilder

      public V1.PodSpecOrBuilder getSpecOrBuilder()
       Specification of the desired behavior of the pod.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodSpec spec = 2;
      Specified by:
      getSpecOrBuilder in interface V1.PodOrBuilder
    • hasStatus

      public boolean hasStatus()
       Most recently observed status of the pod.
       This data may not be up to date.
       Populated by the system.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodStatus status = 3;
      Specified by:
      hasStatus in interface V1.PodOrBuilder
    • getStatus

      public V1.PodStatus getStatus()
       Most recently observed status of the pod.
       This data may not be up to date.
       Populated by the system.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodStatus status = 3;
      Specified by:
      getStatus in interface V1.PodOrBuilder
    • setStatus

      public V1.Pod.Builder setStatus(V1.PodStatus value)
       Most recently observed status of the pod.
       This data may not be up to date.
       Populated by the system.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodStatus status = 3;
    • setStatus

      public V1.Pod.Builder setStatus(V1.PodStatus.Builder builderForValue)
       Most recently observed status of the pod.
       This data may not be up to date.
       Populated by the system.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodStatus status = 3;
    • mergeStatus

      public V1.Pod.Builder mergeStatus(V1.PodStatus value)
       Most recently observed status of the pod.
       This data may not be up to date.
       Populated by the system.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodStatus status = 3;
    • clearStatus

      public V1.Pod.Builder clearStatus()
       Most recently observed status of the pod.
       This data may not be up to date.
       Populated by the system.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodStatus status = 3;
    • getStatusBuilder

      public V1.PodStatus.Builder getStatusBuilder()
       Most recently observed status of the pod.
       This data may not be up to date.
       Populated by the system.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodStatus status = 3;
    • getStatusOrBuilder

      public V1.PodStatusOrBuilder getStatusOrBuilder()
       Most recently observed status of the pod.
       This data may not be up to date.
       Populated by the system.
       Read-only.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       +optional
       
      optional .k8s.io.api.core.v1.PodStatus status = 3;
      Specified by:
      getStatusOrBuilder in interface V1.PodOrBuilder
    • setUnknownFields

      public final V1.Pod.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>
    • mergeUnknownFields

      public final V1.Pod.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Pod.Builder>