Class Generated.ResourceStatus.Builder

    • Method Detail

      • 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<Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.ResourceStatus buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>
      • addRepeatedField

        public Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>
      • isInitialized

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

        public Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>
        Throws:
        IOException
      • hasName

        public boolean hasName()
         Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec.
         For DRA resources, the value must be "claim:<claim_name>/<request>".
         When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
         +required
         
        optional string name = 1;
        Specified by:
        hasName in interface Generated.ResourceStatusOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec.
         For DRA resources, the value must be "claim:<claim_name>/<request>".
         When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
         +required
         
        optional string name = 1;
        Specified by:
        getName in interface Generated.ResourceStatusOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec.
         For DRA resources, the value must be "claim:<claim_name>/<request>".
         When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
         +required
         
        optional string name = 1;
        Specified by:
        getNameBytes in interface Generated.ResourceStatusOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Generated.ResourceStatus.Builder setName​(String value)
         Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec.
         For DRA resources, the value must be "claim:<claim_name>/<request>".
         When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
         +required
         
        optional string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Generated.ResourceStatus.Builder clearName()
         Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec.
         For DRA resources, the value must be "claim:<claim_name>/<request>".
         When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
         +required
         
        optional string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Generated.ResourceStatus.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec.
         For DRA resources, the value must be "claim:<claim_name>/<request>".
         When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
         +required
         
        optional string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getResourcesList

        public List<Generated.ResourceHealth> getResourcesList()
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
        Specified by:
        getResourcesList in interface Generated.ResourceStatusOrBuilder
      • getResourcesCount

        public int getResourcesCount()
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
        Specified by:
        getResourcesCount in interface Generated.ResourceStatusOrBuilder
      • getResources

        public Generated.ResourceHealth getResources​(int index)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
        Specified by:
        getResources in interface Generated.ResourceStatusOrBuilder
      • setResources

        public Generated.ResourceStatus.Builder setResources​(int index,
                                                             Generated.ResourceHealth value)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • setResources

        public Generated.ResourceStatus.Builder setResources​(int index,
                                                             Generated.ResourceHealth.Builder builderForValue)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • addResources

        public Generated.ResourceStatus.Builder addResources​(Generated.ResourceHealth value)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • addResources

        public Generated.ResourceStatus.Builder addResources​(int index,
                                                             Generated.ResourceHealth value)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • addResources

        public Generated.ResourceStatus.Builder addResources​(Generated.ResourceHealth.Builder builderForValue)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • addResources

        public Generated.ResourceStatus.Builder addResources​(int index,
                                                             Generated.ResourceHealth.Builder builderForValue)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • addAllResources

        public Generated.ResourceStatus.Builder addAllResources​(Iterable<? extends Generated.ResourceHealth> values)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • clearResources

        public Generated.ResourceStatus.Builder clearResources()
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • removeResources

        public Generated.ResourceStatus.Builder removeResources​(int index)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • getResourcesBuilder

        public Generated.ResourceHealth.Builder getResourcesBuilder​(int index)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • getResourcesOrBuilder

        public Generated.ResourceHealthOrBuilder getResourcesOrBuilder​(int index)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
        Specified by:
        getResourcesOrBuilder in interface Generated.ResourceStatusOrBuilder
      • getResourcesOrBuilderList

        public List<? extends Generated.ResourceHealthOrBuilder> getResourcesOrBuilderList()
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
        Specified by:
        getResourcesOrBuilderList in interface Generated.ResourceStatusOrBuilder
      • addResourcesBuilder

        public Generated.ResourceHealth.Builder addResourcesBuilder()
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • addResourcesBuilder

        public Generated.ResourceHealth.Builder addResourcesBuilder​(int index)
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • getResourcesBuilderList

        public List<Generated.ResourceHealth.Builder> getResourcesBuilderList()
         List of unique resources health. Each element in the list contains an unique resource ID and its health.
         At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
         If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
         See ResourceID type definition for a specific format it has in various use cases.
         +listType=map
         +listMapKey=resourceID
         
        repeated .k8s.io.api.core.v1.ResourceHealth resources = 2;
      • setUnknownFields

        public final Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>
      • mergeUnknownFields

        public final Generated.ResourceStatus.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<Generated.ResourceStatus.Builder>