Class Derived.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Derived.Builder>
io.grafeas.v1beta1.image.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.GeneratedMessage.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 Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    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.
    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.
    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.
    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.
    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.
     
     
     
    Output only.
    Output only.
    Required.
    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.
    Output only.
    com.google.protobuf.ByteString
    Output only.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    Output only.
    Required.
    Required.
    Required.
    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.
    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.
    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.
    int
    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.
    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.
    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.
    List<? extends LayerOrBuilder>
    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.
    boolean
    Required.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    Required.
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    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.
    Output only.
    setBaseResourceUrlBytes(com.google.protobuf.ByteString value)
    Output only.
    setDistance(int value)
    Output only.
    Required.
    Required.
    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.
    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.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Derived.Builder mergeFrom(Derived other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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;
    • getFingerprintOrBuilder

      public FingerprintOrBuilder getFingerprintOrBuilder()
       Required. The fingerprint of the derived image.
       
      .grafeas.v1beta1.image.Fingerprint fingerprint = 1;
      Specified by:
      getFingerprintOrBuilder in interface DerivedOrBuilder
    • 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.