games.mythical.saga.sdk.proto.streams.StatusUpdate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of saga-sdk-proto Show documentation
Show all versions of saga-sdk-proto Show documentation
Saga SDK for Java game servers
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streams/stream.proto
package games.mythical.saga.sdk.proto.streams;
/**
*
* Returned results on sending a Status stream call
*
*
* Protobuf type {@code saga.rpc.streams.StatusUpdate}
*/
public final class StatusUpdate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:saga.rpc.streams.StatusUpdate)
StatusUpdateOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatusUpdate.newBuilder() to construct.
private StatusUpdate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatusUpdate() {
traceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatusUpdate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return games.mythical.saga.sdk.proto.streams.Stream.internal_static_saga_rpc_streams_StatusUpdate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return games.mythical.saga.sdk.proto.streams.Stream.internal_static_saga_rpc_streams_StatusUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
games.mythical.saga.sdk.proto.streams.StatusUpdate.class, games.mythical.saga.sdk.proto.streams.StatusUpdate.Builder.class);
}
private int statusUpdateCase_ = 0;
private java.lang.Object statusUpdate_;
public enum StatusUpdateCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CURRENCY_UPDATE(2),
ITEM_UPDATE(3),
ITEM_TYPE_UPDATE(4),
PLAYER_WALLET_UPDATE(6),
RESERVATION_UPDATE(7),
METADATA_UPDATE(9),
CURRENCY_TYPE_UPDATE(10),
STATUSUPDATE_NOT_SET(0);
private final int value;
private StatusUpdateCase(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 StatusUpdateCase valueOf(int value) {
return forNumber(value);
}
public static StatusUpdateCase forNumber(int value) {
switch (value) {
case 2: return CURRENCY_UPDATE;
case 3: return ITEM_UPDATE;
case 4: return ITEM_TYPE_UPDATE;
case 6: return PLAYER_WALLET_UPDATE;
case 7: return RESERVATION_UPDATE;
case 9: return METADATA_UPDATE;
case 10: return CURRENCY_TYPE_UPDATE;
case 0: return STATUSUPDATE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public StatusUpdateCase
getStatusUpdateCase() {
return StatusUpdateCase.forNumber(
statusUpdateCase_);
}
public static final int TRACE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object traceId_;
/**
* string trace_id = 1;
* @return The traceId.
*/
@java.lang.Override
public java.lang.String getTraceId() {
java.lang.Object ref = traceId_;
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();
traceId_ = s;
return s;
}
}
/**
* string trace_id = 1;
* @return The bytes for traceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTraceIdBytes() {
java.lang.Object ref = traceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CURRENCY_UPDATE_FIELD_NUMBER = 2;
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
* @return Whether the currencyUpdate field is set.
*/
@java.lang.Override
public boolean hasCurrencyUpdate() {
return statusUpdateCase_ == 2;
}
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
* @return The currencyUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate getCurrencyUpdate() {
if (statusUpdateCase_ == 2) {
return (games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.getDefaultInstance();
}
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdateOrBuilder getCurrencyUpdateOrBuilder() {
if (statusUpdateCase_ == 2) {
return (games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.getDefaultInstance();
}
public static final int ITEM_UPDATE_FIELD_NUMBER = 3;
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
* @return Whether the itemUpdate field is set.
*/
@java.lang.Override
public boolean hasItemUpdate() {
return statusUpdateCase_ == 3;
}
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
* @return The itemUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.item.ItemUpdate getItemUpdate() {
if (statusUpdateCase_ == 3) {
return (games.mythical.saga.sdk.proto.streams.item.ItemUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.item.ItemUpdate.getDefaultInstance();
}
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.item.ItemUpdateOrBuilder getItemUpdateOrBuilder() {
if (statusUpdateCase_ == 3) {
return (games.mythical.saga.sdk.proto.streams.item.ItemUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.item.ItemUpdate.getDefaultInstance();
}
public static final int ITEM_TYPE_UPDATE_FIELD_NUMBER = 4;
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
* @return Whether the itemTypeUpdate field is set.
*/
@java.lang.Override
public boolean hasItemTypeUpdate() {
return statusUpdateCase_ == 4;
}
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
* @return The itemTypeUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate getItemTypeUpdate() {
if (statusUpdateCase_ == 4) {
return (games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.getDefaultInstance();
}
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdateOrBuilder getItemTypeUpdateOrBuilder() {
if (statusUpdateCase_ == 4) {
return (games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.getDefaultInstance();
}
public static final int PLAYER_WALLET_UPDATE_FIELD_NUMBER = 6;
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
* @return Whether the playerWalletUpdate field is set.
*/
@java.lang.Override
public boolean hasPlayerWalletUpdate() {
return statusUpdateCase_ == 6;
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
* @return The playerWalletUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate getPlayerWalletUpdate() {
if (statusUpdateCase_ == 6) {
return (games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.getDefaultInstance();
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateOrBuilder getPlayerWalletUpdateOrBuilder() {
if (statusUpdateCase_ == 6) {
return (games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.getDefaultInstance();
}
public static final int RESERVATION_UPDATE_FIELD_NUMBER = 7;
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
* @return Whether the reservationUpdate field is set.
*/
@java.lang.Override
public boolean hasReservationUpdate() {
return statusUpdateCase_ == 7;
}
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
* @return The reservationUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate getReservationUpdate() {
if (statusUpdateCase_ == 7) {
return (games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.getDefaultInstance();
}
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdateOrBuilder getReservationUpdateOrBuilder() {
if (statusUpdateCase_ == 7) {
return (games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.getDefaultInstance();
}
public static final int METADATA_UPDATE_FIELD_NUMBER = 9;
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
* @return Whether the metadataUpdate field is set.
*/
@java.lang.Override
public boolean hasMetadataUpdate() {
return statusUpdateCase_ == 9;
}
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
* @return The metadataUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate getMetadataUpdate() {
if (statusUpdateCase_ == 9) {
return (games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.getDefaultInstance();
}
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateOrBuilder getMetadataUpdateOrBuilder() {
if (statusUpdateCase_ == 9) {
return (games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.getDefaultInstance();
}
public static final int CURRENCY_TYPE_UPDATE_FIELD_NUMBER = 10;
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
* @return Whether the currencyTypeUpdate field is set.
*/
@java.lang.Override
public boolean hasCurrencyTypeUpdate() {
return statusUpdateCase_ == 10;
}
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
* @return The currencyTypeUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate getCurrencyTypeUpdate() {
if (statusUpdateCase_ == 10) {
return (games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.getDefaultInstance();
}
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdateOrBuilder getCurrencyTypeUpdateOrBuilder() {
if (statusUpdateCase_ == 10) {
return (games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.getDefaultInstance();
}
public static final int CREATED_AT_FIELD_NUMBER = 8;
private com.google.protobuf.Timestamp createdAt_;
/**
* .google.protobuf.Timestamp created_at = 8;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
* .google.protobuf.Timestamp created_at = 8;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
* .google.protobuf.Timestamp created_at = 8;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, traceId_);
}
if (statusUpdateCase_ == 2) {
output.writeMessage(2, (games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate) statusUpdate_);
}
if (statusUpdateCase_ == 3) {
output.writeMessage(3, (games.mythical.saga.sdk.proto.streams.item.ItemUpdate) statusUpdate_);
}
if (statusUpdateCase_ == 4) {
output.writeMessage(4, (games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate) statusUpdate_);
}
if (statusUpdateCase_ == 6) {
output.writeMessage(6, (games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate) statusUpdate_);
}
if (statusUpdateCase_ == 7) {
output.writeMessage(7, (games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate) statusUpdate_);
}
if (createdAt_ != null) {
output.writeMessage(8, getCreatedAt());
}
if (statusUpdateCase_ == 9) {
output.writeMessage(9, (games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate) statusUpdate_);
}
if (statusUpdateCase_ == 10) {
output.writeMessage(10, (games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate) statusUpdate_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, traceId_);
}
if (statusUpdateCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate) statusUpdate_);
}
if (statusUpdateCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (games.mythical.saga.sdk.proto.streams.item.ItemUpdate) statusUpdate_);
}
if (statusUpdateCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate) statusUpdate_);
}
if (statusUpdateCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate) statusUpdate_);
}
if (statusUpdateCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate) statusUpdate_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getCreatedAt());
}
if (statusUpdateCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate) statusUpdate_);
}
if (statusUpdateCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate) statusUpdate_);
}
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 games.mythical.saga.sdk.proto.streams.StatusUpdate)) {
return super.equals(obj);
}
games.mythical.saga.sdk.proto.streams.StatusUpdate other = (games.mythical.saga.sdk.proto.streams.StatusUpdate) obj;
if (!getTraceId()
.equals(other.getTraceId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (!getStatusUpdateCase().equals(other.getStatusUpdateCase())) return false;
switch (statusUpdateCase_) {
case 2:
if (!getCurrencyUpdate()
.equals(other.getCurrencyUpdate())) return false;
break;
case 3:
if (!getItemUpdate()
.equals(other.getItemUpdate())) return false;
break;
case 4:
if (!getItemTypeUpdate()
.equals(other.getItemTypeUpdate())) return false;
break;
case 6:
if (!getPlayerWalletUpdate()
.equals(other.getPlayerWalletUpdate())) return false;
break;
case 7:
if (!getReservationUpdate()
.equals(other.getReservationUpdate())) return false;
break;
case 9:
if (!getMetadataUpdate()
.equals(other.getMetadataUpdate())) return false;
break;
case 10:
if (!getCurrencyTypeUpdate()
.equals(other.getCurrencyTypeUpdate())) return false;
break;
case 0:
default:
}
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) + TRACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTraceId().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
switch (statusUpdateCase_) {
case 2:
hash = (37 * hash) + CURRENCY_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getCurrencyUpdate().hashCode();
break;
case 3:
hash = (37 * hash) + ITEM_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getItemUpdate().hashCode();
break;
case 4:
hash = (37 * hash) + ITEM_TYPE_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getItemTypeUpdate().hashCode();
break;
case 6:
hash = (37 * hash) + PLAYER_WALLET_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getPlayerWalletUpdate().hashCode();
break;
case 7:
hash = (37 * hash) + RESERVATION_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getReservationUpdate().hashCode();
break;
case 9:
hash = (37 * hash) + METADATA_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getMetadataUpdate().hashCode();
break;
case 10:
hash = (37 * hash) + CURRENCY_TYPE_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getCurrencyTypeUpdate().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate 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 games.mythical.saga.sdk.proto.streams.StatusUpdate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate 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 games.mythical.saga.sdk.proto.streams.StatusUpdate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate 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(games.mythical.saga.sdk.proto.streams.StatusUpdate 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;
}
/**
*
* Returned results on sending a Status stream call
*
*
* Protobuf type {@code saga.rpc.streams.StatusUpdate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:saga.rpc.streams.StatusUpdate)
games.mythical.saga.sdk.proto.streams.StatusUpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return games.mythical.saga.sdk.proto.streams.Stream.internal_static_saga_rpc_streams_StatusUpdate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return games.mythical.saga.sdk.proto.streams.Stream.internal_static_saga_rpc_streams_StatusUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
games.mythical.saga.sdk.proto.streams.StatusUpdate.class, games.mythical.saga.sdk.proto.streams.StatusUpdate.Builder.class);
}
// Construct using games.mythical.saga.sdk.proto.streams.StatusUpdate.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
traceId_ = "";
if (currencyUpdateBuilder_ != null) {
currencyUpdateBuilder_.clear();
}
if (itemUpdateBuilder_ != null) {
itemUpdateBuilder_.clear();
}
if (itemTypeUpdateBuilder_ != null) {
itemTypeUpdateBuilder_.clear();
}
if (playerWalletUpdateBuilder_ != null) {
playerWalletUpdateBuilder_.clear();
}
if (reservationUpdateBuilder_ != null) {
reservationUpdateBuilder_.clear();
}
if (metadataUpdateBuilder_ != null) {
metadataUpdateBuilder_.clear();
}
if (currencyTypeUpdateBuilder_ != null) {
currencyTypeUpdateBuilder_.clear();
}
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
statusUpdateCase_ = 0;
statusUpdate_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return games.mythical.saga.sdk.proto.streams.Stream.internal_static_saga_rpc_streams_StatusUpdate_descriptor;
}
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.StatusUpdate getDefaultInstanceForType() {
return games.mythical.saga.sdk.proto.streams.StatusUpdate.getDefaultInstance();
}
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.StatusUpdate build() {
games.mythical.saga.sdk.proto.streams.StatusUpdate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.StatusUpdate buildPartial() {
games.mythical.saga.sdk.proto.streams.StatusUpdate result = new games.mythical.saga.sdk.proto.streams.StatusUpdate(this);
result.traceId_ = traceId_;
if (statusUpdateCase_ == 2) {
if (currencyUpdateBuilder_ == null) {
result.statusUpdate_ = statusUpdate_;
} else {
result.statusUpdate_ = currencyUpdateBuilder_.build();
}
}
if (statusUpdateCase_ == 3) {
if (itemUpdateBuilder_ == null) {
result.statusUpdate_ = statusUpdate_;
} else {
result.statusUpdate_ = itemUpdateBuilder_.build();
}
}
if (statusUpdateCase_ == 4) {
if (itemTypeUpdateBuilder_ == null) {
result.statusUpdate_ = statusUpdate_;
} else {
result.statusUpdate_ = itemTypeUpdateBuilder_.build();
}
}
if (statusUpdateCase_ == 6) {
if (playerWalletUpdateBuilder_ == null) {
result.statusUpdate_ = statusUpdate_;
} else {
result.statusUpdate_ = playerWalletUpdateBuilder_.build();
}
}
if (statusUpdateCase_ == 7) {
if (reservationUpdateBuilder_ == null) {
result.statusUpdate_ = statusUpdate_;
} else {
result.statusUpdate_ = reservationUpdateBuilder_.build();
}
}
if (statusUpdateCase_ == 9) {
if (metadataUpdateBuilder_ == null) {
result.statusUpdate_ = statusUpdate_;
} else {
result.statusUpdate_ = metadataUpdateBuilder_.build();
}
}
if (statusUpdateCase_ == 10) {
if (currencyTypeUpdateBuilder_ == null) {
result.statusUpdate_ = statusUpdate_;
} else {
result.statusUpdate_ = currencyTypeUpdateBuilder_.build();
}
}
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
result.statusUpdateCase_ = statusUpdateCase_;
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 games.mythical.saga.sdk.proto.streams.StatusUpdate) {
return mergeFrom((games.mythical.saga.sdk.proto.streams.StatusUpdate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(games.mythical.saga.sdk.proto.streams.StatusUpdate other) {
if (other == games.mythical.saga.sdk.proto.streams.StatusUpdate.getDefaultInstance()) return this;
if (!other.getTraceId().isEmpty()) {
traceId_ = other.traceId_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
switch (other.getStatusUpdateCase()) {
case CURRENCY_UPDATE: {
mergeCurrencyUpdate(other.getCurrencyUpdate());
break;
}
case ITEM_UPDATE: {
mergeItemUpdate(other.getItemUpdate());
break;
}
case ITEM_TYPE_UPDATE: {
mergeItemTypeUpdate(other.getItemTypeUpdate());
break;
}
case PLAYER_WALLET_UPDATE: {
mergePlayerWalletUpdate(other.getPlayerWalletUpdate());
break;
}
case RESERVATION_UPDATE: {
mergeReservationUpdate(other.getReservationUpdate());
break;
}
case METADATA_UPDATE: {
mergeMetadataUpdate(other.getMetadataUpdate());
break;
}
case CURRENCY_TYPE_UPDATE: {
mergeCurrencyTypeUpdate(other.getCurrencyTypeUpdate());
break;
}
case STATUSUPDATE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
traceId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
input.readMessage(
getCurrencyUpdateFieldBuilder().getBuilder(),
extensionRegistry);
statusUpdateCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getItemUpdateFieldBuilder().getBuilder(),
extensionRegistry);
statusUpdateCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getItemTypeUpdateFieldBuilder().getBuilder(),
extensionRegistry);
statusUpdateCase_ = 4;
break;
} // case 34
case 50: {
input.readMessage(
getPlayerWalletUpdateFieldBuilder().getBuilder(),
extensionRegistry);
statusUpdateCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getReservationUpdateFieldBuilder().getBuilder(),
extensionRegistry);
statusUpdateCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getCreatedAtFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 66
case 74: {
input.readMessage(
getMetadataUpdateFieldBuilder().getBuilder(),
extensionRegistry);
statusUpdateCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getCurrencyTypeUpdateFieldBuilder().getBuilder(),
extensionRegistry);
statusUpdateCase_ = 10;
break;
} // case 82
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 statusUpdateCase_ = 0;
private java.lang.Object statusUpdate_;
public StatusUpdateCase
getStatusUpdateCase() {
return StatusUpdateCase.forNumber(
statusUpdateCase_);
}
public Builder clearStatusUpdate() {
statusUpdateCase_ = 0;
statusUpdate_ = null;
onChanged();
return this;
}
private java.lang.Object traceId_ = "";
/**
* string trace_id = 1;
* @return The traceId.
*/
public java.lang.String getTraceId() {
java.lang.Object ref = traceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
traceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string trace_id = 1;
* @return The bytes for traceId.
*/
public com.google.protobuf.ByteString
getTraceIdBytes() {
java.lang.Object ref = traceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string trace_id = 1;
* @param value The traceId to set.
* @return This builder for chaining.
*/
public Builder setTraceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
traceId_ = value;
onChanged();
return this;
}
/**
* string trace_id = 1;
* @return This builder for chaining.
*/
public Builder clearTraceId() {
traceId_ = getDefaultInstance().getTraceId();
onChanged();
return this;
}
/**
* string trace_id = 1;
* @param value The bytes for traceId to set.
* @return This builder for chaining.
*/
public Builder setTraceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
traceId_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate, games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.Builder, games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdateOrBuilder> currencyUpdateBuilder_;
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
* @return Whether the currencyUpdate field is set.
*/
@java.lang.Override
public boolean hasCurrencyUpdate() {
return statusUpdateCase_ == 2;
}
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
* @return The currencyUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate getCurrencyUpdate() {
if (currencyUpdateBuilder_ == null) {
if (statusUpdateCase_ == 2) {
return (games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.getDefaultInstance();
} else {
if (statusUpdateCase_ == 2) {
return currencyUpdateBuilder_.getMessage();
}
return games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
*/
public Builder setCurrencyUpdate(games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate value) {
if (currencyUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statusUpdate_ = value;
onChanged();
} else {
currencyUpdateBuilder_.setMessage(value);
}
statusUpdateCase_ = 2;
return this;
}
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
*/
public Builder setCurrencyUpdate(
games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.Builder builderForValue) {
if (currencyUpdateBuilder_ == null) {
statusUpdate_ = builderForValue.build();
onChanged();
} else {
currencyUpdateBuilder_.setMessage(builderForValue.build());
}
statusUpdateCase_ = 2;
return this;
}
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
*/
public Builder mergeCurrencyUpdate(games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate value) {
if (currencyUpdateBuilder_ == null) {
if (statusUpdateCase_ == 2 &&
statusUpdate_ != games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.getDefaultInstance()) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.newBuilder((games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate) statusUpdate_)
.mergeFrom(value).buildPartial();
} else {
statusUpdate_ = value;
}
onChanged();
} else {
if (statusUpdateCase_ == 2) {
currencyUpdateBuilder_.mergeFrom(value);
} else {
currencyUpdateBuilder_.setMessage(value);
}
}
statusUpdateCase_ = 2;
return this;
}
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
*/
public Builder clearCurrencyUpdate() {
if (currencyUpdateBuilder_ == null) {
if (statusUpdateCase_ == 2) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
onChanged();
}
} else {
if (statusUpdateCase_ == 2) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
}
currencyUpdateBuilder_.clear();
}
return this;
}
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
*/
public games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.Builder getCurrencyUpdateBuilder() {
return getCurrencyUpdateFieldBuilder().getBuilder();
}
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdateOrBuilder getCurrencyUpdateOrBuilder() {
if ((statusUpdateCase_ == 2) && (currencyUpdateBuilder_ != null)) {
return currencyUpdateBuilder_.getMessageOrBuilder();
} else {
if (statusUpdateCase_ == 2) {
return (games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate, games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.Builder, games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdateOrBuilder>
getCurrencyUpdateFieldBuilder() {
if (currencyUpdateBuilder_ == null) {
if (!(statusUpdateCase_ == 2)) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.getDefaultInstance();
}
currencyUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate, games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate.Builder, games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdateOrBuilder>(
(games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate) statusUpdate_,
getParentForChildren(),
isClean());
statusUpdate_ = null;
}
statusUpdateCase_ = 2;
onChanged();;
return currencyUpdateBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.item.ItemUpdate, games.mythical.saga.sdk.proto.streams.item.ItemUpdate.Builder, games.mythical.saga.sdk.proto.streams.item.ItemUpdateOrBuilder> itemUpdateBuilder_;
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
* @return Whether the itemUpdate field is set.
*/
@java.lang.Override
public boolean hasItemUpdate() {
return statusUpdateCase_ == 3;
}
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
* @return The itemUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.item.ItemUpdate getItemUpdate() {
if (itemUpdateBuilder_ == null) {
if (statusUpdateCase_ == 3) {
return (games.mythical.saga.sdk.proto.streams.item.ItemUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.item.ItemUpdate.getDefaultInstance();
} else {
if (statusUpdateCase_ == 3) {
return itemUpdateBuilder_.getMessage();
}
return games.mythical.saga.sdk.proto.streams.item.ItemUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
*/
public Builder setItemUpdate(games.mythical.saga.sdk.proto.streams.item.ItemUpdate value) {
if (itemUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statusUpdate_ = value;
onChanged();
} else {
itemUpdateBuilder_.setMessage(value);
}
statusUpdateCase_ = 3;
return this;
}
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
*/
public Builder setItemUpdate(
games.mythical.saga.sdk.proto.streams.item.ItemUpdate.Builder builderForValue) {
if (itemUpdateBuilder_ == null) {
statusUpdate_ = builderForValue.build();
onChanged();
} else {
itemUpdateBuilder_.setMessage(builderForValue.build());
}
statusUpdateCase_ = 3;
return this;
}
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
*/
public Builder mergeItemUpdate(games.mythical.saga.sdk.proto.streams.item.ItemUpdate value) {
if (itemUpdateBuilder_ == null) {
if (statusUpdateCase_ == 3 &&
statusUpdate_ != games.mythical.saga.sdk.proto.streams.item.ItemUpdate.getDefaultInstance()) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.item.ItemUpdate.newBuilder((games.mythical.saga.sdk.proto.streams.item.ItemUpdate) statusUpdate_)
.mergeFrom(value).buildPartial();
} else {
statusUpdate_ = value;
}
onChanged();
} else {
if (statusUpdateCase_ == 3) {
itemUpdateBuilder_.mergeFrom(value);
} else {
itemUpdateBuilder_.setMessage(value);
}
}
statusUpdateCase_ = 3;
return this;
}
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
*/
public Builder clearItemUpdate() {
if (itemUpdateBuilder_ == null) {
if (statusUpdateCase_ == 3) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
onChanged();
}
} else {
if (statusUpdateCase_ == 3) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
}
itemUpdateBuilder_.clear();
}
return this;
}
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
*/
public games.mythical.saga.sdk.proto.streams.item.ItemUpdate.Builder getItemUpdateBuilder() {
return getItemUpdateFieldBuilder().getBuilder();
}
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.item.ItemUpdateOrBuilder getItemUpdateOrBuilder() {
if ((statusUpdateCase_ == 3) && (itemUpdateBuilder_ != null)) {
return itemUpdateBuilder_.getMessageOrBuilder();
} else {
if (statusUpdateCase_ == 3) {
return (games.mythical.saga.sdk.proto.streams.item.ItemUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.item.ItemUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.item.ItemUpdate item_update = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.item.ItemUpdate, games.mythical.saga.sdk.proto.streams.item.ItemUpdate.Builder, games.mythical.saga.sdk.proto.streams.item.ItemUpdateOrBuilder>
getItemUpdateFieldBuilder() {
if (itemUpdateBuilder_ == null) {
if (!(statusUpdateCase_ == 3)) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.item.ItemUpdate.getDefaultInstance();
}
itemUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.item.ItemUpdate, games.mythical.saga.sdk.proto.streams.item.ItemUpdate.Builder, games.mythical.saga.sdk.proto.streams.item.ItemUpdateOrBuilder>(
(games.mythical.saga.sdk.proto.streams.item.ItemUpdate) statusUpdate_,
getParentForChildren(),
isClean());
statusUpdate_ = null;
}
statusUpdateCase_ = 3;
onChanged();;
return itemUpdateBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate, games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.Builder, games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdateOrBuilder> itemTypeUpdateBuilder_;
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
* @return Whether the itemTypeUpdate field is set.
*/
@java.lang.Override
public boolean hasItemTypeUpdate() {
return statusUpdateCase_ == 4;
}
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
* @return The itemTypeUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate getItemTypeUpdate() {
if (itemTypeUpdateBuilder_ == null) {
if (statusUpdateCase_ == 4) {
return (games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.getDefaultInstance();
} else {
if (statusUpdateCase_ == 4) {
return itemTypeUpdateBuilder_.getMessage();
}
return games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
*/
public Builder setItemTypeUpdate(games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate value) {
if (itemTypeUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statusUpdate_ = value;
onChanged();
} else {
itemTypeUpdateBuilder_.setMessage(value);
}
statusUpdateCase_ = 4;
return this;
}
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
*/
public Builder setItemTypeUpdate(
games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.Builder builderForValue) {
if (itemTypeUpdateBuilder_ == null) {
statusUpdate_ = builderForValue.build();
onChanged();
} else {
itemTypeUpdateBuilder_.setMessage(builderForValue.build());
}
statusUpdateCase_ = 4;
return this;
}
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
*/
public Builder mergeItemTypeUpdate(games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate value) {
if (itemTypeUpdateBuilder_ == null) {
if (statusUpdateCase_ == 4 &&
statusUpdate_ != games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.getDefaultInstance()) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.newBuilder((games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate) statusUpdate_)
.mergeFrom(value).buildPartial();
} else {
statusUpdate_ = value;
}
onChanged();
} else {
if (statusUpdateCase_ == 4) {
itemTypeUpdateBuilder_.mergeFrom(value);
} else {
itemTypeUpdateBuilder_.setMessage(value);
}
}
statusUpdateCase_ = 4;
return this;
}
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
*/
public Builder clearItemTypeUpdate() {
if (itemTypeUpdateBuilder_ == null) {
if (statusUpdateCase_ == 4) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
onChanged();
}
} else {
if (statusUpdateCase_ == 4) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
}
itemTypeUpdateBuilder_.clear();
}
return this;
}
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
*/
public games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.Builder getItemTypeUpdateBuilder() {
return getItemTypeUpdateFieldBuilder().getBuilder();
}
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdateOrBuilder getItemTypeUpdateOrBuilder() {
if ((statusUpdateCase_ == 4) && (itemTypeUpdateBuilder_ != null)) {
return itemTypeUpdateBuilder_.getMessageOrBuilder();
} else {
if (statusUpdateCase_ == 4) {
return (games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate, games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.Builder, games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdateOrBuilder>
getItemTypeUpdateFieldBuilder() {
if (itemTypeUpdateBuilder_ == null) {
if (!(statusUpdateCase_ == 4)) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.getDefaultInstance();
}
itemTypeUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate, games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate.Builder, games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdateOrBuilder>(
(games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate) statusUpdate_,
getParentForChildren(),
isClean());
statusUpdate_ = null;
}
statusUpdateCase_ = 4;
onChanged();;
return itemTypeUpdateBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate, games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.Builder, games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateOrBuilder> playerWalletUpdateBuilder_;
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
* @return Whether the playerWalletUpdate field is set.
*/
@java.lang.Override
public boolean hasPlayerWalletUpdate() {
return statusUpdateCase_ == 6;
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
* @return The playerWalletUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate getPlayerWalletUpdate() {
if (playerWalletUpdateBuilder_ == null) {
if (statusUpdateCase_ == 6) {
return (games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.getDefaultInstance();
} else {
if (statusUpdateCase_ == 6) {
return playerWalletUpdateBuilder_.getMessage();
}
return games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
*/
public Builder setPlayerWalletUpdate(games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate value) {
if (playerWalletUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statusUpdate_ = value;
onChanged();
} else {
playerWalletUpdateBuilder_.setMessage(value);
}
statusUpdateCase_ = 6;
return this;
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
*/
public Builder setPlayerWalletUpdate(
games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.Builder builderForValue) {
if (playerWalletUpdateBuilder_ == null) {
statusUpdate_ = builderForValue.build();
onChanged();
} else {
playerWalletUpdateBuilder_.setMessage(builderForValue.build());
}
statusUpdateCase_ = 6;
return this;
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
*/
public Builder mergePlayerWalletUpdate(games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate value) {
if (playerWalletUpdateBuilder_ == null) {
if (statusUpdateCase_ == 6 &&
statusUpdate_ != games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.getDefaultInstance()) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.newBuilder((games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate) statusUpdate_)
.mergeFrom(value).buildPartial();
} else {
statusUpdate_ = value;
}
onChanged();
} else {
if (statusUpdateCase_ == 6) {
playerWalletUpdateBuilder_.mergeFrom(value);
} else {
playerWalletUpdateBuilder_.setMessage(value);
}
}
statusUpdateCase_ = 6;
return this;
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
*/
public Builder clearPlayerWalletUpdate() {
if (playerWalletUpdateBuilder_ == null) {
if (statusUpdateCase_ == 6) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
onChanged();
}
} else {
if (statusUpdateCase_ == 6) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
}
playerWalletUpdateBuilder_.clear();
}
return this;
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
*/
public games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.Builder getPlayerWalletUpdateBuilder() {
return getPlayerWalletUpdateFieldBuilder().getBuilder();
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateOrBuilder getPlayerWalletUpdateOrBuilder() {
if ((statusUpdateCase_ == 6) && (playerWalletUpdateBuilder_ != null)) {
return playerWalletUpdateBuilder_.getMessageOrBuilder();
} else {
if (statusUpdateCase_ == 6) {
return (games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate, games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.Builder, games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateOrBuilder>
getPlayerWalletUpdateFieldBuilder() {
if (playerWalletUpdateBuilder_ == null) {
if (!(statusUpdateCase_ == 6)) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.getDefaultInstance();
}
playerWalletUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate, games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.Builder, games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateOrBuilder>(
(games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate) statusUpdate_,
getParentForChildren(),
isClean());
statusUpdate_ = null;
}
statusUpdateCase_ = 6;
onChanged();;
return playerWalletUpdateBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate, games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.Builder, games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdateOrBuilder> reservationUpdateBuilder_;
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
* @return Whether the reservationUpdate field is set.
*/
@java.lang.Override
public boolean hasReservationUpdate() {
return statusUpdateCase_ == 7;
}
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
* @return The reservationUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate getReservationUpdate() {
if (reservationUpdateBuilder_ == null) {
if (statusUpdateCase_ == 7) {
return (games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.getDefaultInstance();
} else {
if (statusUpdateCase_ == 7) {
return reservationUpdateBuilder_.getMessage();
}
return games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
*/
public Builder setReservationUpdate(games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate value) {
if (reservationUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statusUpdate_ = value;
onChanged();
} else {
reservationUpdateBuilder_.setMessage(value);
}
statusUpdateCase_ = 7;
return this;
}
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
*/
public Builder setReservationUpdate(
games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.Builder builderForValue) {
if (reservationUpdateBuilder_ == null) {
statusUpdate_ = builderForValue.build();
onChanged();
} else {
reservationUpdateBuilder_.setMessage(builderForValue.build());
}
statusUpdateCase_ = 7;
return this;
}
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
*/
public Builder mergeReservationUpdate(games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate value) {
if (reservationUpdateBuilder_ == null) {
if (statusUpdateCase_ == 7 &&
statusUpdate_ != games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.getDefaultInstance()) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.newBuilder((games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate) statusUpdate_)
.mergeFrom(value).buildPartial();
} else {
statusUpdate_ = value;
}
onChanged();
} else {
if (statusUpdateCase_ == 7) {
reservationUpdateBuilder_.mergeFrom(value);
} else {
reservationUpdateBuilder_.setMessage(value);
}
}
statusUpdateCase_ = 7;
return this;
}
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
*/
public Builder clearReservationUpdate() {
if (reservationUpdateBuilder_ == null) {
if (statusUpdateCase_ == 7) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
onChanged();
}
} else {
if (statusUpdateCase_ == 7) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
}
reservationUpdateBuilder_.clear();
}
return this;
}
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
*/
public games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.Builder getReservationUpdateBuilder() {
return getReservationUpdateFieldBuilder().getBuilder();
}
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdateOrBuilder getReservationUpdateOrBuilder() {
if ((statusUpdateCase_ == 7) && (reservationUpdateBuilder_ != null)) {
return reservationUpdateBuilder_.getMessageOrBuilder();
} else {
if (statusUpdateCase_ == 7) {
return (games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate, games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.Builder, games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdateOrBuilder>
getReservationUpdateFieldBuilder() {
if (reservationUpdateBuilder_ == null) {
if (!(statusUpdateCase_ == 7)) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.getDefaultInstance();
}
reservationUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate, games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.Builder, games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdateOrBuilder>(
(games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate) statusUpdate_,
getParentForChildren(),
isClean());
statusUpdate_ = null;
}
statusUpdateCase_ = 7;
onChanged();;
return reservationUpdateBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate, games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.Builder, games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateOrBuilder> metadataUpdateBuilder_;
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
* @return Whether the metadataUpdate field is set.
*/
@java.lang.Override
public boolean hasMetadataUpdate() {
return statusUpdateCase_ == 9;
}
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
* @return The metadataUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate getMetadataUpdate() {
if (metadataUpdateBuilder_ == null) {
if (statusUpdateCase_ == 9) {
return (games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.getDefaultInstance();
} else {
if (statusUpdateCase_ == 9) {
return metadataUpdateBuilder_.getMessage();
}
return games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
*/
public Builder setMetadataUpdate(games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate value) {
if (metadataUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statusUpdate_ = value;
onChanged();
} else {
metadataUpdateBuilder_.setMessage(value);
}
statusUpdateCase_ = 9;
return this;
}
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
*/
public Builder setMetadataUpdate(
games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.Builder builderForValue) {
if (metadataUpdateBuilder_ == null) {
statusUpdate_ = builderForValue.build();
onChanged();
} else {
metadataUpdateBuilder_.setMessage(builderForValue.build());
}
statusUpdateCase_ = 9;
return this;
}
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
*/
public Builder mergeMetadataUpdate(games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate value) {
if (metadataUpdateBuilder_ == null) {
if (statusUpdateCase_ == 9 &&
statusUpdate_ != games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.getDefaultInstance()) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.newBuilder((games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate) statusUpdate_)
.mergeFrom(value).buildPartial();
} else {
statusUpdate_ = value;
}
onChanged();
} else {
if (statusUpdateCase_ == 9) {
metadataUpdateBuilder_.mergeFrom(value);
} else {
metadataUpdateBuilder_.setMessage(value);
}
}
statusUpdateCase_ = 9;
return this;
}
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
*/
public Builder clearMetadataUpdate() {
if (metadataUpdateBuilder_ == null) {
if (statusUpdateCase_ == 9) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
onChanged();
}
} else {
if (statusUpdateCase_ == 9) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
}
metadataUpdateBuilder_.clear();
}
return this;
}
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
*/
public games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.Builder getMetadataUpdateBuilder() {
return getMetadataUpdateFieldBuilder().getBuilder();
}
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateOrBuilder getMetadataUpdateOrBuilder() {
if ((statusUpdateCase_ == 9) && (metadataUpdateBuilder_ != null)) {
return metadataUpdateBuilder_.getMessageOrBuilder();
} else {
if (statusUpdateCase_ == 9) {
return (games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate, games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.Builder, games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateOrBuilder>
getMetadataUpdateFieldBuilder() {
if (metadataUpdateBuilder_ == null) {
if (!(statusUpdateCase_ == 9)) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.getDefaultInstance();
}
metadataUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate, games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.Builder, games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateOrBuilder>(
(games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate) statusUpdate_,
getParentForChildren(),
isClean());
statusUpdate_ = null;
}
statusUpdateCase_ = 9;
onChanged();;
return metadataUpdateBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate, games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.Builder, games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdateOrBuilder> currencyTypeUpdateBuilder_;
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
* @return Whether the currencyTypeUpdate field is set.
*/
@java.lang.Override
public boolean hasCurrencyTypeUpdate() {
return statusUpdateCase_ == 10;
}
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
* @return The currencyTypeUpdate.
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate getCurrencyTypeUpdate() {
if (currencyTypeUpdateBuilder_ == null) {
if (statusUpdateCase_ == 10) {
return (games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.getDefaultInstance();
} else {
if (statusUpdateCase_ == 10) {
return currencyTypeUpdateBuilder_.getMessage();
}
return games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
*/
public Builder setCurrencyTypeUpdate(games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate value) {
if (currencyTypeUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statusUpdate_ = value;
onChanged();
} else {
currencyTypeUpdateBuilder_.setMessage(value);
}
statusUpdateCase_ = 10;
return this;
}
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
*/
public Builder setCurrencyTypeUpdate(
games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.Builder builderForValue) {
if (currencyTypeUpdateBuilder_ == null) {
statusUpdate_ = builderForValue.build();
onChanged();
} else {
currencyTypeUpdateBuilder_.setMessage(builderForValue.build());
}
statusUpdateCase_ = 10;
return this;
}
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
*/
public Builder mergeCurrencyTypeUpdate(games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate value) {
if (currencyTypeUpdateBuilder_ == null) {
if (statusUpdateCase_ == 10 &&
statusUpdate_ != games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.getDefaultInstance()) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.newBuilder((games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate) statusUpdate_)
.mergeFrom(value).buildPartial();
} else {
statusUpdate_ = value;
}
onChanged();
} else {
if (statusUpdateCase_ == 10) {
currencyTypeUpdateBuilder_.mergeFrom(value);
} else {
currencyTypeUpdateBuilder_.setMessage(value);
}
}
statusUpdateCase_ = 10;
return this;
}
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
*/
public Builder clearCurrencyTypeUpdate() {
if (currencyTypeUpdateBuilder_ == null) {
if (statusUpdateCase_ == 10) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
onChanged();
}
} else {
if (statusUpdateCase_ == 10) {
statusUpdateCase_ = 0;
statusUpdate_ = null;
}
currencyTypeUpdateBuilder_.clear();
}
return this;
}
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
*/
public games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.Builder getCurrencyTypeUpdateBuilder() {
return getCurrencyTypeUpdateFieldBuilder().getBuilder();
}
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdateOrBuilder getCurrencyTypeUpdateOrBuilder() {
if ((statusUpdateCase_ == 10) && (currencyTypeUpdateBuilder_ != null)) {
return currencyTypeUpdateBuilder_.getMessageOrBuilder();
} else {
if (statusUpdateCase_ == 10) {
return (games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate) statusUpdate_;
}
return games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.getDefaultInstance();
}
}
/**
* .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate, games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.Builder, games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdateOrBuilder>
getCurrencyTypeUpdateFieldBuilder() {
if (currencyTypeUpdateBuilder_ == null) {
if (!(statusUpdateCase_ == 10)) {
statusUpdate_ = games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.getDefaultInstance();
}
currencyTypeUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate, games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate.Builder, games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdateOrBuilder>(
(games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate) statusUpdate_,
getParentForChildren(),
isClean());
statusUpdate_ = null;
}
statusUpdateCase_ = 10;
onChanged();;
return currencyTypeUpdateBuilder_;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
* .google.protobuf.Timestamp created_at = 8;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
* .google.protobuf.Timestamp created_at = 8;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp created_at = 8;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 8;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 8;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 8;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 8;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp created_at = 8;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
* .google.protobuf.Timestamp created_at = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
@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:saga.rpc.streams.StatusUpdate)
}
// @@protoc_insertion_point(class_scope:saga.rpc.streams.StatusUpdate)
private static final games.mythical.saga.sdk.proto.streams.StatusUpdate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new games.mythical.saga.sdk.proto.streams.StatusUpdate();
}
public static games.mythical.saga.sdk.proto.streams.StatusUpdate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatusUpdate 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 games.mythical.saga.sdk.proto.streams.StatusUpdate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}