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

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

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

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

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

        public boolean hasReference()
         Required: Image or artifact reference to be used.
         Behaves in the same way as pod.spec.containers[*].image.
         Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
         More info: https://kubernetes.io/docs/concepts/containers/images
         This field is optional to allow higher level config management to default or override
         container images in workload controllers like Deployments and StatefulSets.
         +optional
         
        optional string reference = 1;
        Specified by:
        hasReference in interface Generated.ImageVolumeSourceOrBuilder
        Returns:
        Whether the reference field is set.
      • getReference

        public String getReference()
         Required: Image or artifact reference to be used.
         Behaves in the same way as pod.spec.containers[*].image.
         Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
         More info: https://kubernetes.io/docs/concepts/containers/images
         This field is optional to allow higher level config management to default or override
         container images in workload controllers like Deployments and StatefulSets.
         +optional
         
        optional string reference = 1;
        Specified by:
        getReference in interface Generated.ImageVolumeSourceOrBuilder
        Returns:
        The reference.
      • getReferenceBytes

        public com.google.protobuf.ByteString getReferenceBytes()
         Required: Image or artifact reference to be used.
         Behaves in the same way as pod.spec.containers[*].image.
         Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
         More info: https://kubernetes.io/docs/concepts/containers/images
         This field is optional to allow higher level config management to default or override
         container images in workload controllers like Deployments and StatefulSets.
         +optional
         
        optional string reference = 1;
        Specified by:
        getReferenceBytes in interface Generated.ImageVolumeSourceOrBuilder
        Returns:
        The bytes for reference.
      • setReference

        public Generated.ImageVolumeSource.Builder setReference​(String value)
         Required: Image or artifact reference to be used.
         Behaves in the same way as pod.spec.containers[*].image.
         Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
         More info: https://kubernetes.io/docs/concepts/containers/images
         This field is optional to allow higher level config management to default or override
         container images in workload controllers like Deployments and StatefulSets.
         +optional
         
        optional string reference = 1;
        Parameters:
        value - The reference to set.
        Returns:
        This builder for chaining.
      • clearReference

        public Generated.ImageVolumeSource.Builder clearReference()
         Required: Image or artifact reference to be used.
         Behaves in the same way as pod.spec.containers[*].image.
         Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
         More info: https://kubernetes.io/docs/concepts/containers/images
         This field is optional to allow higher level config management to default or override
         container images in workload controllers like Deployments and StatefulSets.
         +optional
         
        optional string reference = 1;
        Returns:
        This builder for chaining.
      • setReferenceBytes

        public Generated.ImageVolumeSource.Builder setReferenceBytes​(com.google.protobuf.ByteString value)
         Required: Image or artifact reference to be used.
         Behaves in the same way as pod.spec.containers[*].image.
         Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
         More info: https://kubernetes.io/docs/concepts/containers/images
         This field is optional to allow higher level config management to default or override
         container images in workload controllers like Deployments and StatefulSets.
         +optional
         
        optional string reference = 1;
        Parameters:
        value - The bytes for reference to set.
        Returns:
        This builder for chaining.
      • hasPullPolicy

        public boolean hasPullPolicy()
         Policy for pulling OCI objects. Possible values are:
         Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
         Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
         IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
         Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
         +optional
         
        optional string pullPolicy = 2;
        Specified by:
        hasPullPolicy in interface Generated.ImageVolumeSourceOrBuilder
        Returns:
        Whether the pullPolicy field is set.
      • getPullPolicy

        public String getPullPolicy()
         Policy for pulling OCI objects. Possible values are:
         Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
         Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
         IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
         Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
         +optional
         
        optional string pullPolicy = 2;
        Specified by:
        getPullPolicy in interface Generated.ImageVolumeSourceOrBuilder
        Returns:
        The pullPolicy.
      • getPullPolicyBytes

        public com.google.protobuf.ByteString getPullPolicyBytes()
         Policy for pulling OCI objects. Possible values are:
         Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
         Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
         IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
         Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
         +optional
         
        optional string pullPolicy = 2;
        Specified by:
        getPullPolicyBytes in interface Generated.ImageVolumeSourceOrBuilder
        Returns:
        The bytes for pullPolicy.
      • setPullPolicy

        public Generated.ImageVolumeSource.Builder setPullPolicy​(String value)
         Policy for pulling OCI objects. Possible values are:
         Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
         Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
         IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
         Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
         +optional
         
        optional string pullPolicy = 2;
        Parameters:
        value - The pullPolicy to set.
        Returns:
        This builder for chaining.
      • clearPullPolicy

        public Generated.ImageVolumeSource.Builder clearPullPolicy()
         Policy for pulling OCI objects. Possible values are:
         Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
         Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
         IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
         Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
         +optional
         
        optional string pullPolicy = 2;
        Returns:
        This builder for chaining.
      • setPullPolicyBytes

        public Generated.ImageVolumeSource.Builder setPullPolicyBytes​(com.google.protobuf.ByteString value)
         Policy for pulling OCI objects. Possible values are:
         Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
         Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
         IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
         Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
         +optional
         
        optional string pullPolicy = 2;
        Parameters:
        value - The bytes for pullPolicy to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

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