Class Kubernetes.Pod.Builder

  • All Implemented Interfaces:
    Kubernetes.PodOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Kubernetes.Pod

    public static final class Kubernetes.Pod.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Kubernetes.Pod.Builder>
    implements Kubernetes.PodOrBuilder
     A Kubernetes Pod.
     
    Protobuf type google.cloud.securitycenter.v1.Kubernetes.Pod
    • 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<Kubernetes.Pod.Builder>
      • clear

        public Kubernetes.Pod.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<Kubernetes.Pod.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<Kubernetes.Pod.Builder>
      • getDefaultInstanceForType

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

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

        public Kubernetes.Pod buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Kubernetes.Pod.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<Kubernetes.Pod.Builder>
      • setField

        public Kubernetes.Pod.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<Kubernetes.Pod.Builder>
      • clearField

        public Kubernetes.Pod.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<Kubernetes.Pod.Builder>
      • clearOneof

        public Kubernetes.Pod.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<Kubernetes.Pod.Builder>
      • setRepeatedField

        public Kubernetes.Pod.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<Kubernetes.Pod.Builder>
      • addRepeatedField

        public Kubernetes.Pod.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<Kubernetes.Pod.Builder>
      • mergeFrom

        public Kubernetes.Pod.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<Kubernetes.Pod.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Kubernetes.Pod.Builder>
      • mergeFrom

        public Kubernetes.Pod.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<Kubernetes.Pod.Builder>
        Throws:
        IOException
      • getNsBytes

        public com.google.protobuf.ByteString getNsBytes()
         Kubernetes Pod namespace.
         
        string ns = 1;
        Specified by:
        getNsBytes in interface Kubernetes.PodOrBuilder
        Returns:
        The bytes for ns.
      • setNs

        public Kubernetes.Pod.Builder setNs​(String value)
         Kubernetes Pod namespace.
         
        string ns = 1;
        Parameters:
        value - The ns to set.
        Returns:
        This builder for chaining.
      • clearNs

        public Kubernetes.Pod.Builder clearNs()
         Kubernetes Pod namespace.
         
        string ns = 1;
        Returns:
        This builder for chaining.
      • setNsBytes

        public Kubernetes.Pod.Builder setNsBytes​(com.google.protobuf.ByteString value)
         Kubernetes Pod namespace.
         
        string ns = 1;
        Parameters:
        value - The bytes for ns to set.
        Returns:
        This builder for chaining.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Kubernetes Pod name.
         
        string name = 2;
        Specified by:
        getNameBytes in interface Kubernetes.PodOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Kubernetes.Pod.Builder setName​(String value)
         Kubernetes Pod name.
         
        string name = 2;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Kubernetes.Pod.Builder clearName()
         Kubernetes Pod name.
         
        string name = 2;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Kubernetes.Pod.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Kubernetes Pod name.
         
        string name = 2;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getLabelsList

        public List<Label> getLabelsList()
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
        Specified by:
        getLabelsList in interface Kubernetes.PodOrBuilder
      • getLabelsCount

        public int getLabelsCount()
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
        Specified by:
        getLabelsCount in interface Kubernetes.PodOrBuilder
      • getLabels

        public Label getLabels​(int index)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
        Specified by:
        getLabels in interface Kubernetes.PodOrBuilder
      • setLabels

        public Kubernetes.Pod.Builder setLabels​(int index,
                                                Label value)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • setLabels

        public Kubernetes.Pod.Builder setLabels​(int index,
                                                Label.Builder builderForValue)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • addLabels

        public Kubernetes.Pod.Builder addLabels​(Label value)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • addLabels

        public Kubernetes.Pod.Builder addLabels​(int index,
                                                Label value)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • addLabels

        public Kubernetes.Pod.Builder addLabels​(Label.Builder builderForValue)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • addLabels

        public Kubernetes.Pod.Builder addLabels​(int index,
                                                Label.Builder builderForValue)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • addAllLabels

        public Kubernetes.Pod.Builder addAllLabels​(Iterable<? extends Label> values)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • clearLabels

        public Kubernetes.Pod.Builder clearLabels()
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • removeLabels

        public Kubernetes.Pod.Builder removeLabels​(int index)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • getLabelsBuilder

        public Label.Builder getLabelsBuilder​(int index)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • getLabelsOrBuilder

        public LabelOrBuilder getLabelsOrBuilder​(int index)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
        Specified by:
        getLabelsOrBuilder in interface Kubernetes.PodOrBuilder
      • addLabelsBuilder

        public Label.Builder addLabelsBuilder()
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • addLabelsBuilder

        public Label.Builder addLabelsBuilder​(int index)
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • getLabelsBuilderList

        public List<Label.Builder> getLabelsBuilderList()
         Pod labels.  For Kubernetes containers, these are applied to the
         container.
         
        repeated .google.cloud.securitycenter.v1.Label labels = 3;
      • getContainersCount

        public int getContainersCount()
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
        Specified by:
        getContainersCount in interface Kubernetes.PodOrBuilder
      • getContainers

        public Container getContainers​(int index)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
        Specified by:
        getContainers in interface Kubernetes.PodOrBuilder
      • setContainers

        public Kubernetes.Pod.Builder setContainers​(int index,
                                                    Container value)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • setContainers

        public Kubernetes.Pod.Builder setContainers​(int index,
                                                    Container.Builder builderForValue)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • addContainers

        public Kubernetes.Pod.Builder addContainers​(Container value)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • addContainers

        public Kubernetes.Pod.Builder addContainers​(int index,
                                                    Container value)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • addContainers

        public Kubernetes.Pod.Builder addContainers​(Container.Builder builderForValue)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • addContainers

        public Kubernetes.Pod.Builder addContainers​(int index,
                                                    Container.Builder builderForValue)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • addAllContainers

        public Kubernetes.Pod.Builder addAllContainers​(Iterable<? extends Container> values)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • clearContainers

        public Kubernetes.Pod.Builder clearContainers()
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • removeContainers

        public Kubernetes.Pod.Builder removeContainers​(int index)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • getContainersBuilder

        public Container.Builder getContainersBuilder​(int index)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • addContainersBuilder

        public Container.Builder addContainersBuilder()
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • addContainersBuilder

        public Container.Builder addContainersBuilder​(int index)
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • getContainersBuilderList

        public List<Container.Builder> getContainersBuilderList()
         Pod containers associated with this finding, if any.
         
        repeated .google.cloud.securitycenter.v1.Container containers = 4;
      • setUnknownFields

        public final Kubernetes.Pod.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<Kubernetes.Pod.Builder>
      • mergeUnknownFields

        public final Kubernetes.Pod.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<Kubernetes.Pod.Builder>