Class Checksum.CacheRecord.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Checksum.CacheRecord.Builder>
com.google.protobuf.GeneratedMessage.Builder<Checksum.CacheRecord.Builder>
contenthash.Checksum.CacheRecord.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Checksum.CacheRecordOrBuilder, Cloneable
Enclosing class:
Checksum.CacheRecord

public static final class Checksum.CacheRecord.Builder extends com.google.protobuf.GeneratedMessage.Builder<Checksum.CacheRecord.Builder> implements Checksum.CacheRecordOrBuilder
Protobuf type contenthash.CacheRecord
  • 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<Checksum.CacheRecord.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<Checksum.CacheRecord.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<Checksum.CacheRecord.Builder>
    • getDefaultInstanceForType

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

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

      public Checksum.CacheRecord buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public Checksum.CacheRecord.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<Checksum.CacheRecord.Builder>
      Throws:
      IOException
    • getDigest

      public String getDigest()
      string digest = 1;
      Specified by:
      getDigest in interface Checksum.CacheRecordOrBuilder
      Returns:
      The digest.
    • getDigestBytes

      public com.google.protobuf.ByteString getDigestBytes()
      string digest = 1;
      Specified by:
      getDigestBytes in interface Checksum.CacheRecordOrBuilder
      Returns:
      The bytes for digest.
    • setDigest

      public Checksum.CacheRecord.Builder setDigest(String value)
      string digest = 1;
      Parameters:
      value - The digest to set.
      Returns:
      This builder for chaining.
    • clearDigest

      public Checksum.CacheRecord.Builder clearDigest()
      string digest = 1;
      Returns:
      This builder for chaining.
    • setDigestBytes

      public Checksum.CacheRecord.Builder setDigestBytes(com.google.protobuf.ByteString value)
      string digest = 1;
      Parameters:
      value - The bytes for digest to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
      .contenthash.CacheRecordType type = 2;
      Specified by:
      getTypeValue in interface Checksum.CacheRecordOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Checksum.CacheRecord.Builder setTypeValue(int value)
      .contenthash.CacheRecordType type = 2;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Checksum.CacheRecordType getType()
      .contenthash.CacheRecordType type = 2;
      Specified by:
      getType in interface Checksum.CacheRecordOrBuilder
      Returns:
      The type.
    • setType

      .contenthash.CacheRecordType type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Checksum.CacheRecord.Builder clearType()
      .contenthash.CacheRecordType type = 2;
      Returns:
      This builder for chaining.
    • getLinkname

      public String getLinkname()
      string linkname = 3;
      Specified by:
      getLinkname in interface Checksum.CacheRecordOrBuilder
      Returns:
      The linkname.
    • getLinknameBytes

      public com.google.protobuf.ByteString getLinknameBytes()
      string linkname = 3;
      Specified by:
      getLinknameBytes in interface Checksum.CacheRecordOrBuilder
      Returns:
      The bytes for linkname.
    • setLinkname

      public Checksum.CacheRecord.Builder setLinkname(String value)
      string linkname = 3;
      Parameters:
      value - The linkname to set.
      Returns:
      This builder for chaining.
    • clearLinkname

      public Checksum.CacheRecord.Builder clearLinkname()
      string linkname = 3;
      Returns:
      This builder for chaining.
    • setLinknameBytes

      public Checksum.CacheRecord.Builder setLinknameBytes(com.google.protobuf.ByteString value)
      string linkname = 3;
      Parameters:
      value - The bytes for linkname to set.
      Returns:
      This builder for chaining.