com.hederahashgraph.api.proto.java.Schedule Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: state/schedule/schedule.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Schedule(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.hederahashgraph.api.proto.java.ScheduleID.Builder subBuilder = null;
if (scheduleId_ != null) {
subBuilder = scheduleId_.toBuilder();
}
scheduleId_ = input.readMessage(com.hederahashgraph.api.proto.java.ScheduleID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduleId_);
scheduleId_ = subBuilder.buildPartial();
}
break;
}
case 16: {
deleted_ = input.readBool();
break;
}
case 24: {
executed_ = input.readBool();
break;
}
case 32: {
waitForExpiry_ = input.readBool();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
memo_ = s;
break;
}
case 50: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (schedulerAccountId_ != null) {
subBuilder = schedulerAccountId_.toBuilder();
}
schedulerAccountId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schedulerAccountId_);
schedulerAccountId_ = subBuilder.buildPartial();
}
break;
}
case 58: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (payerAccountId_ != null) {
subBuilder = payerAccountId_.toBuilder();
}
payerAccountId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(payerAccountId_);
payerAccountId_ = subBuilder.buildPartial();
}
break;
}
case 66: {
com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null;
if (adminKey_ != null) {
subBuilder = adminKey_.toBuilder();
}
adminKey_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(adminKey_);
adminKey_ = subBuilder.buildPartial();
}
break;
}
case 74: {
com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null;
if (scheduleValidStart_ != null) {
subBuilder = scheduleValidStart_.toBuilder();
}
scheduleValidStart_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduleValidStart_);
scheduleValidStart_ = subBuilder.buildPartial();
}
break;
}
case 80: {
providedExpirationSecond_ = input.readInt64();
break;
}
case 88: {
calculatedExpirationSecond_ = input.readInt64();
break;
}
case 98: {
com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null;
if (resolutionTime_ != null) {
subBuilder = resolutionTime_.toBuilder();
}
resolutionTime_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resolutionTime_);
resolutionTime_ = subBuilder.buildPartial();
}
break;
}
case 106: {
com.hederahashgraph.api.proto.java.SchedulableTransactionBody.Builder subBuilder = null;
if (scheduledTransaction_ != null) {
subBuilder = scheduledTransaction_.toBuilder();
}
scheduledTransaction_ = input.readMessage(com.hederahashgraph.api.proto.java.SchedulableTransactionBody.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduledTransaction_);
scheduledTransaction_ = subBuilder.buildPartial();
}
break;
}
case 114: {
com.hederahashgraph.api.proto.java.TransactionBody.Builder subBuilder = null;
if (originalCreateTransaction_ != null) {
subBuilder = originalCreateTransaction_.toBuilder();
}
originalCreateTransaction_ = input.readMessage(com.hederahashgraph.api.proto.java.TransactionBody.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(originalCreateTransaction_);
originalCreateTransaction_ = subBuilder.buildPartial();
}
break;
}
case 122: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
signatories_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
signatories_.add(
input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
signatories_ = java.util.Collections.unmodifiableList(signatories_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ScheduleOuterClass.internal_static_proto_Schedule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ScheduleOuterClass.internal_static_proto_Schedule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.Schedule.class, com.hederahashgraph.api.proto.java.Schedule.Builder.class);
}
public static final int SCHEDULE_ID_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.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 scheduleId_ != null;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
* @return The scheduleId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ScheduleID getScheduleId() {
return scheduleId_ == null ? com.hederahashgraph.api.proto.java.ScheduleID.getDefaultInstance() : scheduleId_;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ScheduleIDOrBuilder getScheduleIdOrBuilder() {
return getScheduleId();
}
public static final int DELETED_FIELD_NUMBER = 2;
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_;
}
public static final int EXECUTED_FIELD_NUMBER = 3;
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_;
}
public static final int WAIT_FOR_EXPIRY_FIELD_NUMBER = 4;
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_;
}
public static final int MEMO_FIELD_NUMBER = 5;
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.hederahashgraph.api.proto.java.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 schedulerAccountId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getSchedulerAccountId() {
return schedulerAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getSchedulerAccountIdOrBuilder() {
return getSchedulerAccountId();
}
public static final int PAYER_ACCOUNT_ID_FIELD_NUMBER = 7;
private com.hederahashgraph.api.proto.java.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 payerAccountId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getPayerAccountId() {
return payerAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getPayerAccountIdOrBuilder() {
return getPayerAccountId();
}
public static final int ADMIN_KEY_FIELD_NUMBER = 8;
private com.hederahashgraph.api.proto.java.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 adminKey_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.Key getAdminKey() {
return adminKey_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() {
return getAdminKey();
}
public static final int SCHEDULE_VALID_START_FIELD_NUMBER = 9;
private com.hederahashgraph.api.proto.java.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 scheduleValidStart_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.Timestamp getScheduleValidStart() {
return scheduleValidStart_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TimestampOrBuilder getScheduleValidStartOrBuilder() {
return getScheduleValidStart();
}
public static final int PROVIDED_EXPIRATION_SECOND_FIELD_NUMBER = 10;
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_;
}
public static final int CALCULATED_EXPIRATION_SECOND_FIELD_NUMBER = 11;
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_;
}
public static final int RESOLUTION_TIME_FIELD_NUMBER = 12;
private com.hederahashgraph.api.proto.java.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 resolutionTime_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.Timestamp getResolutionTime() {
return resolutionTime_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TimestampOrBuilder getResolutionTimeOrBuilder() {
return getResolutionTime();
}
public static final int SCHEDULED_TRANSACTION_FIELD_NUMBER = 13;
private com.hederahashgraph.api.proto.java.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 scheduledTransaction_ != null;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
* @return The scheduledTransaction.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.SchedulableTransactionBody getScheduledTransaction() {
return scheduledTransaction_ == null ? com.hederahashgraph.api.proto.java.SchedulableTransactionBody.getDefaultInstance() : scheduledTransaction_;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.SchedulableTransactionBodyOrBuilder getScheduledTransactionOrBuilder() {
return getScheduledTransaction();
}
public static final int ORIGINAL_CREATE_TRANSACTION_FIELD_NUMBER = 14;
private com.hederahashgraph.api.proto.java.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 originalCreateTransaction_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.TransactionBody getOriginalCreateTransaction() {
return originalCreateTransaction_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionBodyOrBuilder getOriginalCreateTransactionOrBuilder() {
return getOriginalCreateTransaction();
}
public static final int SIGNATORIES_FIELD_NUMBER = 15;
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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 (scheduleId_ != null) {
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 (!getMemoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, memo_);
}
if (schedulerAccountId_ != null) {
output.writeMessage(6, getSchedulerAccountId());
}
if (payerAccountId_ != null) {
output.writeMessage(7, getPayerAccountId());
}
if (adminKey_ != null) {
output.writeMessage(8, getAdminKey());
}
if (scheduleValidStart_ != null) {
output.writeMessage(9, getScheduleValidStart());
}
if (providedExpirationSecond_ != 0L) {
output.writeInt64(10, providedExpirationSecond_);
}
if (calculatedExpirationSecond_ != 0L) {
output.writeInt64(11, calculatedExpirationSecond_);
}
if (resolutionTime_ != null) {
output.writeMessage(12, getResolutionTime());
}
if (scheduledTransaction_ != null) {
output.writeMessage(13, getScheduledTransaction());
}
if (originalCreateTransaction_ != null) {
output.writeMessage(14, getOriginalCreateTransaction());
}
for (int i = 0; i < signatories_.size(); i++) {
output.writeMessage(15, signatories_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (scheduleId_ != null) {
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 (!getMemoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, memo_);
}
if (schedulerAccountId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSchedulerAccountId());
}
if (payerAccountId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getPayerAccountId());
}
if (adminKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getAdminKey());
}
if (scheduleValidStart_ != null) {
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 (resolutionTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getResolutionTime());
}
if (scheduledTransaction_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getScheduledTransaction());
}
if (originalCreateTransaction_ != null) {
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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.Schedule)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.Schedule other = (com.hederahashgraph.api.proto.java.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.Schedule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.Schedule parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.Schedule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Schedule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.Schedule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.Schedule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Schedule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Schedule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ScheduleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ScheduleOuterClass.internal_static_proto_Schedule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ScheduleOuterClass.internal_static_proto_Schedule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.Schedule.class, com.hederahashgraph.api.proto.java.Schedule.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.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) {
getSignatoriesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (scheduleIdBuilder_ == null) {
scheduleId_ = null;
} else {
scheduleId_ = null;
scheduleIdBuilder_ = null;
}
deleted_ = false;
executed_ = false;
waitForExpiry_ = false;
memo_ = "";
if (schedulerAccountIdBuilder_ == null) {
schedulerAccountId_ = null;
} else {
schedulerAccountId_ = null;
schedulerAccountIdBuilder_ = null;
}
if (payerAccountIdBuilder_ == null) {
payerAccountId_ = null;
} else {
payerAccountId_ = null;
payerAccountIdBuilder_ = null;
}
if (adminKeyBuilder_ == null) {
adminKey_ = null;
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
if (scheduleValidStartBuilder_ == null) {
scheduleValidStart_ = null;
} else {
scheduleValidStart_ = null;
scheduleValidStartBuilder_ = null;
}
providedExpirationSecond_ = 0L;
calculatedExpirationSecond_ = 0L;
if (resolutionTimeBuilder_ == null) {
resolutionTime_ = null;
} else {
resolutionTime_ = null;
resolutionTimeBuilder_ = null;
}
if (scheduledTransactionBuilder_ == null) {
scheduledTransaction_ = null;
} else {
scheduledTransaction_ = null;
scheduledTransactionBuilder_ = null;
}
if (originalCreateTransactionBuilder_ == null) {
originalCreateTransaction_ = null;
} else {
originalCreateTransaction_ = null;
originalCreateTransactionBuilder_ = null;
}
if (signatoriesBuilder_ == null) {
signatories_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
signatoriesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ScheduleOuterClass.internal_static_proto_Schedule_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Schedule getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.Schedule.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Schedule build() {
com.hederahashgraph.api.proto.java.Schedule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Schedule buildPartial() {
com.hederahashgraph.api.proto.java.Schedule result = new com.hederahashgraph.api.proto.java.Schedule(this);
int from_bitField0_ = bitField0_;
if (scheduleIdBuilder_ == null) {
result.scheduleId_ = scheduleId_;
} else {
result.scheduleId_ = scheduleIdBuilder_.build();
}
result.deleted_ = deleted_;
result.executed_ = executed_;
result.waitForExpiry_ = waitForExpiry_;
result.memo_ = memo_;
if (schedulerAccountIdBuilder_ == null) {
result.schedulerAccountId_ = schedulerAccountId_;
} else {
result.schedulerAccountId_ = schedulerAccountIdBuilder_.build();
}
if (payerAccountIdBuilder_ == null) {
result.payerAccountId_ = payerAccountId_;
} else {
result.payerAccountId_ = payerAccountIdBuilder_.build();
}
if (adminKeyBuilder_ == null) {
result.adminKey_ = adminKey_;
} else {
result.adminKey_ = adminKeyBuilder_.build();
}
if (scheduleValidStartBuilder_ == null) {
result.scheduleValidStart_ = scheduleValidStart_;
} else {
result.scheduleValidStart_ = scheduleValidStartBuilder_.build();
}
result.providedExpirationSecond_ = providedExpirationSecond_;
result.calculatedExpirationSecond_ = calculatedExpirationSecond_;
if (resolutionTimeBuilder_ == null) {
result.resolutionTime_ = resolutionTime_;
} else {
result.resolutionTime_ = resolutionTimeBuilder_.build();
}
if (scheduledTransactionBuilder_ == null) {
result.scheduledTransaction_ = scheduledTransaction_;
} else {
result.scheduledTransaction_ = scheduledTransactionBuilder_.build();
}
if (originalCreateTransactionBuilder_ == null) {
result.originalCreateTransaction_ = originalCreateTransaction_;
} else {
result.originalCreateTransaction_ = originalCreateTransactionBuilder_.build();
}
if (signatoriesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
signatories_ = java.util.Collections.unmodifiableList(signatories_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.signatories_ = signatories_;
} else {
result.signatories_ = signatoriesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.Schedule) {
return mergeFrom((com.hederahashgraph.api.proto.java.Schedule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.Schedule other) {
if (other == com.hederahashgraph.api.proto.java.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_;
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_ & ~0x00000001);
} else {
ensureSignatoriesIsMutable();
signatories_.addAll(other.signatories_);
}
onChanged();
}
} else {
if (!other.signatories_.isEmpty()) {
if (signatoriesBuilder_.isEmpty()) {
signatoriesBuilder_.dispose();
signatoriesBuilder_ = null;
signatories_ = other.signatories_;
bitField0_ = (bitField0_ & ~0x00000001);
signatoriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSignatoriesFieldBuilder() : null;
} else {
signatoriesBuilder_.addAllMessages(other.signatories_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hederahashgraph.api.proto.java.Schedule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.Schedule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.hederahashgraph.api.proto.java.ScheduleID scheduleId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ScheduleID, com.hederahashgraph.api.proto.java.ScheduleID.Builder, com.hederahashgraph.api.proto.java.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 scheduleIdBuilder_ != null || scheduleId_ != null;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
* @return The scheduleId.
*/
public com.hederahashgraph.api.proto.java.ScheduleID getScheduleId() {
if (scheduleIdBuilder_ == null) {
return scheduleId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ScheduleID value) {
if (scheduleIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduleId_ = value;
onChanged();
} else {
scheduleIdBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public Builder setScheduleId(
com.hederahashgraph.api.proto.java.ScheduleID.Builder builderForValue) {
if (scheduleIdBuilder_ == null) {
scheduleId_ = builderForValue.build();
onChanged();
} else {
scheduleIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public Builder mergeScheduleId(com.hederahashgraph.api.proto.java.ScheduleID value) {
if (scheduleIdBuilder_ == null) {
if (scheduleId_ != null) {
scheduleId_ =
com.hederahashgraph.api.proto.java.ScheduleID.newBuilder(scheduleId_).mergeFrom(value).buildPartial();
} else {
scheduleId_ = value;
}
onChanged();
} else {
scheduleIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public Builder clearScheduleId() {
if (scheduleIdBuilder_ == null) {
scheduleId_ = null;
onChanged();
} else {
scheduleId_ = null;
scheduleIdBuilder_ = null;
}
return this;
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public com.hederahashgraph.api.proto.java.ScheduleID.Builder getScheduleIdBuilder() {
onChanged();
return getScheduleIdFieldBuilder().getBuilder();
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public com.hederahashgraph.api.proto.java.ScheduleIDOrBuilder getScheduleIdOrBuilder() {
if (scheduleIdBuilder_ != null) {
return scheduleIdBuilder_.getMessageOrBuilder();
} else {
return scheduleId_ == null ?
com.hederahashgraph.api.proto.java.ScheduleID.getDefaultInstance() : scheduleId_;
}
}
/**
*
**
* This schedule's unique ID within the global network state.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ScheduleID, com.hederahashgraph.api.proto.java.ScheduleID.Builder, com.hederahashgraph.api.proto.java.ScheduleIDOrBuilder>
getScheduleIdFieldBuilder() {
if (scheduleIdBuilder_ == null) {
scheduleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ScheduleID, com.hederahashgraph.api.proto.java.ScheduleID.Builder, com.hederahashgraph.api.proto.java.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;
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() {
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;
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() {
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;
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() {
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;
onChanged();
return this;
}
/**
*
**
* The memo associated with this schedule.
*
*
* string memo = 5;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
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;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.AccountID schedulerAccountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 schedulerAccountIdBuilder_ != null || schedulerAccountId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getSchedulerAccountId() {
if (schedulerAccountIdBuilder_ == null) {
return schedulerAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) {
if (schedulerAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedulerAccountId_ = value;
onChanged();
} else {
schedulerAccountIdBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (schedulerAccountIdBuilder_ == null) {
schedulerAccountId_ = builderForValue.build();
onChanged();
} else {
schedulerAccountIdBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.AccountID value) {
if (schedulerAccountIdBuilder_ == null) {
if (schedulerAccountId_ != null) {
schedulerAccountId_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(schedulerAccountId_).mergeFrom(value).buildPartial();
} else {
schedulerAccountId_ = value;
}
onChanged();
} else {
schedulerAccountIdBuilder_.mergeFrom(value);
}
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() {
if (schedulerAccountIdBuilder_ == null) {
schedulerAccountId_ = null;
onChanged();
} else {
schedulerAccountId_ = null;
schedulerAccountIdBuilder_ = null;
}
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.hederahashgraph.api.proto.java.AccountID.Builder getSchedulerAccountIdBuilder() {
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.hederahashgraph.api.proto.java.AccountIDOrBuilder getSchedulerAccountIdOrBuilder() {
if (schedulerAccountIdBuilder_ != null) {
return schedulerAccountIdBuilder_.getMessageOrBuilder();
} else {
return schedulerAccountId_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getSchedulerAccountIdFieldBuilder() {
if (schedulerAccountIdBuilder_ == null) {
schedulerAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getSchedulerAccountId(),
getParentForChildren(),
isClean());
schedulerAccountId_ = null;
}
return schedulerAccountIdBuilder_;
}
private com.hederahashgraph.api.proto.java.AccountID payerAccountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 payerAccountIdBuilder_ != null || payerAccountId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getPayerAccountId() {
if (payerAccountIdBuilder_ == null) {
return payerAccountId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) {
if (payerAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payerAccountId_ = value;
onChanged();
} else {
payerAccountIdBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (payerAccountIdBuilder_ == null) {
payerAccountId_ = builderForValue.build();
onChanged();
} else {
payerAccountIdBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.AccountID value) {
if (payerAccountIdBuilder_ == null) {
if (payerAccountId_ != null) {
payerAccountId_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(payerAccountId_).mergeFrom(value).buildPartial();
} else {
payerAccountId_ = value;
}
onChanged();
} else {
payerAccountIdBuilder_.mergeFrom(value);
}
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() {
if (payerAccountIdBuilder_ == null) {
payerAccountId_ = null;
onChanged();
} else {
payerAccountId_ = null;
payerAccountIdBuilder_ = null;
}
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.hederahashgraph.api.proto.java.AccountID.Builder getPayerAccountIdBuilder() {
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.hederahashgraph.api.proto.java.AccountIDOrBuilder getPayerAccountIdOrBuilder() {
if (payerAccountIdBuilder_ != null) {
return payerAccountIdBuilder_.getMessageOrBuilder();
} else {
return payerAccountId_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getPayerAccountIdFieldBuilder() {
if (payerAccountIdBuilder_ == null) {
payerAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getPayerAccountId(),
getParentForChildren(),
isClean());
payerAccountId_ = null;
}
return payerAccountIdBuilder_;
}
private com.hederahashgraph.api.proto.java.Key adminKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.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 adminKeyBuilder_ != null || adminKey_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.Key getAdminKey() {
if (adminKeyBuilder_ == null) {
return adminKey_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Key value) {
if (adminKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
adminKey_ = value;
onChanged();
} else {
adminKeyBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (adminKeyBuilder_ == null) {
adminKey_ = builderForValue.build();
onChanged();
} else {
adminKeyBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.Key value) {
if (adminKeyBuilder_ == null) {
if (adminKey_ != null) {
adminKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(adminKey_).mergeFrom(value).buildPartial();
} else {
adminKey_ = value;
}
onChanged();
} else {
adminKeyBuilder_.mergeFrom(value);
}
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() {
if (adminKeyBuilder_ == null) {
adminKey_ = null;
onChanged();
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
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.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() {
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.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() {
if (adminKeyBuilder_ != null) {
return adminKeyBuilder_.getMessageOrBuilder();
} else {
return adminKey_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getAdminKeyFieldBuilder() {
if (adminKeyBuilder_ == null) {
adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getAdminKey(),
getParentForChildren(),
isClean());
adminKey_ = null;
}
return adminKeyBuilder_;
}
private com.hederahashgraph.api.proto.java.Timestamp scheduleValidStart_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.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 scheduleValidStartBuilder_ != null || scheduleValidStart_ != null;
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
* @return The scheduleValidStart.
*/
public com.hederahashgraph.api.proto.java.Timestamp getScheduleValidStart() {
if (scheduleValidStartBuilder_ == null) {
return scheduleValidStart_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Timestamp value) {
if (scheduleValidStartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduleValidStart_ = value;
onChanged();
} else {
scheduleValidStartBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public Builder setScheduleValidStart(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (scheduleValidStartBuilder_ == null) {
scheduleValidStart_ = builderForValue.build();
onChanged();
} else {
scheduleValidStartBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public Builder mergeScheduleValidStart(com.hederahashgraph.api.proto.java.Timestamp value) {
if (scheduleValidStartBuilder_ == null) {
if (scheduleValidStart_ != null) {
scheduleValidStart_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(scheduleValidStart_).mergeFrom(value).buildPartial();
} else {
scheduleValidStart_ = value;
}
onChanged();
} else {
scheduleValidStartBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public Builder clearScheduleValidStart() {
if (scheduleValidStartBuilder_ == null) {
scheduleValidStart_ = null;
onChanged();
} else {
scheduleValidStart_ = null;
scheduleValidStartBuilder_ = null;
}
return this;
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getScheduleValidStartBuilder() {
onChanged();
return getScheduleValidStartFieldBuilder().getBuilder();
}
/**
*
**
* The transaction valid start value from the transaction that created this schedule.
*
*
* .proto.Timestamp schedule_valid_start = 9;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getScheduleValidStartOrBuilder() {
if (scheduleValidStartBuilder_ != null) {
return scheduleValidStartBuilder_.getMessageOrBuilder();
} else {
return scheduleValidStart_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getScheduleValidStartFieldBuilder() {
if (scheduleValidStartBuilder_ == null) {
scheduleValidStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.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;
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() {
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;
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() {
calculatedExpirationSecond_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Timestamp resolutionTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.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 resolutionTimeBuilder_ != null || resolutionTime_ != null;
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
* @return The resolutionTime.
*/
public com.hederahashgraph.api.proto.java.Timestamp getResolutionTime() {
if (resolutionTimeBuilder_ == null) {
return resolutionTime_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Timestamp value) {
if (resolutionTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resolutionTime_ = value;
onChanged();
} else {
resolutionTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public Builder setResolutionTime(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (resolutionTimeBuilder_ == null) {
resolutionTime_ = builderForValue.build();
onChanged();
} else {
resolutionTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public Builder mergeResolutionTime(com.hederahashgraph.api.proto.java.Timestamp value) {
if (resolutionTimeBuilder_ == null) {
if (resolutionTime_ != null) {
resolutionTime_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(resolutionTime_).mergeFrom(value).buildPartial();
} else {
resolutionTime_ = value;
}
onChanged();
} else {
resolutionTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public Builder clearResolutionTime() {
if (resolutionTimeBuilder_ == null) {
resolutionTime_ = null;
onChanged();
} else {
resolutionTime_ = null;
resolutionTimeBuilder_ = null;
}
return this;
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getResolutionTimeBuilder() {
onChanged();
return getResolutionTimeFieldBuilder().getBuilder();
}
/**
*
**
* The consensus timestamp of the transaction that executed or deleted this schedule.
*
*
* .proto.Timestamp resolution_time = 12;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getResolutionTimeOrBuilder() {
if (resolutionTimeBuilder_ != null) {
return resolutionTimeBuilder_.getMessageOrBuilder();
} else {
return resolutionTime_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getResolutionTimeFieldBuilder() {
if (resolutionTimeBuilder_ == null) {
resolutionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getResolutionTime(),
getParentForChildren(),
isClean());
resolutionTime_ = null;
}
return resolutionTimeBuilder_;
}
private com.hederahashgraph.api.proto.java.SchedulableTransactionBody scheduledTransaction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.SchedulableTransactionBody, com.hederahashgraph.api.proto.java.SchedulableTransactionBody.Builder, com.hederahashgraph.api.proto.java.SchedulableTransactionBodyOrBuilder> scheduledTransactionBuilder_;
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
* @return Whether the scheduledTransaction field is set.
*/
public boolean hasScheduledTransaction() {
return scheduledTransactionBuilder_ != null || scheduledTransaction_ != null;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
* @return The scheduledTransaction.
*/
public com.hederahashgraph.api.proto.java.SchedulableTransactionBody getScheduledTransaction() {
if (scheduledTransactionBuilder_ == null) {
return scheduledTransaction_ == null ? com.hederahashgraph.api.proto.java.SchedulableTransactionBody.getDefaultInstance() : scheduledTransaction_;
} else {
return scheduledTransactionBuilder_.getMessage();
}
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public Builder setScheduledTransaction(com.hederahashgraph.api.proto.java.SchedulableTransactionBody value) {
if (scheduledTransactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduledTransaction_ = value;
onChanged();
} else {
scheduledTransactionBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public Builder setScheduledTransaction(
com.hederahashgraph.api.proto.java.SchedulableTransactionBody.Builder builderForValue) {
if (scheduledTransactionBuilder_ == null) {
scheduledTransaction_ = builderForValue.build();
onChanged();
} else {
scheduledTransactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public Builder mergeScheduledTransaction(com.hederahashgraph.api.proto.java.SchedulableTransactionBody value) {
if (scheduledTransactionBuilder_ == null) {
if (scheduledTransaction_ != null) {
scheduledTransaction_ =
com.hederahashgraph.api.proto.java.SchedulableTransactionBody.newBuilder(scheduledTransaction_).mergeFrom(value).buildPartial();
} else {
scheduledTransaction_ = value;
}
onChanged();
} else {
scheduledTransactionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public Builder clearScheduledTransaction() {
if (scheduledTransactionBuilder_ == null) {
scheduledTransaction_ = null;
onChanged();
} else {
scheduledTransaction_ = null;
scheduledTransactionBuilder_ = null;
}
return this;
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public com.hederahashgraph.api.proto.java.SchedulableTransactionBody.Builder getScheduledTransactionBuilder() {
onChanged();
return getScheduledTransactionFieldBuilder().getBuilder();
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
public com.hederahashgraph.api.proto.java.SchedulableTransactionBodyOrBuilder getScheduledTransactionOrBuilder() {
if (scheduledTransactionBuilder_ != null) {
return scheduledTransactionBuilder_.getMessageOrBuilder();
} else {
return scheduledTransaction_ == null ?
com.hederahashgraph.api.proto.java.SchedulableTransactionBody.getDefaultInstance() : scheduledTransaction_;
}
}
/**
*
**
* The scheduled transaction to execute.
*
*
* .proto.SchedulableTransactionBody scheduled_transaction = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.SchedulableTransactionBody, com.hederahashgraph.api.proto.java.SchedulableTransactionBody.Builder, com.hederahashgraph.api.proto.java.SchedulableTransactionBodyOrBuilder>
getScheduledTransactionFieldBuilder() {
if (scheduledTransactionBuilder_ == null) {
scheduledTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.SchedulableTransactionBody, com.hederahashgraph.api.proto.java.SchedulableTransactionBody.Builder, com.hederahashgraph.api.proto.java.SchedulableTransactionBodyOrBuilder>(
getScheduledTransaction(),
getParentForChildren(),
isClean());
scheduledTransaction_ = null;
}
return scheduledTransactionBuilder_;
}
private com.hederahashgraph.api.proto.java.TransactionBody originalCreateTransaction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionBody, com.hederahashgraph.api.proto.java.TransactionBody.Builder, com.hederahashgraph.api.proto.java.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 originalCreateTransactionBuilder_ != null || originalCreateTransaction_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.TransactionBody getOriginalCreateTransaction() {
if (originalCreateTransactionBuilder_ == null) {
return originalCreateTransaction_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionBody value) {
if (originalCreateTransactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
originalCreateTransaction_ = value;
onChanged();
} else {
originalCreateTransactionBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.TransactionBody.Builder builderForValue) {
if (originalCreateTransactionBuilder_ == null) {
originalCreateTransaction_ = builderForValue.build();
onChanged();
} else {
originalCreateTransactionBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.TransactionBody value) {
if (originalCreateTransactionBuilder_ == null) {
if (originalCreateTransaction_ != null) {
originalCreateTransaction_ =
com.hederahashgraph.api.proto.java.TransactionBody.newBuilder(originalCreateTransaction_).mergeFrom(value).buildPartial();
} else {
originalCreateTransaction_ = value;
}
onChanged();
} else {
originalCreateTransactionBuilder_.mergeFrom(value);
}
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() {
if (originalCreateTransactionBuilder_ == null) {
originalCreateTransaction_ = null;
onChanged();
} else {
originalCreateTransaction_ = null;
originalCreateTransactionBuilder_ = null;
}
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.hederahashgraph.api.proto.java.TransactionBody.Builder getOriginalCreateTransactionBuilder() {
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.hederahashgraph.api.proto.java.TransactionBodyOrBuilder getOriginalCreateTransactionOrBuilder() {
if (originalCreateTransactionBuilder_ != null) {
return originalCreateTransactionBuilder_.getMessageOrBuilder();
} else {
return originalCreateTransaction_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionBody, com.hederahashgraph.api.proto.java.TransactionBody.Builder, com.hederahashgraph.api.proto.java.TransactionBodyOrBuilder>
getOriginalCreateTransactionFieldBuilder() {
if (originalCreateTransactionBuilder_ == null) {
originalCreateTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionBody, com.hederahashgraph.api.proto.java.TransactionBody.Builder, com.hederahashgraph.api.proto.java.TransactionBodyOrBuilder>(
getOriginalCreateTransaction(),
getParentForChildren(),
isClean());
originalCreateTransaction_ = null;
}
return originalCreateTransactionBuilder_;
}
private java.util.List signatories_ =
java.util.Collections.emptyList();
private void ensureSignatoriesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
signatories_ = new java.util.ArrayList(signatories_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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_ & ~0x00000001);
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Key.Builder addSignatoriesBuilder() {
return getSignatoriesFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Key.Builder addSignatoriesBuilder(
int index) {
return getSignatoriesFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getSignatoriesFieldBuilder() {
if (signatoriesBuilder_ == null) {
signatoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
signatories_,
((bitField0_ & 0x00000001) != 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.hederahashgraph.api.proto.java.Schedule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.Schedule();
}
public static com.hederahashgraph.api.proto.java.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 {
return new Schedule(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Schedule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}