Class Generated.OwnerReference.Builder

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

    public static final class Generated.OwnerReference.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.OwnerReference.Builder>
    implements Generated.OwnerReferenceOrBuilder
     OwnerReference contains enough information to let you identify an owning
     object. An owning object must be in the same namespace as the dependent, or
     be cluster-scoped, so there is no namespace field.
     +structType=atomic
     
    Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference
    • 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.OwnerReference.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.OwnerReference.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public Generated.OwnerReference.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.OwnerReference.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.OwnerReference.Builder>
      • mergeFrom

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

        public boolean hasApiVersion()
         API version of the referent.
         
        optional string apiVersion = 5;
        Specified by:
        hasApiVersion in interface Generated.OwnerReferenceOrBuilder
        Returns:
        Whether the apiVersion field is set.
      • getApiVersionBytes

        public com.google.protobuf.ByteString getApiVersionBytes()
         API version of the referent.
         
        optional string apiVersion = 5;
        Specified by:
        getApiVersionBytes in interface Generated.OwnerReferenceOrBuilder
        Returns:
        The bytes for apiVersion.
      • setApiVersion

        public Generated.OwnerReference.Builder setApiVersion​(String value)
         API version of the referent.
         
        optional string apiVersion = 5;
        Parameters:
        value - The apiVersion to set.
        Returns:
        This builder for chaining.
      • clearApiVersion

        public Generated.OwnerReference.Builder clearApiVersion()
         API version of the referent.
         
        optional string apiVersion = 5;
        Returns:
        This builder for chaining.
      • setApiVersionBytes

        public Generated.OwnerReference.Builder setApiVersionBytes​(com.google.protobuf.ByteString value)
         API version of the referent.
         
        optional string apiVersion = 5;
        Parameters:
        value - The bytes for apiVersion to set.
        Returns:
        This builder for chaining.
      • hasKind

        public boolean hasKind()
         Kind of the referent.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         
        optional string kind = 1;
        Specified by:
        hasKind in interface Generated.OwnerReferenceOrBuilder
        Returns:
        Whether the kind field is set.
      • getKind

        public String getKind()
         Kind of the referent.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         
        optional string kind = 1;
        Specified by:
        getKind in interface Generated.OwnerReferenceOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         Kind of the referent.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         
        optional string kind = 1;
        Specified by:
        getKindBytes in interface Generated.OwnerReferenceOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public Generated.OwnerReference.Builder setKind​(String value)
         Kind of the referent.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         
        optional string kind = 1;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public Generated.OwnerReference.Builder clearKind()
         Kind of the referent.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         
        optional string kind = 1;
        Returns:
        This builder for chaining.
      • setKindBytes

        public Generated.OwnerReference.Builder setKindBytes​(com.google.protobuf.ByteString value)
         Kind of the referent.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         
        optional string kind = 1;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
         Name of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
         
        optional string name = 3;
        Specified by:
        hasName in interface Generated.OwnerReferenceOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         Name of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
         
        optional string name = 3;
        Specified by:
        getName in interface Generated.OwnerReferenceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
         
        optional string name = 3;
        Specified by:
        getNameBytes in interface Generated.OwnerReferenceOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Generated.OwnerReference.Builder setName​(String value)
         Name of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
         
        optional string name = 3;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Generated.OwnerReference.Builder clearName()
         Name of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
         
        optional string name = 3;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Generated.OwnerReference.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
         
        optional string name = 3;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasUid

        public boolean hasUid()
         UID of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
         
        optional string uid = 4;
        Specified by:
        hasUid in interface Generated.OwnerReferenceOrBuilder
        Returns:
        Whether the uid field is set.
      • getUid

        public String getUid()
         UID of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
         
        optional string uid = 4;
        Specified by:
        getUid in interface Generated.OwnerReferenceOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public com.google.protobuf.ByteString getUidBytes()
         UID of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
         
        optional string uid = 4;
        Specified by:
        getUidBytes in interface Generated.OwnerReferenceOrBuilder
        Returns:
        The bytes for uid.
      • setUid

        public Generated.OwnerReference.Builder setUid​(String value)
         UID of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
         
        optional string uid = 4;
        Parameters:
        value - The uid to set.
        Returns:
        This builder for chaining.
      • clearUid

        public Generated.OwnerReference.Builder clearUid()
         UID of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
         
        optional string uid = 4;
        Returns:
        This builder for chaining.
      • setUidBytes

        public Generated.OwnerReference.Builder setUidBytes​(com.google.protobuf.ByteString value)
         UID of the referent.
         More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
         
        optional string uid = 4;
        Parameters:
        value - The bytes for uid to set.
        Returns:
        This builder for chaining.
      • hasController

        public boolean hasController()
         If true, this reference points to the managing controller.
         +optional
         
        optional bool controller = 6;
        Specified by:
        hasController in interface Generated.OwnerReferenceOrBuilder
        Returns:
        Whether the controller field is set.
      • getController

        public boolean getController()
         If true, this reference points to the managing controller.
         +optional
         
        optional bool controller = 6;
        Specified by:
        getController in interface Generated.OwnerReferenceOrBuilder
        Returns:
        The controller.
      • setController

        public Generated.OwnerReference.Builder setController​(boolean value)
         If true, this reference points to the managing controller.
         +optional
         
        optional bool controller = 6;
        Parameters:
        value - The controller to set.
        Returns:
        This builder for chaining.
      • clearController

        public Generated.OwnerReference.Builder clearController()
         If true, this reference points to the managing controller.
         +optional
         
        optional bool controller = 6;
        Returns:
        This builder for chaining.
      • hasBlockOwnerDeletion

        public boolean hasBlockOwnerDeletion()
         If true, AND if the owner has the "foregroundDeletion" finalizer, then
         the owner cannot be deleted from the key-value store until this
         reference is removed.
         See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion
         for how the garbage collector interacts with this field and enforces the foreground deletion.
         Defaults to false.
         To set this field, a user needs "delete" permission of the owner,
         otherwise 422 (Unprocessable Entity) will be returned.
         +optional
         
        optional bool blockOwnerDeletion = 7;
        Specified by:
        hasBlockOwnerDeletion in interface Generated.OwnerReferenceOrBuilder
        Returns:
        Whether the blockOwnerDeletion field is set.
      • getBlockOwnerDeletion

        public boolean getBlockOwnerDeletion()
         If true, AND if the owner has the "foregroundDeletion" finalizer, then
         the owner cannot be deleted from the key-value store until this
         reference is removed.
         See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion
         for how the garbage collector interacts with this field and enforces the foreground deletion.
         Defaults to false.
         To set this field, a user needs "delete" permission of the owner,
         otherwise 422 (Unprocessable Entity) will be returned.
         +optional
         
        optional bool blockOwnerDeletion = 7;
        Specified by:
        getBlockOwnerDeletion in interface Generated.OwnerReferenceOrBuilder
        Returns:
        The blockOwnerDeletion.
      • setBlockOwnerDeletion

        public Generated.OwnerReference.Builder setBlockOwnerDeletion​(boolean value)
         If true, AND if the owner has the "foregroundDeletion" finalizer, then
         the owner cannot be deleted from the key-value store until this
         reference is removed.
         See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion
         for how the garbage collector interacts with this field and enforces the foreground deletion.
         Defaults to false.
         To set this field, a user needs "delete" permission of the owner,
         otherwise 422 (Unprocessable Entity) will be returned.
         +optional
         
        optional bool blockOwnerDeletion = 7;
        Parameters:
        value - The blockOwnerDeletion to set.
        Returns:
        This builder for chaining.
      • clearBlockOwnerDeletion

        public Generated.OwnerReference.Builder clearBlockOwnerDeletion()
         If true, AND if the owner has the "foregroundDeletion" finalizer, then
         the owner cannot be deleted from the key-value store until this
         reference is removed.
         See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion
         for how the garbage collector interacts with this field and enforces the foreground deletion.
         Defaults to false.
         To set this field, a user needs "delete" permission of the owner,
         otherwise 422 (Unprocessable Entity) will be returned.
         +optional
         
        optional bool blockOwnerDeletion = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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