Class Derived.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DerivedOrBuilder, Cloneable
    Enclosing class:
    Derived

    public static final class Derived.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Derived.Builder>
    implements DerivedOrBuilder
     Derived describes the derived image portion (Occurrence) of the DockerImage
     relationship. This image would be produced from a Dockerfile with FROM
     <DockerImage.Basis in attached Note>.
     
    Protobuf type grafeas.v1beta1.image.Derived
    • 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<Derived.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public Derived.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<Derived.Builder>
        Throws:
        IOException
      • hasFingerprint

        public boolean hasFingerprint()
         Required. The fingerprint of the derived image.
         
        .grafeas.v1beta1.image.Fingerprint fingerprint = 1;
        Specified by:
        hasFingerprint in interface DerivedOrBuilder
        Returns:
        Whether the fingerprint field is set.
      • getFingerprint

        public Fingerprint getFingerprint()
         Required. The fingerprint of the derived image.
         
        .grafeas.v1beta1.image.Fingerprint fingerprint = 1;
        Specified by:
        getFingerprint in interface DerivedOrBuilder
        Returns:
        The fingerprint.
      • setFingerprint

        public Derived.Builder setFingerprint​(Fingerprint value)
         Required. The fingerprint of the derived image.
         
        .grafeas.v1beta1.image.Fingerprint fingerprint = 1;
      • setFingerprint

        public Derived.Builder setFingerprint​(Fingerprint.Builder builderForValue)
         Required. The fingerprint of the derived image.
         
        .grafeas.v1beta1.image.Fingerprint fingerprint = 1;
      • mergeFingerprint

        public Derived.Builder mergeFingerprint​(Fingerprint value)
         Required. The fingerprint of the derived image.
         
        .grafeas.v1beta1.image.Fingerprint fingerprint = 1;
      • clearFingerprint

        public Derived.Builder clearFingerprint()
         Required. The fingerprint of the derived image.
         
        .grafeas.v1beta1.image.Fingerprint fingerprint = 1;
      • getFingerprintBuilder

        public Fingerprint.Builder getFingerprintBuilder()
         Required. The fingerprint of the derived image.
         
        .grafeas.v1beta1.image.Fingerprint fingerprint = 1;
      • getDistance

        public int getDistance()
         Output only. The number of layers by which this image differs from the
         associated image basis.
         
        int32 distance = 2;
        Specified by:
        getDistance in interface DerivedOrBuilder
        Returns:
        The distance.
      • setDistance

        public Derived.Builder setDistance​(int value)
         Output only. The number of layers by which this image differs from the
         associated image basis.
         
        int32 distance = 2;
        Parameters:
        value - The distance to set.
        Returns:
        This builder for chaining.
      • clearDistance

        public Derived.Builder clearDistance()
         Output only. The number of layers by which this image differs from the
         associated image basis.
         
        int32 distance = 2;
        Returns:
        This builder for chaining.
      • getLayerInfoList

        public List<Layer> getLayerInfoList()
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
        Specified by:
        getLayerInfoList in interface DerivedOrBuilder
      • getLayerInfoCount

        public int getLayerInfoCount()
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
        Specified by:
        getLayerInfoCount in interface DerivedOrBuilder
      • getLayerInfo

        public Layer getLayerInfo​(int index)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
        Specified by:
        getLayerInfo in interface DerivedOrBuilder
      • setLayerInfo

        public Derived.Builder setLayerInfo​(int index,
                                            Layer value)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • setLayerInfo

        public Derived.Builder setLayerInfo​(int index,
                                            Layer.Builder builderForValue)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • addLayerInfo

        public Derived.Builder addLayerInfo​(Layer value)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • addLayerInfo

        public Derived.Builder addLayerInfo​(int index,
                                            Layer value)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • addLayerInfo

        public Derived.Builder addLayerInfo​(Layer.Builder builderForValue)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • addLayerInfo

        public Derived.Builder addLayerInfo​(int index,
                                            Layer.Builder builderForValue)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • addAllLayerInfo

        public Derived.Builder addAllLayerInfo​(Iterable<? extends Layer> values)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • clearLayerInfo

        public Derived.Builder clearLayerInfo()
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • removeLayerInfo

        public Derived.Builder removeLayerInfo​(int index)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • getLayerInfoBuilder

        public Layer.Builder getLayerInfoBuilder​(int index)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • getLayerInfoOrBuilder

        public LayerOrBuilder getLayerInfoOrBuilder​(int index)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
        Specified by:
        getLayerInfoOrBuilder in interface DerivedOrBuilder
      • getLayerInfoOrBuilderList

        public List<? extends LayerOrBuilder> getLayerInfoOrBuilderList()
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
        Specified by:
        getLayerInfoOrBuilderList in interface DerivedOrBuilder
      • addLayerInfoBuilder

        public Layer.Builder addLayerInfoBuilder()
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • addLayerInfoBuilder

        public Layer.Builder addLayerInfoBuilder​(int index)
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • getLayerInfoBuilderList

        public List<Layer.Builder> getLayerInfoBuilderList()
         This contains layer-specific metadata, if populated it has length
         "distance" and is ordered with [distance] being the layer immediately
         following the base image and [1] being the final layer.
         
        repeated .grafeas.v1beta1.image.Layer layer_info = 3;
      • getBaseResourceUrl

        public String getBaseResourceUrl()
         Output only. This contains the base image URL for the derived image
         occurrence.
         
        string base_resource_url = 4;
        Specified by:
        getBaseResourceUrl in interface DerivedOrBuilder
        Returns:
        The baseResourceUrl.
      • getBaseResourceUrlBytes

        public com.google.protobuf.ByteString getBaseResourceUrlBytes()
         Output only. This contains the base image URL for the derived image
         occurrence.
         
        string base_resource_url = 4;
        Specified by:
        getBaseResourceUrlBytes in interface DerivedOrBuilder
        Returns:
        The bytes for baseResourceUrl.
      • setBaseResourceUrl

        public Derived.Builder setBaseResourceUrl​(String value)
         Output only. This contains the base image URL for the derived image
         occurrence.
         
        string base_resource_url = 4;
        Parameters:
        value - The baseResourceUrl to set.
        Returns:
        This builder for chaining.
      • clearBaseResourceUrl

        public Derived.Builder clearBaseResourceUrl()
         Output only. This contains the base image URL for the derived image
         occurrence.
         
        string base_resource_url = 4;
        Returns:
        This builder for chaining.
      • setBaseResourceUrlBytes

        public Derived.Builder setBaseResourceUrlBytes​(com.google.protobuf.ByteString value)
         Output only. This contains the base image URL for the derived image
         occurrence.
         
        string base_resource_url = 4;
        Parameters:
        value - The bytes for baseResourceUrl to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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