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

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

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

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

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

        public boolean hasLocalObjectReference()
         The name of the secret in the pod's namespace to select from.
         
        optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
        Specified by:
        hasLocalObjectReference in interface Generated.SecretKeySelectorOrBuilder
        Returns:
        Whether the localObjectReference field is set.
      • clearLocalObjectReference

        public Generated.SecretKeySelector.Builder clearLocalObjectReference()
         The name of the secret in the pod's namespace to select from.
         
        optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
      • getLocalObjectReferenceBuilder

        public Generated.LocalObjectReference.Builder getLocalObjectReferenceBuilder()
         The name of the secret in the pod's namespace to select from.
         
        optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
      • hasKey

        public boolean hasKey()
         The key of the secret to select from.  Must be a valid secret key.
         
        optional string key = 2;
        Specified by:
        hasKey in interface Generated.SecretKeySelectorOrBuilder
        Returns:
        Whether the key field is set.
      • getKeyBytes

        public com.google.protobuf.ByteString getKeyBytes()
         The key of the secret to select from.  Must be a valid secret key.
         
        optional string key = 2;
        Specified by:
        getKeyBytes in interface Generated.SecretKeySelectorOrBuilder
        Returns:
        The bytes for key.
      • setKey

        public Generated.SecretKeySelector.Builder setKey​(String value)
         The key of the secret to select from.  Must be a valid secret key.
         
        optional string key = 2;
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • clearKey

        public Generated.SecretKeySelector.Builder clearKey()
         The key of the secret to select from.  Must be a valid secret key.
         
        optional string key = 2;
        Returns:
        This builder for chaining.
      • setKeyBytes

        public Generated.SecretKeySelector.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         The key of the secret to select from.  Must be a valid secret key.
         
        optional string key = 2;
        Parameters:
        value - The bytes for key to set.
        Returns:
        This builder for chaining.
      • hasOptional

        public boolean hasOptional()
         Specify whether the Secret or its key must be defined
         +optional
         
        optional bool optional = 3;
        Specified by:
        hasOptional in interface Generated.SecretKeySelectorOrBuilder
        Returns:
        Whether the optional field is set.
      • getOptional

        public boolean getOptional()
         Specify whether the Secret or its key must be defined
         +optional
         
        optional bool optional = 3;
        Specified by:
        getOptional in interface Generated.SecretKeySelectorOrBuilder
        Returns:
        The optional.
      • setOptional

        public Generated.SecretKeySelector.Builder setOptional​(boolean value)
         Specify whether the Secret or its key must be defined
         +optional
         
        optional bool optional = 3;
        Parameters:
        value - The optional to set.
        Returns:
        This builder for chaining.
      • clearOptional

        public Generated.SecretKeySelector.Builder clearOptional()
         Specify whether the Secret or its key must be defined
         +optional
         
        optional bool optional = 3;
        Returns:
        This builder for chaining.
      • mergeUnknownFields

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