com.hedera.hapi.block.stream.output.protoc.QueuePushChange Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stream/output/state_changes.proto
package com.hedera.hapi.block.stream.output.protoc;
/**
*
**
* Addition of an item to a `Queue` state.<br/>
* The new item SHALL be added after the current "last" element in the
* queue.<br/>
* The new item MUST be the same type of value as all other items in the queue.
*
*
* Protobuf type {@code com.hedera.hapi.block.stream.output.QueuePushChange}
*/
public final class QueuePushChange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.hedera.hapi.block.stream.output.QueuePushChange)
QueuePushChangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueuePushChange.newBuilder() to construct.
private QueuePushChange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueuePushChange() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueuePushChange();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueuePushChange(
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.google.protobuf.BytesValue.Builder subBuilder = null;
if (valueCase_ == 1) {
subBuilder = ((com.google.protobuf.BytesValue) value_).toBuilder();
}
value_ =
input.readMessage(com.google.protobuf.BytesValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.BytesValue) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 1;
break;
}
case 18: {
com.google.protobuf.StringValue.Builder subBuilder = null;
if (valueCase_ == 2) {
subBuilder = ((com.google.protobuf.StringValue) value_).toBuilder();
}
value_ =
input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.StringValue) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 2;
break;
}
case 26: {
com.hederahashgraph.api.proto.java.TransactionReceiptEntries.Builder subBuilder = null;
if (valueCase_ == 3) {
subBuilder = ((com.hederahashgraph.api.proto.java.TransactionReceiptEntries) value_).toBuilder();
}
value_ =
input.readMessage(com.hederahashgraph.api.proto.java.TransactionReceiptEntries.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.TransactionReceiptEntries) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 3;
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.StateChangesOuterClass.internal_static_com_hedera_hapi_block_stream_output_QueuePushChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.stream.output.protoc.StateChangesOuterClass.internal_static_com_hedera_hapi_block_stream_output_QueuePushChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.stream.output.protoc.QueuePushChange.class, com.hedera.hapi.block.stream.output.protoc.QueuePushChange.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PROTO_BYTES_ELEMENT(1),
PROTO_STRING_ELEMENT(2),
TRANSACTION_RECEIPT_ENTRIES_ELEMENT(3),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 1: return PROTO_BYTES_ELEMENT;
case 2: return PROTO_STRING_ELEMENT;
case 3: return TRANSACTION_RECEIPT_ENTRIES_ELEMENT;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int PROTO_BYTES_ELEMENT_FIELD_NUMBER = 1;
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
* @return Whether the protoBytesElement field is set.
*/
@java.lang.Override
public boolean hasProtoBytesElement() {
return valueCase_ == 1;
}
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
* @return The protoBytesElement.
*/
@java.lang.Override
public com.google.protobuf.BytesValue getProtoBytesElement() {
if (valueCase_ == 1) {
return (com.google.protobuf.BytesValue) value_;
}
return com.google.protobuf.BytesValue.getDefaultInstance();
}
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
*/
@java.lang.Override
public com.google.protobuf.BytesValueOrBuilder getProtoBytesElementOrBuilder() {
if (valueCase_ == 1) {
return (com.google.protobuf.BytesValue) value_;
}
return com.google.protobuf.BytesValue.getDefaultInstance();
}
public static final int PROTO_STRING_ELEMENT_FIELD_NUMBER = 2;
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
* @return Whether the protoStringElement field is set.
*/
@java.lang.Override
public boolean hasProtoStringElement() {
return valueCase_ == 2;
}
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
* @return The protoStringElement.
*/
@java.lang.Override
public com.google.protobuf.StringValue getProtoStringElement() {
if (valueCase_ == 2) {
return (com.google.protobuf.StringValue) value_;
}
return com.google.protobuf.StringValue.getDefaultInstance();
}
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getProtoStringElementOrBuilder() {
if (valueCase_ == 2) {
return (com.google.protobuf.StringValue) value_;
}
return com.google.protobuf.StringValue.getDefaultInstance();
}
public static final int TRANSACTION_RECEIPT_ENTRIES_ELEMENT_FIELD_NUMBER = 3;
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
* @return Whether the transactionReceiptEntriesElement field is set.
*/
@java.lang.Override
public boolean hasTransactionReceiptEntriesElement() {
return valueCase_ == 3;
}
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
* @return The transactionReceiptEntriesElement.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceiptEntries getTransactionReceiptEntriesElement() {
if (valueCase_ == 3) {
return (com.hederahashgraph.api.proto.java.TransactionReceiptEntries) value_;
}
return com.hederahashgraph.api.proto.java.TransactionReceiptEntries.getDefaultInstance();
}
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceiptEntriesOrBuilder getTransactionReceiptEntriesElementOrBuilder() {
if (valueCase_ == 3) {
return (com.hederahashgraph.api.proto.java.TransactionReceiptEntries) value_;
}
return com.hederahashgraph.api.proto.java.TransactionReceiptEntries.getDefaultInstance();
}
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 (valueCase_ == 1) {
output.writeMessage(1, (com.google.protobuf.BytesValue) value_);
}
if (valueCase_ == 2) {
output.writeMessage(2, (com.google.protobuf.StringValue) value_);
}
if (valueCase_ == 3) {
output.writeMessage(3, (com.hederahashgraph.api.proto.java.TransactionReceiptEntries) value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.google.protobuf.BytesValue) value_);
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.protobuf.StringValue) value_);
}
if (valueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.hederahashgraph.api.proto.java.TransactionReceiptEntries) value_);
}
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.QueuePushChange)) {
return super.equals(obj);
}
com.hedera.hapi.block.stream.output.protoc.QueuePushChange other = (com.hedera.hapi.block.stream.output.protoc.QueuePushChange) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 1:
if (!getProtoBytesElement()
.equals(other.getProtoBytesElement())) return false;
break;
case 2:
if (!getProtoStringElement()
.equals(other.getProtoStringElement())) return false;
break;
case 3:
if (!getTransactionReceiptEntriesElement()
.equals(other.getTransactionReceiptEntriesElement())) return false;
break;
case 0:
default:
}
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();
switch (valueCase_) {
case 1:
hash = (37 * hash) + PROTO_BYTES_ELEMENT_FIELD_NUMBER;
hash = (53 * hash) + getProtoBytesElement().hashCode();
break;
case 2:
hash = (37 * hash) + PROTO_STRING_ELEMENT_FIELD_NUMBER;
hash = (53 * hash) + getProtoStringElement().hashCode();
break;
case 3:
hash = (37 * hash) + TRANSACTION_RECEIPT_ENTRIES_ELEMENT_FIELD_NUMBER;
hash = (53 * hash) + getTransactionReceiptEntriesElement().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hapi.block.stream.output.protoc.QueuePushChange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.QueuePushChange 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.QueuePushChange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.QueuePushChange 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.QueuePushChange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hapi.block.stream.output.protoc.QueuePushChange 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.QueuePushChange 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.QueuePushChange 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.QueuePushChange 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.QueuePushChange 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.QueuePushChange 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.QueuePushChange 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.QueuePushChange 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;
}
/**
*
**
* Addition of an item to a `Queue` state.<br/>
* The new item SHALL be added after the current "last" element in the
* queue.<br/>
* The new item MUST be the same type of value as all other items in the queue.
*
*
* Protobuf type {@code com.hedera.hapi.block.stream.output.QueuePushChange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.hedera.hapi.block.stream.output.QueuePushChange)
com.hedera.hapi.block.stream.output.protoc.QueuePushChangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hapi.block.stream.output.protoc.StateChangesOuterClass.internal_static_com_hedera_hapi_block_stream_output_QueuePushChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hapi.block.stream.output.protoc.StateChangesOuterClass.internal_static_com_hedera_hapi_block_stream_output_QueuePushChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hapi.block.stream.output.protoc.QueuePushChange.class, com.hedera.hapi.block.stream.output.protoc.QueuePushChange.Builder.class);
}
// Construct using com.hedera.hapi.block.stream.output.protoc.QueuePushChange.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();
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hapi.block.stream.output.protoc.StateChangesOuterClass.internal_static_com_hedera_hapi_block_stream_output_QueuePushChange_descriptor;
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.QueuePushChange getDefaultInstanceForType() {
return com.hedera.hapi.block.stream.output.protoc.QueuePushChange.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.QueuePushChange build() {
com.hedera.hapi.block.stream.output.protoc.QueuePushChange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hapi.block.stream.output.protoc.QueuePushChange buildPartial() {
com.hedera.hapi.block.stream.output.protoc.QueuePushChange result = new com.hedera.hapi.block.stream.output.protoc.QueuePushChange(this);
if (valueCase_ == 1) {
if (protoBytesElementBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = protoBytesElementBuilder_.build();
}
}
if (valueCase_ == 2) {
if (protoStringElementBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = protoStringElementBuilder_.build();
}
}
if (valueCase_ == 3) {
if (transactionReceiptEntriesElementBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = transactionReceiptEntriesElementBuilder_.build();
}
}
result.valueCase_ = valueCase_;
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.QueuePushChange) {
return mergeFrom((com.hedera.hapi.block.stream.output.protoc.QueuePushChange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hapi.block.stream.output.protoc.QueuePushChange other) {
if (other == com.hedera.hapi.block.stream.output.protoc.QueuePushChange.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case PROTO_BYTES_ELEMENT: {
mergeProtoBytesElement(other.getProtoBytesElement());
break;
}
case PROTO_STRING_ELEMENT: {
mergeProtoStringElement(other.getProtoStringElement());
break;
}
case TRANSACTION_RECEIPT_ENTRIES_ELEMENT: {
mergeTransactionReceiptEntriesElement(other.getTransactionReceiptEntriesElement());
break;
}
case VALUE_NOT_SET: {
break;
}
}
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.QueuePushChange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.hapi.block.stream.output.protoc.QueuePushChange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> protoBytesElementBuilder_;
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
* @return Whether the protoBytesElement field is set.
*/
@java.lang.Override
public boolean hasProtoBytesElement() {
return valueCase_ == 1;
}
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
* @return The protoBytesElement.
*/
@java.lang.Override
public com.google.protobuf.BytesValue getProtoBytesElement() {
if (protoBytesElementBuilder_ == null) {
if (valueCase_ == 1) {
return (com.google.protobuf.BytesValue) value_;
}
return com.google.protobuf.BytesValue.getDefaultInstance();
} else {
if (valueCase_ == 1) {
return protoBytesElementBuilder_.getMessage();
}
return com.google.protobuf.BytesValue.getDefaultInstance();
}
}
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
*/
public Builder setProtoBytesElement(com.google.protobuf.BytesValue value) {
if (protoBytesElementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
protoBytesElementBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
*/
public Builder setProtoBytesElement(
com.google.protobuf.BytesValue.Builder builderForValue) {
if (protoBytesElementBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
protoBytesElementBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 1;
return this;
}
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
*/
public Builder mergeProtoBytesElement(com.google.protobuf.BytesValue value) {
if (protoBytesElementBuilder_ == null) {
if (valueCase_ == 1 &&
value_ != com.google.protobuf.BytesValue.getDefaultInstance()) {
value_ = com.google.protobuf.BytesValue.newBuilder((com.google.protobuf.BytesValue) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 1) {
protoBytesElementBuilder_.mergeFrom(value);
}
protoBytesElementBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
*/
public Builder clearProtoBytesElement() {
if (protoBytesElementBuilder_ == null) {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
}
protoBytesElementBuilder_.clear();
}
return this;
}
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
*/
public com.google.protobuf.BytesValue.Builder getProtoBytesElementBuilder() {
return getProtoBytesElementFieldBuilder().getBuilder();
}
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
*/
@java.lang.Override
public com.google.protobuf.BytesValueOrBuilder getProtoBytesElementOrBuilder() {
if ((valueCase_ == 1) && (protoBytesElementBuilder_ != null)) {
return protoBytesElementBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 1) {
return (com.google.protobuf.BytesValue) value_;
}
return com.google.protobuf.BytesValue.getDefaultInstance();
}
}
/**
*
**
* A byte array added to the queue state.
*
*
* .google.protobuf.BytesValue proto_bytes_element = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>
getProtoBytesElementFieldBuilder() {
if (protoBytesElementBuilder_ == null) {
if (!(valueCase_ == 1)) {
value_ = com.google.protobuf.BytesValue.getDefaultInstance();
}
protoBytesElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>(
(com.google.protobuf.BytesValue) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 1;
onChanged();;
return protoBytesElementBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> protoStringElementBuilder_;
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
* @return Whether the protoStringElement field is set.
*/
@java.lang.Override
public boolean hasProtoStringElement() {
return valueCase_ == 2;
}
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
* @return The protoStringElement.
*/
@java.lang.Override
public com.google.protobuf.StringValue getProtoStringElement() {
if (protoStringElementBuilder_ == null) {
if (valueCase_ == 2) {
return (com.google.protobuf.StringValue) value_;
}
return com.google.protobuf.StringValue.getDefaultInstance();
} else {
if (valueCase_ == 2) {
return protoStringElementBuilder_.getMessage();
}
return com.google.protobuf.StringValue.getDefaultInstance();
}
}
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
*/
public Builder setProtoStringElement(com.google.protobuf.StringValue value) {
if (protoStringElementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
protoStringElementBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
*/
public Builder setProtoStringElement(
com.google.protobuf.StringValue.Builder builderForValue) {
if (protoStringElementBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
protoStringElementBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 2;
return this;
}
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
*/
public Builder mergeProtoStringElement(com.google.protobuf.StringValue value) {
if (protoStringElementBuilder_ == null) {
if (valueCase_ == 2 &&
value_ != com.google.protobuf.StringValue.getDefaultInstance()) {
value_ = com.google.protobuf.StringValue.newBuilder((com.google.protobuf.StringValue) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 2) {
protoStringElementBuilder_.mergeFrom(value);
}
protoStringElementBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
*/
public Builder clearProtoStringElement() {
if (protoStringElementBuilder_ == null) {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
}
protoStringElementBuilder_.clear();
}
return this;
}
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
*/
public com.google.protobuf.StringValue.Builder getProtoStringElementBuilder() {
return getProtoStringElementFieldBuilder().getBuilder();
}
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getProtoStringElementOrBuilder() {
if ((valueCase_ == 2) && (protoStringElementBuilder_ != null)) {
return protoStringElementBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 2) {
return (com.google.protobuf.StringValue) value_;
}
return com.google.protobuf.StringValue.getDefaultInstance();
}
}
/**
*
**
* A string added to the queue state.
*
*
* .google.protobuf.StringValue proto_string_element = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getProtoStringElementFieldBuilder() {
if (protoStringElementBuilder_ == null) {
if (!(valueCase_ == 2)) {
value_ = com.google.protobuf.StringValue.getDefaultInstance();
}
protoStringElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
(com.google.protobuf.StringValue) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 2;
onChanged();;
return protoStringElementBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionReceiptEntries, com.hederahashgraph.api.proto.java.TransactionReceiptEntries.Builder, com.hederahashgraph.api.proto.java.TransactionReceiptEntriesOrBuilder> transactionReceiptEntriesElementBuilder_;
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
* @return Whether the transactionReceiptEntriesElement field is set.
*/
@java.lang.Override
public boolean hasTransactionReceiptEntriesElement() {
return valueCase_ == 3;
}
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
* @return The transactionReceiptEntriesElement.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceiptEntries getTransactionReceiptEntriesElement() {
if (transactionReceiptEntriesElementBuilder_ == null) {
if (valueCase_ == 3) {
return (com.hederahashgraph.api.proto.java.TransactionReceiptEntries) value_;
}
return com.hederahashgraph.api.proto.java.TransactionReceiptEntries.getDefaultInstance();
} else {
if (valueCase_ == 3) {
return transactionReceiptEntriesElementBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.TransactionReceiptEntries.getDefaultInstance();
}
}
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
*/
public Builder setTransactionReceiptEntriesElement(com.hederahashgraph.api.proto.java.TransactionReceiptEntries value) {
if (transactionReceiptEntriesElementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
transactionReceiptEntriesElementBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
}
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
*/
public Builder setTransactionReceiptEntriesElement(
com.hederahashgraph.api.proto.java.TransactionReceiptEntries.Builder builderForValue) {
if (transactionReceiptEntriesElementBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
transactionReceiptEntriesElementBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 3;
return this;
}
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
*/
public Builder mergeTransactionReceiptEntriesElement(com.hederahashgraph.api.proto.java.TransactionReceiptEntries value) {
if (transactionReceiptEntriesElementBuilder_ == null) {
if (valueCase_ == 3 &&
value_ != com.hederahashgraph.api.proto.java.TransactionReceiptEntries.getDefaultInstance()) {
value_ = com.hederahashgraph.api.proto.java.TransactionReceiptEntries.newBuilder((com.hederahashgraph.api.proto.java.TransactionReceiptEntries) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 3) {
transactionReceiptEntriesElementBuilder_.mergeFrom(value);
}
transactionReceiptEntriesElementBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
}
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
*/
public Builder clearTransactionReceiptEntriesElement() {
if (transactionReceiptEntriesElementBuilder_ == null) {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
}
transactionReceiptEntriesElementBuilder_.clear();
}
return this;
}
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
*/
public com.hederahashgraph.api.proto.java.TransactionReceiptEntries.Builder getTransactionReceiptEntriesElementBuilder() {
return getTransactionReceiptEntriesElementFieldBuilder().getBuilder();
}
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionReceiptEntriesOrBuilder getTransactionReceiptEntriesElementOrBuilder() {
if ((valueCase_ == 3) && (transactionReceiptEntriesElementBuilder_ != null)) {
return transactionReceiptEntriesElementBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 3) {
return (com.hederahashgraph.api.proto.java.TransactionReceiptEntries) value_;
}
return com.hederahashgraph.api.proto.java.TransactionReceiptEntries.getDefaultInstance();
}
}
/**
*
**
* All transaction receipts for a round added to queue state.
*
*
* .proto.TransactionReceiptEntries transaction_receipt_entries_element = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionReceiptEntries, com.hederahashgraph.api.proto.java.TransactionReceiptEntries.Builder, com.hederahashgraph.api.proto.java.TransactionReceiptEntriesOrBuilder>
getTransactionReceiptEntriesElementFieldBuilder() {
if (transactionReceiptEntriesElementBuilder_ == null) {
if (!(valueCase_ == 3)) {
value_ = com.hederahashgraph.api.proto.java.TransactionReceiptEntries.getDefaultInstance();
}
transactionReceiptEntriesElementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionReceiptEntries, com.hederahashgraph.api.proto.java.TransactionReceiptEntries.Builder, com.hederahashgraph.api.proto.java.TransactionReceiptEntriesOrBuilder>(
(com.hederahashgraph.api.proto.java.TransactionReceiptEntries) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 3;
onChanged();;
return transactionReceiptEntriesElementBuilder_;
}
@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.QueuePushChange)
}
// @@protoc_insertion_point(class_scope:com.hedera.hapi.block.stream.output.QueuePushChange)
private static final com.hedera.hapi.block.stream.output.protoc.QueuePushChange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hapi.block.stream.output.protoc.QueuePushChange();
}
public static com.hedera.hapi.block.stream.output.protoc.QueuePushChange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueuePushChange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueuePushChange(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.QueuePushChange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy