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

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

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

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * A set of signatures corresponding to every unique public key used to sign a given transaction. If
 * one public key matches more than one prefixes on the signature map, the transaction containing
 * the map will fail immediately with the response code KEY_PREFIX_MISMATCH.
 * 
* * Protobuf type {@code proto.SignatureMap} */ public final class SignatureMap extends com.google.protobuf.GeneratedMessageLite< SignatureMap, SignatureMap.Builder> implements // @@protoc_insertion_point(message_implements:proto.SignatureMap) SignatureMapOrBuilder { private SignatureMap() { sigPair_ = emptyProtobufList(); } public static final int SIGPAIR_FIELD_NUMBER = 1; private com.google.protobuf.Internal.ProtobufList sigPair_; /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ @java.lang.Override public java.util.List getSigPairList() { return sigPair_; } /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ public java.util.List getSigPairOrBuilderList() { return sigPair_; } /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ @java.lang.Override public int getSigPairCount() { return sigPair_.size(); } /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.SignaturePair getSigPair(int index) { return sigPair_.get(index); } /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ public com.hedera.hashgraph.sdk.proto.SignaturePairOrBuilder getSigPairOrBuilder( int index) { return sigPair_.get(index); } private void ensureSigPairIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = sigPair_; if (!tmp.isModifiable()) { sigPair_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ private void setSigPair( int index, com.hedera.hashgraph.sdk.proto.SignaturePair value) { value.getClass(); ensureSigPairIsMutable(); sigPair_.set(index, value); } /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ private void addSigPair(com.hedera.hashgraph.sdk.proto.SignaturePair value) { value.getClass(); ensureSigPairIsMutable(); sigPair_.add(value); } /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ private void addSigPair( int index, com.hedera.hashgraph.sdk.proto.SignaturePair value) { value.getClass(); ensureSigPairIsMutable(); sigPair_.add(index, value); } /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ private void addAllSigPair( java.lang.Iterable values) { ensureSigPairIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, sigPair_); } /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ private void clearSigPair() { sigPair_ = emptyProtobufList(); } /** *
   **
   * Each signature pair corresponds to a unique Key required to sign the transaction.
   * 
* * repeated .proto.SignaturePair sigPair = 1; */ private void removeSigPair(int index) { ensureSigPairIsMutable(); sigPair_.remove(index); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.SignatureMap parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.SignatureMap prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * A set of signatures corresponding to every unique public key used to sign a given transaction. If
   * one public key matches more than one prefixes on the signature map, the transaction containing
   * the map will fail immediately with the response code KEY_PREFIX_MISMATCH.
   * 
* * Protobuf type {@code proto.SignatureMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.SignatureMap, Builder> implements // @@protoc_insertion_point(builder_implements:proto.SignatureMap) com.hedera.hashgraph.sdk.proto.SignatureMapOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.SignatureMap.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ @java.lang.Override public java.util.List getSigPairList() { return java.util.Collections.unmodifiableList( instance.getSigPairList()); } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ @java.lang.Override public int getSigPairCount() { return instance.getSigPairCount(); }/** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.SignaturePair getSigPair(int index) { return instance.getSigPair(index); } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ public Builder setSigPair( int index, com.hedera.hashgraph.sdk.proto.SignaturePair value) { copyOnWrite(); instance.setSigPair(index, value); return this; } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ public Builder setSigPair( int index, com.hedera.hashgraph.sdk.proto.SignaturePair.Builder builderForValue) { copyOnWrite(); instance.setSigPair(index, builderForValue.build()); return this; } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ public Builder addSigPair(com.hedera.hashgraph.sdk.proto.SignaturePair value) { copyOnWrite(); instance.addSigPair(value); return this; } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ public Builder addSigPair( int index, com.hedera.hashgraph.sdk.proto.SignaturePair value) { copyOnWrite(); instance.addSigPair(index, value); return this; } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ public Builder addSigPair( com.hedera.hashgraph.sdk.proto.SignaturePair.Builder builderForValue) { copyOnWrite(); instance.addSigPair(builderForValue.build()); return this; } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ public Builder addSigPair( int index, com.hedera.hashgraph.sdk.proto.SignaturePair.Builder builderForValue) { copyOnWrite(); instance.addSigPair(index, builderForValue.build()); return this; } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ public Builder addAllSigPair( java.lang.Iterable values) { copyOnWrite(); instance.addAllSigPair(values); return this; } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ public Builder clearSigPair() { copyOnWrite(); instance.clearSigPair(); return this; } /** *
     **
     * Each signature pair corresponds to a unique Key required to sign the transaction.
     * 
* * repeated .proto.SignaturePair sigPair = 1; */ public Builder removeSigPair(int index) { copyOnWrite(); instance.removeSigPair(index); return this; } // @@protoc_insertion_point(builder_scope:proto.SignatureMap) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.SignatureMap(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "sigPair_", com.hedera.hashgraph.sdk.proto.SignaturePair.class, }; java.lang.String info = "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.SignatureMap.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.SignatureMap) private static final com.hedera.hashgraph.sdk.proto.SignatureMap DEFAULT_INSTANCE; static { SignatureMap defaultInstance = new SignatureMap(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SignatureMap.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.SignatureMap getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy