com.hederahashgraph.api.proto.java.ScheduledOrder Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: state/schedule/schedule.proto
// Protobuf Java Version: 3.25.4
package com.hederahashgraph.api.proto.java;
/**
*
**
* A key mapping to a particular ScheduleID that will execute at a given order number
* within a given consensus second.
*
*
* Protobuf type {@code proto.ScheduledOrder}
*/
public final class ScheduledOrder extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.ScheduledOrder)
ScheduledOrderOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScheduledOrder.newBuilder() to construct.
private ScheduledOrder(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScheduledOrder() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScheduledOrder();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ScheduleOuterClass.internal_static_proto_ScheduledOrder_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ScheduleOuterClass.internal_static_proto_ScheduledOrder_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ScheduledOrder.class, com.hederahashgraph.api.proto.java.ScheduledOrder.Builder.class);
}
public static final int EXPIRY_SECOND_FIELD_NUMBER = 1;
private long expirySecond_ = 0L;
/**
*
**
* The consensus second in which the transaction is expired.
*
*
* uint64 expiry_second = 1;
* @return The expirySecond.
*/
@java.lang.Override
public long getExpirySecond() {
return expirySecond_;
}
public static final int ORDER_NUMBER_FIELD_NUMBER = 2;
private int orderNumber_ = 0;
/**
*
*
* The ordered position within the consensus second that the transaction will be executed.
*
*
* uint32 order_number = 2;
* @return The orderNumber.
*/
@java.lang.Override
public int getOrderNumber() {
return orderNumber_;
}
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 (expirySecond_ != 0L) {
output.writeUInt64(1, expirySecond_);
}
if (orderNumber_ != 0) {
output.writeUInt32(2, orderNumber_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (expirySecond_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, expirySecond_);
}
if (orderNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, orderNumber_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.ScheduledOrder)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.ScheduledOrder other = (com.hederahashgraph.api.proto.java.ScheduledOrder) obj;
if (getExpirySecond()
!= other.getExpirySecond()) return false;
if (getOrderNumber()
!= other.getOrderNumber()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + EXPIRY_SECOND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExpirySecond());
hash = (37 * hash) + ORDER_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getOrderNumber();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.ScheduledOrder parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ScheduledOrder 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.ScheduledOrder parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ScheduledOrder 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.ScheduledOrder parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ScheduledOrder 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.ScheduledOrder parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ScheduledOrder 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.ScheduledOrder parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ScheduledOrder 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.ScheduledOrder 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.ScheduledOrder 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.ScheduledOrder 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;
}
/**
*
**
* A key mapping to a particular ScheduleID that will execute at a given order number
* within a given consensus second.
*
*
* Protobuf type {@code proto.ScheduledOrder}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.ScheduledOrder)
com.hederahashgraph.api.proto.java.ScheduledOrderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ScheduleOuterClass.internal_static_proto_ScheduledOrder_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ScheduleOuterClass.internal_static_proto_ScheduledOrder_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ScheduledOrder.class, com.hederahashgraph.api.proto.java.ScheduledOrder.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.ScheduledOrder.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
expirySecond_ = 0L;
orderNumber_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ScheduleOuterClass.internal_static_proto_ScheduledOrder_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ScheduledOrder getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.ScheduledOrder.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ScheduledOrder build() {
com.hederahashgraph.api.proto.java.ScheduledOrder result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ScheduledOrder buildPartial() {
com.hederahashgraph.api.proto.java.ScheduledOrder result = new com.hederahashgraph.api.proto.java.ScheduledOrder(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hederahashgraph.api.proto.java.ScheduledOrder result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.expirySecond_ = expirySecond_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.orderNumber_ = orderNumber_;
}
}
@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.ScheduledOrder) {
return mergeFrom((com.hederahashgraph.api.proto.java.ScheduledOrder)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.ScheduledOrder other) {
if (other == com.hederahashgraph.api.proto.java.ScheduledOrder.getDefaultInstance()) return this;
if (other.getExpirySecond() != 0L) {
setExpirySecond(other.getExpirySecond());
}
if (other.getOrderNumber() != 0) {
setOrderNumber(other.getOrderNumber());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
expirySecond_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
orderNumber_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long expirySecond_ ;
/**
*
**
* The consensus second in which the transaction is expired.
*
*
* uint64 expiry_second = 1;
* @return The expirySecond.
*/
@java.lang.Override
public long getExpirySecond() {
return expirySecond_;
}
/**
*
**
* The consensus second in which the transaction is expired.
*
*
* uint64 expiry_second = 1;
* @param value The expirySecond to set.
* @return This builder for chaining.
*/
public Builder setExpirySecond(long value) {
expirySecond_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The consensus second in which the transaction is expired.
*
*
* uint64 expiry_second = 1;
* @return This builder for chaining.
*/
public Builder clearExpirySecond() {
bitField0_ = (bitField0_ & ~0x00000001);
expirySecond_ = 0L;
onChanged();
return this;
}
private int orderNumber_ ;
/**
*
*
* The ordered position within the consensus second that the transaction will be executed.
*
*
* uint32 order_number = 2;
* @return The orderNumber.
*/
@java.lang.Override
public int getOrderNumber() {
return orderNumber_;
}
/**
*
*
* The ordered position within the consensus second that the transaction will be executed.
*
*
* uint32 order_number = 2;
* @param value The orderNumber to set.
* @return This builder for chaining.
*/
public Builder setOrderNumber(int value) {
orderNumber_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
* The ordered position within the consensus second that the transaction will be executed.
*
*
* uint32 order_number = 2;
* @return This builder for chaining.
*/
public Builder clearOrderNumber() {
bitField0_ = (bitField0_ & ~0x00000002);
orderNumber_ = 0;
onChanged();
return this;
}
@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.ScheduledOrder)
}
// @@protoc_insertion_point(class_scope:proto.ScheduledOrder)
private static final com.hederahashgraph.api.proto.java.ScheduledOrder DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ScheduledOrder();
}
public static com.hederahashgraph.api.proto.java.ScheduledOrder getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScheduledOrder parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ScheduledOrder getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy