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

com.hedera.hashgraph.sdk.proto.Signature Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * This message is <b>DEPRECATED</b> and <b>UNUSABLE</b> with network nodes. It is retained
 * here only for historical reasons.
 *
 * Please use the SignaturePair and SignatureMap messages.
 * 
* * Protobuf type {@code proto.Signature} */ @java.lang.Deprecated public final class Signature extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.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() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Signature(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_Signature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.Signature.class, com.hedera.hashgraph.sdk.proto.Signature.Builder.class); } private int signatureCase_ = 0; @SuppressWarnings("serial") private java.lang.Object signature_; public enum SignatureCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTRACT(1), ED25519(2), RSA_3072(3), ECDSA_384(4), THRESHOLDSIGNATURE(5), SIGNATURELIST(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 1: return CONTRACT; case 2: return ED25519; case 3: return RSA_3072; case 4: return ECDSA_384; case 5: return THRESHOLDSIGNATURE; case 6: return SIGNATURELIST; 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 CONTRACT_FIELD_NUMBER = 1; /** *
   **
   * smart contract virtual signature (always length zero)
   * 
* * bytes contract = 1; * @return Whether the contract field is set. */ @java.lang.Override public boolean hasContract() { return signatureCase_ == 1; } /** *
   **
   * smart contract virtual signature (always length zero)
   * 
* * bytes contract = 1; * @return The contract. */ @java.lang.Override public com.google.protobuf.ByteString getContract() { if (signatureCase_ == 1) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } public static final int ED25519_FIELD_NUMBER = 2; /** *
   **
   * ed25519 signature bytes
   * 
* * bytes ed25519 = 2; * @return Whether the ed25519 field is set. */ @java.lang.Override public boolean hasEd25519() { return signatureCase_ == 2; } /** *
   **
   * ed25519 signature bytes
   * 
* * bytes ed25519 = 2; * @return The ed25519. */ @java.lang.Override public com.google.protobuf.ByteString getEd25519() { if (signatureCase_ == 2) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } public static final int RSA_3072_FIELD_NUMBER = 3; /** *
   **
   * RSA-3072 signature bytes
   * 
* * bytes RSA_3072 = 3; * @return Whether the rSA3072 field is set. */ @java.lang.Override public boolean hasRSA3072() { return signatureCase_ == 3; } /** *
   **
   * RSA-3072 signature bytes
   * 
* * bytes RSA_3072 = 3; * @return The rSA3072. */ @java.lang.Override public com.google.protobuf.ByteString getRSA3072() { if (signatureCase_ == 3) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } public static final int ECDSA_384_FIELD_NUMBER = 4; /** *
   **
   * ECDSA p-384 signature bytes
   * 
* * bytes ECDSA_384 = 4; * @return Whether the eCDSA384 field is set. */ @java.lang.Override public boolean hasECDSA384() { return signatureCase_ == 4; } /** *
   **
   * ECDSA p-384 signature bytes
   * 
* * bytes ECDSA_384 = 4; * @return The eCDSA384. */ @java.lang.Override public com.google.protobuf.ByteString getECDSA384() { if (signatureCase_ == 4) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } public static final int THRESHOLDSIGNATURE_FIELD_NUMBER = 5; /** *
   **
   * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
   * signatures, at least N of which are non-null.
   * 
* * .proto.ThresholdSignature thresholdSignature = 5; * @return Whether the thresholdSignature field is set. */ @java.lang.Override public boolean hasThresholdSignature() { return signatureCase_ == 5; } /** *
   **
   * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
   * signatures, at least N of which are non-null.
   * 
* * .proto.ThresholdSignature thresholdSignature = 5; * @return The thresholdSignature. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ThresholdSignature getThresholdSignature() { if (signatureCase_ == 5) { return (com.hedera.hashgraph.sdk.proto.ThresholdSignature) signature_; } return com.hedera.hashgraph.sdk.proto.ThresholdSignature.getDefaultInstance(); } /** *
   **
   * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
   * signatures, at least N of which are non-null.
   * 
* * .proto.ThresholdSignature thresholdSignature = 5; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ThresholdSignatureOrBuilder getThresholdSignatureOrBuilder() { if (signatureCase_ == 5) { return (com.hedera.hashgraph.sdk.proto.ThresholdSignature) signature_; } return com.hedera.hashgraph.sdk.proto.ThresholdSignature.getDefaultInstance(); } public static final int SIGNATURELIST_FIELD_NUMBER = 6; /** *
   **
   * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
   * 
* * .proto.SignatureList signatureList = 6; * @return Whether the signatureList field is set. */ @java.lang.Override public boolean hasSignatureList() { return signatureCase_ == 6; } /** *
   **
   * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
   * 
* * .proto.SignatureList signatureList = 6; * @return The signatureList. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.SignatureList getSignatureList() { if (signatureCase_ == 6) { return (com.hedera.hashgraph.sdk.proto.SignatureList) signature_; } return com.hedera.hashgraph.sdk.proto.SignatureList.getDefaultInstance(); } /** *
   **
   * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
   * 
* * .proto.SignatureList signatureList = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.SignatureListOrBuilder getSignatureListOrBuilder() { if (signatureCase_ == 6) { return (com.hedera.hashgraph.sdk.proto.SignatureList) signature_; } return com.hedera.hashgraph.sdk.proto.SignatureList.getDefaultInstance(); } 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 (signatureCase_ == 1) { output.writeBytes( 1, (com.google.protobuf.ByteString) signature_); } 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.writeMessage(5, (com.hedera.hashgraph.sdk.proto.ThresholdSignature) signature_); } if (signatureCase_ == 6) { output.writeMessage(6, (com.hedera.hashgraph.sdk.proto.SignatureList) signature_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (signatureCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 1, (com.google.protobuf.ByteString) signature_); } 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 .computeMessageSize(5, (com.hedera.hashgraph.sdk.proto.ThresholdSignature) signature_); } if (signatureCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.hedera.hashgraph.sdk.proto.SignatureList) signature_); } size += getUnknownFields().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.hedera.hashgraph.sdk.proto.Signature)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.Signature other = (com.hedera.hashgraph.sdk.proto.Signature) obj; if (!getSignatureCase().equals(other.getSignatureCase())) return false; switch (signatureCase_) { case 1: if (!getContract() .equals(other.getContract())) return false; break; case 2: if (!getEd25519() .equals(other.getEd25519())) return false; break; case 3: if (!getRSA3072() .equals(other.getRSA3072())) return false; break; case 4: if (!getECDSA384() .equals(other.getECDSA384())) return false; break; case 5: if (!getThresholdSignature() .equals(other.getThresholdSignature())) return false; break; case 6: if (!getSignatureList() .equals(other.getSignatureList())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (signatureCase_) { case 1: hash = (37 * hash) + CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getContract().hashCode(); break; case 2: hash = (37 * hash) + ED25519_FIELD_NUMBER; hash = (53 * hash) + getEd25519().hashCode(); break; case 3: hash = (37 * hash) + RSA_3072_FIELD_NUMBER; hash = (53 * hash) + getRSA3072().hashCode(); break; case 4: hash = (37 * hash) + ECDSA_384_FIELD_NUMBER; hash = (53 * hash) + getECDSA384().hashCode(); break; case 5: hash = (37 * hash) + THRESHOLDSIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getThresholdSignature().hashCode(); break; case 6: hash = (37 * hash) + SIGNATURELIST_FIELD_NUMBER; hash = (53 * hash) + getSignatureList().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.Signature parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Signature parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Signature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Signature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Signature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Signature parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Signature parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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 com.hedera.hashgraph.sdk.proto.Signature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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 com.hedera.hashgraph.sdk.proto.Signature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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(com.hedera.hashgraph.sdk.proto.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; } /** *
   **
   * This message is <b>DEPRECATED</b> and <b>UNUSABLE</b> with network nodes. It is retained
   * here only for historical reasons.
   *
   * Please use the SignaturePair and SignatureMap messages.
   * 
* * Protobuf type {@code proto.Signature} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Signature) com.hedera.hashgraph.sdk.proto.SignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_Signature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.Signature.class, com.hedera.hashgraph.sdk.proto.Signature.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.Signature.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (thresholdSignatureBuilder_ != null) { thresholdSignatureBuilder_.clear(); } if (signatureListBuilder_ != null) { signatureListBuilder_.clear(); } signatureCase_ = 0; signature_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_Signature_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Signature getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.Signature.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Signature build() { com.hedera.hashgraph.sdk.proto.Signature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Signature buildPartial() { com.hedera.hashgraph.sdk.proto.Signature result = new com.hedera.hashgraph.sdk.proto.Signature(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.Signature result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.hedera.hashgraph.sdk.proto.Signature result) { result.signatureCase_ = signatureCase_; result.signature_ = this.signature_; if (signatureCase_ == 5 && thresholdSignatureBuilder_ != null) { result.signature_ = thresholdSignatureBuilder_.build(); } if (signatureCase_ == 6 && signatureListBuilder_ != null) { result.signature_ = signatureListBuilder_.build(); } } @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.hedera.hashgraph.sdk.proto.Signature) { return mergeFrom((com.hedera.hashgraph.sdk.proto.Signature)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.Signature other) { if (other == com.hedera.hashgraph.sdk.proto.Signature.getDefaultInstance()) return this; 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 THRESHOLDSIGNATURE: { mergeThresholdSignature(other.getThresholdSignature()); break; } case SIGNATURELIST: { mergeSignatureList(other.getSignatureList()); break; } case SIGNATURE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { signature_ = input.readBytes(); signatureCase_ = 1; break; } // case 10 case 18: { signature_ = input.readBytes(); signatureCase_ = 2; break; } // case 18 case 26: { signature_ = input.readBytes(); signatureCase_ = 3; break; } // case 26 case 34: { signature_ = input.readBytes(); signatureCase_ = 4; break; } // case 34 case 42: { input.readMessage( getThresholdSignatureFieldBuilder().getBuilder(), extensionRegistry); signatureCase_ = 5; break; } // case 42 case 50: { input.readMessage( getSignatureListFieldBuilder().getBuilder(), extensionRegistry); signatureCase_ = 6; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; /** *
     **
     * smart contract virtual signature (always length zero)
     * 
* * bytes contract = 1; * @return Whether the contract field is set. */ public boolean hasContract() { return signatureCase_ == 1; } /** *
     **
     * smart contract virtual signature (always length zero)
     * 
* * bytes contract = 1; * @return The contract. */ public com.google.protobuf.ByteString getContract() { if (signatureCase_ == 1) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * smart contract virtual signature (always length zero)
     * 
* * bytes contract = 1; * @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_ = 1; signature_ = value; onChanged(); return this; } /** *
     **
     * smart contract virtual signature (always length zero)
     * 
* * bytes contract = 1; * @return This builder for chaining. */ public Builder clearContract() { if (signatureCase_ == 1) { signatureCase_ = 0; signature_ = null; onChanged(); } return this; } /** *
     **
     * ed25519 signature bytes
     * 
* * bytes ed25519 = 2; * @return Whether the ed25519 field is set. */ public boolean hasEd25519() { return signatureCase_ == 2; } /** *
     **
     * ed25519 signature bytes
     * 
* * bytes ed25519 = 2; * @return The ed25519. */ public com.google.protobuf.ByteString getEd25519() { if (signatureCase_ == 2) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * ed25519 signature bytes
     * 
* * bytes ed25519 = 2; * @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_ = 2; signature_ = value; onChanged(); return this; } /** *
     **
     * ed25519 signature bytes
     * 
* * bytes ed25519 = 2; * @return This builder for chaining. */ public Builder clearEd25519() { if (signatureCase_ == 2) { signatureCase_ = 0; signature_ = null; onChanged(); } return this; } /** *
     **
     * RSA-3072 signature bytes
     * 
* * bytes RSA_3072 = 3; * @return Whether the rSA3072 field is set. */ public boolean hasRSA3072() { return signatureCase_ == 3; } /** *
     **
     * RSA-3072 signature bytes
     * 
* * bytes RSA_3072 = 3; * @return The rSA3072. */ public com.google.protobuf.ByteString getRSA3072() { if (signatureCase_ == 3) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * RSA-3072 signature bytes
     * 
* * bytes RSA_3072 = 3; * @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_ = 3; signature_ = value; onChanged(); return this; } /** *
     **
     * RSA-3072 signature bytes
     * 
* * bytes RSA_3072 = 3; * @return This builder for chaining. */ public Builder clearRSA3072() { if (signatureCase_ == 3) { signatureCase_ = 0; signature_ = null; onChanged(); } return this; } /** *
     **
     * ECDSA p-384 signature bytes
     * 
* * bytes ECDSA_384 = 4; * @return Whether the eCDSA384 field is set. */ public boolean hasECDSA384() { return signatureCase_ == 4; } /** *
     **
     * ECDSA p-384 signature bytes
     * 
* * bytes ECDSA_384 = 4; * @return The eCDSA384. */ public com.google.protobuf.ByteString getECDSA384() { if (signatureCase_ == 4) { return (com.google.protobuf.ByteString) signature_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * ECDSA p-384 signature bytes
     * 
* * bytes ECDSA_384 = 4; * @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_ = 4; signature_ = value; onChanged(); return this; } /** *
     **
     * ECDSA p-384 signature bytes
     * 
* * bytes ECDSA_384 = 4; * @return This builder for chaining. */ public Builder clearECDSA384() { if (signatureCase_ == 4) { signatureCase_ = 0; signature_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ThresholdSignature, com.hedera.hashgraph.sdk.proto.ThresholdSignature.Builder, com.hedera.hashgraph.sdk.proto.ThresholdSignatureOrBuilder> thresholdSignatureBuilder_; /** *
     **
     * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
     * signatures, at least N of which are non-null.
     * 
* * .proto.ThresholdSignature thresholdSignature = 5; * @return Whether the thresholdSignature field is set. */ @java.lang.Override public boolean hasThresholdSignature() { return signatureCase_ == 5; } /** *
     **
     * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
     * signatures, at least N of which are non-null.
     * 
* * .proto.ThresholdSignature thresholdSignature = 5; * @return The thresholdSignature. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ThresholdSignature getThresholdSignature() { if (thresholdSignatureBuilder_ == null) { if (signatureCase_ == 5) { return (com.hedera.hashgraph.sdk.proto.ThresholdSignature) signature_; } return com.hedera.hashgraph.sdk.proto.ThresholdSignature.getDefaultInstance(); } else { if (signatureCase_ == 5) { return thresholdSignatureBuilder_.getMessage(); } return com.hedera.hashgraph.sdk.proto.ThresholdSignature.getDefaultInstance(); } } /** *
     **
     * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
     * signatures, at least N of which are non-null.
     * 
* * .proto.ThresholdSignature thresholdSignature = 5; */ public Builder setThresholdSignature(com.hedera.hashgraph.sdk.proto.ThresholdSignature value) { if (thresholdSignatureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); } else { thresholdSignatureBuilder_.setMessage(value); } signatureCase_ = 5; return this; } /** *
     **
     * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
     * signatures, at least N of which are non-null.
     * 
* * .proto.ThresholdSignature thresholdSignature = 5; */ public Builder setThresholdSignature( com.hedera.hashgraph.sdk.proto.ThresholdSignature.Builder builderForValue) { if (thresholdSignatureBuilder_ == null) { signature_ = builderForValue.build(); onChanged(); } else { thresholdSignatureBuilder_.setMessage(builderForValue.build()); } signatureCase_ = 5; return this; } /** *
     **
     * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
     * signatures, at least N of which are non-null.
     * 
* * .proto.ThresholdSignature thresholdSignature = 5; */ public Builder mergeThresholdSignature(com.hedera.hashgraph.sdk.proto.ThresholdSignature value) { if (thresholdSignatureBuilder_ == null) { if (signatureCase_ == 5 && signature_ != com.hedera.hashgraph.sdk.proto.ThresholdSignature.getDefaultInstance()) { signature_ = com.hedera.hashgraph.sdk.proto.ThresholdSignature.newBuilder((com.hedera.hashgraph.sdk.proto.ThresholdSignature) signature_) .mergeFrom(value).buildPartial(); } else { signature_ = value; } onChanged(); } else { if (signatureCase_ == 5) { thresholdSignatureBuilder_.mergeFrom(value); } else { thresholdSignatureBuilder_.setMessage(value); } } signatureCase_ = 5; return this; } /** *
     **
     * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
     * signatures, at least N of which are non-null.
     * 
* * .proto.ThresholdSignature thresholdSignature = 5; */ public Builder clearThresholdSignature() { if (thresholdSignatureBuilder_ == null) { if (signatureCase_ == 5) { signatureCase_ = 0; signature_ = null; onChanged(); } } else { if (signatureCase_ == 5) { signatureCase_ = 0; signature_ = null; } thresholdSignatureBuilder_.clear(); } return this; } /** *
     **
     * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
     * signatures, at least N of which are non-null.
     * 
* * .proto.ThresholdSignature thresholdSignature = 5; */ public com.hedera.hashgraph.sdk.proto.ThresholdSignature.Builder getThresholdSignatureBuilder() { return getThresholdSignatureFieldBuilder().getBuilder(); } /** *
     **
     * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
     * signatures, at least N of which are non-null.
     * 
* * .proto.ThresholdSignature thresholdSignature = 5; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ThresholdSignatureOrBuilder getThresholdSignatureOrBuilder() { if ((signatureCase_ == 5) && (thresholdSignatureBuilder_ != null)) { return thresholdSignatureBuilder_.getMessageOrBuilder(); } else { if (signatureCase_ == 5) { return (com.hedera.hashgraph.sdk.proto.ThresholdSignature) signature_; } return com.hedera.hashgraph.sdk.proto.ThresholdSignature.getDefaultInstance(); } } /** *
     **
     * A list of signatures for a single N-of-M threshold Key. This must be a list of exactly M
     * signatures, at least N of which are non-null.
     * 
* * .proto.ThresholdSignature thresholdSignature = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ThresholdSignature, com.hedera.hashgraph.sdk.proto.ThresholdSignature.Builder, com.hedera.hashgraph.sdk.proto.ThresholdSignatureOrBuilder> getThresholdSignatureFieldBuilder() { if (thresholdSignatureBuilder_ == null) { if (!(signatureCase_ == 5)) { signature_ = com.hedera.hashgraph.sdk.proto.ThresholdSignature.getDefaultInstance(); } thresholdSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.ThresholdSignature, com.hedera.hashgraph.sdk.proto.ThresholdSignature.Builder, com.hedera.hashgraph.sdk.proto.ThresholdSignatureOrBuilder>( (com.hedera.hashgraph.sdk.proto.ThresholdSignature) signature_, getParentForChildren(), isClean()); signature_ = null; } signatureCase_ = 5; onChanged(); return thresholdSignatureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.SignatureList, com.hedera.hashgraph.sdk.proto.SignatureList.Builder, com.hedera.hashgraph.sdk.proto.SignatureListOrBuilder> signatureListBuilder_; /** *
     **
     * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
     * 
* * .proto.SignatureList signatureList = 6; * @return Whether the signatureList field is set. */ @java.lang.Override public boolean hasSignatureList() { return signatureCase_ == 6; } /** *
     **
     * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
     * 
* * .proto.SignatureList signatureList = 6; * @return The signatureList. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.SignatureList getSignatureList() { if (signatureListBuilder_ == null) { if (signatureCase_ == 6) { return (com.hedera.hashgraph.sdk.proto.SignatureList) signature_; } return com.hedera.hashgraph.sdk.proto.SignatureList.getDefaultInstance(); } else { if (signatureCase_ == 6) { return signatureListBuilder_.getMessage(); } return com.hedera.hashgraph.sdk.proto.SignatureList.getDefaultInstance(); } } /** *
     **
     * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
     * 
* * .proto.SignatureList signatureList = 6; */ public Builder setSignatureList(com.hedera.hashgraph.sdk.proto.SignatureList value) { if (signatureListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); } else { signatureListBuilder_.setMessage(value); } signatureCase_ = 6; return this; } /** *
     **
     * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
     * 
* * .proto.SignatureList signatureList = 6; */ public Builder setSignatureList( com.hedera.hashgraph.sdk.proto.SignatureList.Builder builderForValue) { if (signatureListBuilder_ == null) { signature_ = builderForValue.build(); onChanged(); } else { signatureListBuilder_.setMessage(builderForValue.build()); } signatureCase_ = 6; return this; } /** *
     **
     * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
     * 
* * .proto.SignatureList signatureList = 6; */ public Builder mergeSignatureList(com.hedera.hashgraph.sdk.proto.SignatureList value) { if (signatureListBuilder_ == null) { if (signatureCase_ == 6 && signature_ != com.hedera.hashgraph.sdk.proto.SignatureList.getDefaultInstance()) { signature_ = com.hedera.hashgraph.sdk.proto.SignatureList.newBuilder((com.hedera.hashgraph.sdk.proto.SignatureList) signature_) .mergeFrom(value).buildPartial(); } else { signature_ = value; } onChanged(); } else { if (signatureCase_ == 6) { signatureListBuilder_.mergeFrom(value); } else { signatureListBuilder_.setMessage(value); } } signatureCase_ = 6; return this; } /** *
     **
     * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
     * 
* * .proto.SignatureList signatureList = 6; */ public Builder clearSignatureList() { if (signatureListBuilder_ == null) { if (signatureCase_ == 6) { signatureCase_ = 0; signature_ = null; onChanged(); } } else { if (signatureCase_ == 6) { signatureCase_ = 0; signature_ = null; } signatureListBuilder_.clear(); } return this; } /** *
     **
     * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
     * 
* * .proto.SignatureList signatureList = 6; */ public com.hedera.hashgraph.sdk.proto.SignatureList.Builder getSignatureListBuilder() { return getSignatureListFieldBuilder().getBuilder(); } /** *
     **
     * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
     * 
* * .proto.SignatureList signatureList = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.SignatureListOrBuilder getSignatureListOrBuilder() { if ((signatureCase_ == 6) && (signatureListBuilder_ != null)) { return signatureListBuilder_.getMessageOrBuilder(); } else { if (signatureCase_ == 6) { return (com.hedera.hashgraph.sdk.proto.SignatureList) signature_; } return com.hedera.hashgraph.sdk.proto.SignatureList.getDefaultInstance(); } } /** *
     **
     * A list of M signatures, each corresponding to a Key in a KeyList of the same length.
     * 
* * .proto.SignatureList signatureList = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.SignatureList, com.hedera.hashgraph.sdk.proto.SignatureList.Builder, com.hedera.hashgraph.sdk.proto.SignatureListOrBuilder> getSignatureListFieldBuilder() { if (signatureListBuilder_ == null) { if (!(signatureCase_ == 6)) { signature_ = com.hedera.hashgraph.sdk.proto.SignatureList.getDefaultInstance(); } signatureListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.SignatureList, com.hedera.hashgraph.sdk.proto.SignatureList.Builder, com.hedera.hashgraph.sdk.proto.SignatureListOrBuilder>( (com.hedera.hashgraph.sdk.proto.SignatureList) signature_, getParentForChildren(), isClean()); signature_ = null; } signatureCase_ = 6; onChanged(); return signatureListBuilder_; } @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.Signature) } // @@protoc_insertion_point(class_scope:proto.Signature) private static final com.hedera.hashgraph.sdk.proto.Signature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.Signature(); } public static com.hedera.hashgraph.sdk.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.hedera.hashgraph.sdk.proto.Signature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy