com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tss_message.proto
// Protobuf Java Version: 3.25.4
package com.hedera.hapi.services.auxiliary.tss.legacy;
/**
*
** A transaction body to to send a Threshold Signature Scheme (TSS)
* Message.<br/>
* This is a wrapper around several different TSS message types that a node
* might communicate with other nodes in the network.
*
* - A `TssMessageTransactionBody` MUST identify the hash of the roster
* containing the node generating this TssMessage
* - A `TssMessageTransactionBody` MUST identify the hash of the roster that
* the TSS messages is for
* - A `TssMessageTransactionBody` SHALL contain the specificc TssMessage data
* that has been generated by the node for the share_index.
*
*
* Protobuf type {@code com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody}
*/
public final class TssMessageTransactionBody extends
com.google.protobuf.GeneratedMessageLite<
TssMessageTransactionBody, TssMessageTransactionBody.Builder> implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody)
TssMessageTransactionBodyOrBuilder {
private TssMessageTransactionBody() {
sourceRosterHash_ = com.google.protobuf.ByteString.EMPTY;
targetRosterHash_ = com.google.protobuf.ByteString.EMPTY;
tssMessage_ = com.google.protobuf.ByteString.EMPTY;
}
public static final int SOURCE_ROSTER_HASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString sourceRosterHash_;
/**
*
**
* A hash of the roster containing the node generating the TssMessage.</br>
* This hash uniquely identifies the source roster, which will include
* an entry for the node generating this TssMessage.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes source_roster_hash = 1;
* @return The sourceRosterHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSourceRosterHash() {
return sourceRosterHash_;
}
/**
*
**
* A hash of the roster containing the node generating the TssMessage.</br>
* This hash uniquely identifies the source roster, which will include
* an entry for the node generating this TssMessage.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes source_roster_hash = 1;
* @param value The sourceRosterHash to set.
*/
private void setSourceRosterHash(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
sourceRosterHash_ = value;
}
/**
*
**
* A hash of the roster containing the node generating the TssMessage.</br>
* This hash uniquely identifies the source roster, which will include
* an entry for the node generating this TssMessage.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes source_roster_hash = 1;
*/
private void clearSourceRosterHash() {
sourceRosterHash_ = getDefaultInstance().getSourceRosterHash();
}
public static final int TARGET_ROSTER_HASH_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString targetRosterHash_;
/**
*
**
* A hash of the roster that the TssMessage is for.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes target_roster_hash = 2;
* @return The targetRosterHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTargetRosterHash() {
return targetRosterHash_;
}
/**
*
**
* A hash of the roster that the TssMessage is for.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes target_roster_hash = 2;
* @param value The targetRosterHash to set.
*/
private void setTargetRosterHash(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
targetRosterHash_ = value;
}
/**
*
**
* A hash of the roster that the TssMessage is for.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes target_roster_hash = 2;
*/
private void clearTargetRosterHash() {
targetRosterHash_ = getDefaultInstance().getTargetRosterHash();
}
public static final int SHARE_INDEX_FIELD_NUMBER = 3;
private long shareIndex_;
/**
*
**
* An index to order shares.
* <p>
* A share index SHALL establish a global ordering of shares across all
* shares in the network.<br/>
* A share index MUST correspond to the index of the public share in the list
* returned from the TSS library when the share was created for the source
* roster.
*
*
* uint64 share_index = 3;
* @return The shareIndex.
*/
@java.lang.Override
public long getShareIndex() {
return shareIndex_;
}
/**
*
**
* An index to order shares.
* <p>
* A share index SHALL establish a global ordering of shares across all
* shares in the network.<br/>
* A share index MUST correspond to the index of the public share in the list
* returned from the TSS library when the share was created for the source
* roster.
*
*
* uint64 share_index = 3;
* @param value The shareIndex to set.
*/
private void setShareIndex(long value) {
shareIndex_ = value;
}
/**
*
**
* An index to order shares.
* <p>
* A share index SHALL establish a global ordering of shares across all
* shares in the network.<br/>
* A share index MUST correspond to the index of the public share in the list
* returned from the TSS library when the share was created for the source
* roster.
*
*
* uint64 share_index = 3;
*/
private void clearShareIndex() {
shareIndex_ = 0L;
}
public static final int TSS_MESSAGE_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString tssMessage_;
/**
*
**
* A byte array.
* <p>
* This field SHALL contain the TssMessage data generated by the node
* for the specified `share_index`.
*
*
* bytes tss_message = 4;
* @return The tssMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTssMessage() {
return tssMessage_;
}
/**
*
**
* A byte array.
* <p>
* This field SHALL contain the TssMessage data generated by the node
* for the specified `share_index`.
*
*
* bytes tss_message = 4;
* @param value The tssMessage to set.
*/
private void setTssMessage(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
tssMessage_ = value;
}
/**
*
**
* A byte array.
* <p>
* This field SHALL contain the TssMessage data generated by the node
* for the specified `share_index`.
*
*
* bytes tss_message = 4;
*/
private void clearTssMessage() {
tssMessage_ = getDefaultInstance().getTssMessage();
}
public static com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody 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.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody 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.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody 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.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody 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.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody 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.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
** A transaction body to to send a Threshold Signature Scheme (TSS)
* Message.<br/>
* This is a wrapper around several different TSS message types that a node
* might communicate with other nodes in the network.
*
* - A `TssMessageTransactionBody` MUST identify the hash of the roster
* containing the node generating this TssMessage
* - A `TssMessageTransactionBody` MUST identify the hash of the roster that
* the TSS messages is for
* - A `TssMessageTransactionBody` SHALL contain the specificc TssMessage data
* that has been generated by the node for the share_index.
*
*
* Protobuf type {@code com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody, Builder> implements
// @@protoc_insertion_point(builder_implements:com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody)
com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBodyOrBuilder {
// Construct using com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* A hash of the roster containing the node generating the TssMessage.</br>
* This hash uniquely identifies the source roster, which will include
* an entry for the node generating this TssMessage.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes source_roster_hash = 1;
* @return The sourceRosterHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSourceRosterHash() {
return instance.getSourceRosterHash();
}
/**
*
**
* A hash of the roster containing the node generating the TssMessage.</br>
* This hash uniquely identifies the source roster, which will include
* an entry for the node generating this TssMessage.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes source_roster_hash = 1;
* @param value The sourceRosterHash to set.
* @return This builder for chaining.
*/
public Builder setSourceRosterHash(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSourceRosterHash(value);
return this;
}
/**
*
**
* A hash of the roster containing the node generating the TssMessage.</br>
* This hash uniquely identifies the source roster, which will include
* an entry for the node generating this TssMessage.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes source_roster_hash = 1;
* @return This builder for chaining.
*/
public Builder clearSourceRosterHash() {
copyOnWrite();
instance.clearSourceRosterHash();
return this;
}
/**
*
**
* A hash of the roster that the TssMessage is for.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes target_roster_hash = 2;
* @return The targetRosterHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTargetRosterHash() {
return instance.getTargetRosterHash();
}
/**
*
**
* A hash of the roster that the TssMessage is for.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes target_roster_hash = 2;
* @param value The targetRosterHash to set.
* @return This builder for chaining.
*/
public Builder setTargetRosterHash(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTargetRosterHash(value);
return this;
}
/**
*
**
* A hash of the roster that the TssMessage is for.
* <p>
* This value MUST be set.<br/>
* This value MUST NOT be empty.<br/>
* This value MUST contain a valid hash.
*
*
* bytes target_roster_hash = 2;
* @return This builder for chaining.
*/
public Builder clearTargetRosterHash() {
copyOnWrite();
instance.clearTargetRosterHash();
return this;
}
/**
*
**
* An index to order shares.
* <p>
* A share index SHALL establish a global ordering of shares across all
* shares in the network.<br/>
* A share index MUST correspond to the index of the public share in the list
* returned from the TSS library when the share was created for the source
* roster.
*
*
* uint64 share_index = 3;
* @return The shareIndex.
*/
@java.lang.Override
public long getShareIndex() {
return instance.getShareIndex();
}
/**
*
**
* An index to order shares.
* <p>
* A share index SHALL establish a global ordering of shares across all
* shares in the network.<br/>
* A share index MUST correspond to the index of the public share in the list
* returned from the TSS library when the share was created for the source
* roster.
*
*
* uint64 share_index = 3;
* @param value The shareIndex to set.
* @return This builder for chaining.
*/
public Builder setShareIndex(long value) {
copyOnWrite();
instance.setShareIndex(value);
return this;
}
/**
*
**
* An index to order shares.
* <p>
* A share index SHALL establish a global ordering of shares across all
* shares in the network.<br/>
* A share index MUST correspond to the index of the public share in the list
* returned from the TSS library when the share was created for the source
* roster.
*
*
* uint64 share_index = 3;
* @return This builder for chaining.
*/
public Builder clearShareIndex() {
copyOnWrite();
instance.clearShareIndex();
return this;
}
/**
*
**
* A byte array.
* <p>
* This field SHALL contain the TssMessage data generated by the node
* for the specified `share_index`.
*
*
* bytes tss_message = 4;
* @return The tssMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTssMessage() {
return instance.getTssMessage();
}
/**
*
**
* A byte array.
* <p>
* This field SHALL contain the TssMessage data generated by the node
* for the specified `share_index`.
*
*
* bytes tss_message = 4;
* @param value The tssMessage to set.
* @return This builder for chaining.
*/
public Builder setTssMessage(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTssMessage(value);
return this;
}
/**
*
**
* A byte array.
* <p>
* This field SHALL contain the TssMessage data generated by the node
* for the specified `share_index`.
*
*
* bytes tss_message = 4;
* @return This builder for chaining.
*/
public Builder clearTssMessage() {
copyOnWrite();
instance.clearTssMessage();
return this;
}
// @@protoc_insertion_point(builder_scope:com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody)
}
@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.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"sourceRosterHash_",
"targetRosterHash_",
"shareIndex_",
"tssMessage_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\n\u0002\n\u0003" +
"\u0003\u0004\n";
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.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody.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:com.hedera.hapi.services.auxiliary.tss.TssMessageTransactionBody)
private static final com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody DEFAULT_INSTANCE;
static {
TssMessageTransactionBody defaultInstance = new TssMessageTransactionBody();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TssMessageTransactionBody.class, defaultInstance);
}
public static com.hedera.hapi.services.auxiliary.tss.legacy.TssMessageTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}