All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yoti.api.client.spi.remote.proto.SignedTimestampProto Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: SignedTimestamp.proto

package com.yoti.api.client.spi.remote.proto;

public final class SignedTimestampProto {
  private SignedTimestampProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface SignedTimestampOrBuilder extends
      // @@protoc_insertion_point(interface_extends:compubapi_v1.SignedTimestamp)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int32 version = 1;
     * @return The version.
     */
    int getVersion();

    /**
     * uint64 timestamp = 2;
     * @return The timestamp.
     */
    long getTimestamp();

    /**
     * bytes message_digest = 3;
     * @return The messageDigest.
     */
    com.google.protobuf.ByteString getMessageDigest();

    /**
     * bytes chain_digest = 4;
     * @return The chainDigest.
     */
    com.google.protobuf.ByteString getChainDigest();

    /**
     * bytes chain_digest_skip1 = 5;
     * @return The chainDigestSkip1.
     */
    com.google.protobuf.ByteString getChainDigestSkip1();

    /**
     * bytes chain_digest_skip2 = 6;
     * @return The chainDigestSkip2.
     */
    com.google.protobuf.ByteString getChainDigestSkip2();
  }
  /**
   * Protobuf type {@code compubapi_v1.SignedTimestamp}
   */
  public static final class SignedTimestamp extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:compubapi_v1.SignedTimestamp)
      SignedTimestampOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SignedTimestamp.newBuilder() to construct.
    private SignedTimestamp(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private SignedTimestamp() {
      messageDigest_ = com.google.protobuf.ByteString.EMPTY;
      chainDigest_ = com.google.protobuf.ByteString.EMPTY;
      chainDigestSkip1_ = com.google.protobuf.ByteString.EMPTY;
      chainDigestSkip2_ = com.google.protobuf.ByteString.EMPTY;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new SignedTimestamp();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SignedTimestamp(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              version_ = input.readInt32();
              break;
            }
            case 16: {

              timestamp_ = input.readUInt64();
              break;
            }
            case 26: {

              messageDigest_ = input.readBytes();
              break;
            }
            case 34: {

              chainDigest_ = input.readBytes();
              break;
            }
            case 42: {

              chainDigestSkip1_ = input.readBytes();
              break;
            }
            case 50: {

              chainDigestSkip2_ = input.readBytes();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.yoti.api.client.spi.remote.proto.SignedTimestampProto.internal_static_compubapi_v1_SignedTimestamp_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.yoti.api.client.spi.remote.proto.SignedTimestampProto.internal_static_compubapi_v1_SignedTimestamp_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp.class, com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp.Builder.class);
    }

    public static final int VERSION_FIELD_NUMBER = 1;
    private int version_;
    /**
     * int32 version = 1;
     * @return The version.
     */
    @java.lang.Override
    public int getVersion() {
      return version_;
    }

    public static final int TIMESTAMP_FIELD_NUMBER = 2;
    private long timestamp_;
    /**
     * uint64 timestamp = 2;
     * @return The timestamp.
     */
    @java.lang.Override
    public long getTimestamp() {
      return timestamp_;
    }

    public static final int MESSAGE_DIGEST_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString messageDigest_;
    /**
     * bytes message_digest = 3;
     * @return The messageDigest.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getMessageDigest() {
      return messageDigest_;
    }

    public static final int CHAIN_DIGEST_FIELD_NUMBER = 4;
    private com.google.protobuf.ByteString chainDigest_;
    /**
     * bytes chain_digest = 4;
     * @return The chainDigest.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getChainDigest() {
      return chainDigest_;
    }

    public static final int CHAIN_DIGEST_SKIP1_FIELD_NUMBER = 5;
    private com.google.protobuf.ByteString chainDigestSkip1_;
    /**
     * bytes chain_digest_skip1 = 5;
     * @return The chainDigestSkip1.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getChainDigestSkip1() {
      return chainDigestSkip1_;
    }

    public static final int CHAIN_DIGEST_SKIP2_FIELD_NUMBER = 6;
    private com.google.protobuf.ByteString chainDigestSkip2_;
    /**
     * bytes chain_digest_skip2 = 6;
     * @return The chainDigestSkip2.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getChainDigestSkip2() {
      return chainDigestSkip2_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (version_ != 0) {
        output.writeInt32(1, version_);
      }
      if (timestamp_ != 0L) {
        output.writeUInt64(2, timestamp_);
      }
      if (!messageDigest_.isEmpty()) {
        output.writeBytes(3, messageDigest_);
      }
      if (!chainDigest_.isEmpty()) {
        output.writeBytes(4, chainDigest_);
      }
      if (!chainDigestSkip1_.isEmpty()) {
        output.writeBytes(5, chainDigestSkip1_);
      }
      if (!chainDigestSkip2_.isEmpty()) {
        output.writeBytes(6, chainDigestSkip2_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (version_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, version_);
      }
      if (timestamp_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(2, timestamp_);
      }
      if (!messageDigest_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, messageDigest_);
      }
      if (!chainDigest_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, chainDigest_);
      }
      if (!chainDigestSkip1_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(5, chainDigestSkip1_);
      }
      if (!chainDigestSkip2_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(6, chainDigestSkip2_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp)) {
        return super.equals(obj);
      }
      com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp other = (com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp) obj;

      if (getVersion()
          != other.getVersion()) return false;
      if (getTimestamp()
          != other.getTimestamp()) return false;
      if (!getMessageDigest()
          .equals(other.getMessageDigest())) return false;
      if (!getChainDigest()
          .equals(other.getChainDigest())) return false;
      if (!getChainDigestSkip1()
          .equals(other.getChainDigestSkip1())) return false;
      if (!getChainDigestSkip2()
          .equals(other.getChainDigestSkip2())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + VERSION_FIELD_NUMBER;
      hash = (53 * hash) + getVersion();
      hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getTimestamp());
      hash = (37 * hash) + MESSAGE_DIGEST_FIELD_NUMBER;
      hash = (53 * hash) + getMessageDigest().hashCode();
      hash = (37 * hash) + CHAIN_DIGEST_FIELD_NUMBER;
      hash = (53 * hash) + getChainDigest().hashCode();
      hash = (37 * hash) + CHAIN_DIGEST_SKIP1_FIELD_NUMBER;
      hash = (53 * hash) + getChainDigestSkip1().hashCode();
      hash = (37 * hash) + CHAIN_DIGEST_SKIP2_FIELD_NUMBER;
      hash = (53 * hash) + getChainDigestSkip2().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code compubapi_v1.SignedTimestamp}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:compubapi_v1.SignedTimestamp)
        com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestampOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.yoti.api.client.spi.remote.proto.SignedTimestampProto.internal_static_compubapi_v1_SignedTimestamp_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.yoti.api.client.spi.remote.proto.SignedTimestampProto.internal_static_compubapi_v1_SignedTimestamp_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp.class, com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp.Builder.class);
      }

      // Construct using com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        version_ = 0;

        timestamp_ = 0L;

        messageDigest_ = com.google.protobuf.ByteString.EMPTY;

        chainDigest_ = com.google.protobuf.ByteString.EMPTY;

        chainDigestSkip1_ = com.google.protobuf.ByteString.EMPTY;

        chainDigestSkip2_ = com.google.protobuf.ByteString.EMPTY;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.yoti.api.client.spi.remote.proto.SignedTimestampProto.internal_static_compubapi_v1_SignedTimestamp_descriptor;
      }

      @java.lang.Override
      public com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp getDefaultInstanceForType() {
        return com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp.getDefaultInstance();
      }

      @java.lang.Override
      public com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp build() {
        com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp buildPartial() {
        com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp result = new com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp(this);
        result.version_ = version_;
        result.timestamp_ = timestamp_;
        result.messageDigest_ = messageDigest_;
        result.chainDigest_ = chainDigest_;
        result.chainDigestSkip1_ = chainDigestSkip1_;
        result.chainDigestSkip2_ = chainDigestSkip2_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp) {
          return mergeFrom((com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp other) {
        if (other == com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp.getDefaultInstance()) return this;
        if (other.getVersion() != 0) {
          setVersion(other.getVersion());
        }
        if (other.getTimestamp() != 0L) {
          setTimestamp(other.getTimestamp());
        }
        if (other.getMessageDigest() != com.google.protobuf.ByteString.EMPTY) {
          setMessageDigest(other.getMessageDigest());
        }
        if (other.getChainDigest() != com.google.protobuf.ByteString.EMPTY) {
          setChainDigest(other.getChainDigest());
        }
        if (other.getChainDigestSkip1() != com.google.protobuf.ByteString.EMPTY) {
          setChainDigestSkip1(other.getChainDigestSkip1());
        }
        if (other.getChainDigestSkip2() != com.google.protobuf.ByteString.EMPTY) {
          setChainDigestSkip2(other.getChainDigestSkip2());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int version_ ;
      /**
       * int32 version = 1;
       * @return The version.
       */
      @java.lang.Override
      public int getVersion() {
        return version_;
      }
      /**
       * int32 version = 1;
       * @param value The version to set.
       * @return This builder for chaining.
       */
      public Builder setVersion(int value) {
        
        version_ = value;
        onChanged();
        return this;
      }
      /**
       * int32 version = 1;
       * @return This builder for chaining.
       */
      public Builder clearVersion() {
        
        version_ = 0;
        onChanged();
        return this;
      }

      private long timestamp_ ;
      /**
       * uint64 timestamp = 2;
       * @return The timestamp.
       */
      @java.lang.Override
      public long getTimestamp() {
        return timestamp_;
      }
      /**
       * uint64 timestamp = 2;
       * @param value The timestamp to set.
       * @return This builder for chaining.
       */
      public Builder setTimestamp(long value) {
        
        timestamp_ = value;
        onChanged();
        return this;
      }
      /**
       * uint64 timestamp = 2;
       * @return This builder for chaining.
       */
      public Builder clearTimestamp() {
        
        timestamp_ = 0L;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString messageDigest_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes message_digest = 3;
       * @return The messageDigest.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getMessageDigest() {
        return messageDigest_;
      }
      /**
       * bytes message_digest = 3;
       * @param value The messageDigest to set.
       * @return This builder for chaining.
       */
      public Builder setMessageDigest(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        messageDigest_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes message_digest = 3;
       * @return This builder for chaining.
       */
      public Builder clearMessageDigest() {
        
        messageDigest_ = getDefaultInstance().getMessageDigest();
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString chainDigest_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes chain_digest = 4;
       * @return The chainDigest.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getChainDigest() {
        return chainDigest_;
      }
      /**
       * bytes chain_digest = 4;
       * @param value The chainDigest to set.
       * @return This builder for chaining.
       */
      public Builder setChainDigest(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        chainDigest_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes chain_digest = 4;
       * @return This builder for chaining.
       */
      public Builder clearChainDigest() {
        
        chainDigest_ = getDefaultInstance().getChainDigest();
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString chainDigestSkip1_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes chain_digest_skip1 = 5;
       * @return The chainDigestSkip1.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getChainDigestSkip1() {
        return chainDigestSkip1_;
      }
      /**
       * bytes chain_digest_skip1 = 5;
       * @param value The chainDigestSkip1 to set.
       * @return This builder for chaining.
       */
      public Builder setChainDigestSkip1(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        chainDigestSkip1_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes chain_digest_skip1 = 5;
       * @return This builder for chaining.
       */
      public Builder clearChainDigestSkip1() {
        
        chainDigestSkip1_ = getDefaultInstance().getChainDigestSkip1();
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString chainDigestSkip2_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes chain_digest_skip2 = 6;
       * @return The chainDigestSkip2.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getChainDigestSkip2() {
        return chainDigestSkip2_;
      }
      /**
       * bytes chain_digest_skip2 = 6;
       * @param value The chainDigestSkip2 to set.
       * @return This builder for chaining.
       */
      public Builder setChainDigestSkip2(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        chainDigestSkip2_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes chain_digest_skip2 = 6;
       * @return This builder for chaining.
       */
      public Builder clearChainDigestSkip2() {
        
        chainDigestSkip2_ = getDefaultInstance().getChainDigestSkip2();
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:compubapi_v1.SignedTimestamp)
    }

    // @@protoc_insertion_point(class_scope:compubapi_v1.SignedTimestamp)
    private static final com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp();
    }

    public static com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public SignedTimestamp parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new SignedTimestamp(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.yoti.api.client.spi.remote.proto.SignedTimestampProto.SignedTimestamp getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_compubapi_v1_SignedTimestamp_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_compubapi_v1_SignedTimestamp_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\025SignedTimestamp.proto\022\014compubapi_v1\"\233\001" +
      "\n\017SignedTimestamp\022\017\n\007version\030\001 \001(\005\022\021\n\tti" +
      "mestamp\030\002 \001(\004\022\026\n\016message_digest\030\003 \001(\014\022\024\n" +
      "\014chain_digest\030\004 \001(\014\022\032\n\022chain_digest_skip" +
      "1\030\005 \001(\014\022\032\n\022chain_digest_skip2\030\006 \001(\014B\344\001\n$" +
      "com.yoti.api.client.spi.remote.protoB\024Si" +
      "gnedTimestampProtoZ.github.com/getyoti/y" +
      "oti-go-sdk/v3/yotiprotocom\252\002\031Yoti.Auth.P" +
      "rotoBuf.Common\312\002\027Yoti\\Protobuf\\Compubapi" +
      "\342\002#Yoti\\Protobuf\\Compubapi\\GPBMetadata\352\002" +
      "\031Yoti::Protobuf::Compubapib\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_compubapi_v1_SignedTimestamp_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_compubapi_v1_SignedTimestamp_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_compubapi_v1_SignedTimestamp_descriptor,
        new java.lang.String[] { "Version", "Timestamp", "MessageDigest", "ChainDigest", "ChainDigestSkip1", "ChainDigestSkip2", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy