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

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

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * 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(); } @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: { signatureCase_ = 1; signature_ = 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: { com.hederahashgraph.api.proto.java.ThresholdSignature.Builder subBuilder = null; if (signatureCase_ == 5) { subBuilder = ((com.hederahashgraph.api.proto.java.ThresholdSignature) signature_).toBuilder(); } signature_ = input.readMessage(com.hederahashgraph.api.proto.java.ThresholdSignature.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ThresholdSignature) signature_); signature_ = subBuilder.buildPartial(); } signatureCase_ = 5; break; } case 50: { com.hederahashgraph.api.proto.java.SignatureList.Builder subBuilder = null; if (signatureCase_ == 6) { subBuilder = ((com.hederahashgraph.api.proto.java.SignatureList) signature_).toBuilder(); } signature_ = input.readMessage(com.hederahashgraph.api.proto.java.SignatureList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.SignatureList) signature_); signature_ = subBuilder.buildPartial(); } signatureCase_ = 6; 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_Signature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.Signature.class, com.hederahashgraph.api.proto.java.Signature.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(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.hederahashgraph.api.proto.java.ThresholdSignature getThresholdSignature() { if (signatureCase_ == 5) { return (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder getThresholdSignatureOrBuilder() { if (signatureCase_ == 5) { return (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SignatureList getSignatureList() { if (signatureCase_ == 6) { return (com.hederahashgraph.api.proto.java.SignatureList) signature_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SignatureListOrBuilder getSignatureListOrBuilder() { if (signatureCase_ == 6) { return (com.hederahashgraph.api.proto.java.SignatureList) signature_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThresholdSignature) signature_); } if (signatureCase_ == 6) { output.writeMessage(6, (com.hederahashgraph.api.proto.java.SignatureList) signature_); } unknownFields.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.hederahashgraph.api.proto.java.ThresholdSignature) signature_); } if (signatureCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.hederahashgraph.api.proto.java.SignatureList) 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.Signature)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.Signature other = (com.hederahashgraph.api.proto.java.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 (!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(); 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.Signature parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.Signature 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.Signature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Signature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.Signature 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.Signature parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Signature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Signature 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.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Signature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.Signature.class, com.hederahashgraph.api.proto.java.Signature.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.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(); 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_Signature_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.Signature getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.Signature.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.Signature build() { com.hederahashgraph.api.proto.java.Signature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.Signature buildPartial() { com.hederahashgraph.api.proto.java.Signature result = new com.hederahashgraph.api.proto.java.Signature(this); if (signatureCase_ == 1) { result.signature_ = signature_; } if (signatureCase_ == 2) { result.signature_ = signature_; } if (signatureCase_ == 3) { result.signature_ = signature_; } if (signatureCase_ == 4) { result.signature_ = signature_; } if (signatureCase_ == 5) { if (thresholdSignatureBuilder_ == null) { result.signature_ = signature_; } else { result.signature_ = thresholdSignatureBuilder_.build(); } } if (signatureCase_ == 6) { if (signatureListBuilder_ == null) { result.signature_ = signature_; } else { result.signature_ = signatureListBuilder_.build(); } } 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.Signature) { return mergeFrom((com.hederahashgraph.api.proto.java.Signature)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.Signature other) { if (other == com.hederahashgraph.api.proto.java.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.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.Signature parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.Signature) 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; } /** *
     **
     * 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.hederahashgraph.api.proto.java.ThresholdSignature, com.hederahashgraph.api.proto.java.ThresholdSignature.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThresholdSignature getThresholdSignature() { if (thresholdSignatureBuilder_ == null) { if (signatureCase_ == 5) { return (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_; } return com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance(); } else { if (signatureCase_ == 5) { return thresholdSignatureBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThresholdSignature value) { if (thresholdSignatureBuilder_ == null) { if (signatureCase_ == 5 && signature_ != com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance()) { signature_ = com.hederahashgraph.api.proto.java.ThresholdSignature.newBuilder((com.hederahashgraph.api.proto.java.ThresholdSignature) signature_) .mergeFrom(value).buildPartial(); } else { signature_ = value; } onChanged(); } else { if (signatureCase_ == 5) { thresholdSignatureBuilder_.mergeFrom(value); } 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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder getThresholdSignatureOrBuilder() { if ((signatureCase_ == 5) && (thresholdSignatureBuilder_ != null)) { return thresholdSignatureBuilder_.getMessageOrBuilder(); } else { if (signatureCase_ == 5) { return (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThresholdSignature, com.hederahashgraph.api.proto.java.ThresholdSignature.Builder, com.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder> getThresholdSignatureFieldBuilder() { if (thresholdSignatureBuilder_ == null) { if (!(signatureCase_ == 5)) { signature_ = com.hederahashgraph.api.proto.java.ThresholdSignature.getDefaultInstance(); } thresholdSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ThresholdSignature, com.hederahashgraph.api.proto.java.ThresholdSignature.Builder, com.hederahashgraph.api.proto.java.ThresholdSignatureOrBuilder>( (com.hederahashgraph.api.proto.java.ThresholdSignature) signature_, getParentForChildren(), isClean()); signature_ = null; } signatureCase_ = 5; onChanged();; return thresholdSignatureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SignatureList getSignatureList() { if (signatureListBuilder_ == null) { if (signatureCase_ == 6) { return (com.hederahashgraph.api.proto.java.SignatureList) signature_; } return com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance(); } else { if (signatureCase_ == 6) { return signatureListBuilder_.getMessage(); } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SignatureList value) { if (signatureListBuilder_ == null) { if (signatureCase_ == 6 && signature_ != com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance()) { signature_ = com.hederahashgraph.api.proto.java.SignatureList.newBuilder((com.hederahashgraph.api.proto.java.SignatureList) signature_) .mergeFrom(value).buildPartial(); } else { signature_ = value; } onChanged(); } else { if (signatureCase_ == 6) { signatureListBuilder_.mergeFrom(value); } 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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SignatureListOrBuilder getSignatureListOrBuilder() { if ((signatureCase_ == 6) && (signatureListBuilder_ != null)) { return signatureListBuilder_.getMessageOrBuilder(); } else { if (signatureCase_ == 6) { return (com.hederahashgraph.api.proto.java.SignatureList) signature_; } return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder> getSignatureListFieldBuilder() { if (signatureListBuilder_ == null) { if (!(signatureCase_ == 6)) { signature_ = com.hederahashgraph.api.proto.java.SignatureList.getDefaultInstance(); } signatureListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.SignatureList, com.hederahashgraph.api.proto.java.SignatureList.Builder, com.hederahashgraph.api.proto.java.SignatureListOrBuilder>( (com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Signature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.Signature(); } public static com.hederahashgraph.api.proto.java.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 com.hederahashgraph.api.proto.java.Signature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy