Class Generated.PodResourceClaim.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.PodResourceClaimOrBuilder
    Enclosing class:
    Generated.PodResourceClaim

    public static final class Generated.PodResourceClaim.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodResourceClaim.Builder>
    implements Generated.PodResourceClaimOrBuilder
     PodResourceClaim references exactly one ResourceClaim, either directly
     or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim
     for the pod.
    
     It adds a name to it that uniquely identifies the ResourceClaim inside the Pod.
     Containers that need access to the ResourceClaim reference it with this name.
     
    Protobuf type k8s.io.api.core.v1.PodResourceClaim
    • 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.PodResourceClaim.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.PodResourceClaim.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public boolean hasName()
         Name uniquely identifies this resource claim inside the pod.
         This must be a DNS_LABEL.
         
        optional string name = 1;
        Specified by:
        hasName in interface Generated.PodResourceClaimOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         Name uniquely identifies this resource claim inside the pod.
         This must be a DNS_LABEL.
         
        optional string name = 1;
        Specified by:
        getName in interface Generated.PodResourceClaimOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name uniquely identifies this resource claim inside the pod.
         This must be a DNS_LABEL.
         
        optional string name = 1;
        Specified by:
        getNameBytes in interface Generated.PodResourceClaimOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Generated.PodResourceClaim.Builder setName​(String value)
         Name uniquely identifies this resource claim inside the pod.
         This must be a DNS_LABEL.
         
        optional string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Generated.PodResourceClaim.Builder clearName()
         Name uniquely identifies this resource claim inside the pod.
         This must be a DNS_LABEL.
         
        optional string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Generated.PodResourceClaim.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name uniquely identifies this resource claim inside the pod.
         This must be a DNS_LABEL.
         
        optional string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasResourceClaimName

        public boolean hasResourceClaimName()
         ResourceClaimName is the name of a ResourceClaim object in the same
         namespace as this pod.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimName = 3;
        Specified by:
        hasResourceClaimName in interface Generated.PodResourceClaimOrBuilder
        Returns:
        Whether the resourceClaimName field is set.
      • getResourceClaimName

        public String getResourceClaimName()
         ResourceClaimName is the name of a ResourceClaim object in the same
         namespace as this pod.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimName = 3;
        Specified by:
        getResourceClaimName in interface Generated.PodResourceClaimOrBuilder
        Returns:
        The resourceClaimName.
      • getResourceClaimNameBytes

        public com.google.protobuf.ByteString getResourceClaimNameBytes()
         ResourceClaimName is the name of a ResourceClaim object in the same
         namespace as this pod.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimName = 3;
        Specified by:
        getResourceClaimNameBytes in interface Generated.PodResourceClaimOrBuilder
        Returns:
        The bytes for resourceClaimName.
      • setResourceClaimName

        public Generated.PodResourceClaim.Builder setResourceClaimName​(String value)
         ResourceClaimName is the name of a ResourceClaim object in the same
         namespace as this pod.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimName = 3;
        Parameters:
        value - The resourceClaimName to set.
        Returns:
        This builder for chaining.
      • clearResourceClaimName

        public Generated.PodResourceClaim.Builder clearResourceClaimName()
         ResourceClaimName is the name of a ResourceClaim object in the same
         namespace as this pod.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimName = 3;
        Returns:
        This builder for chaining.
      • setResourceClaimNameBytes

        public Generated.PodResourceClaim.Builder setResourceClaimNameBytes​(com.google.protobuf.ByteString value)
         ResourceClaimName is the name of a ResourceClaim object in the same
         namespace as this pod.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimName = 3;
        Parameters:
        value - The bytes for resourceClaimName to set.
        Returns:
        This builder for chaining.
      • hasResourceClaimTemplateName

        public boolean hasResourceClaimTemplateName()
         ResourceClaimTemplateName is the name of a ResourceClaimTemplate
         object in the same namespace as this pod.
        
         The template will be used to create a new ResourceClaim, which will
         be bound to this pod. When this pod is deleted, the ResourceClaim
         will also be deleted. The pod name and resource name, along with a
         generated component, will be used to form a unique name for the
         ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
        
         This field is immutable and no changes will be made to the
         corresponding ResourceClaim by the control plane after creating the
         ResourceClaim.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimTemplateName = 4;
        Specified by:
        hasResourceClaimTemplateName in interface Generated.PodResourceClaimOrBuilder
        Returns:
        Whether the resourceClaimTemplateName field is set.
      • getResourceClaimTemplateName

        public String getResourceClaimTemplateName()
         ResourceClaimTemplateName is the name of a ResourceClaimTemplate
         object in the same namespace as this pod.
        
         The template will be used to create a new ResourceClaim, which will
         be bound to this pod. When this pod is deleted, the ResourceClaim
         will also be deleted. The pod name and resource name, along with a
         generated component, will be used to form a unique name for the
         ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
        
         This field is immutable and no changes will be made to the
         corresponding ResourceClaim by the control plane after creating the
         ResourceClaim.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimTemplateName = 4;
        Specified by:
        getResourceClaimTemplateName in interface Generated.PodResourceClaimOrBuilder
        Returns:
        The resourceClaimTemplateName.
      • getResourceClaimTemplateNameBytes

        public com.google.protobuf.ByteString getResourceClaimTemplateNameBytes()
         ResourceClaimTemplateName is the name of a ResourceClaimTemplate
         object in the same namespace as this pod.
        
         The template will be used to create a new ResourceClaim, which will
         be bound to this pod. When this pod is deleted, the ResourceClaim
         will also be deleted. The pod name and resource name, along with a
         generated component, will be used to form a unique name for the
         ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
        
         This field is immutable and no changes will be made to the
         corresponding ResourceClaim by the control plane after creating the
         ResourceClaim.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimTemplateName = 4;
        Specified by:
        getResourceClaimTemplateNameBytes in interface Generated.PodResourceClaimOrBuilder
        Returns:
        The bytes for resourceClaimTemplateName.
      • setResourceClaimTemplateName

        public Generated.PodResourceClaim.Builder setResourceClaimTemplateName​(String value)
         ResourceClaimTemplateName is the name of a ResourceClaimTemplate
         object in the same namespace as this pod.
        
         The template will be used to create a new ResourceClaim, which will
         be bound to this pod. When this pod is deleted, the ResourceClaim
         will also be deleted. The pod name and resource name, along with a
         generated component, will be used to form a unique name for the
         ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
        
         This field is immutable and no changes will be made to the
         corresponding ResourceClaim by the control plane after creating the
         ResourceClaim.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimTemplateName = 4;
        Parameters:
        value - The resourceClaimTemplateName to set.
        Returns:
        This builder for chaining.
      • clearResourceClaimTemplateName

        public Generated.PodResourceClaim.Builder clearResourceClaimTemplateName()
         ResourceClaimTemplateName is the name of a ResourceClaimTemplate
         object in the same namespace as this pod.
        
         The template will be used to create a new ResourceClaim, which will
         be bound to this pod. When this pod is deleted, the ResourceClaim
         will also be deleted. The pod name and resource name, along with a
         generated component, will be used to form a unique name for the
         ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
        
         This field is immutable and no changes will be made to the
         corresponding ResourceClaim by the control plane after creating the
         ResourceClaim.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimTemplateName = 4;
        Returns:
        This builder for chaining.
      • setResourceClaimTemplateNameBytes

        public Generated.PodResourceClaim.Builder setResourceClaimTemplateNameBytes​(com.google.protobuf.ByteString value)
         ResourceClaimTemplateName is the name of a ResourceClaimTemplate
         object in the same namespace as this pod.
        
         The template will be used to create a new ResourceClaim, which will
         be bound to this pod. When this pod is deleted, the ResourceClaim
         will also be deleted. The pod name and resource name, along with a
         generated component, will be used to form a unique name for the
         ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
        
         This field is immutable and no changes will be made to the
         corresponding ResourceClaim by the control plane after creating the
         ResourceClaim.
        
         Exactly one of ResourceClaimName and ResourceClaimTemplateName must
         be set.
         
        optional string resourceClaimTemplateName = 4;
        Parameters:
        value - The bytes for resourceClaimTemplateName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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