com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stream/output/schedule_service.proto
package com.hedera.hapi.block.stream.output.protoc;
/**
*
**
* Block Stream data for a `createSchedule` transaction.
* This message SHALL NOT duplicate information already contained in
* the original transaction.
*
*
* Protobuf type {@code com.hedera.hapi.block.stream.output.CreateScheduleOutput}
*/
public final class CreateScheduleOutput extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.block.stream.output.CreateScheduleOutput)
CreateScheduleOutputOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateScheduleOutput.newBuilder() to construct.
private CreateScheduleOutput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateScheduleOutput() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateScheduleOutput();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateScheduleOutput(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
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 18: {
com.hederahashgraph.api.proto.java.TransactionID.Builder subBuilder = null;
if (scheduledTransactionId_ != null) {
subBuilder = scheduledTransactionId_.toBuilder();
}
scheduledTransactionId_ = input.readMessage(com.hederahashgraph.api.proto.java.TransactionID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduledTransactionId_);
scheduledTransactionId_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.block.stream.output.protoc.ScheduleService.internal_static_com_hedera_hapi_block_stream_output_CreateScheduleOutput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.stream.output.protoc.ScheduleService.internal_static_com_hedera_hapi_block_stream_output_CreateScheduleOutput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput.class, com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput.Builder.class);
}
public static final int SCHEDULE_ID_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.ScheduleID scheduleId_;
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .proto.ScheduleID schedule_id = 1;
* @return Whether the scheduleId field is set.
*/
@java.lang.Override
public boolean hasScheduleId() {
return scheduleId_ != null;
}
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .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_;
}
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ScheduleIDOrBuilder getScheduleIdOrBuilder() {
return getScheduleId();
}
public static final int SCHEDULED_TRANSACTION_ID_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.TransactionID scheduledTransactionId_;
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
* @return Whether the scheduledTransactionId field is set.
*/
@java.lang.Override
public boolean hasScheduledTransactionId() {
return scheduledTransactionId_ != null;
}
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
* @return The scheduledTransactionId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionID getScheduledTransactionId() {
return scheduledTransactionId_ == null ? com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance() : scheduledTransactionId_;
}
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionIDOrBuilder getScheduledTransactionIdOrBuilder() {
return getScheduledTransactionId();
}
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 (scheduledTransactionId_ != null) {
output.writeMessage(2, getScheduledTransactionId());
}
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 (scheduledTransactionId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getScheduledTransactionId());
}
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.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput)) {
return super.equals(obj);
}
com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput other = (com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput) obj;
if (hasScheduleId() != other.hasScheduleId()) return false;
if (hasScheduleId()) {
if (!getScheduleId()
.equals(other.getScheduleId())) return false;
}
if (hasScheduledTransactionId() != other.hasScheduledTransactionId()) return false;
if (hasScheduledTransactionId()) {
if (!getScheduledTransactionId()
.equals(other.getScheduledTransactionId())) 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();
}
if (hasScheduledTransactionId()) {
hash = (37 * hash) + SCHEDULED_TRANSACTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getScheduledTransactionId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput 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;
}
/**
*
**
* Block Stream data for a `createSchedule` transaction.
* This message SHALL NOT duplicate information already contained in
* the original transaction.
*
*
* Protobuf type {@code com.hedera.hapi.block.stream.output.CreateScheduleOutput}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.hedera.hapi.block.stream.output.CreateScheduleOutput)
com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutputOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.block.stream.output.protoc.ScheduleService.internal_static_com_hedera_hapi_block_stream_output_CreateScheduleOutput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.stream.output.protoc.ScheduleService.internal_static_com_hedera_hapi_block_stream_output_CreateScheduleOutput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput.class, com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput.Builder.class);
}
// Construct using com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (scheduleIdBuilder_ == null) {
scheduleId_ = null;
} else {
scheduleId_ = null;
scheduleIdBuilder_ = null;
}
if (scheduledTransactionIdBuilder_ == null) {
scheduledTransactionId_ = null;
} else {
scheduledTransactionId_ = null;
scheduledTransactionIdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hapi.block.stream.output.protoc.ScheduleService.internal_static_com_hedera_hapi_block_stream_output_CreateScheduleOutput_descriptor;
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput getDefaultInstanceForType() {
return com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput build() {
com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput buildPartial() {
com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput result = new com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput(this);
if (scheduleIdBuilder_ == null) {
result.scheduleId_ = scheduleId_;
} else {
result.scheduleId_ = scheduleIdBuilder_.build();
}
if (scheduledTransactionIdBuilder_ == null) {
result.scheduledTransactionId_ = scheduledTransactionId_;
} else {
result.scheduledTransactionId_ = scheduledTransactionIdBuilder_.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.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput) {
return mergeFrom((com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput other) {
if (other == com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput.getDefaultInstance()) return this;
if (other.hasScheduleId()) {
mergeScheduleId(other.getScheduleId());
}
if (other.hasScheduledTransactionId()) {
mergeScheduledTransactionId(other.getScheduledTransactionId());
}
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.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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_;
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .proto.ScheduleID schedule_id = 1;
* @return Whether the scheduleId field is set.
*/
public boolean hasScheduleId() {
return scheduleIdBuilder_ != null || scheduleId_ != null;
}
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .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();
}
}
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .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;
}
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .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;
}
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .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;
}
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public Builder clearScheduleId() {
if (scheduleIdBuilder_ == null) {
scheduleId_ = null;
onChanged();
} else {
scheduleId_ = null;
scheduleIdBuilder_ = null;
}
return this;
}
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .proto.ScheduleID schedule_id = 1;
*/
public com.hederahashgraph.api.proto.java.ScheduleID.Builder getScheduleIdBuilder() {
onChanged();
return getScheduleIdFieldBuilder().getBuilder();
}
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .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_;
}
}
/**
*
**
* A schedule identifier.
* <p>
* If the status of the transaction is `SUCCESS`, this value SHALL be
* set to the identifier of the schedule that was created. If the
* transaction status is `IDENTICAL_SCHEDULE_ALREADY_CREATED`, this
* value SHALL be set to the identifier of the existing schedule that
* is identical to the one that was attempted to be created. For any
* other status, this value SHALL NOT be set.
*
*
* .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 com.hederahashgraph.api.proto.java.TransactionID scheduledTransactionId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder> scheduledTransactionIdBuilder_;
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
* @return Whether the scheduledTransactionId field is set.
*/
public boolean hasScheduledTransactionId() {
return scheduledTransactionIdBuilder_ != null || scheduledTransactionId_ != null;
}
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
* @return The scheduledTransactionId.
*/
public com.hederahashgraph.api.proto.java.TransactionID getScheduledTransactionId() {
if (scheduledTransactionIdBuilder_ == null) {
return scheduledTransactionId_ == null ? com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance() : scheduledTransactionId_;
} else {
return scheduledTransactionIdBuilder_.getMessage();
}
}
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
*/
public Builder setScheduledTransactionId(com.hederahashgraph.api.proto.java.TransactionID value) {
if (scheduledTransactionIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scheduledTransactionId_ = value;
onChanged();
} else {
scheduledTransactionIdBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
*/
public Builder setScheduledTransactionId(
com.hederahashgraph.api.proto.java.TransactionID.Builder builderForValue) {
if (scheduledTransactionIdBuilder_ == null) {
scheduledTransactionId_ = builderForValue.build();
onChanged();
} else {
scheduledTransactionIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
*/
public Builder mergeScheduledTransactionId(com.hederahashgraph.api.proto.java.TransactionID value) {
if (scheduledTransactionIdBuilder_ == null) {
if (scheduledTransactionId_ != null) {
scheduledTransactionId_ =
com.hederahashgraph.api.proto.java.TransactionID.newBuilder(scheduledTransactionId_).mergeFrom(value).buildPartial();
} else {
scheduledTransactionId_ = value;
}
onChanged();
} else {
scheduledTransactionIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
*/
public Builder clearScheduledTransactionId() {
if (scheduledTransactionIdBuilder_ == null) {
scheduledTransactionId_ = null;
onChanged();
} else {
scheduledTransactionId_ = null;
scheduledTransactionIdBuilder_ = null;
}
return this;
}
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
*/
public com.hederahashgraph.api.proto.java.TransactionID.Builder getScheduledTransactionIdBuilder() {
onChanged();
return getScheduledTransactionIdFieldBuilder().getBuilder();
}
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
*/
public com.hederahashgraph.api.proto.java.TransactionIDOrBuilder getScheduledTransactionIdOrBuilder() {
if (scheduledTransactionIdBuilder_ != null) {
return scheduledTransactionIdBuilder_.getMessageOrBuilder();
} else {
return scheduledTransactionId_ == null ?
com.hederahashgraph.api.proto.java.TransactionID.getDefaultInstance() : scheduledTransactionId_;
}
}
/**
*
**
* A scheduled transaction identifier.
* <p>
* This value SHALL be the transaction identifier for the _scheduled_
* child transaction executed as a result of gathering sufficient
* signatures to complete the schedule.<br/>
* This value SHALL NOT be set unless the scheduled transaction was
* executed as a child of this schedule create transaction.<br/>
* This value SHALL NOT be set unless this schedule create transaction
* was signed by sufficient keys to meet the signature requirements
* for the scheduled child transaction immediately.
*
*
* .proto.TransactionID scheduled_transaction_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder>
getScheduledTransactionIdFieldBuilder() {
if (scheduledTransactionIdBuilder_ == null) {
scheduledTransactionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionID, com.hederahashgraph.api.proto.java.TransactionID.Builder, com.hederahashgraph.api.proto.java.TransactionIDOrBuilder>(
getScheduledTransactionId(),
getParentForChildren(),
isClean());
scheduledTransactionId_ = null;
}
return scheduledTransactionIdBuilder_;
}
@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:com.hedera.hapi.block.stream.output.CreateScheduleOutput)
}
// @@protoc_insertion_point(class_scope:com.hedera.hapi.block.stream.output.CreateScheduleOutput)
private static final com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput();
}
public static com.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateScheduleOutput parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateScheduleOutput(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.hedera.hapi.block.stream.output.protoc.CreateScheduleOutput getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy