Class V1Apps.ReplicaSetStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1Apps.ReplicaSetStatus.Builder>
io.kubernetes.client.proto.V1Apps.ReplicaSetStatus.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Apps.ReplicaSetStatusOrBuilder, Cloneable
Enclosing class:
V1Apps.ReplicaSetStatus

public static final class V1Apps.ReplicaSetStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Apps.ReplicaSetStatus.Builder> implements V1Apps.ReplicaSetStatusOrBuilder
 ReplicaSetStatus represents the current status of a ReplicaSet.
 
Protobuf type k8s.io.api.apps.v1.ReplicaSetStatus
  • 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<V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.Builder>
    • getDefaultInstanceForType

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

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

      public V1Apps.ReplicaSetStatus buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<V1Apps.ReplicaSetStatus.Builder>
    • setField

      public V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.Builder>
    • clearField

      public V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.Builder>
    • clearOneof

      public V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.Builder>
    • setRepeatedField

      public V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.Builder>
    • addRepeatedField

      public V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.Builder>
    • mergeFrom

      public V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.Builder>
    • mergeFrom

    • isInitialized

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

      public V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.Builder>
      Throws:
      IOException
    • hasReplicas

      public boolean hasReplicas()
       Replicas is the most recently oberved number of replicas.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
       
      optional int32 replicas = 1;
      Specified by:
      hasReplicas in interface V1Apps.ReplicaSetStatusOrBuilder
    • getReplicas

      public int getReplicas()
       Replicas is the most recently oberved number of replicas.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
       
      optional int32 replicas = 1;
      Specified by:
      getReplicas in interface V1Apps.ReplicaSetStatusOrBuilder
    • setReplicas

      public V1Apps.ReplicaSetStatus.Builder setReplicas(int value)
       Replicas is the most recently oberved number of replicas.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
       
      optional int32 replicas = 1;
    • clearReplicas

      public V1Apps.ReplicaSetStatus.Builder clearReplicas()
       Replicas is the most recently oberved number of replicas.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
       
      optional int32 replicas = 1;
    • hasFullyLabeledReplicas

      public boolean hasFullyLabeledReplicas()
       The number of pods that have labels matching the labels of the pod template of the replicaset.
       +optional
       
      optional int32 fullyLabeledReplicas = 2;
      Specified by:
      hasFullyLabeledReplicas in interface V1Apps.ReplicaSetStatusOrBuilder
    • getFullyLabeledReplicas

      public int getFullyLabeledReplicas()
       The number of pods that have labels matching the labels of the pod template of the replicaset.
       +optional
       
      optional int32 fullyLabeledReplicas = 2;
      Specified by:
      getFullyLabeledReplicas in interface V1Apps.ReplicaSetStatusOrBuilder
    • setFullyLabeledReplicas

      public V1Apps.ReplicaSetStatus.Builder setFullyLabeledReplicas(int value)
       The number of pods that have labels matching the labels of the pod template of the replicaset.
       +optional
       
      optional int32 fullyLabeledReplicas = 2;
    • clearFullyLabeledReplicas

      public V1Apps.ReplicaSetStatus.Builder clearFullyLabeledReplicas()
       The number of pods that have labels matching the labels of the pod template of the replicaset.
       +optional
       
      optional int32 fullyLabeledReplicas = 2;
    • hasReadyReplicas

      public boolean hasReadyReplicas()
       readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
       +optional
       
      optional int32 readyReplicas = 4;
      Specified by:
      hasReadyReplicas in interface V1Apps.ReplicaSetStatusOrBuilder
    • getReadyReplicas

      public int getReadyReplicas()
       readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
       +optional
       
      optional int32 readyReplicas = 4;
      Specified by:
      getReadyReplicas in interface V1Apps.ReplicaSetStatusOrBuilder
    • setReadyReplicas

      public V1Apps.ReplicaSetStatus.Builder setReadyReplicas(int value)
       readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
       +optional
       
      optional int32 readyReplicas = 4;
    • clearReadyReplicas

      public V1Apps.ReplicaSetStatus.Builder clearReadyReplicas()
       readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
       +optional
       
      optional int32 readyReplicas = 4;
    • hasAvailableReplicas

      public boolean hasAvailableReplicas()
       The number of available replicas (ready for at least minReadySeconds) for this replica set.
       +optional
       
      optional int32 availableReplicas = 5;
      Specified by:
      hasAvailableReplicas in interface V1Apps.ReplicaSetStatusOrBuilder
    • getAvailableReplicas

      public int getAvailableReplicas()
       The number of available replicas (ready for at least minReadySeconds) for this replica set.
       +optional
       
      optional int32 availableReplicas = 5;
      Specified by:
      getAvailableReplicas in interface V1Apps.ReplicaSetStatusOrBuilder
    • setAvailableReplicas

      public V1Apps.ReplicaSetStatus.Builder setAvailableReplicas(int value)
       The number of available replicas (ready for at least minReadySeconds) for this replica set.
       +optional
       
      optional int32 availableReplicas = 5;
    • clearAvailableReplicas

      public V1Apps.ReplicaSetStatus.Builder clearAvailableReplicas()
       The number of available replicas (ready for at least minReadySeconds) for this replica set.
       +optional
       
      optional int32 availableReplicas = 5;
    • hasObservedGeneration

      public boolean hasObservedGeneration()
       ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
       +optional
       
      optional int64 observedGeneration = 3;
      Specified by:
      hasObservedGeneration in interface V1Apps.ReplicaSetStatusOrBuilder
    • getObservedGeneration

      public long getObservedGeneration()
       ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
       +optional
       
      optional int64 observedGeneration = 3;
      Specified by:
      getObservedGeneration in interface V1Apps.ReplicaSetStatusOrBuilder
    • setObservedGeneration

      public V1Apps.ReplicaSetStatus.Builder setObservedGeneration(long value)
       ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
       +optional
       
      optional int64 observedGeneration = 3;
    • clearObservedGeneration

      public V1Apps.ReplicaSetStatus.Builder clearObservedGeneration()
       ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
       +optional
       
      optional int64 observedGeneration = 3;
    • getConditionsList

      public List<V1Apps.ReplicaSetCondition> getConditionsList()
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
      Specified by:
      getConditionsList in interface V1Apps.ReplicaSetStatusOrBuilder
    • getConditionsCount

      public int getConditionsCount()
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
      Specified by:
      getConditionsCount in interface V1Apps.ReplicaSetStatusOrBuilder
    • getConditions

      public V1Apps.ReplicaSetCondition getConditions(int index)
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
      Specified by:
      getConditions in interface V1Apps.ReplicaSetStatusOrBuilder
    • setConditions

      public V1Apps.ReplicaSetStatus.Builder setConditions(int index, V1Apps.ReplicaSetCondition value)
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • setConditions

      public V1Apps.ReplicaSetStatus.Builder setConditions(int index, V1Apps.ReplicaSetCondition.Builder builderForValue)
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • addConditions

       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • addConditions

      public V1Apps.ReplicaSetStatus.Builder addConditions(int index, V1Apps.ReplicaSetCondition value)
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • addConditions

       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • addConditions

      public V1Apps.ReplicaSetStatus.Builder addConditions(int index, V1Apps.ReplicaSetCondition.Builder builderForValue)
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • addAllConditions

      public V1Apps.ReplicaSetStatus.Builder addAllConditions(Iterable<? extends V1Apps.ReplicaSetCondition> values)
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • clearConditions

      public V1Apps.ReplicaSetStatus.Builder clearConditions()
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • removeConditions

      public V1Apps.ReplicaSetStatus.Builder removeConditions(int index)
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • getConditionsBuilder

      public V1Apps.ReplicaSetCondition.Builder getConditionsBuilder(int index)
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • getConditionsOrBuilder

      public V1Apps.ReplicaSetConditionOrBuilder getConditionsOrBuilder(int index)
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
      Specified by:
      getConditionsOrBuilder in interface V1Apps.ReplicaSetStatusOrBuilder
    • getConditionsOrBuilderList

      public List<? extends V1Apps.ReplicaSetConditionOrBuilder> getConditionsOrBuilderList()
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
      Specified by:
      getConditionsOrBuilderList in interface V1Apps.ReplicaSetStatusOrBuilder
    • addConditionsBuilder

      public V1Apps.ReplicaSetCondition.Builder addConditionsBuilder()
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • addConditionsBuilder

      public V1Apps.ReplicaSetCondition.Builder addConditionsBuilder(int index)
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • getConditionsBuilderList

      public List<V1Apps.ReplicaSetCondition.Builder> getConditionsBuilderList()
       Represents the latest available observations of a replica set's current state.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       
      repeated .k8s.io.api.apps.v1.ReplicaSetCondition conditions = 6;
    • setUnknownFields

      public final V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.Builder>
    • mergeUnknownFields

      public final V1Apps.ReplicaSetStatus.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<V1Apps.ReplicaSetStatus.Builder>