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

com.hederahashgraph.api.proto.java.SignaturePair Maven / Gradle / Ivy

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * The client may use any number of bytes from zero to the whole length of the public key for
 * pubKeyPrefix. If zero bytes are used, then it must be that only one primitive key is required
 * to sign the linked transaction; it will surely resolve to <tt>INVALID_SIGNATURE</tt> otherwise.
 * <b>IMPORTANT:</b> In the special case that a signature is being provided for a key used to
 * authorize a precompiled contract, the <tt>pubKeyPrefix</tt> must contain the <b>entire public
 * key</b>! That is, if the key is a Ed25519 key, the <tt>pubKeyPrefix</tt> should be 32 bytes
 * long. If the key is a ECDSA(secp256k1) key, the <tt>pubKeyPrefix</tt> should be 33 bytes long,
 * since we require the compressed form of the public key.
 * Only Ed25519 and ECDSA(secp256k1) keys and hence signatures are currently supported.
 * 
* * Protobuf type {@code proto.SignaturePair} */ public final class SignaturePair extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SignaturePair) SignaturePairOrBuilder { private static final long serialVersionUID = 0L; // Use SignaturePair.newBuilder() to construct. private SignaturePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignaturePair() { pubKeyPrefix_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SignaturePair(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SignaturePair( 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: { pubKeyPrefix_ = input.readBytes(); break; } case 18: { signatureCase_ = 2; signature_ = input.readBytes(); break; } case 26: { signatureCase_ = 3; signature_ = input.readBytes(); break; } case 34: { signatureCase_ = 4; signature_ = input.readBytes(); break; } case 42: { signatureCase_ = 5; signature_ = input.readBytes(); break; } case 50: { signatureCase_ = 6; signature_ = 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.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SignaturePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SignaturePair_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.SignaturePair.class, com.hederahashgraph.api.proto.java.SignaturePair.Builder.class); } private int signatureCase_ = 0; private java.lang.Object signature_; public enum SignatureCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTRACT(2), ED25519(3), RSA_3072(4), ECDSA_384(5), ECDSA_SECP256K1(6), SIGNATURE_NOT_SET(0); private final int value; private SignatureCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SignatureCase valueOf(int value) { return forNumber(value); } public static SignatureCase forNumber(int value) { switch (value) { case 2: return CONTRACT; case 3: return ED25519; case 4: return RSA_3072; case 5: return ECDSA_384; case 6: return ECDSA_SECP256K1; case 0: return SIGNATURE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SignatureCase getSignatureCase() { return SignatureCase.forNumber( signatureCase_); } public static final int PUBKEYPREFIX_FIELD_NUMBER = 1; private com.google.protobuf.ByteString pubKeyPrefix_; /** *
   **
   * First few bytes of the public key
   * 
* * bytes pubKeyPrefix = 1; * @return The pubKeyPrefix. */ @java.lang.Override public com.google.protobuf.ByteString getPubKeyPrefix() { return pubKeyPrefix_; } public static final int CONTRACT_FIELD_NUMBER = 2; /** *
   **
   * smart contract virtual signature (always length zero)
   * 
* * bytes contract = 2; * @return Whether the contract field is set. */ @java.lang.Override public boolean hasContract() { return signatureCase_ == 2; } /** *
   **
   * smart contract virtual signature (always length zero)
   * 
* * bytes contract = 2; * @return The contract. */ @java.lang.Override public com.google.protobuf.ByteString getContract() { if (signatureCase_ == 2) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } public static final int ED25519_FIELD_NUMBER = 3; /** *
   **
   * ed25519 signature
   * 
* * bytes ed25519 = 3; * @return Whether the ed25519 field is set. */ @java.lang.Override public boolean hasEd25519() { return signatureCase_ == 3; } /** *
   **
   * ed25519 signature
   * 
* * bytes ed25519 = 3; * @return The ed25519. */ @java.lang.Override public com.google.protobuf.ByteString getEd25519() { if (signatureCase_ == 3) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } public static final int RSA_3072_FIELD_NUMBER = 4; /** *
   **
   * RSA-3072 signature
   * 
* * bytes RSA_3072 = 4; * @return Whether the rSA3072 field is set. */ @java.lang.Override public boolean hasRSA3072() { return signatureCase_ == 4; } /** *
   **
   * RSA-3072 signature
   * 
* * bytes RSA_3072 = 4; * @return The rSA3072. */ @java.lang.Override public com.google.protobuf.ByteString getRSA3072() { if (signatureCase_ == 4) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } public static final int ECDSA_384_FIELD_NUMBER = 5; /** *
   **
   * ECDSA p-384 signature
   * 
* * bytes ECDSA_384 = 5; * @return Whether the eCDSA384 field is set. */ @java.lang.Override public boolean hasECDSA384() { return signatureCase_ == 5; } /** *
   **
   * ECDSA p-384 signature
   * 
* * bytes ECDSA_384 = 5; * @return The eCDSA384. */ @java.lang.Override public com.google.protobuf.ByteString getECDSA384() { if (signatureCase_ == 5) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } public static final int ECDSA_SECP256K1_FIELD_NUMBER = 6; /** *
   **
   * ECDSA(secp256k1) signature
   * 
* * bytes ECDSA_secp256k1 = 6; * @return Whether the eCDSASecp256k1 field is set. */ @java.lang.Override public boolean hasECDSASecp256K1() { return signatureCase_ == 6; } /** *
   **
   * ECDSA(secp256k1) signature
   * 
* * bytes ECDSA_secp256k1 = 6; * @return The eCDSASecp256k1. */ @java.lang.Override public com.google.protobuf.ByteString getECDSASecp256K1() { if (signatureCase_ == 6) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } 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 (!pubKeyPrefix_.isEmpty()) { output.writeBytes(1, pubKeyPrefix_); } if (signatureCase_ == 2) { output.writeBytes( 2, (com.google.protobuf.ByteString) signature_); } if (signatureCase_ == 3) { output.writeBytes( 3, (com.google.protobuf.ByteString) signature_); } if (signatureCase_ == 4) { output.writeBytes( 4, (com.google.protobuf.ByteString) signature_); } if (signatureCase_ == 5) { output.writeBytes( 5, (com.google.protobuf.ByteString) signature_); } if (signatureCase_ == 6) { output.writeBytes( 6, (com.google.protobuf.ByteString) signature_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!pubKeyPrefix_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, pubKeyPrefix_); } if (signatureCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 2, (com.google.protobuf.ByteString) signature_); } if (signatureCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 3, (com.google.protobuf.ByteString) signature_); } if (signatureCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 4, (com.google.protobuf.ByteString) signature_); } if (signatureCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 5, (com.google.protobuf.ByteString) signature_); } if (signatureCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 6, (com.google.protobuf.ByteString) signature_); } 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.hederahashgraph.api.proto.java.SignaturePair)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.SignaturePair other = (com.hederahashgraph.api.proto.java.SignaturePair) obj; if (!getPubKeyPrefix() .equals(other.getPubKeyPrefix())) return false; if (!getSignatureCase().equals(other.getSignatureCase())) return false; switch (signatureCase_) { case 2: if (!getContract() .equals(other.getContract())) return false; break; case 3: if (!getEd25519() .equals(other.getEd25519())) return false; break; case 4: if (!getRSA3072() .equals(other.getRSA3072())) return false; break; case 5: if (!getECDSA384() .equals(other.getECDSA384())) return false; break; case 6: if (!getECDSASecp256K1() .equals(other.getECDSASecp256K1())) return false; break; case 0: default: } 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) + PUBKEYPREFIX_FIELD_NUMBER; hash = (53 * hash) + getPubKeyPrefix().hashCode(); switch (signatureCase_) { case 2: hash = (37 * hash) + CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getContract().hashCode(); break; case 3: hash = (37 * hash) + ED25519_FIELD_NUMBER; hash = (53 * hash) + getEd25519().hashCode(); break; case 4: hash = (37 * hash) + RSA_3072_FIELD_NUMBER; hash = (53 * hash) + getRSA3072().hashCode(); break; case 5: hash = (37 * hash) + ECDSA_384_FIELD_NUMBER; hash = (53 * hash) + getECDSA384().hashCode(); break; case 6: hash = (37 * hash) + ECDSA_SECP256K1_FIELD_NUMBER; hash = (53 * hash) + getECDSASecp256K1().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.SignaturePair parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.SignaturePair parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.SignaturePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.SignaturePair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.SignaturePair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.SignaturePair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.SignaturePair parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.SignaturePair 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.hederahashgraph.api.proto.java.SignaturePair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.SignaturePair 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.hederahashgraph.api.proto.java.SignaturePair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.SignaturePair 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.hederahashgraph.api.proto.java.SignaturePair 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; } /** *
   **
   * The client may use any number of bytes from zero to the whole length of the public key for
   * pubKeyPrefix. If zero bytes are used, then it must be that only one primitive key is required
   * to sign the linked transaction; it will surely resolve to <tt>INVALID_SIGNATURE</tt> otherwise.
   * <b>IMPORTANT:</b> In the special case that a signature is being provided for a key used to
   * authorize a precompiled contract, the <tt>pubKeyPrefix</tt> must contain the <b>entire public
   * key</b>! That is, if the key is a Ed25519 key, the <tt>pubKeyPrefix</tt> should be 32 bytes
   * long. If the key is a ECDSA(secp256k1) key, the <tt>pubKeyPrefix</tt> should be 33 bytes long,
   * since we require the compressed form of the public key.
   * Only Ed25519 and ECDSA(secp256k1) keys and hence signatures are currently supported.
   * 
* * Protobuf type {@code proto.SignaturePair} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SignaturePair) com.hederahashgraph.api.proto.java.SignaturePairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SignaturePair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SignaturePair_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.SignaturePair.class, com.hederahashgraph.api.proto.java.SignaturePair.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.SignaturePair.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(); pubKeyPrefix_ = com.google.protobuf.ByteString.EMPTY; signatureCase_ = 0; signature_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_SignaturePair_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.SignaturePair getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.SignaturePair.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.SignaturePair build() { com.hederahashgraph.api.proto.java.SignaturePair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.SignaturePair buildPartial() { com.hederahashgraph.api.proto.java.SignaturePair result = new com.hederahashgraph.api.proto.java.SignaturePair(this); result.pubKeyPrefix_ = pubKeyPrefix_; if (signatureCase_ == 2) { result.signature_ = signature_; } if (signatureCase_ == 3) { result.signature_ = signature_; } if (signatureCase_ == 4) { result.signature_ = signature_; } if (signatureCase_ == 5) { result.signature_ = signature_; } if (signatureCase_ == 6) { result.signature_ = signature_; } result.signatureCase_ = signatureCase_; 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.hederahashgraph.api.proto.java.SignaturePair) { return mergeFrom((com.hederahashgraph.api.proto.java.SignaturePair)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.SignaturePair other) { if (other == com.hederahashgraph.api.proto.java.SignaturePair.getDefaultInstance()) return this; if (other.getPubKeyPrefix() != com.google.protobuf.ByteString.EMPTY) { setPubKeyPrefix(other.getPubKeyPrefix()); } switch (other.getSignatureCase()) { case CONTRACT: { setContract(other.getContract()); break; } case ED25519: { setEd25519(other.getEd25519()); break; } case RSA_3072: { setRSA3072(other.getRSA3072()); break; } case ECDSA_384: { setECDSA384(other.getECDSA384()); break; } case ECDSA_SECP256K1: { setECDSASecp256K1(other.getECDSASecp256K1()); break; } case SIGNATURE_NOT_SET: { break; } } 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.hederahashgraph.api.proto.java.SignaturePair parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.SignaturePair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int signatureCase_ = 0; private java.lang.Object signature_; public SignatureCase getSignatureCase() { return SignatureCase.forNumber( signatureCase_); } public Builder clearSignature() { signatureCase_ = 0; signature_ = null; onChanged(); return this; } private com.google.protobuf.ByteString pubKeyPrefix_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * First few bytes of the public key
     * 
* * bytes pubKeyPrefix = 1; * @return The pubKeyPrefix. */ @java.lang.Override public com.google.protobuf.ByteString getPubKeyPrefix() { return pubKeyPrefix_; } /** *
     **
     * First few bytes of the public key
     * 
* * bytes pubKeyPrefix = 1; * @param value The pubKeyPrefix to set. * @return This builder for chaining. */ public Builder setPubKeyPrefix(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pubKeyPrefix_ = value; onChanged(); return this; } /** *
     **
     * First few bytes of the public key
     * 
* * bytes pubKeyPrefix = 1; * @return This builder for chaining. */ public Builder clearPubKeyPrefix() { pubKeyPrefix_ = getDefaultInstance().getPubKeyPrefix(); onChanged(); return this; } /** *
     **
     * smart contract virtual signature (always length zero)
     * 
* * bytes contract = 2; * @return Whether the contract field is set. */ public boolean hasContract() { return signatureCase_ == 2; } /** *
     **
     * smart contract virtual signature (always length zero)
     * 
* * bytes contract = 2; * @return The contract. */ public com.google.protobuf.ByteString getContract() { if (signatureCase_ == 2) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * smart contract virtual signature (always length zero)
     * 
* * bytes contract = 2; * @param value The contract to set. * @return This builder for chaining. */ public Builder setContract(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signatureCase_ = 2; signature_ = value; onChanged(); return this; } /** *
     **
     * smart contract virtual signature (always length zero)
     * 
* * bytes contract = 2; * @return This builder for chaining. */ public Builder clearContract() { if (signatureCase_ == 2) { signatureCase_ = 0; signature_ = null; onChanged(); } return this; } /** *
     **
     * ed25519 signature
     * 
* * bytes ed25519 = 3; * @return Whether the ed25519 field is set. */ public boolean hasEd25519() { return signatureCase_ == 3; } /** *
     **
     * ed25519 signature
     * 
* * bytes ed25519 = 3; * @return The ed25519. */ public com.google.protobuf.ByteString getEd25519() { if (signatureCase_ == 3) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * ed25519 signature
     * 
* * bytes ed25519 = 3; * @param value The ed25519 to set. * @return This builder for chaining. */ public Builder setEd25519(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signatureCase_ = 3; signature_ = value; onChanged(); return this; } /** *
     **
     * ed25519 signature
     * 
* * bytes ed25519 = 3; * @return This builder for chaining. */ public Builder clearEd25519() { if (signatureCase_ == 3) { signatureCase_ = 0; signature_ = null; onChanged(); } return this; } /** *
     **
     * RSA-3072 signature
     * 
* * bytes RSA_3072 = 4; * @return Whether the rSA3072 field is set. */ public boolean hasRSA3072() { return signatureCase_ == 4; } /** *
     **
     * RSA-3072 signature
     * 
* * bytes RSA_3072 = 4; * @return The rSA3072. */ public com.google.protobuf.ByteString getRSA3072() { if (signatureCase_ == 4) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * RSA-3072 signature
     * 
* * bytes RSA_3072 = 4; * @param value The rSA3072 to set. * @return This builder for chaining. */ public Builder setRSA3072(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signatureCase_ = 4; signature_ = value; onChanged(); return this; } /** *
     **
     * RSA-3072 signature
     * 
* * bytes RSA_3072 = 4; * @return This builder for chaining. */ public Builder clearRSA3072() { if (signatureCase_ == 4) { signatureCase_ = 0; signature_ = null; onChanged(); } return this; } /** *
     **
     * ECDSA p-384 signature
     * 
* * bytes ECDSA_384 = 5; * @return Whether the eCDSA384 field is set. */ public boolean hasECDSA384() { return signatureCase_ == 5; } /** *
     **
     * ECDSA p-384 signature
     * 
* * bytes ECDSA_384 = 5; * @return The eCDSA384. */ public com.google.protobuf.ByteString getECDSA384() { if (signatureCase_ == 5) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * ECDSA p-384 signature
     * 
* * bytes ECDSA_384 = 5; * @param value The eCDSA384 to set. * @return This builder for chaining. */ public Builder setECDSA384(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signatureCase_ = 5; signature_ = value; onChanged(); return this; } /** *
     **
     * ECDSA p-384 signature
     * 
* * bytes ECDSA_384 = 5; * @return This builder for chaining. */ public Builder clearECDSA384() { if (signatureCase_ == 5) { signatureCase_ = 0; signature_ = null; onChanged(); } return this; } /** *
     **
     * ECDSA(secp256k1) signature
     * 
* * bytes ECDSA_secp256k1 = 6; * @return Whether the eCDSASecp256k1 field is set. */ public boolean hasECDSASecp256K1() { return signatureCase_ == 6; } /** *
     **
     * ECDSA(secp256k1) signature
     * 
* * bytes ECDSA_secp256k1 = 6; * @return The eCDSASecp256k1. */ public com.google.protobuf.ByteString getECDSASecp256K1() { if (signatureCase_ == 6) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * ECDSA(secp256k1) signature
     * 
* * bytes ECDSA_secp256k1 = 6; * @param value The eCDSASecp256k1 to set. * @return This builder for chaining. */ public Builder setECDSASecp256K1(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signatureCase_ = 6; signature_ = value; onChanged(); return this; } /** *
     **
     * ECDSA(secp256k1) signature
     * 
* * bytes ECDSA_secp256k1 = 6; * @return This builder for chaining. */ public Builder clearECDSASecp256K1() { if (signatureCase_ == 6) { signatureCase_ = 0; signature_ = null; 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:proto.SignaturePair) } // @@protoc_insertion_point(class_scope:proto.SignaturePair) private static final com.hederahashgraph.api.proto.java.SignaturePair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.SignaturePair(); } public static com.hederahashgraph.api.proto.java.SignaturePair getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SignaturePair parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SignaturePair(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.hederahashgraph.api.proto.java.SignaturePair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy