games.mythical.saga.sdk.proto.api.item.ItemProto 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: api/item/definition.proto
package games.mythical.saga.sdk.proto.api.item;
/**
*
**
* @exclude
* ----- Item Definitions -----
*
*
* Protobuf type {@code saga.api.item.ItemProto}
*/
public final class ItemProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:saga.api.item.ItemProto)
ItemProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ItemProto.newBuilder() to construct.
private ItemProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ItemProto() {
traceId_ = "";
inventoryId_ = "";
oauthId_ = "";
blockExplorerUrl_ = "";
metadataUrl_ = "";
state_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ItemProto();
}
@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.api.item.Definition.internal_static_saga_api_item_ItemProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return games.mythical.saga.sdk.proto.api.item.Definition.internal_static_saga_api_item_ItemProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
games.mythical.saga.sdk.proto.api.item.ItemProto.class, games.mythical.saga.sdk.proto.api.item.ItemProto.Builder.class);
}
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 INVENTORY_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object inventoryId_;
/**
*
* The game's unique id for this Item
*
*
* string inventory_id = 2;
* @return The inventoryId.
*/
@java.lang.Override
public java.lang.String getInventoryId() {
java.lang.Object ref = inventoryId_;
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();
inventoryId_ = s;
return s;
}
}
/**
*
* The game's unique id for this Item
*
*
* string inventory_id = 2;
* @return The bytes for inventoryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInventoryIdBytes() {
java.lang.Object ref = inventoryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inventoryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OAUTH_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object oauthId_;
/**
* string oauth_id = 3;
* @return The oauthId.
*/
@java.lang.Override
public java.lang.String getOauthId() {
java.lang.Object ref = oauthId_;
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();
oauthId_ = s;
return s;
}
}
/**
* string oauth_id = 3;
* @return The bytes for oauthId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOauthIdBytes() {
java.lang.Object ref = oauthId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
oauthId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOKEN_ID_FIELD_NUMBER = 4;
private long tokenId_;
/**
* int64 token_id = 4;
* @return The tokenId.
*/
@java.lang.Override
public long getTokenId() {
return tokenId_;
}
public static final int FINALIZED_FIELD_NUMBER = 5;
private boolean finalized_;
/**
* bool finalized = 5;
* @return The finalized.
*/
@java.lang.Override
public boolean getFinalized() {
return finalized_;
}
public static final int BLOCK_EXPLORER_URL_FIELD_NUMBER = 6;
private volatile java.lang.Object blockExplorerUrl_;
/**
* string block_explorer_url = 6;
* @return The blockExplorerUrl.
*/
@java.lang.Override
public java.lang.String getBlockExplorerUrl() {
java.lang.Object ref = blockExplorerUrl_;
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();
blockExplorerUrl_ = s;
return s;
}
}
/**
* string block_explorer_url = 6;
* @return The bytes for blockExplorerUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBlockExplorerUrlBytes() {
java.lang.Object ref = blockExplorerUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
blockExplorerUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METADATA_URL_FIELD_NUMBER = 7;
private volatile java.lang.Object metadataUrl_;
/**
* string metadata_url = 7;
* @return The metadataUrl.
*/
@java.lang.Override
public java.lang.String getMetadataUrl() {
java.lang.Object ref = metadataUrl_;
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();
metadataUrl_ = s;
return s;
}
}
/**
* string metadata_url = 7;
* @return The bytes for metadataUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMetadataUrlBytes() {
java.lang.Object ref = metadataUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metadataUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 8;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* When was this Item created
*
*
* .google.protobuf.Timestamp created_at = 8;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* When was this Item created
*
*
* .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_;
}
/**
*
* When was this Item created
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int UPDATED_AT_FIELD_NUMBER = 9;
private com.google.protobuf.Timestamp updatedAt_;
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
* @return Whether the updatedAt field is set.
*/
@java.lang.Override
public boolean hasUpdatedAt() {
return updatedAt_ != null;
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
* @return The updatedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdatedAt() {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
return getUpdatedAt();
}
public static final int STATE_FIELD_NUMBER = 10;
private volatile java.lang.Object state_;
/**
* string state = 10;
* @return The state.
*/
@java.lang.Override
public java.lang.String getState() {
java.lang.Object ref = state_;
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();
state_ = s;
return s;
}
}
/**
* string state = 10;
* @return The bytes for state.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inventoryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inventoryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauthId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauthId_);
}
if (tokenId_ != 0L) {
output.writeInt64(4, tokenId_);
}
if (finalized_ != false) {
output.writeBool(5, finalized_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(blockExplorerUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, blockExplorerUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, metadataUrl_);
}
if (createdAt_ != null) {
output.writeMessage(8, getCreatedAt());
}
if (updatedAt_ != null) {
output.writeMessage(9, getUpdatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, state_);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inventoryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inventoryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauthId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauthId_);
}
if (tokenId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, tokenId_);
}
if (finalized_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, finalized_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(blockExplorerUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, blockExplorerUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, metadataUrl_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getCreatedAt());
}
if (updatedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getUpdatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, state_);
}
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.api.item.ItemProto)) {
return super.equals(obj);
}
games.mythical.saga.sdk.proto.api.item.ItemProto other = (games.mythical.saga.sdk.proto.api.item.ItemProto) obj;
if (!getTraceId()
.equals(other.getTraceId())) return false;
if (!getInventoryId()
.equals(other.getInventoryId())) return false;
if (!getOauthId()
.equals(other.getOauthId())) return false;
if (getTokenId()
!= other.getTokenId()) return false;
if (getFinalized()
!= other.getFinalized()) return false;
if (!getBlockExplorerUrl()
.equals(other.getBlockExplorerUrl())) return false;
if (!getMetadataUrl()
.equals(other.getMetadataUrl())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasUpdatedAt() != other.hasUpdatedAt()) return false;
if (hasUpdatedAt()) {
if (!getUpdatedAt()
.equals(other.getUpdatedAt())) return false;
}
if (!getState()
.equals(other.getState())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TRACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTraceId().hashCode();
hash = (37 * hash) + INVENTORY_ID_FIELD_NUMBER;
hash = (53 * hash) + getInventoryId().hashCode();
hash = (37 * hash) + OAUTH_ID_FIELD_NUMBER;
hash = (53 * hash) + getOauthId().hashCode();
hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTokenId());
hash = (37 * hash) + FINALIZED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFinalized());
hash = (37 * hash) + BLOCK_EXPLORER_URL_FIELD_NUMBER;
hash = (53 * hash) + getBlockExplorerUrl().hashCode();
hash = (37 * hash) + METADATA_URL_FIELD_NUMBER;
hash = (53 * hash) + getMetadataUrl().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasUpdatedAt()) {
hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedAt().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static games.mythical.saga.sdk.proto.api.item.ItemProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static games.mythical.saga.sdk.proto.api.item.ItemProto 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.api.item.ItemProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static games.mythical.saga.sdk.proto.api.item.ItemProto 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.api.item.ItemProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static games.mythical.saga.sdk.proto.api.item.ItemProto 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.api.item.ItemProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static games.mythical.saga.sdk.proto.api.item.ItemProto 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.api.item.ItemProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static games.mythical.saga.sdk.proto.api.item.ItemProto 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.api.item.ItemProto 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.api.item.ItemProto 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.api.item.ItemProto 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;
}
/**
*
**
* @exclude
* ----- Item Definitions -----
*
*
* Protobuf type {@code saga.api.item.ItemProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:saga.api.item.ItemProto)
games.mythical.saga.sdk.proto.api.item.ItemProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return games.mythical.saga.sdk.proto.api.item.Definition.internal_static_saga_api_item_ItemProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return games.mythical.saga.sdk.proto.api.item.Definition.internal_static_saga_api_item_ItemProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
games.mythical.saga.sdk.proto.api.item.ItemProto.class, games.mythical.saga.sdk.proto.api.item.ItemProto.Builder.class);
}
// Construct using games.mythical.saga.sdk.proto.api.item.ItemProto.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
traceId_ = "";
inventoryId_ = "";
oauthId_ = "";
tokenId_ = 0L;
finalized_ = false;
blockExplorerUrl_ = "";
metadataUrl_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
if (updatedAtBuilder_ == null) {
updatedAt_ = null;
} else {
updatedAt_ = null;
updatedAtBuilder_ = null;
}
state_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return games.mythical.saga.sdk.proto.api.item.Definition.internal_static_saga_api_item_ItemProto_descriptor;
}
@java.lang.Override
public games.mythical.saga.sdk.proto.api.item.ItemProto getDefaultInstanceForType() {
return games.mythical.saga.sdk.proto.api.item.ItemProto.getDefaultInstance();
}
@java.lang.Override
public games.mythical.saga.sdk.proto.api.item.ItemProto build() {
games.mythical.saga.sdk.proto.api.item.ItemProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public games.mythical.saga.sdk.proto.api.item.ItemProto buildPartial() {
games.mythical.saga.sdk.proto.api.item.ItemProto result = new games.mythical.saga.sdk.proto.api.item.ItemProto(this);
result.traceId_ = traceId_;
result.inventoryId_ = inventoryId_;
result.oauthId_ = oauthId_;
result.tokenId_ = tokenId_;
result.finalized_ = finalized_;
result.blockExplorerUrl_ = blockExplorerUrl_;
result.metadataUrl_ = metadataUrl_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
if (updatedAtBuilder_ == null) {
result.updatedAt_ = updatedAt_;
} else {
result.updatedAt_ = updatedAtBuilder_.build();
}
result.state_ = state_;
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.api.item.ItemProto) {
return mergeFrom((games.mythical.saga.sdk.proto.api.item.ItemProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(games.mythical.saga.sdk.proto.api.item.ItemProto other) {
if (other == games.mythical.saga.sdk.proto.api.item.ItemProto.getDefaultInstance()) return this;
if (!other.getTraceId().isEmpty()) {
traceId_ = other.traceId_;
onChanged();
}
if (!other.getInventoryId().isEmpty()) {
inventoryId_ = other.inventoryId_;
onChanged();
}
if (!other.getOauthId().isEmpty()) {
oauthId_ = other.oauthId_;
onChanged();
}
if (other.getTokenId() != 0L) {
setTokenId(other.getTokenId());
}
if (other.getFinalized() != false) {
setFinalized(other.getFinalized());
}
if (!other.getBlockExplorerUrl().isEmpty()) {
blockExplorerUrl_ = other.blockExplorerUrl_;
onChanged();
}
if (!other.getMetadataUrl().isEmpty()) {
metadataUrl_ = other.metadataUrl_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasUpdatedAt()) {
mergeUpdatedAt(other.getUpdatedAt());
}
if (!other.getState().isEmpty()) {
state_ = other.state_;
onChanged();
}
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: {
inventoryId_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
oauthId_ = input.readStringRequireUtf8();
break;
} // case 26
case 32: {
tokenId_ = input.readInt64();
break;
} // case 32
case 40: {
finalized_ = input.readBool();
break;
} // case 40
case 50: {
blockExplorerUrl_ = input.readStringRequireUtf8();
break;
} // case 50
case 58: {
metadataUrl_ = input.readStringRequireUtf8();
break;
} // case 58
case 66: {
input.readMessage(
getCreatedAtFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 66
case 74: {
input.readMessage(
getUpdatedAtFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 74
case 82: {
state_ = input.readStringRequireUtf8();
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 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 java.lang.Object inventoryId_ = "";
/**
*
* The game's unique id for this Item
*
*
* string inventory_id = 2;
* @return The inventoryId.
*/
public java.lang.String getInventoryId() {
java.lang.Object ref = inventoryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
inventoryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The game's unique id for this Item
*
*
* string inventory_id = 2;
* @return The bytes for inventoryId.
*/
public com.google.protobuf.ByteString
getInventoryIdBytes() {
java.lang.Object ref = inventoryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inventoryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The game's unique id for this Item
*
*
* string inventory_id = 2;
* @param value The inventoryId to set.
* @return This builder for chaining.
*/
public Builder setInventoryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
inventoryId_ = value;
onChanged();
return this;
}
/**
*
* The game's unique id for this Item
*
*
* string inventory_id = 2;
* @return This builder for chaining.
*/
public Builder clearInventoryId() {
inventoryId_ = getDefaultInstance().getInventoryId();
onChanged();
return this;
}
/**
*
* The game's unique id for this Item
*
*
* string inventory_id = 2;
* @param value The bytes for inventoryId to set.
* @return This builder for chaining.
*/
public Builder setInventoryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
inventoryId_ = value;
onChanged();
return this;
}
private java.lang.Object oauthId_ = "";
/**
* string oauth_id = 3;
* @return The oauthId.
*/
public java.lang.String getOauthId() {
java.lang.Object ref = oauthId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
oauthId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string oauth_id = 3;
* @return The bytes for oauthId.
*/
public com.google.protobuf.ByteString
getOauthIdBytes() {
java.lang.Object ref = oauthId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
oauthId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string oauth_id = 3;
* @param value The oauthId to set.
* @return This builder for chaining.
*/
public Builder setOauthId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
oauthId_ = value;
onChanged();
return this;
}
/**
* string oauth_id = 3;
* @return This builder for chaining.
*/
public Builder clearOauthId() {
oauthId_ = getDefaultInstance().getOauthId();
onChanged();
return this;
}
/**
* string oauth_id = 3;
* @param value The bytes for oauthId to set.
* @return This builder for chaining.
*/
public Builder setOauthIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
oauthId_ = value;
onChanged();
return this;
}
private long tokenId_ ;
/**
* int64 token_id = 4;
* @return The tokenId.
*/
@java.lang.Override
public long getTokenId() {
return tokenId_;
}
/**
* int64 token_id = 4;
* @param value The tokenId to set.
* @return This builder for chaining.
*/
public Builder setTokenId(long value) {
tokenId_ = value;
onChanged();
return this;
}
/**
* int64 token_id = 4;
* @return This builder for chaining.
*/
public Builder clearTokenId() {
tokenId_ = 0L;
onChanged();
return this;
}
private boolean finalized_ ;
/**
* bool finalized = 5;
* @return The finalized.
*/
@java.lang.Override
public boolean getFinalized() {
return finalized_;
}
/**
* bool finalized = 5;
* @param value The finalized to set.
* @return This builder for chaining.
*/
public Builder setFinalized(boolean value) {
finalized_ = value;
onChanged();
return this;
}
/**
* bool finalized = 5;
* @return This builder for chaining.
*/
public Builder clearFinalized() {
finalized_ = false;
onChanged();
return this;
}
private java.lang.Object blockExplorerUrl_ = "";
/**
* string block_explorer_url = 6;
* @return The blockExplorerUrl.
*/
public java.lang.String getBlockExplorerUrl() {
java.lang.Object ref = blockExplorerUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
blockExplorerUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string block_explorer_url = 6;
* @return The bytes for blockExplorerUrl.
*/
public com.google.protobuf.ByteString
getBlockExplorerUrlBytes() {
java.lang.Object ref = blockExplorerUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
blockExplorerUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string block_explorer_url = 6;
* @param value The blockExplorerUrl to set.
* @return This builder for chaining.
*/
public Builder setBlockExplorerUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
blockExplorerUrl_ = value;
onChanged();
return this;
}
/**
* string block_explorer_url = 6;
* @return This builder for chaining.
*/
public Builder clearBlockExplorerUrl() {
blockExplorerUrl_ = getDefaultInstance().getBlockExplorerUrl();
onChanged();
return this;
}
/**
* string block_explorer_url = 6;
* @param value The bytes for blockExplorerUrl to set.
* @return This builder for chaining.
*/
public Builder setBlockExplorerUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
blockExplorerUrl_ = value;
onChanged();
return this;
}
private java.lang.Object metadataUrl_ = "";
/**
* string metadata_url = 7;
* @return The metadataUrl.
*/
public java.lang.String getMetadataUrl() {
java.lang.Object ref = metadataUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
metadataUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string metadata_url = 7;
* @return The bytes for metadataUrl.
*/
public com.google.protobuf.ByteString
getMetadataUrlBytes() {
java.lang.Object ref = metadataUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metadataUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string metadata_url = 7;
* @param value The metadataUrl to set.
* @return This builder for chaining.
*/
public Builder setMetadataUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
metadataUrl_ = value;
onChanged();
return this;
}
/**
* string metadata_url = 7;
* @return This builder for chaining.
*/
public Builder clearMetadataUrl() {
metadataUrl_ = getDefaultInstance().getMetadataUrl();
onChanged();
return this;
}
/**
* string metadata_url = 7;
* @param value The bytes for metadataUrl to set.
* @return This builder for chaining.
*/
public Builder setMetadataUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
metadataUrl_ = value;
onChanged();
return this;
}
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_;
/**
*
* When was this Item created
*
*
* .google.protobuf.Timestamp created_at = 8;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When was this Item created
*
*
* .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();
}
}
/**
*
* When was this Item created
*
*
* .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;
}
/**
*
* When was this Item created
*
*
* .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;
}
/**
*
* When was this Item created
*
*
* .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;
}
/**
*
* When was this Item created
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* When was this Item created
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* When was this Item created
*
*
* .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_;
}
}
/**
*
* When was this Item created
*
*
* .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_;
}
private com.google.protobuf.Timestamp updatedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_;
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
* @return Whether the updatedAt field is set.
*/
public boolean hasUpdatedAt() {
return updatedAtBuilder_ != null || updatedAt_ != null;
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
* @return The updatedAt.
*/
public com.google.protobuf.Timestamp getUpdatedAt() {
if (updatedAtBuilder_ == null) {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
} else {
return updatedAtBuilder_.getMessage();
}
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
*/
public Builder setUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updatedAt_ = value;
onChanged();
} else {
updatedAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
*/
public Builder setUpdatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (updatedAtBuilder_ == null) {
updatedAt_ = builderForValue.build();
onChanged();
} else {
updatedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
*/
public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (updatedAt_ != null) {
updatedAt_ =
com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial();
} else {
updatedAt_ = value;
}
onChanged();
} else {
updatedAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
*/
public Builder clearUpdatedAt() {
if (updatedAtBuilder_ == null) {
updatedAt_ = null;
onChanged();
} else {
updatedAt_ = null;
updatedAtBuilder_ = null;
}
return this;
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
*/
public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() {
onChanged();
return getUpdatedAtFieldBuilder().getBuilder();
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
*/
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
if (updatedAtBuilder_ != null) {
return updatedAtBuilder_.getMessageOrBuilder();
} else {
return updatedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getUpdatedAtFieldBuilder() {
if (updatedAtBuilder_ == null) {
updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getUpdatedAt(),
getParentForChildren(),
isClean());
updatedAt_ = null;
}
return updatedAtBuilder_;
}
private java.lang.Object state_ = "";
/**
* string state = 10;
* @return The state.
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
state_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string state = 10;
* @return The bytes for state.
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string state = 10;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value;
onChanged();
return this;
}
/**
* string state = 10;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = getDefaultInstance().getState();
onChanged();
return this;
}
/**
* string state = 10;
* @param value The bytes for state to set.
* @return This builder for chaining.
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
state_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:saga.api.item.ItemProto)
}
// @@protoc_insertion_point(class_scope:saga.api.item.ItemProto)
private static final games.mythical.saga.sdk.proto.api.item.ItemProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new games.mythical.saga.sdk.proto.api.item.ItemProto();
}
public static games.mythical.saga.sdk.proto.api.item.ItemProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ItemProto 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.api.item.ItemProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}