Class PodStatusPubSub.ClaimSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PodStatusPubSub.ClaimSource.Builder>
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.Builder
All Implemented Interfaces:
PodStatusPubSub.ClaimSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PodStatusPubSub.ClaimSource

public static final class PodStatusPubSub.ClaimSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PodStatusPubSub.ClaimSource.Builder> implements PodStatusPubSub.ClaimSourceOrBuilder
 ClaimSource describes a reference to a ResourceClaim.

 Exactly one of these fields should be set.  Consumers of this type must
 treat an empty object as if it has an unknown value.
 
Protobuf type chalk.pubsub.v1.PodStatusPubSub.ClaimSource
  • 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<PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PodStatusPubSub.ClaimSource 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<PodStatusPubSub.ClaimSource.Builder>
    • setField

      public PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.Builder>
    • clearField

      public PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.Builder>
    • clearOneof

      public PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.Builder>
    • setRepeatedField

      public PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.Builder>
    • addRepeatedField

      public PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.Builder>
    • mergeFrom

      public PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.Builder>
    • mergeFrom

      public PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.Builder>
      Throws:
      IOException
    • hasResourceClaimName

      public boolean hasResourceClaimName()
       ResourceClaimName is the name of a ResourceClaim object in the same
       namespace as this pod.
       
      optional string resource_claim_name = 1 [json_name = "resourceClaimName"];
      Specified by:
      hasResourceClaimName in interface PodStatusPubSub.ClaimSourceOrBuilder
      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.
       
      optional string resource_claim_name = 1 [json_name = "resourceClaimName"];
      Specified by:
      getResourceClaimName in interface PodStatusPubSub.ClaimSourceOrBuilder
      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.
       
      optional string resource_claim_name = 1 [json_name = "resourceClaimName"];
      Specified by:
      getResourceClaimNameBytes in interface PodStatusPubSub.ClaimSourceOrBuilder
      Returns:
      The bytes for resourceClaimName.
    • setResourceClaimName

      public PodStatusPubSub.ClaimSource.Builder setResourceClaimName(String value)
       ResourceClaimName is the name of a ResourceClaim object in the same
       namespace as this pod.
       
      optional string resource_claim_name = 1 [json_name = "resourceClaimName"];
      Parameters:
      value - The resourceClaimName to set.
      Returns:
      This builder for chaining.
    • clearResourceClaimName

      public PodStatusPubSub.ClaimSource.Builder clearResourceClaimName()
       ResourceClaimName is the name of a ResourceClaim object in the same
       namespace as this pod.
       
      optional string resource_claim_name = 1 [json_name = "resourceClaimName"];
      Returns:
      This builder for chaining.
    • setResourceClaimNameBytes

      public PodStatusPubSub.ClaimSource.Builder setResourceClaimNameBytes(com.google.protobuf.ByteString value)
       ResourceClaimName is the name of a ResourceClaim object in the same
       namespace as this pod.
       
      optional string resource_claim_name = 1 [json_name = "resourceClaimName"];
      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.
       
      optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];
      Specified by:
      hasResourceClaimTemplateName in interface PodStatusPubSub.ClaimSourceOrBuilder
      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.
       
      optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];
      Specified by:
      getResourceClaimTemplateName in interface PodStatusPubSub.ClaimSourceOrBuilder
      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.
       
      optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];
      Specified by:
      getResourceClaimTemplateNameBytes in interface PodStatusPubSub.ClaimSourceOrBuilder
      Returns:
      The bytes for resourceClaimTemplateName.
    • setResourceClaimTemplateName

      public PodStatusPubSub.ClaimSource.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.
       
      optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];
      Parameters:
      value - The resourceClaimTemplateName to set.
      Returns:
      This builder for chaining.
    • clearResourceClaimTemplateName

      public PodStatusPubSub.ClaimSource.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.
       
      optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];
      Returns:
      This builder for chaining.
    • setResourceClaimTemplateNameBytes

      public PodStatusPubSub.ClaimSource.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.
       
      optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];
      Parameters:
      value - The bytes for resourceClaimTemplateName to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.Builder>
    • mergeUnknownFields

      public final PodStatusPubSub.ClaimSource.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<PodStatusPubSub.ClaimSource.Builder>