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

io.provenance.scope.proto.Common Maven / Gradle / Ivy

Go to download

A collection of libraries that interact and run Provenance Java based contracts.

There is a newer version: 0.7.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common.proto

package io.provenance.scope.proto;

public final class Common {
  private Common() {}
  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 SignatureOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.provenance.scope.Signature)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Signature Detail
     * 
* * string algo = 1; * @return The algo. */ java.lang.String getAlgo(); /** *
     * Signature Detail
     * 
* * string algo = 1; * @return The bytes for algo. */ com.google.protobuf.ByteString getAlgoBytes(); /** * string provider = 2; * @return The provider. */ java.lang.String getProvider(); /** * string provider = 2; * @return The bytes for provider. */ com.google.protobuf.ByteString getProviderBytes(); /** * string signature = 3; * @return The signature. */ java.lang.String getSignature(); /** * string signature = 3; * @return The bytes for signature. */ com.google.protobuf.ByteString getSignatureBytes(); /** *
     * Identity of signer
     * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; * @return Whether the signer field is set. */ boolean hasSigner(); /** *
     * Identity of signer
     * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; * @return The signer. */ io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys getSigner(); /** *
     * Identity of signer
     * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; */ io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder getSignerOrBuilder(); } /** * Protobuf type {@code io.provenance.scope.Signature} */ public static final class Signature extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.provenance.scope.Signature) SignatureOrBuilder { private static final long serialVersionUID = 0L; // Use Signature.newBuilder() to construct. private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Signature() { algo_ = ""; provider_ = ""; signature_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Signature(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Signature( 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 10: { java.lang.String s = input.readStringRequireUtf8(); algo_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); provider_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); signature_ = s; break; } case 34: { io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder subBuilder = null; if (signer_ != null) { subBuilder = signer_.toBuilder(); } signer_ = input.readMessage(io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signer_); signer_ = subBuilder.buildPartial(); } 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 io.provenance.scope.proto.Common.internal_static_io_provenance_scope_Signature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.scope.proto.Common.internal_static_io_provenance_scope_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.scope.proto.Common.Signature.class, io.provenance.scope.proto.Common.Signature.Builder.class); } public static final int ALGO_FIELD_NUMBER = 1; private volatile java.lang.Object algo_; /** *
     * Signature Detail
     * 
* * string algo = 1; * @return The algo. */ @java.lang.Override public java.lang.String getAlgo() { java.lang.Object ref = algo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); algo_ = s; return s; } } /** *
     * Signature Detail
     * 
* * string algo = 1; * @return The bytes for algo. */ @java.lang.Override public com.google.protobuf.ByteString getAlgoBytes() { java.lang.Object ref = algo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); algo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROVIDER_FIELD_NUMBER = 2; private volatile java.lang.Object provider_; /** * string provider = 2; * @return The provider. */ @java.lang.Override public java.lang.String getProvider() { java.lang.Object ref = provider_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); provider_ = s; return s; } } /** * string provider = 2; * @return The bytes for provider. */ @java.lang.Override public com.google.protobuf.ByteString getProviderBytes() { java.lang.Object ref = provider_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); provider_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIGNATURE_FIELD_NUMBER = 3; private volatile java.lang.Object signature_; /** * string signature = 3; * @return The signature. */ @java.lang.Override public java.lang.String getSignature() { java.lang.Object ref = signature_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signature_ = s; return s; } } /** * string signature = 3; * @return The bytes for signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignatureBytes() { java.lang.Object ref = signature_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); signature_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIGNER_FIELD_NUMBER = 4; private io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys signer_; /** *
     * Identity of signer
     * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; * @return Whether the signer field is set. */ @java.lang.Override public boolean hasSigner() { return signer_ != null; } /** *
     * Identity of signer
     * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; * @return The signer. */ @java.lang.Override public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys getSigner() { return signer_ == null ? io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.getDefaultInstance() : signer_; } /** *
     * Identity of signer
     * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; */ @java.lang.Override public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder getSignerOrBuilder() { return getSigner(); } 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 (!getAlgoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, algo_); } if (!getProviderBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, provider_); } if (!getSignatureBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, signature_); } if (signer_ != null) { output.writeMessage(4, getSigner()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getAlgoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, algo_); } if (!getProviderBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, provider_); } if (!getSignatureBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, signature_); } if (signer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSigner()); } 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 io.provenance.scope.proto.Common.Signature)) { return super.equals(obj); } io.provenance.scope.proto.Common.Signature other = (io.provenance.scope.proto.Common.Signature) obj; if (!getAlgo() .equals(other.getAlgo())) return false; if (!getProvider() .equals(other.getProvider())) return false; if (!getSignature() .equals(other.getSignature())) return false; if (hasSigner() != other.hasSigner()) return false; if (hasSigner()) { if (!getSigner() .equals(other.getSigner())) 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) + ALGO_FIELD_NUMBER; hash = (53 * hash) + getAlgo().hashCode(); hash = (37 * hash) + PROVIDER_FIELD_NUMBER; hash = (53 * hash) + getProvider().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); if (hasSigner()) { hash = (37 * hash) + SIGNER_FIELD_NUMBER; hash = (53 * hash) + getSigner().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.scope.proto.Common.Signature parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.proto.Common.Signature parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.proto.Common.Signature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.proto.Common.Signature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.proto.Common.Signature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.proto.Common.Signature parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.proto.Common.Signature parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.scope.proto.Common.Signature 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 io.provenance.scope.proto.Common.Signature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.scope.proto.Common.Signature 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 io.provenance.scope.proto.Common.Signature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.scope.proto.Common.Signature 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(io.provenance.scope.proto.Common.Signature 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 io.provenance.scope.Signature} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.provenance.scope.Signature) io.provenance.scope.proto.Common.SignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.scope.proto.Common.internal_static_io_provenance_scope_Signature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.scope.proto.Common.internal_static_io_provenance_scope_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.scope.proto.Common.Signature.class, io.provenance.scope.proto.Common.Signature.Builder.class); } // Construct using io.provenance.scope.proto.Common.Signature.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(); algo_ = ""; provider_ = ""; signature_ = ""; if (signerBuilder_ == null) { signer_ = null; } else { signer_ = null; signerBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.scope.proto.Common.internal_static_io_provenance_scope_Signature_descriptor; } @java.lang.Override public io.provenance.scope.proto.Common.Signature getDefaultInstanceForType() { return io.provenance.scope.proto.Common.Signature.getDefaultInstance(); } @java.lang.Override public io.provenance.scope.proto.Common.Signature build() { io.provenance.scope.proto.Common.Signature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.scope.proto.Common.Signature buildPartial() { io.provenance.scope.proto.Common.Signature result = new io.provenance.scope.proto.Common.Signature(this); result.algo_ = algo_; result.provider_ = provider_; result.signature_ = signature_; if (signerBuilder_ == null) { result.signer_ = signer_; } else { result.signer_ = signerBuilder_.build(); } 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 io.provenance.scope.proto.Common.Signature) { return mergeFrom((io.provenance.scope.proto.Common.Signature)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.scope.proto.Common.Signature other) { if (other == io.provenance.scope.proto.Common.Signature.getDefaultInstance()) return this; if (!other.getAlgo().isEmpty()) { algo_ = other.algo_; onChanged(); } if (!other.getProvider().isEmpty()) { provider_ = other.provider_; onChanged(); } if (!other.getSignature().isEmpty()) { signature_ = other.signature_; onChanged(); } if (other.hasSigner()) { mergeSigner(other.getSigner()); } 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 { io.provenance.scope.proto.Common.Signature parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.scope.proto.Common.Signature) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object algo_ = ""; /** *
       * Signature Detail
       * 
* * string algo = 1; * @return The algo. */ public java.lang.String getAlgo() { java.lang.Object ref = algo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); algo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Signature Detail
       * 
* * string algo = 1; * @return The bytes for algo. */ public com.google.protobuf.ByteString getAlgoBytes() { java.lang.Object ref = algo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); algo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Signature Detail
       * 
* * string algo = 1; * @param value The algo to set. * @return This builder for chaining. */ public Builder setAlgo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } algo_ = value; onChanged(); return this; } /** *
       * Signature Detail
       * 
* * string algo = 1; * @return This builder for chaining. */ public Builder clearAlgo() { algo_ = getDefaultInstance().getAlgo(); onChanged(); return this; } /** *
       * Signature Detail
       * 
* * string algo = 1; * @param value The bytes for algo to set. * @return This builder for chaining. */ public Builder setAlgoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); algo_ = value; onChanged(); return this; } private java.lang.Object provider_ = ""; /** * string provider = 2; * @return The provider. */ public java.lang.String getProvider() { java.lang.Object ref = provider_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); provider_ = s; return s; } else { return (java.lang.String) ref; } } /** * string provider = 2; * @return The bytes for provider. */ public com.google.protobuf.ByteString getProviderBytes() { java.lang.Object ref = provider_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); provider_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string provider = 2; * @param value The provider to set. * @return This builder for chaining. */ public Builder setProvider( java.lang.String value) { if (value == null) { throw new NullPointerException(); } provider_ = value; onChanged(); return this; } /** * string provider = 2; * @return This builder for chaining. */ public Builder clearProvider() { provider_ = getDefaultInstance().getProvider(); onChanged(); return this; } /** * string provider = 2; * @param value The bytes for provider to set. * @return This builder for chaining. */ public Builder setProviderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); provider_ = value; onChanged(); return this; } private java.lang.Object signature_ = ""; /** * string signature = 3; * @return The signature. */ public java.lang.String getSignature() { java.lang.Object ref = signature_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signature_ = s; return s; } else { return (java.lang.String) ref; } } /** * string signature = 3; * @return The bytes for signature. */ public com.google.protobuf.ByteString getSignatureBytes() { java.lang.Object ref = signature_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); signature_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string signature = 3; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature( java.lang.String value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** * string signature = 3; * @return This builder for chaining. */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } /** * string signature = 3; * @param value The bytes for signature to set. * @return This builder for chaining. */ public Builder setSignatureBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); signature_ = value; onChanged(); return this; } private io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys signer_; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder> signerBuilder_; /** *
       * Identity of signer
       * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; * @return Whether the signer field is set. */ public boolean hasSigner() { return signerBuilder_ != null || signer_ != null; } /** *
       * Identity of signer
       * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; * @return The signer. */ public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys getSigner() { if (signerBuilder_ == null) { return signer_ == null ? io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.getDefaultInstance() : signer_; } else { return signerBuilder_.getMessage(); } } /** *
       * Identity of signer
       * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; */ public Builder setSigner(io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys value) { if (signerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signer_ = value; onChanged(); } else { signerBuilder_.setMessage(value); } return this; } /** *
       * Identity of signer
       * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; */ public Builder setSigner( io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder builderForValue) { if (signerBuilder_ == null) { signer_ = builderForValue.build(); onChanged(); } else { signerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Identity of signer
       * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; */ public Builder mergeSigner(io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys value) { if (signerBuilder_ == null) { if (signer_ != null) { signer_ = io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.newBuilder(signer_).mergeFrom(value).buildPartial(); } else { signer_ = value; } onChanged(); } else { signerBuilder_.mergeFrom(value); } return this; } /** *
       * Identity of signer
       * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; */ public Builder clearSigner() { if (signerBuilder_ == null) { signer_ = null; onChanged(); } else { signer_ = null; signerBuilder_ = null; } return this; } /** *
       * Identity of signer
       * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; */ public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder getSignerBuilder() { onChanged(); return getSignerFieldBuilder().getBuilder(); } /** *
       * Identity of signer
       * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; */ public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder getSignerOrBuilder() { if (signerBuilder_ != null) { return signerBuilder_.getMessageOrBuilder(); } else { return signer_ == null ? io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.getDefaultInstance() : signer_; } } /** *
       * Identity of signer
       * 
* * .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder> getSignerFieldBuilder() { if (signerBuilder_ == null) { signerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder>( getSigner(), getParentForChildren(), isClean()); signer_ = null; } return signerBuilder_; } @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:io.provenance.scope.Signature) } // @@protoc_insertion_point(class_scope:io.provenance.scope.Signature) private static final io.provenance.scope.proto.Common.Signature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.scope.proto.Common.Signature(); } public static io.provenance.scope.proto.Common.Signature getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Signature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Signature(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 io.provenance.scope.proto.Common.Signature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_provenance_scope_Signature_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_provenance_scope_Signature_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\014common.proto\022\023io.provenance.scope\032\020pub" + "lic_key.proto\"\203\001\n\tSignature\022\014\n\004algo\030\001 \001(" + "\t\022\020\n\010provider\030\002 \001(\t\022\021\n\tsignature\030\003 \001(\t\022C" + "\n\006signer\030\004 \001(\01323.io.provenance.scope.Sig" + "ningAndEncryptionPublicKeysB#\n\031io.proven" + "ance.scope.protoB\006Commonb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.provenance.scope.proto.PK.getDescriptor(), }); internal_static_io_provenance_scope_Signature_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_io_provenance_scope_Signature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_provenance_scope_Signature_descriptor, new java.lang.String[] { "Algo", "Provider", "Signature", "Signer", }); io.provenance.scope.proto.PK.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy