com.hedera.hashgraph.sdk.proto.Schedule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: schedule.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Representation of a Hedera Schedule entry in the network Merkle tree.
*
* As with all network entities, a schedule has a unique entity number, which is usually given along
* with the network's shard and realm in the form of a shard.realm.number id.
*
*
* Protobuf type {@code proto.Schedule}
*/
public final class Schedule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.Schedule)
ScheduleOrBuilder {
private static final long serialVersionUID = 0L;
// Use Schedule.newBuilder() to construct.
private Schedule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Schedule() {
memo_ = "";
signatories_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Schedule();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ScheduleOuterClass.internal_static_proto_Schedule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ScheduleOuterClass.internal_static_proto_Schedule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.Schedule.class, com.hedera.hashgraph.sdk.proto.Schedule.Builder.class);
}
private int bitField0_;
public static final int SCHEDULE_ID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.ScheduleID scheduleId_;
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
* @return Whether the scheduleId field is set.
*/
@java.lang.Override
public boolean hasScheduleId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
* @return The scheduleId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ScheduleID getScheduleId() {
return scheduleId_ == null ? com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleId_;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder getScheduleIdOrBuilder() {
return scheduleId_ == null ? com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleId_;
}
public static final int DELETED_FIELD_NUMBER = 2;
private boolean deleted_ = false;
/**
*
**
* The schedule deleted flag
* A schedule will either be executed or deleted, but never both.
*
*
* bool deleted = 2;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return deleted_;
}
public static final int EXECUTED_FIELD_NUMBER = 3;
private boolean executed_ = false;
/**
*
**
* The schedule executed flag
* A schedule will either be executed or deleted, but never both.
*
*
* bool executed = 3;
* @return The executed.
*/
@java.lang.Override
public boolean getExecuted() {
return executed_;
}
public static final int WAIT_FOR_EXPIRY_FIELD_NUMBER = 4;
private boolean waitForExpiry_ = false;
/**
*
**
* The schedule flag to wait for expiration
* A schedule will be executed immediately when all necessary signatures are gathered, unless
* this flag is set. If this flag is set, the schedule will wait until the consensus time
* reaches expiration_time_provided, when signatures will again be verified, and if all
* required signatures are present at that time, the schedule will be executed. Otherwise
* the schedule will expire without execution.
* Note that a schedule is always removed from state when it expires, regardless of whether it
* was executed or not.
*
*
* bool wait_for_expiry = 4;
* @return The waitForExpiry.
*/
@java.lang.Override
public boolean getWaitForExpiry() {
return waitForExpiry_;
}
public static final int MEMO_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object memo_ = "";
/**
*
**
* The memo associated with this schedule.
*
*
* string memo = 5;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
}
}
/**
*
**
* The memo associated with this schedule.
*
*
* string memo = 5;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEDULER_ACCOUNT_ID_FIELD_NUMBER = 6;
private com.hedera.hashgraph.sdk.proto.AccountID schedulerAccountId_;
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
* @return Whether the schedulerAccountId field is set.
*/
@java.lang.Override
public boolean hasSchedulerAccountId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
* @return The schedulerAccountId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getSchedulerAccountId() {
return schedulerAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : schedulerAccountId_;
}
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSchedulerAccountIdOrBuilder() {
return schedulerAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : schedulerAccountId_;
}
public static final int PAYER_ACCOUNT_ID_FIELD_NUMBER = 7;
private com.hedera.hashgraph.sdk.proto.AccountID payerAccountId_;
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
* @return Whether the payerAccountId field is set.
*/
@java.lang.Override
public boolean hasPayerAccountId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
* @return The payerAccountId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getPayerAccountId() {
return payerAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : payerAccountId_;
}
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getPayerAccountIdOrBuilder() {
return payerAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : payerAccountId_;
}
public static final int ADMIN_KEY_FIELD_NUMBER = 8;
private com.hedera.hashgraph.sdk.proto.Key adminKey_;
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
* @return Whether the adminKey field is set.
*/
@java.lang.Override
public boolean hasAdminKey() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
* @return The adminKey.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getAdminKey() {
return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_;
}
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() {
return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_;
}
public static final int SCHEDULE_VALID_START_FIELD_NUMBER = 9;
private com.hedera.hashgraph.sdk.proto.Timestamp scheduleValidStart_;
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
* @return Whether the scheduleValidStart field is set.
*/
@java.lang.Override
public boolean hasScheduleValidStart() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
* @return The scheduleValidStart.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getScheduleValidStart() {
return scheduleValidStart_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : scheduleValidStart_;
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getScheduleValidStartOrBuilder() {
return scheduleValidStart_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : scheduleValidStart_;
}
public static final int PROVIDED_EXPIRATION_SECOND_FIELD_NUMBER = 10;
private long providedExpirationSecond_ = 0L;
/**
*
**
* The requested expiration time of the schedule as provided by the user.
* The actual calculated expiration time may be "earlier" than this, but will not be later.
*
*
* int64 provided_expiration_second = 10;
* @return The providedExpirationSecond.
*/
@java.lang.Override
public long getProvidedExpirationSecond() {
return providedExpirationSecond_;
}
public static final int CALCULATED_EXPIRATION_SECOND_FIELD_NUMBER = 11;
private long calculatedExpirationSecond_ = 0L;
/**
*
**
* The calculated expiration time of the schedule. This is calculated based on the requested
* expiration time from the create transaction, and the maximum expiration permitted by the
* network.
* The schedule will be removed from global network state after the network reaches a consensus
* time greater than or equal to this value.
*
*
* int64 calculated_expiration_second = 11;
* @return The calculatedExpirationSecond.
*/
@java.lang.Override
public long getCalculatedExpirationSecond() {
return calculatedExpirationSecond_;
}
public static final int RESOLUTION_TIME_FIELD_NUMBER = 12;
private com.hedera.hashgraph.sdk.proto.Timestamp resolutionTime_;
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
* @return Whether the resolutionTime field is set.
*/
@java.lang.Override
public boolean hasResolutionTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
* @return The resolutionTime.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getResolutionTime() {
return resolutionTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : resolutionTime_;
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getResolutionTimeOrBuilder() {
return resolutionTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : resolutionTime_;
}
public static final int SCHEDULED_TRANSACTION_FIELD_NUMBER = 13;
private com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody scheduledTransaction_;
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
* @return Whether the scheduledTransaction field is set.
*/
@java.lang.Override
public boolean hasScheduledTransaction() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
* @return The scheduledTransaction.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody getScheduledTransaction() {
return scheduledTransaction_ == null ? com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody.getDefaultInstance() : scheduledTransaction_;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.SchedulableTransactionBodyOrBuilder getScheduledTransactionOrBuilder() {
return scheduledTransaction_ == null ? com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody.getDefaultInstance() : scheduledTransaction_;
}
public static final int ORIGINAL_CREATE_TRANSACTION_FIELD_NUMBER = 14;
private com.hedera.hashgraph.sdk.proto.TransactionBody originalCreateTransaction_;
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
* @return Whether the originalCreateTransaction field is set.
*/
@java.lang.Override
public boolean hasOriginalCreateTransaction() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
* @return The originalCreateTransaction.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionBody getOriginalCreateTransaction() {
return originalCreateTransaction_ == null ? com.hedera.hashgraph.sdk.proto.TransactionBody.getDefaultInstance() : originalCreateTransaction_;
}
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionBodyOrBuilder getOriginalCreateTransactionOrBuilder() {
return originalCreateTransaction_ == null ? com.hedera.hashgraph.sdk.proto.TransactionBody.getDefaultInstance() : originalCreateTransaction_;
}
public static final int SIGNATORIES_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private java.util.List signatories_;
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
@java.lang.Override
public java.util.List getSignatoriesList() {
return signatories_;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.KeyOrBuilder>
getSignatoriesOrBuilderList() {
return signatories_;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
@java.lang.Override
public int getSignatoriesCount() {
return signatories_.size();
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getSignatories(int index) {
return signatories_.get(index);
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getSignatoriesOrBuilder(
int index) {
return signatories_.get(index);
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getScheduleId());
}
if (deleted_ != false) {
output.writeBool(2, deleted_);
}
if (executed_ != false) {
output.writeBool(3, executed_);
}
if (waitForExpiry_ != false) {
output.writeBool(4, waitForExpiry_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, memo_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getSchedulerAccountId());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getPayerAccountId());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(8, getAdminKey());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(9, getScheduleValidStart());
}
if (providedExpirationSecond_ != 0L) {
output.writeInt64(10, providedExpirationSecond_);
}
if (calculatedExpirationSecond_ != 0L) {
output.writeInt64(11, calculatedExpirationSecond_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(12, getResolutionTime());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(13, getScheduledTransaction());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(14, getOriginalCreateTransaction());
}
for (int i = 0; i < signatories_.size(); i++) {
output.writeMessage(15, signatories_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getScheduleId());
}
if (deleted_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, deleted_);
}
if (executed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, executed_);
}
if (waitForExpiry_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, waitForExpiry_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, memo_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSchedulerAccountId());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getPayerAccountId());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getAdminKey());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getScheduleValidStart());
}
if (providedExpirationSecond_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, providedExpirationSecond_);
}
if (calculatedExpirationSecond_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, calculatedExpirationSecond_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getResolutionTime());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getScheduledTransaction());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getOriginalCreateTransaction());
}
for (int i = 0; i < signatories_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, signatories_.get(i));
}
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.Schedule)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.Schedule other = (com.hedera.hashgraph.sdk.proto.Schedule) obj;
if (hasScheduleId() != other.hasScheduleId()) return false;
if (hasScheduleId()) {
if (!getScheduleId()
.equals(other.getScheduleId())) return false;
}
if (getDeleted()
!= other.getDeleted()) return false;
if (getExecuted()
!= other.getExecuted()) return false;
if (getWaitForExpiry()
!= other.getWaitForExpiry()) return false;
if (!getMemo()
.equals(other.getMemo())) return false;
if (hasSchedulerAccountId() != other.hasSchedulerAccountId()) return false;
if (hasSchedulerAccountId()) {
if (!getSchedulerAccountId()
.equals(other.getSchedulerAccountId())) return false;
}
if (hasPayerAccountId() != other.hasPayerAccountId()) return false;
if (hasPayerAccountId()) {
if (!getPayerAccountId()
.equals(other.getPayerAccountId())) return false;
}
if (hasAdminKey() != other.hasAdminKey()) return false;
if (hasAdminKey()) {
if (!getAdminKey()
.equals(other.getAdminKey())) return false;
}
if (hasScheduleValidStart() != other.hasScheduleValidStart()) return false;
if (hasScheduleValidStart()) {
if (!getScheduleValidStart()
.equals(other.getScheduleValidStart())) return false;
}
if (getProvidedExpirationSecond()
!= other.getProvidedExpirationSecond()) return false;
if (getCalculatedExpirationSecond()
!= other.getCalculatedExpirationSecond()) return false;
if (hasResolutionTime() != other.hasResolutionTime()) return false;
if (hasResolutionTime()) {
if (!getResolutionTime()
.equals(other.getResolutionTime())) return false;
}
if (hasScheduledTransaction() != other.hasScheduledTransaction()) return false;
if (hasScheduledTransaction()) {
if (!getScheduledTransaction()
.equals(other.getScheduledTransaction())) return false;
}
if (hasOriginalCreateTransaction() != other.hasOriginalCreateTransaction()) return false;
if (hasOriginalCreateTransaction()) {
if (!getOriginalCreateTransaction()
.equals(other.getOriginalCreateTransaction())) return false;
}
if (!getSignatoriesList()
.equals(other.getSignatoriesList())) return false;
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();
if (hasScheduleId()) {
hash = (37 * hash) + SCHEDULE_ID_FIELD_NUMBER;
hash = (53 * hash) + getScheduleId().hashCode();
}
hash = (37 * hash) + DELETED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeleted());
hash = (37 * hash) + EXECUTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getExecuted());
hash = (37 * hash) + WAIT_FOR_EXPIRY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getWaitForExpiry());
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
if (hasSchedulerAccountId()) {
hash = (37 * hash) + SCHEDULER_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getSchedulerAccountId().hashCode();
}
if (hasPayerAccountId()) {
hash = (37 * hash) + PAYER_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getPayerAccountId().hashCode();
}
if (hasAdminKey()) {
hash = (37 * hash) + ADMIN_KEY_FIELD_NUMBER;
hash = (53 * hash) + getAdminKey().hashCode();
}
if (hasScheduleValidStart()) {
hash = (37 * hash) + SCHEDULE_VALID_START_FIELD_NUMBER;
hash = (53 * hash) + getScheduleValidStart().hashCode();
}
hash = (37 * hash) + PROVIDED_EXPIRATION_SECOND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProvidedExpirationSecond());
hash = (37 * hash) + CALCULATED_EXPIRATION_SECOND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCalculatedExpirationSecond());
if (hasResolutionTime()) {
hash = (37 * hash) + RESOLUTION_TIME_FIELD_NUMBER;
hash = (53 * hash) + getResolutionTime().hashCode();
}
if (hasScheduledTransaction()) {
hash = (37 * hash) + SCHEDULED_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getScheduledTransaction().hashCode();
}
if (hasOriginalCreateTransaction()) {
hash = (37 * hash) + ORIGINAL_CREATE_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getOriginalCreateTransaction().hashCode();
}
if (getSignatoriesCount() > 0) {
hash = (37 * hash) + SIGNATORIES_FIELD_NUMBER;
hash = (53 * hash) + getSignatoriesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.Schedule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.Schedule 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.Schedule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.Schedule 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.Schedule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.Schedule 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.Schedule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.Schedule 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.Schedule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.Schedule 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.Schedule 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.Schedule 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.Schedule 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;
}
/**
*
**
* Representation of a Hedera Schedule entry in the network Merkle tree.
*
* As with all network entities, a schedule has a unique entity number, which is usually given along
* with the network's shard and realm in the form of a shard.realm.number id.
*
*
* Protobuf type {@code proto.Schedule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.Schedule)
com.hedera.hashgraph.sdk.proto.ScheduleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ScheduleOuterClass.internal_static_proto_Schedule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ScheduleOuterClass.internal_static_proto_Schedule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.Schedule.class, com.hedera.hashgraph.sdk.proto.Schedule.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.Schedule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getScheduleIdFieldBuilder();
getSchedulerAccountIdFieldBuilder();
getPayerAccountIdFieldBuilder();
getAdminKeyFieldBuilder();
getScheduleValidStartFieldBuilder();
getResolutionTimeFieldBuilder();
getScheduledTransactionFieldBuilder();
getOriginalCreateTransactionFieldBuilder();
getSignatoriesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scheduleId_ = null;
if (scheduleIdBuilder_ != null) {
scheduleIdBuilder_.dispose();
scheduleIdBuilder_ = null;
}
deleted_ = false;
executed_ = false;
waitForExpiry_ = false;
memo_ = "";
schedulerAccountId_ = null;
if (schedulerAccountIdBuilder_ != null) {
schedulerAccountIdBuilder_.dispose();
schedulerAccountIdBuilder_ = null;
}
payerAccountId_ = null;
if (payerAccountIdBuilder_ != null) {
payerAccountIdBuilder_.dispose();
payerAccountIdBuilder_ = null;
}
adminKey_ = null;
if (adminKeyBuilder_ != null) {
adminKeyBuilder_.dispose();
adminKeyBuilder_ = null;
}
scheduleValidStart_ = null;
if (scheduleValidStartBuilder_ != null) {
scheduleValidStartBuilder_.dispose();
scheduleValidStartBuilder_ = null;
}
providedExpirationSecond_ = 0L;
calculatedExpirationSecond_ = 0L;
resolutionTime_ = null;
if (resolutionTimeBuilder_ != null) {
resolutionTimeBuilder_.dispose();
resolutionTimeBuilder_ = null;
}
scheduledTransaction_ = null;
if (scheduledTransactionBuilder_ != null) {
scheduledTransactionBuilder_.dispose();
scheduledTransactionBuilder_ = null;
}
originalCreateTransaction_ = null;
if (originalCreateTransactionBuilder_ != null) {
originalCreateTransactionBuilder_.dispose();
originalCreateTransactionBuilder_ = null;
}
if (signatoriesBuilder_ == null) {
signatories_ = java.util.Collections.emptyList();
} else {
signatories_ = null;
signatoriesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.ScheduleOuterClass.internal_static_proto_Schedule_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Schedule getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.Schedule.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Schedule build() {
com.hedera.hashgraph.sdk.proto.Schedule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Schedule buildPartial() {
com.hedera.hashgraph.sdk.proto.Schedule result = new com.hedera.hashgraph.sdk.proto.Schedule(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.Schedule result) {
if (signatoriesBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0)) {
signatories_ = java.util.Collections.unmodifiableList(signatories_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.signatories_ = signatories_;
} else {
result.signatories_ = signatoriesBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.Schedule result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scheduleId_ = scheduleIdBuilder_ == null
? scheduleId_
: scheduleIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.deleted_ = deleted_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.executed_ = executed_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.waitForExpiry_ = waitForExpiry_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.memo_ = memo_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.schedulerAccountId_ = schedulerAccountIdBuilder_ == null
? schedulerAccountId_
: schedulerAccountIdBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.payerAccountId_ = payerAccountIdBuilder_ == null
? payerAccountId_
: payerAccountIdBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.adminKey_ = adminKeyBuilder_ == null
? adminKey_
: adminKeyBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.scheduleValidStart_ = scheduleValidStartBuilder_ == null
? scheduleValidStart_
: scheduleValidStartBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.providedExpirationSecond_ = providedExpirationSecond_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.calculatedExpirationSecond_ = calculatedExpirationSecond_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.resolutionTime_ = resolutionTimeBuilder_ == null
? resolutionTime_
: resolutionTimeBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.scheduledTransaction_ = scheduledTransactionBuilder_ == null
? scheduledTransaction_
: scheduledTransactionBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.originalCreateTransaction_ = originalCreateTransactionBuilder_ == null
? originalCreateTransaction_
: originalCreateTransactionBuilder_.build();
to_bitField0_ |= 0x00000080;
}
result.bitField0_ |= to_bitField0_;
}
@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.Schedule) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.Schedule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.Schedule other) {
if (other == com.hedera.hashgraph.sdk.proto.Schedule.getDefaultInstance()) return this;
if (other.hasScheduleId()) {
mergeScheduleId(other.getScheduleId());
}
if (other.getDeleted() != false) {
setDeleted(other.getDeleted());
}
if (other.getExecuted() != false) {
setExecuted(other.getExecuted());
}
if (other.getWaitForExpiry() != false) {
setWaitForExpiry(other.getWaitForExpiry());
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasSchedulerAccountId()) {
mergeSchedulerAccountId(other.getSchedulerAccountId());
}
if (other.hasPayerAccountId()) {
mergePayerAccountId(other.getPayerAccountId());
}
if (other.hasAdminKey()) {
mergeAdminKey(other.getAdminKey());
}
if (other.hasScheduleValidStart()) {
mergeScheduleValidStart(other.getScheduleValidStart());
}
if (other.getProvidedExpirationSecond() != 0L) {
setProvidedExpirationSecond(other.getProvidedExpirationSecond());
}
if (other.getCalculatedExpirationSecond() != 0L) {
setCalculatedExpirationSecond(other.getCalculatedExpirationSecond());
}
if (other.hasResolutionTime()) {
mergeResolutionTime(other.getResolutionTime());
}
if (other.hasScheduledTransaction()) {
mergeScheduledTransaction(other.getScheduledTransaction());
}
if (other.hasOriginalCreateTransaction()) {
mergeOriginalCreateTransaction(other.getOriginalCreateTransaction());
}
if (signatoriesBuilder_ == null) {
if (!other.signatories_.isEmpty()) {
if (signatories_.isEmpty()) {
signatories_ = other.signatories_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureSignatoriesIsMutable();
signatories_.addAll(other.signatories_);
}
onChanged();
}
} else {
if (!other.signatories_.isEmpty()) {
if (signatoriesBuilder_.isEmpty()) {
signatoriesBuilder_.dispose();
signatoriesBuilder_ = null;
signatories_ = other.signatories_;
bitField0_ = (bitField0_ & ~0x00004000);
signatoriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSignatoriesFieldBuilder() : null;
} else {
signatoriesBuilder_.addAllMessages(other.signatories_);
}
}
}
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: {
input.readMessage(
getScheduleIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
deleted_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
executed_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
waitForExpiry_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
memo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getSchedulerAccountIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getPayerAccountIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getAdminKeyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
input.readMessage(
getScheduleValidStartFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 80: {
providedExpirationSecond_ = input.readInt64();
bitField0_ |= 0x00000200;
break;
} // case 80
case 88: {
calculatedExpirationSecond_ = input.readInt64();
bitField0_ |= 0x00000400;
break;
} // case 88
case 98: {
input.readMessage(
getResolutionTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 98
case 106: {
input.readMessage(
getScheduledTransactionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 106
case 114: {
input.readMessage(
getOriginalCreateTransactionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 114
case 122: {
com.hedera.hashgraph.sdk.proto.Key m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.Key.parser(),
extensionRegistry);
if (signatoriesBuilder_ == null) {
ensureSignatoriesIsMutable();
signatories_.add(m);
} else {
signatoriesBuilder_.addMessage(m);
}
break;
} // case 122
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 bitField0_;
private com.hedera.hashgraph.sdk.proto.ScheduleID scheduleId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ScheduleID, com.hedera.hashgraph.sdk.proto.ScheduleID.Builder, com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder> scheduleIdBuilder_;
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
* @return Whether the scheduleId field is set.
*/
public boolean hasScheduleId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
* @return The scheduleId.
*/
public com.hedera.hashgraph.sdk.proto.ScheduleID getScheduleId() {
if (scheduleIdBuilder_ == null) {
return scheduleId_ == null ? com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleId_;
} else {
return scheduleIdBuilder_.getMessage();
}
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public Builder setScheduleId(com.hedera.hashgraph.sdk.proto.ScheduleID value) {
if (scheduleIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduleId_ = value;
} else {
scheduleIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public Builder setScheduleId(
com.hedera.hashgraph.sdk.proto.ScheduleID.Builder builderForValue) {
if (scheduleIdBuilder_ == null) {
scheduleId_ = builderForValue.build();
} else {
scheduleIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public Builder mergeScheduleId(com.hedera.hashgraph.sdk.proto.ScheduleID value) {
if (scheduleIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
scheduleId_ != null &&
scheduleId_ != com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance()) {
getScheduleIdBuilder().mergeFrom(value);
} else {
scheduleId_ = value;
}
} else {
scheduleIdBuilder_.mergeFrom(value);
}
if (scheduleId_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public Builder clearScheduleId() {
bitField0_ = (bitField0_ & ~0x00000001);
scheduleId_ = null;
if (scheduleIdBuilder_ != null) {
scheduleIdBuilder_.dispose();
scheduleIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public com.hedera.hashgraph.sdk.proto.ScheduleID.Builder getScheduleIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getScheduleIdFieldBuilder().getBuilder();
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder getScheduleIdOrBuilder() {
if (scheduleIdBuilder_ != null) {
return scheduleIdBuilder_.getMessageOrBuilder();
} else {
return scheduleId_ == null ?
com.hedera.hashgraph.sdk.proto.ScheduleID.getDefaultInstance() : scheduleId_;
}
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ScheduleID, com.hedera.hashgraph.sdk.proto.ScheduleID.Builder, com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder>
getScheduleIdFieldBuilder() {
if (scheduleIdBuilder_ == null) {
scheduleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ScheduleID, com.hedera.hashgraph.sdk.proto.ScheduleID.Builder, com.hedera.hashgraph.sdk.proto.ScheduleIDOrBuilder>(
getScheduleId(),
getParentForChildren(),
isClean());
scheduleId_ = null;
}
return scheduleIdBuilder_;
}
private boolean deleted_ ;
/**
*
**
* The schedule deleted flag
* A schedule will either be executed or deleted, but never both.
*
*
* bool deleted = 2;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return deleted_;
}
/**
*
**
* The schedule deleted flag
* A schedule will either be executed or deleted, but never both.
*
*
* bool deleted = 2;
* @param value The deleted to set.
* @return This builder for chaining.
*/
public Builder setDeleted(boolean value) {
deleted_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The schedule deleted flag
* A schedule will either be executed or deleted, but never both.
*
*
* bool deleted = 2;
* @return This builder for chaining.
*/
public Builder clearDeleted() {
bitField0_ = (bitField0_ & ~0x00000002);
deleted_ = false;
onChanged();
return this;
}
private boolean executed_ ;
/**
*
**
* The schedule executed flag
* A schedule will either be executed or deleted, but never both.
*
*
* bool executed = 3;
* @return The executed.
*/
@java.lang.Override
public boolean getExecuted() {
return executed_;
}
/**
*
**
* The schedule executed flag
* A schedule will either be executed or deleted, but never both.
*
*
* bool executed = 3;
* @param value The executed to set.
* @return This builder for chaining.
*/
public Builder setExecuted(boolean value) {
executed_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The schedule executed flag
* A schedule will either be executed or deleted, but never both.
*
*
* bool executed = 3;
* @return This builder for chaining.
*/
public Builder clearExecuted() {
bitField0_ = (bitField0_ & ~0x00000004);
executed_ = false;
onChanged();
return this;
}
private boolean waitForExpiry_ ;
/**
*
**
* The schedule flag to wait for expiration
* A schedule will be executed immediately when all necessary signatures are gathered, unless
* this flag is set. If this flag is set, the schedule will wait until the consensus time
* reaches expiration_time_provided, when signatures will again be verified, and if all
* required signatures are present at that time, the schedule will be executed. Otherwise
* the schedule will expire without execution.
* Note that a schedule is always removed from state when it expires, regardless of whether it
* was executed or not.
*
*
* bool wait_for_expiry = 4;
* @return The waitForExpiry.
*/
@java.lang.Override
public boolean getWaitForExpiry() {
return waitForExpiry_;
}
/**
*
**
* The schedule flag to wait for expiration
* A schedule will be executed immediately when all necessary signatures are gathered, unless
* this flag is set. If this flag is set, the schedule will wait until the consensus time
* reaches expiration_time_provided, when signatures will again be verified, and if all
* required signatures are present at that time, the schedule will be executed. Otherwise
* the schedule will expire without execution.
* Note that a schedule is always removed from state when it expires, regardless of whether it
* was executed or not.
*
*
* bool wait_for_expiry = 4;
* @param value The waitForExpiry to set.
* @return This builder for chaining.
*/
public Builder setWaitForExpiry(boolean value) {
waitForExpiry_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The schedule flag to wait for expiration
* A schedule will be executed immediately when all necessary signatures are gathered, unless
* this flag is set. If this flag is set, the schedule will wait until the consensus time
* reaches expiration_time_provided, when signatures will again be verified, and if all
* required signatures are present at that time, the schedule will be executed. Otherwise
* the schedule will expire without execution.
* Note that a schedule is always removed from state when it expires, regardless of whether it
* was executed or not.
*
*
* bool wait_for_expiry = 4;
* @return This builder for chaining.
*/
public Builder clearWaitForExpiry() {
bitField0_ = (bitField0_ & ~0x00000008);
waitForExpiry_ = false;
onChanged();
return this;
}
private java.lang.Object memo_ = "";
/**
*
**
* The memo associated with this schedule.
*
*
* string memo = 5;
* @return The memo.
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The memo associated with this schedule.
*
*
* string memo = 5;
* @return The bytes for memo.
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The memo associated with this schedule.
*
*
* string memo = 5;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
memo_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* The memo associated with this schedule.
*
*
* string memo = 5;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
**
* The memo associated with this schedule.
*
*
* string memo = 5;
* @param value The bytes for memo to set.
* @return This builder for chaining.
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
memo_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.AccountID schedulerAccountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> schedulerAccountIdBuilder_;
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
* @return Whether the schedulerAccountId field is set.
*/
public boolean hasSchedulerAccountId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
* @return The schedulerAccountId.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getSchedulerAccountId() {
if (schedulerAccountIdBuilder_ == null) {
return schedulerAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : schedulerAccountId_;
} else {
return schedulerAccountIdBuilder_.getMessage();
}
}
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
*/
public Builder setSchedulerAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (schedulerAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedulerAccountId_ = value;
} else {
schedulerAccountIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
*/
public Builder setSchedulerAccountId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (schedulerAccountIdBuilder_ == null) {
schedulerAccountId_ = builderForValue.build();
} else {
schedulerAccountIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
*/
public Builder mergeSchedulerAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (schedulerAccountIdBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
schedulerAccountId_ != null &&
schedulerAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getSchedulerAccountIdBuilder().mergeFrom(value);
} else {
schedulerAccountId_ = value;
}
} else {
schedulerAccountIdBuilder_.mergeFrom(value);
}
if (schedulerAccountId_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
*/
public Builder clearSchedulerAccountId() {
bitField0_ = (bitField0_ & ~0x00000020);
schedulerAccountId_ = null;
if (schedulerAccountIdBuilder_ != null) {
schedulerAccountIdBuilder_.dispose();
schedulerAccountIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getSchedulerAccountIdBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getSchedulerAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSchedulerAccountIdOrBuilder() {
if (schedulerAccountIdBuilder_ != null) {
return schedulerAccountIdBuilder_.getMessageOrBuilder();
} else {
return schedulerAccountId_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : schedulerAccountId_;
}
}
/**
*
**
* The schedule account for this schedule. This is the account that submitted the original
* ScheduleCreate transaction.
*
*
* .proto.AccountID scheduler_account_id = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getSchedulerAccountIdFieldBuilder() {
if (schedulerAccountIdBuilder_ == null) {
schedulerAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getSchedulerAccountId(),
getParentForChildren(),
isClean());
schedulerAccountId_ = null;
}
return schedulerAccountIdBuilder_;
}
private com.hedera.hashgraph.sdk.proto.AccountID payerAccountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> payerAccountIdBuilder_;
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
* @return Whether the payerAccountId field is set.
*/
public boolean hasPayerAccountId() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
* @return The payerAccountId.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getPayerAccountId() {
if (payerAccountIdBuilder_ == null) {
return payerAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : payerAccountId_;
} else {
return payerAccountIdBuilder_.getMessage();
}
}
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
*/
public Builder setPayerAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (payerAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payerAccountId_ = value;
} else {
payerAccountIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
*/
public Builder setPayerAccountId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (payerAccountIdBuilder_ == null) {
payerAccountId_ = builderForValue.build();
} else {
payerAccountIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
*/
public Builder mergePayerAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (payerAccountIdBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
payerAccountId_ != null &&
payerAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getPayerAccountIdBuilder().mergeFrom(value);
} else {
payerAccountId_ = value;
}
} else {
payerAccountIdBuilder_.mergeFrom(value);
}
if (payerAccountId_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
*/
public Builder clearPayerAccountId() {
bitField0_ = (bitField0_ & ~0x00000040);
payerAccountId_ = null;
if (payerAccountIdBuilder_ != null) {
payerAccountIdBuilder_.dispose();
payerAccountIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getPayerAccountIdBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getPayerAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getPayerAccountIdOrBuilder() {
if (payerAccountIdBuilder_ != null) {
return payerAccountIdBuilder_.getMessageOrBuilder();
} else {
return payerAccountId_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : payerAccountId_;
}
}
/**
*
**
* The explicit payer account for the scheduled transaction.
* This account is added to the accounts that must sign the schedule before it will execute.
*
*
* .proto.AccountID payer_account_id = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getPayerAccountIdFieldBuilder() {
if (payerAccountIdBuilder_ == null) {
payerAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getPayerAccountId(),
getParentForChildren(),
isClean());
payerAccountId_ = null;
}
return payerAccountIdBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Key adminKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> adminKeyBuilder_;
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
* @return Whether the adminKey field is set.
*/
public boolean hasAdminKey() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
* @return The adminKey.
*/
public com.hedera.hashgraph.sdk.proto.Key getAdminKey() {
if (adminKeyBuilder_ == null) {
return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_;
} else {
return adminKeyBuilder_.getMessage();
}
}
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
*/
public Builder setAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
if (adminKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
adminKey_ = value;
} else {
adminKeyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
*/
public Builder setAdminKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
if (adminKeyBuilder_ == null) {
adminKey_ = builderForValue.build();
} else {
adminKeyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
*/
public Builder mergeAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
if (adminKeyBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
adminKey_ != null &&
adminKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
getAdminKeyBuilder().mergeFrom(value);
} else {
adminKey_ = value;
}
} else {
adminKeyBuilder_.mergeFrom(value);
}
if (adminKey_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
*/
public Builder clearAdminKey() {
bitField0_ = (bitField0_ & ~0x00000080);
adminKey_ = null;
if (adminKeyBuilder_ != null) {
adminKeyBuilder_.dispose();
adminKeyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getAdminKeyBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getAdminKeyFieldBuilder().getBuilder();
}
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
*/
public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() {
if (adminKeyBuilder_ != null) {
return adminKeyBuilder_.getMessageOrBuilder();
} else {
return adminKey_ == null ?
com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_;
}
}
/**
*
**
* The admin key for this schedule.
* If this is not set, then the schedule cannot be deleted.
*
*
* .proto.Key admin_key = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>
getAdminKeyFieldBuilder() {
if (adminKeyBuilder_ == null) {
adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>(
getAdminKey(),
getParentForChildren(),
isClean());
adminKey_ = null;
}
return adminKeyBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Timestamp scheduleValidStart_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> scheduleValidStartBuilder_;
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
* @return Whether the scheduleValidStart field is set.
*/
public boolean hasScheduleValidStart() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
* @return The scheduleValidStart.
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getScheduleValidStart() {
if (scheduleValidStartBuilder_ == null) {
return scheduleValidStart_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : scheduleValidStart_;
} else {
return scheduleValidStartBuilder_.getMessage();
}
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public Builder setScheduleValidStart(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (scheduleValidStartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduleValidStart_ = value;
} else {
scheduleValidStartBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public Builder setScheduleValidStart(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (scheduleValidStartBuilder_ == null) {
scheduleValidStart_ = builderForValue.build();
} else {
scheduleValidStartBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public Builder mergeScheduleValidStart(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (scheduleValidStartBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
scheduleValidStart_ != null &&
scheduleValidStart_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
getScheduleValidStartBuilder().mergeFrom(value);
} else {
scheduleValidStart_ = value;
}
} else {
scheduleValidStartBuilder_.mergeFrom(value);
}
if (scheduleValidStart_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public Builder clearScheduleValidStart() {
bitField0_ = (bitField0_ & ~0x00000100);
scheduleValidStart_ = null;
if (scheduleValidStartBuilder_ != null) {
scheduleValidStartBuilder_.dispose();
scheduleValidStartBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getScheduleValidStartBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getScheduleValidStartFieldBuilder().getBuilder();
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getScheduleValidStartOrBuilder() {
if (scheduleValidStartBuilder_ != null) {
return scheduleValidStartBuilder_.getMessageOrBuilder();
} else {
return scheduleValidStart_ == null ?
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : scheduleValidStart_;
}
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getScheduleValidStartFieldBuilder() {
if (scheduleValidStartBuilder_ == null) {
scheduleValidStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>(
getScheduleValidStart(),
getParentForChildren(),
isClean());
scheduleValidStart_ = null;
}
return scheduleValidStartBuilder_;
}
private long providedExpirationSecond_ ;
/**
*
**
* The requested expiration time of the schedule as provided by the user.
* The actual calculated expiration time may be "earlier" than this, but will not be later.
*
*
* int64 provided_expiration_second = 10;
* @return The providedExpirationSecond.
*/
@java.lang.Override
public long getProvidedExpirationSecond() {
return providedExpirationSecond_;
}
/**
*
**
* The requested expiration time of the schedule as provided by the user.
* The actual calculated expiration time may be "earlier" than this, but will not be later.
*
*
* int64 provided_expiration_second = 10;
* @param value The providedExpirationSecond to set.
* @return This builder for chaining.
*/
public Builder setProvidedExpirationSecond(long value) {
providedExpirationSecond_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* The requested expiration time of the schedule as provided by the user.
* The actual calculated expiration time may be "earlier" than this, but will not be later.
*
*
* int64 provided_expiration_second = 10;
* @return This builder for chaining.
*/
public Builder clearProvidedExpirationSecond() {
bitField0_ = (bitField0_ & ~0x00000200);
providedExpirationSecond_ = 0L;
onChanged();
return this;
}
private long calculatedExpirationSecond_ ;
/**
*
**
* The calculated expiration time of the schedule. This is calculated based on the requested
* expiration time from the create transaction, and the maximum expiration permitted by the
* network.
* The schedule will be removed from global network state after the network reaches a consensus
* time greater than or equal to this value.
*
*
* int64 calculated_expiration_second = 11;
* @return The calculatedExpirationSecond.
*/
@java.lang.Override
public long getCalculatedExpirationSecond() {
return calculatedExpirationSecond_;
}
/**
*
**
* The calculated expiration time of the schedule. This is calculated based on the requested
* expiration time from the create transaction, and the maximum expiration permitted by the
* network.
* The schedule will be removed from global network state after the network reaches a consensus
* time greater than or equal to this value.
*
*
* int64 calculated_expiration_second = 11;
* @param value The calculatedExpirationSecond to set.
* @return This builder for chaining.
*/
public Builder setCalculatedExpirationSecond(long value) {
calculatedExpirationSecond_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
**
* The calculated expiration time of the schedule. This is calculated based on the requested
* expiration time from the create transaction, and the maximum expiration permitted by the
* network.
* The schedule will be removed from global network state after the network reaches a consensus
* time greater than or equal to this value.
*
*
* int64 calculated_expiration_second = 11;
* @return This builder for chaining.
*/
public Builder clearCalculatedExpirationSecond() {
bitField0_ = (bitField0_ & ~0x00000400);
calculatedExpirationSecond_ = 0L;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.Timestamp resolutionTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> resolutionTimeBuilder_;
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
* @return Whether the resolutionTime field is set.
*/
public boolean hasResolutionTime() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
* @return The resolutionTime.
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getResolutionTime() {
if (resolutionTimeBuilder_ == null) {
return resolutionTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : resolutionTime_;
} else {
return resolutionTimeBuilder_.getMessage();
}
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public Builder setResolutionTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (resolutionTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resolutionTime_ = value;
} else {
resolutionTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public Builder setResolutionTime(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (resolutionTimeBuilder_ == null) {
resolutionTime_ = builderForValue.build();
} else {
resolutionTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public Builder mergeResolutionTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (resolutionTimeBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
resolutionTime_ != null &&
resolutionTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
getResolutionTimeBuilder().mergeFrom(value);
} else {
resolutionTime_ = value;
}
} else {
resolutionTimeBuilder_.mergeFrom(value);
}
if (resolutionTime_ != null) {
bitField0_ |= 0x00000800;
onChanged();
}
return this;
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public Builder clearResolutionTime() {
bitField0_ = (bitField0_ & ~0x00000800);
resolutionTime_ = null;
if (resolutionTimeBuilder_ != null) {
resolutionTimeBuilder_.dispose();
resolutionTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getResolutionTimeBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getResolutionTimeFieldBuilder().getBuilder();
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getResolutionTimeOrBuilder() {
if (resolutionTimeBuilder_ != null) {
return resolutionTimeBuilder_.getMessageOrBuilder();
} else {
return resolutionTime_ == null ?
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : resolutionTime_;
}
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getResolutionTimeFieldBuilder() {
if (resolutionTimeBuilder_ == null) {
resolutionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>(
getResolutionTime(),
getParentForChildren(),
isClean());
resolutionTime_ = null;
}
return resolutionTimeBuilder_;
}
private com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody scheduledTransaction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody, com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody.Builder, com.hedera.hashgraph.sdk.proto.SchedulableTransactionBodyOrBuilder> scheduledTransactionBuilder_;
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
* @return Whether the scheduledTransaction field is set.
*/
public boolean hasScheduledTransaction() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
* @return The scheduledTransaction.
*/
public com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody getScheduledTransaction() {
if (scheduledTransactionBuilder_ == null) {
return scheduledTransaction_ == null ? com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody.getDefaultInstance() : scheduledTransaction_;
} else {
return scheduledTransactionBuilder_.getMessage();
}
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public Builder setScheduledTransaction(com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody value) {
if (scheduledTransactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduledTransaction_ = value;
} else {
scheduledTransactionBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public Builder setScheduledTransaction(
com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody.Builder builderForValue) {
if (scheduledTransactionBuilder_ == null) {
scheduledTransaction_ = builderForValue.build();
} else {
scheduledTransactionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public Builder mergeScheduledTransaction(com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody value) {
if (scheduledTransactionBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
scheduledTransaction_ != null &&
scheduledTransaction_ != com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody.getDefaultInstance()) {
getScheduledTransactionBuilder().mergeFrom(value);
} else {
scheduledTransaction_ = value;
}
} else {
scheduledTransactionBuilder_.mergeFrom(value);
}
if (scheduledTransaction_ != null) {
bitField0_ |= 0x00001000;
onChanged();
}
return this;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public Builder clearScheduledTransaction() {
bitField0_ = (bitField0_ & ~0x00001000);
scheduledTransaction_ = null;
if (scheduledTransactionBuilder_ != null) {
scheduledTransactionBuilder_.dispose();
scheduledTransactionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody.Builder getScheduledTransactionBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getScheduledTransactionFieldBuilder().getBuilder();
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public com.hedera.hashgraph.sdk.proto.SchedulableTransactionBodyOrBuilder getScheduledTransactionOrBuilder() {
if (scheduledTransactionBuilder_ != null) {
return scheduledTransactionBuilder_.getMessageOrBuilder();
} else {
return scheduledTransaction_ == null ?
com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody.getDefaultInstance() : scheduledTransaction_;
}
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody, com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody.Builder, com.hedera.hashgraph.sdk.proto.SchedulableTransactionBodyOrBuilder>
getScheduledTransactionFieldBuilder() {
if (scheduledTransactionBuilder_ == null) {
scheduledTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody, com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody.Builder, com.hedera.hashgraph.sdk.proto.SchedulableTransactionBodyOrBuilder>(
getScheduledTransaction(),
getParentForChildren(),
isClean());
scheduledTransaction_ = null;
}
return scheduledTransactionBuilder_;
}
private com.hedera.hashgraph.sdk.proto.TransactionBody originalCreateTransaction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionBody, com.hedera.hashgraph.sdk.proto.TransactionBody.Builder, com.hedera.hashgraph.sdk.proto.TransactionBodyOrBuilder> originalCreateTransactionBuilder_;
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
* @return Whether the originalCreateTransaction field is set.
*/
public boolean hasOriginalCreateTransaction() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
* @return The originalCreateTransaction.
*/
public com.hedera.hashgraph.sdk.proto.TransactionBody getOriginalCreateTransaction() {
if (originalCreateTransactionBuilder_ == null) {
return originalCreateTransaction_ == null ? com.hedera.hashgraph.sdk.proto.TransactionBody.getDefaultInstance() : originalCreateTransaction_;
} else {
return originalCreateTransactionBuilder_.getMessage();
}
}
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
*/
public Builder setOriginalCreateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody value) {
if (originalCreateTransactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
originalCreateTransaction_ = value;
} else {
originalCreateTransactionBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
*/
public Builder setOriginalCreateTransaction(
com.hedera.hashgraph.sdk.proto.TransactionBody.Builder builderForValue) {
if (originalCreateTransactionBuilder_ == null) {
originalCreateTransaction_ = builderForValue.build();
} else {
originalCreateTransactionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
*/
public Builder mergeOriginalCreateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody value) {
if (originalCreateTransactionBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0) &&
originalCreateTransaction_ != null &&
originalCreateTransaction_ != com.hedera.hashgraph.sdk.proto.TransactionBody.getDefaultInstance()) {
getOriginalCreateTransactionBuilder().mergeFrom(value);
} else {
originalCreateTransaction_ = value;
}
} else {
originalCreateTransactionBuilder_.mergeFrom(value);
}
if (originalCreateTransaction_ != null) {
bitField0_ |= 0x00002000;
onChanged();
}
return this;
}
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
*/
public Builder clearOriginalCreateTransaction() {
bitField0_ = (bitField0_ & ~0x00002000);
originalCreateTransaction_ = null;
if (originalCreateTransactionBuilder_ != null) {
originalCreateTransactionBuilder_.dispose();
originalCreateTransactionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
*/
public com.hedera.hashgraph.sdk.proto.TransactionBody.Builder getOriginalCreateTransactionBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getOriginalCreateTransactionFieldBuilder().getBuilder();
}
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
*/
public com.hedera.hashgraph.sdk.proto.TransactionBodyOrBuilder getOriginalCreateTransactionOrBuilder() {
if (originalCreateTransactionBuilder_ != null) {
return originalCreateTransactionBuilder_.getMessageOrBuilder();
} else {
return originalCreateTransaction_ == null ?
com.hedera.hashgraph.sdk.proto.TransactionBody.getDefaultInstance() : originalCreateTransaction_;
}
}
/**
*
**
* The full transaction that created this schedule. This is primarily used for duplicate
* schedule create detection. This is also the source of the parent transaction ID, from
* which the child transaction ID is derived.
*
*
* .proto.TransactionBody original_create_transaction = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionBody, com.hedera.hashgraph.sdk.proto.TransactionBody.Builder, com.hedera.hashgraph.sdk.proto.TransactionBodyOrBuilder>
getOriginalCreateTransactionFieldBuilder() {
if (originalCreateTransactionBuilder_ == null) {
originalCreateTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionBody, com.hedera.hashgraph.sdk.proto.TransactionBody.Builder, com.hedera.hashgraph.sdk.proto.TransactionBodyOrBuilder>(
getOriginalCreateTransaction(),
getParentForChildren(),
isClean());
originalCreateTransaction_ = null;
}
return originalCreateTransactionBuilder_;
}
private java.util.List signatories_ =
java.util.Collections.emptyList();
private void ensureSignatoriesIsMutable() {
if (!((bitField0_ & 0x00004000) != 0)) {
signatories_ = new java.util.ArrayList(signatories_);
bitField0_ |= 0x00004000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> signatoriesBuilder_;
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public java.util.List getSignatoriesList() {
if (signatoriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(signatories_);
} else {
return signatoriesBuilder_.getMessageList();
}
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public int getSignatoriesCount() {
if (signatoriesBuilder_ == null) {
return signatories_.size();
} else {
return signatoriesBuilder_.getCount();
}
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public com.hedera.hashgraph.sdk.proto.Key getSignatories(int index) {
if (signatoriesBuilder_ == null) {
return signatories_.get(index);
} else {
return signatoriesBuilder_.getMessage(index);
}
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public Builder setSignatories(
int index, com.hedera.hashgraph.sdk.proto.Key value) {
if (signatoriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignatoriesIsMutable();
signatories_.set(index, value);
onChanged();
} else {
signatoriesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public Builder setSignatories(
int index, com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
if (signatoriesBuilder_ == null) {
ensureSignatoriesIsMutable();
signatories_.set(index, builderForValue.build());
onChanged();
} else {
signatoriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public Builder addSignatories(com.hedera.hashgraph.sdk.proto.Key value) {
if (signatoriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignatoriesIsMutable();
signatories_.add(value);
onChanged();
} else {
signatoriesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public Builder addSignatories(
int index, com.hedera.hashgraph.sdk.proto.Key value) {
if (signatoriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignatoriesIsMutable();
signatories_.add(index, value);
onChanged();
} else {
signatoriesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public Builder addSignatories(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
if (signatoriesBuilder_ == null) {
ensureSignatoriesIsMutable();
signatories_.add(builderForValue.build());
onChanged();
} else {
signatoriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public Builder addSignatories(
int index, com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
if (signatoriesBuilder_ == null) {
ensureSignatoriesIsMutable();
signatories_.add(index, builderForValue.build());
onChanged();
} else {
signatoriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public Builder addAllSignatories(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.Key> values) {
if (signatoriesBuilder_ == null) {
ensureSignatoriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, signatories_);
onChanged();
} else {
signatoriesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public Builder clearSignatories() {
if (signatoriesBuilder_ == null) {
signatories_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
} else {
signatoriesBuilder_.clear();
}
return this;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public Builder removeSignatories(int index) {
if (signatoriesBuilder_ == null) {
ensureSignatoriesIsMutable();
signatories_.remove(index);
onChanged();
} else {
signatoriesBuilder_.remove(index);
}
return this;
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getSignatoriesBuilder(
int index) {
return getSignatoriesFieldBuilder().getBuilder(index);
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getSignatoriesOrBuilder(
int index) {
if (signatoriesBuilder_ == null) {
return signatories_.get(index); } else {
return signatoriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.KeyOrBuilder>
getSignatoriesOrBuilderList() {
if (signatoriesBuilder_ != null) {
return signatoriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(signatories_);
}
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder addSignatoriesBuilder() {
return getSignatoriesFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance());
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder addSignatoriesBuilder(
int index) {
return getSignatoriesFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance());
}
/**
*
**
* All the primitive keys that have already signed this schedule.
* The scheduled transaction will not be executed before this list is
* sufficient to "activate" the required keys for the scheduled transaction.
*
*
* repeated .proto.Key signatories = 15;
*/
public java.util.List
getSignatoriesBuilderList() {
return getSignatoriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>
getSignatoriesFieldBuilder() {
if (signatoriesBuilder_ == null) {
signatoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>(
signatories_,
((bitField0_ & 0x00004000) != 0),
getParentForChildren(),
isClean());
signatories_ = null;
}
return signatoriesBuilder_;
}
@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.Schedule)
}
// @@protoc_insertion_point(class_scope:proto.Schedule)
private static final com.hedera.hashgraph.sdk.proto.Schedule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.Schedule();
}
public static com.hedera.hashgraph.sdk.proto.Schedule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Schedule 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.Schedule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}