games.mythical.saga.sdk.proto.common.Metadata 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: common/common.proto
package games.mythical.saga.sdk.proto.common;
/**
*
* Metadata properties of Item
*
*
* Protobuf type {@code saga.common.Metadata}
*/
public final class Metadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:saga.common.Metadata)
MetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use Metadata.newBuilder() to construct.
private Metadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Metadata() {
name_ = "";
description_ = "";
image_ = "";
externalUrl_ = "";
backgroundColor_ = "";
animationUrl_ = "";
youtubeUrl_ = "";
attributes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Metadata();
}
@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.common.Common.internal_static_saga_common_Metadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return games.mythical.saga.sdk.proto.common.Common.internal_static_saga_common_Metadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
games.mythical.saga.sdk.proto.common.Metadata.class, games.mythical.saga.sdk.proto.common.Metadata.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of item
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Name of item
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
*
* Description of the item
*
*
* string description = 2;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* Description of the item
*
*
* string description = 2;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMAGE_FIELD_NUMBER = 3;
private volatile java.lang.Object image_;
/**
*
* URL to the image of the item
*
*
* string image = 3;
* @return The image.
*/
@java.lang.Override
public java.lang.String getImage() {
java.lang.Object ref = image_;
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();
image_ = s;
return s;
}
}
/**
*
* URL to the image of the item
*
*
* string image = 3;
* @return The bytes for image.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getImageBytes() {
java.lang.Object ref = image_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
image_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXTERNAL_URL_FIELD_NUMBER = 5;
private volatile java.lang.Object externalUrl_;
/**
*
* URL to the item
*
*
* string external_url = 5;
* @return The externalUrl.
*/
@java.lang.Override
public java.lang.String getExternalUrl() {
java.lang.Object ref = externalUrl_;
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();
externalUrl_ = s;
return s;
}
}
/**
*
* URL to the item
*
*
* string external_url = 5;
* @return The bytes for externalUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExternalUrlBytes() {
java.lang.Object ref = externalUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
externalUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BACKGROUND_COLOR_FIELD_NUMBER = 6;
private volatile java.lang.Object backgroundColor_;
/**
*
* OpenSea background color
*
*
* string background_color = 6;
* @return The backgroundColor.
*/
@java.lang.Override
public java.lang.String getBackgroundColor() {
java.lang.Object ref = backgroundColor_;
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();
backgroundColor_ = s;
return s;
}
}
/**
*
* OpenSea background color
*
*
* string background_color = 6;
* @return The bytes for backgroundColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBackgroundColorBytes() {
java.lang.Object ref = backgroundColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
backgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANIMATION_URL_FIELD_NUMBER = 7;
private volatile java.lang.Object animationUrl_;
/**
*
* URL to a media/animation file
*
*
* string animation_url = 7;
* @return The animationUrl.
*/
@java.lang.Override
public java.lang.String getAnimationUrl() {
java.lang.Object ref = animationUrl_;
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();
animationUrl_ = s;
return s;
}
}
/**
*
* URL to a media/animation file
*
*
* string animation_url = 7;
* @return The bytes for animationUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAnimationUrlBytes() {
java.lang.Object ref = animationUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
animationUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int YOUTUBE_URL_FIELD_NUMBER = 8;
private volatile java.lang.Object youtubeUrl_;
/**
*
* URL to a YouTube video
*
*
* string youtube_url = 8;
* @return The youtubeUrl.
*/
@java.lang.Override
public java.lang.String getYoutubeUrl() {
java.lang.Object ref = youtubeUrl_;
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();
youtubeUrl_ = s;
return s;
}
}
/**
*
* URL to a YouTube video
*
*
* string youtube_url = 8;
* @return The bytes for youtubeUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getYoutubeUrlBytes() {
java.lang.Object ref = youtubeUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
youtubeUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTRIBUTES_FIELD_NUMBER = 9;
private java.util.List attributes_;
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
@java.lang.Override
public java.util.List getAttributesList() {
return attributes_;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
@java.lang.Override
public java.util.List extends games.mythical.saga.sdk.proto.common.MetadataAttributeOrBuilder>
getAttributesOrBuilderList() {
return attributes_;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
@java.lang.Override
public int getAttributesCount() {
return attributes_.size();
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.common.MetadataAttribute getAttributes(int index) {
return attributes_.get(index);
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
@java.lang.Override
public games.mythical.saga.sdk.proto.common.MetadataAttributeOrBuilder getAttributesOrBuilder(
int index) {
return attributes_.get(index);
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, image_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, externalUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backgroundColor_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, backgroundColor_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(animationUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, animationUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(youtubeUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, youtubeUrl_);
}
for (int i = 0; i < attributes_.size(); i++) {
output.writeMessage(9, attributes_.get(i));
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, image_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, externalUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backgroundColor_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, backgroundColor_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(animationUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, animationUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(youtubeUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, youtubeUrl_);
}
for (int i = 0; i < attributes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, attributes_.get(i));
}
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.common.Metadata)) {
return super.equals(obj);
}
games.mythical.saga.sdk.proto.common.Metadata other = (games.mythical.saga.sdk.proto.common.Metadata) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getImage()
.equals(other.getImage())) return false;
if (!getExternalUrl()
.equals(other.getExternalUrl())) return false;
if (!getBackgroundColor()
.equals(other.getBackgroundColor())) return false;
if (!getAnimationUrl()
.equals(other.getAnimationUrl())) return false;
if (!getYoutubeUrl()
.equals(other.getYoutubeUrl())) return false;
if (!getAttributesList()
.equals(other.getAttributesList())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getImage().hashCode();
hash = (37 * hash) + EXTERNAL_URL_FIELD_NUMBER;
hash = (53 * hash) + getExternalUrl().hashCode();
hash = (37 * hash) + BACKGROUND_COLOR_FIELD_NUMBER;
hash = (53 * hash) + getBackgroundColor().hashCode();
hash = (37 * hash) + ANIMATION_URL_FIELD_NUMBER;
hash = (53 * hash) + getAnimationUrl().hashCode();
hash = (37 * hash) + YOUTUBE_URL_FIELD_NUMBER;
hash = (53 * hash) + getYoutubeUrl().hashCode();
if (getAttributesCount() > 0) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAttributesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static games.mythical.saga.sdk.proto.common.Metadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static games.mythical.saga.sdk.proto.common.Metadata 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.common.Metadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static games.mythical.saga.sdk.proto.common.Metadata 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.common.Metadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static games.mythical.saga.sdk.proto.common.Metadata 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.common.Metadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static games.mythical.saga.sdk.proto.common.Metadata 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.common.Metadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static games.mythical.saga.sdk.proto.common.Metadata 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.common.Metadata 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.common.Metadata 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.common.Metadata 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;
}
/**
*
* Metadata properties of Item
*
*
* Protobuf type {@code saga.common.Metadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:saga.common.Metadata)
games.mythical.saga.sdk.proto.common.MetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return games.mythical.saga.sdk.proto.common.Common.internal_static_saga_common_Metadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return games.mythical.saga.sdk.proto.common.Common.internal_static_saga_common_Metadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
games.mythical.saga.sdk.proto.common.Metadata.class, games.mythical.saga.sdk.proto.common.Metadata.Builder.class);
}
// Construct using games.mythical.saga.sdk.proto.common.Metadata.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
description_ = "";
image_ = "";
externalUrl_ = "";
backgroundColor_ = "";
animationUrl_ = "";
youtubeUrl_ = "";
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
} else {
attributes_ = null;
attributesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return games.mythical.saga.sdk.proto.common.Common.internal_static_saga_common_Metadata_descriptor;
}
@java.lang.Override
public games.mythical.saga.sdk.proto.common.Metadata getDefaultInstanceForType() {
return games.mythical.saga.sdk.proto.common.Metadata.getDefaultInstance();
}
@java.lang.Override
public games.mythical.saga.sdk.proto.common.Metadata build() {
games.mythical.saga.sdk.proto.common.Metadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public games.mythical.saga.sdk.proto.common.Metadata buildPartial() {
games.mythical.saga.sdk.proto.common.Metadata result = new games.mythical.saga.sdk.proto.common.Metadata(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.description_ = description_;
result.image_ = image_;
result.externalUrl_ = externalUrl_;
result.backgroundColor_ = backgroundColor_;
result.animationUrl_ = animationUrl_;
result.youtubeUrl_ = youtubeUrl_;
if (attributesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.attributes_ = attributes_;
} else {
result.attributes_ = attributesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof games.mythical.saga.sdk.proto.common.Metadata) {
return mergeFrom((games.mythical.saga.sdk.proto.common.Metadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(games.mythical.saga.sdk.proto.common.Metadata other) {
if (other == games.mythical.saga.sdk.proto.common.Metadata.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getImage().isEmpty()) {
image_ = other.image_;
onChanged();
}
if (!other.getExternalUrl().isEmpty()) {
externalUrl_ = other.externalUrl_;
onChanged();
}
if (!other.getBackgroundColor().isEmpty()) {
backgroundColor_ = other.backgroundColor_;
onChanged();
}
if (!other.getAnimationUrl().isEmpty()) {
animationUrl_ = other.animationUrl_;
onChanged();
}
if (!other.getYoutubeUrl().isEmpty()) {
youtubeUrl_ = other.youtubeUrl_;
onChanged();
}
if (attributesBuilder_ == null) {
if (!other.attributes_.isEmpty()) {
if (attributes_.isEmpty()) {
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAttributesIsMutable();
attributes_.addAll(other.attributes_);
}
onChanged();
}
} else {
if (!other.attributes_.isEmpty()) {
if (attributesBuilder_.isEmpty()) {
attributesBuilder_.dispose();
attributesBuilder_ = null;
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000001);
attributesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributesFieldBuilder() : null;
} else {
attributesBuilder_.addAllMessages(other.attributes_);
}
}
}
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: {
name_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
description_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
image_ = input.readStringRequireUtf8();
break;
} // case 26
case 42: {
externalUrl_ = input.readStringRequireUtf8();
break;
} // case 42
case 50: {
backgroundColor_ = input.readStringRequireUtf8();
break;
} // case 50
case 58: {
animationUrl_ = input.readStringRequireUtf8();
break;
} // case 58
case 66: {
youtubeUrl_ = input.readStringRequireUtf8();
break;
} // case 66
case 74: {
games.mythical.saga.sdk.proto.common.MetadataAttribute m =
input.readMessage(
games.mythical.saga.sdk.proto.common.MetadataAttribute.parser(),
extensionRegistry);
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(m);
} else {
attributesBuilder_.addMessage(m);
}
break;
} // case 74
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of item
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of item
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of item
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of item
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of item
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the item
*
*
* string description = 2;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the item
*
*
* string description = 2;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the item
*
*
* string description = 2;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the item
*
*
* string description = 2;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the item
*
*
* string description = 2;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private java.lang.Object image_ = "";
/**
*
* URL to the image of the item
*
*
* string image = 3;
* @return The image.
*/
public java.lang.String getImage() {
java.lang.Object ref = image_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
image_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL to the image of the item
*
*
* string image = 3;
* @return The bytes for image.
*/
public com.google.protobuf.ByteString
getImageBytes() {
java.lang.Object ref = image_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
image_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL to the image of the item
*
*
* string image = 3;
* @param value The image to set.
* @return This builder for chaining.
*/
public Builder setImage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
image_ = value;
onChanged();
return this;
}
/**
*
* URL to the image of the item
*
*
* string image = 3;
* @return This builder for chaining.
*/
public Builder clearImage() {
image_ = getDefaultInstance().getImage();
onChanged();
return this;
}
/**
*
* URL to the image of the item
*
*
* string image = 3;
* @param value The bytes for image to set.
* @return This builder for chaining.
*/
public Builder setImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
image_ = value;
onChanged();
return this;
}
private java.lang.Object externalUrl_ = "";
/**
*
* URL to the item
*
*
* string external_url = 5;
* @return The externalUrl.
*/
public java.lang.String getExternalUrl() {
java.lang.Object ref = externalUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
externalUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL to the item
*
*
* string external_url = 5;
* @return The bytes for externalUrl.
*/
public com.google.protobuf.ByteString
getExternalUrlBytes() {
java.lang.Object ref = externalUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
externalUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL to the item
*
*
* string external_url = 5;
* @param value The externalUrl to set.
* @return This builder for chaining.
*/
public Builder setExternalUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
externalUrl_ = value;
onChanged();
return this;
}
/**
*
* URL to the item
*
*
* string external_url = 5;
* @return This builder for chaining.
*/
public Builder clearExternalUrl() {
externalUrl_ = getDefaultInstance().getExternalUrl();
onChanged();
return this;
}
/**
*
* URL to the item
*
*
* string external_url = 5;
* @param value The bytes for externalUrl to set.
* @return This builder for chaining.
*/
public Builder setExternalUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
externalUrl_ = value;
onChanged();
return this;
}
private java.lang.Object backgroundColor_ = "";
/**
*
* OpenSea background color
*
*
* string background_color = 6;
* @return The backgroundColor.
*/
public java.lang.String getBackgroundColor() {
java.lang.Object ref = backgroundColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
backgroundColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* OpenSea background color
*
*
* string background_color = 6;
* @return The bytes for backgroundColor.
*/
public com.google.protobuf.ByteString
getBackgroundColorBytes() {
java.lang.Object ref = backgroundColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
backgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* OpenSea background color
*
*
* string background_color = 6;
* @param value The backgroundColor to set.
* @return This builder for chaining.
*/
public Builder setBackgroundColor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
backgroundColor_ = value;
onChanged();
return this;
}
/**
*
* OpenSea background color
*
*
* string background_color = 6;
* @return This builder for chaining.
*/
public Builder clearBackgroundColor() {
backgroundColor_ = getDefaultInstance().getBackgroundColor();
onChanged();
return this;
}
/**
*
* OpenSea background color
*
*
* string background_color = 6;
* @param value The bytes for backgroundColor to set.
* @return This builder for chaining.
*/
public Builder setBackgroundColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
backgroundColor_ = value;
onChanged();
return this;
}
private java.lang.Object animationUrl_ = "";
/**
*
* URL to a media/animation file
*
*
* string animation_url = 7;
* @return The animationUrl.
*/
public java.lang.String getAnimationUrl() {
java.lang.Object ref = animationUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
animationUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL to a media/animation file
*
*
* string animation_url = 7;
* @return The bytes for animationUrl.
*/
public com.google.protobuf.ByteString
getAnimationUrlBytes() {
java.lang.Object ref = animationUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
animationUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL to a media/animation file
*
*
* string animation_url = 7;
* @param value The animationUrl to set.
* @return This builder for chaining.
*/
public Builder setAnimationUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
animationUrl_ = value;
onChanged();
return this;
}
/**
*
* URL to a media/animation file
*
*
* string animation_url = 7;
* @return This builder for chaining.
*/
public Builder clearAnimationUrl() {
animationUrl_ = getDefaultInstance().getAnimationUrl();
onChanged();
return this;
}
/**
*
* URL to a media/animation file
*
*
* string animation_url = 7;
* @param value The bytes for animationUrl to set.
* @return This builder for chaining.
*/
public Builder setAnimationUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
animationUrl_ = value;
onChanged();
return this;
}
private java.lang.Object youtubeUrl_ = "";
/**
*
* URL to a YouTube video
*
*
* string youtube_url = 8;
* @return The youtubeUrl.
*/
public java.lang.String getYoutubeUrl() {
java.lang.Object ref = youtubeUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
youtubeUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL to a YouTube video
*
*
* string youtube_url = 8;
* @return The bytes for youtubeUrl.
*/
public com.google.protobuf.ByteString
getYoutubeUrlBytes() {
java.lang.Object ref = youtubeUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
youtubeUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL to a YouTube video
*
*
* string youtube_url = 8;
* @param value The youtubeUrl to set.
* @return This builder for chaining.
*/
public Builder setYoutubeUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
youtubeUrl_ = value;
onChanged();
return this;
}
/**
*
* URL to a YouTube video
*
*
* string youtube_url = 8;
* @return This builder for chaining.
*/
public Builder clearYoutubeUrl() {
youtubeUrl_ = getDefaultInstance().getYoutubeUrl();
onChanged();
return this;
}
/**
*
* URL to a YouTube video
*
*
* string youtube_url = 8;
* @param value The bytes for youtubeUrl to set.
* @return This builder for chaining.
*/
public Builder setYoutubeUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
youtubeUrl_ = value;
onChanged();
return this;
}
private java.util.List attributes_ =
java.util.Collections.emptyList();
private void ensureAttributesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
attributes_ = new java.util.ArrayList(attributes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
games.mythical.saga.sdk.proto.common.MetadataAttribute, games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder, games.mythical.saga.sdk.proto.common.MetadataAttributeOrBuilder> attributesBuilder_;
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public java.util.List getAttributesList() {
if (attributesBuilder_ == null) {
return java.util.Collections.unmodifiableList(attributes_);
} else {
return attributesBuilder_.getMessageList();
}
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public int getAttributesCount() {
if (attributesBuilder_ == null) {
return attributes_.size();
} else {
return attributesBuilder_.getCount();
}
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public games.mythical.saga.sdk.proto.common.MetadataAttribute getAttributes(int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index);
} else {
return attributesBuilder_.getMessage(index);
}
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public Builder setAttributes(
int index, games.mythical.saga.sdk.proto.common.MetadataAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.set(index, value);
onChanged();
} else {
attributesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public Builder setAttributes(
int index, games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.set(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public Builder addAttributes(games.mythical.saga.sdk.proto.common.MetadataAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(value);
onChanged();
} else {
attributesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public Builder addAttributes(
int index, games.mythical.saga.sdk.proto.common.MetadataAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(index, value);
onChanged();
} else {
attributesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public Builder addAttributes(
games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public Builder addAttributes(
int index, games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public Builder addAllAttributes(
java.lang.Iterable extends games.mythical.saga.sdk.proto.common.MetadataAttribute> values) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributes_);
onChanged();
} else {
attributesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public Builder clearAttributes() {
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
attributesBuilder_.clear();
}
return this;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public Builder removeAttributes(int index) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.remove(index);
onChanged();
} else {
attributesBuilder_.remove(index);
}
return this;
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder getAttributesBuilder(
int index) {
return getAttributesFieldBuilder().getBuilder(index);
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public games.mythical.saga.sdk.proto.common.MetadataAttributeOrBuilder getAttributesOrBuilder(
int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index); } else {
return attributesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public java.util.List extends games.mythical.saga.sdk.proto.common.MetadataAttributeOrBuilder>
getAttributesOrBuilderList() {
if (attributesBuilder_ != null) {
return attributesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attributes_);
}
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder addAttributesBuilder() {
return getAttributesFieldBuilder().addBuilder(
games.mythical.saga.sdk.proto.common.MetadataAttribute.getDefaultInstance());
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder addAttributesBuilder(
int index) {
return getAttributesFieldBuilder().addBuilder(
index, games.mythical.saga.sdk.proto.common.MetadataAttribute.getDefaultInstance());
}
/**
*
* Metadata attributes
*
*
* repeated .saga.common.MetadataAttribute attributes = 9;
*/
public java.util.List
getAttributesBuilderList() {
return getAttributesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
games.mythical.saga.sdk.proto.common.MetadataAttribute, games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder, games.mythical.saga.sdk.proto.common.MetadataAttributeOrBuilder>
getAttributesFieldBuilder() {
if (attributesBuilder_ == null) {
attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
games.mythical.saga.sdk.proto.common.MetadataAttribute, games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder, games.mythical.saga.sdk.proto.common.MetadataAttributeOrBuilder>(
attributes_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
attributes_ = null;
}
return attributesBuilder_;
}
@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.common.Metadata)
}
// @@protoc_insertion_point(class_scope:saga.common.Metadata)
private static final games.mythical.saga.sdk.proto.common.Metadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new games.mythical.saga.sdk.proto.common.Metadata();
}
public static games.mythical.saga.sdk.proto.common.Metadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Metadata 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.common.Metadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}