Class Generated.PodResourceClaim

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

    public static final class Generated.PodResourceClaim
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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 Generated.PodResourceClaim parseFrom​(ByteBuffer data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PodResourceClaim parseFrom​(ByteBuffer data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PodResourceClaim parseFrom​(com.google.protobuf.ByteString data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PodResourceClaim parseFrom​(com.google.protobuf.ByteString data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PodResourceClaim parseFrom​(byte[] data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PodResourceClaim parseFrom​(byte[] data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected Generated.PodResourceClaim.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.PodResourceClaim> 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 Generated.PodResourceClaim getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder