POGOProtos.Data.Quests.QuestDialogOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Quests/QuestDialog.proto
package POGOProtos.Data.Quests;
public final class QuestDialogOuterClass {
private QuestDialogOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface QuestDialogOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.Quests.QuestDialog)
com.google.protobuf.MessageOrBuilder {
/**
* string text = 1;
*/
java.lang.String getText();
/**
* string text = 1;
*/
com.google.protobuf.ByteString
getTextBytes();
/**
* .POGOProtos.Data.Quests.QuestDialog.CharacterExpression expression = 2;
*/
int getExpressionValue();
/**
* .POGOProtos.Data.Quests.QuestDialog.CharacterExpression expression = 2;
*/
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression getExpression();
/**
* string image_uri = 3;
*/
java.lang.String getImageUri();
/**
* string image_uri = 3;
*/
com.google.protobuf.ByteString
getImageUriBytes();
/**
* .POGOProtos.Data.Quests.QuestDialog.Character character = 4;
*/
int getCharacterValue();
/**
* .POGOProtos.Data.Quests.QuestDialog.Character character = 4;
*/
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character getCharacter();
}
/**
* Protobuf type {@code POGOProtos.Data.Quests.QuestDialog}
*/
public static final class QuestDialog extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.Quests.QuestDialog)
QuestDialogOrBuilder {
private static final long serialVersionUID = 0L;
// Use QuestDialog.newBuilder() to construct.
private QuestDialog(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QuestDialog() {
text_ = "";
expression_ = 0;
imageUri_ = "";
character_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QuestDialog(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
text_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
expression_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
imageUri_ = s;
break;
}
case 32: {
int rawValue = input.readEnum();
character_ = rawValue;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Quests.QuestDialogOuterClass.internal_static_POGOProtos_Data_Quests_QuestDialog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Quests.QuestDialogOuterClass.internal_static_POGOProtos_Data_Quests_QuestDialog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.class, POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Builder.class);
}
/**
* Protobuf enum {@code POGOProtos.Data.Quests.QuestDialog.CharacterExpression}
*/
public enum CharacterExpression
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EXPRESSION_UNSET = 0;
*/
EXPRESSION_UNSET(0),
/**
* HAPPY = 1;
*/
HAPPY(1),
/**
* SYMPATHETIC = 2;
*/
SYMPATHETIC(2),
/**
* ENERGETIC = 3;
*/
ENERGETIC(3),
/**
* PUSHY = 4;
*/
PUSHY(4),
/**
* IMPATIENT = 5;
*/
IMPATIENT(5),
/**
* ADMIRATION = 6;
*/
ADMIRATION(6),
UNRECOGNIZED(-1),
;
/**
* EXPRESSION_UNSET = 0;
*/
public static final int EXPRESSION_UNSET_VALUE = 0;
/**
* HAPPY = 1;
*/
public static final int HAPPY_VALUE = 1;
/**
* SYMPATHETIC = 2;
*/
public static final int SYMPATHETIC_VALUE = 2;
/**
* ENERGETIC = 3;
*/
public static final int ENERGETIC_VALUE = 3;
/**
* PUSHY = 4;
*/
public static final int PUSHY_VALUE = 4;
/**
* IMPATIENT = 5;
*/
public static final int IMPATIENT_VALUE = 5;
/**
* ADMIRATION = 6;
*/
public static final int ADMIRATION_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CharacterExpression valueOf(int value) {
return forNumber(value);
}
public static CharacterExpression forNumber(int value) {
switch (value) {
case 0: return EXPRESSION_UNSET;
case 1: return HAPPY;
case 2: return SYMPATHETIC;
case 3: return ENERGETIC;
case 4: return PUSHY;
case 5: return IMPATIENT;
case 6: return ADMIRATION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CharacterExpression> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CharacterExpression findValueByNumber(int number) {
return CharacterExpression.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.getDescriptor().getEnumTypes().get(0);
}
private static final CharacterExpression[] VALUES = values();
public static CharacterExpression valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CharacterExpression(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Data.Quests.QuestDialog.CharacterExpression)
}
/**
* Protobuf enum {@code POGOProtos.Data.Quests.QuestDialog.Character}
*/
public enum Character
implements com.google.protobuf.ProtocolMessageEnum {
/**
* CHARACTER_UNSET = 0;
*/
CHARACTER_UNSET(0),
/**
* PROFESSOR_WILLOW = 1;
*/
PROFESSOR_WILLOW(1),
UNRECOGNIZED(-1),
;
/**
* CHARACTER_UNSET = 0;
*/
public static final int CHARACTER_UNSET_VALUE = 0;
/**
* PROFESSOR_WILLOW = 1;
*/
public static final int PROFESSOR_WILLOW_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Character valueOf(int value) {
return forNumber(value);
}
public static Character forNumber(int value) {
switch (value) {
case 0: return CHARACTER_UNSET;
case 1: return PROFESSOR_WILLOW;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Character> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Character findValueByNumber(int number) {
return Character.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.getDescriptor().getEnumTypes().get(1);
}
private static final Character[] VALUES = values();
public static Character valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Character(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Data.Quests.QuestDialog.Character)
}
public static final int TEXT_FIELD_NUMBER = 1;
private volatile java.lang.Object text_;
/**
* string text = 1;
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
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();
text_ = s;
return s;
}
}
/**
* string text = 1;
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPRESSION_FIELD_NUMBER = 2;
private int expression_;
/**
* .POGOProtos.Data.Quests.QuestDialog.CharacterExpression expression = 2;
*/
public int getExpressionValue() {
return expression_;
}
/**
* .POGOProtos.Data.Quests.QuestDialog.CharacterExpression expression = 2;
*/
public POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression getExpression() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression result = POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression.valueOf(expression_);
return result == null ? POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression.UNRECOGNIZED : result;
}
public static final int IMAGE_URI_FIELD_NUMBER = 3;
private volatile java.lang.Object imageUri_;
/**
* string image_uri = 3;
*/
public java.lang.String getImageUri() {
java.lang.Object ref = imageUri_;
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();
imageUri_ = s;
return s;
}
}
/**
* string image_uri = 3;
*/
public com.google.protobuf.ByteString
getImageUriBytes() {
java.lang.Object ref = imageUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHARACTER_FIELD_NUMBER = 4;
private int character_;
/**
* .POGOProtos.Data.Quests.QuestDialog.Character character = 4;
*/
public int getCharacterValue() {
return character_;
}
/**
* .POGOProtos.Data.Quests.QuestDialog.Character character = 4;
*/
public POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character getCharacter() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character result = POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character.valueOf(character_);
return result == null ? POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character.UNRECOGNIZED : result;
}
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 (!getTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
}
if (expression_ != POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression.EXPRESSION_UNSET.getNumber()) {
output.writeEnum(2, expression_);
}
if (!getImageUriBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUri_);
}
if (character_ != POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character.CHARACTER_UNSET.getNumber()) {
output.writeEnum(4, character_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
}
if (expression_ != POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression.EXPRESSION_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, expression_);
}
if (!getImageUriBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUri_);
}
if (character_ != POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character.CHARACTER_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, character_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog)) {
return super.equals(obj);
}
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog other = (POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog) obj;
boolean result = true;
result = result && getText()
.equals(other.getText());
result = result && expression_ == other.expression_;
result = result && getImageUri()
.equals(other.getImageUri());
result = result && character_ == other.character_;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
hash = (37 * hash) + EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + expression_;
hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER;
hash = (53 * hash) + getImageUri().hashCode();
hash = (37 * hash) + CHARACTER_FIELD_NUMBER;
hash = (53 * hash) + character_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog 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 POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog 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 POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog 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(POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog 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;
}
/**
* Protobuf type {@code POGOProtos.Data.Quests.QuestDialog}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.Quests.QuestDialog)
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.Quests.QuestDialogOuterClass.internal_static_POGOProtos_Data_Quests_QuestDialog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.Quests.QuestDialogOuterClass.internal_static_POGOProtos_Data_Quests_QuestDialog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.class, POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Builder.class);
}
// Construct using POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
text_ = "";
expression_ = 0;
imageUri_ = "";
character_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.Quests.QuestDialogOuterClass.internal_static_POGOProtos_Data_Quests_QuestDialog_descriptor;
}
@java.lang.Override
public POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog getDefaultInstanceForType() {
return POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog build() {
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog buildPartial() {
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog result = new POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog(this);
result.text_ = text_;
result.expression_ = expression_;
result.imageUri_ = imageUri_;
result.character_ = character_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog) {
return mergeFrom((POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog other) {
if (other == POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.getDefaultInstance()) return this;
if (!other.getText().isEmpty()) {
text_ = other.text_;
onChanged();
}
if (other.expression_ != 0) {
setExpressionValue(other.getExpressionValue());
}
if (!other.getImageUri().isEmpty()) {
imageUri_ = other.imageUri_;
onChanged();
}
if (other.character_ != 0) {
setCharacterValue(other.getCharacterValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object text_ = "";
/**
* string text = 1;
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string text = 1;
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string text = 1;
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
text_ = value;
onChanged();
return this;
}
/**
* string text = 1;
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
* string text = 1;
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
text_ = value;
onChanged();
return this;
}
private int expression_ = 0;
/**
* .POGOProtos.Data.Quests.QuestDialog.CharacterExpression expression = 2;
*/
public int getExpressionValue() {
return expression_;
}
/**
* .POGOProtos.Data.Quests.QuestDialog.CharacterExpression expression = 2;
*/
public Builder setExpressionValue(int value) {
expression_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Data.Quests.QuestDialog.CharacterExpression expression = 2;
*/
public POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression getExpression() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression result = POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression.valueOf(expression_);
return result == null ? POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Data.Quests.QuestDialog.CharacterExpression expression = 2;
*/
public Builder setExpression(POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.CharacterExpression value) {
if (value == null) {
throw new NullPointerException();
}
expression_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Data.Quests.QuestDialog.CharacterExpression expression = 2;
*/
public Builder clearExpression() {
expression_ = 0;
onChanged();
return this;
}
private java.lang.Object imageUri_ = "";
/**
* string image_uri = 3;
*/
public java.lang.String getImageUri() {
java.lang.Object ref = imageUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
imageUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string image_uri = 3;
*/
public com.google.protobuf.ByteString
getImageUriBytes() {
java.lang.Object ref = imageUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string image_uri = 3;
*/
public Builder setImageUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
imageUri_ = value;
onChanged();
return this;
}
/**
* string image_uri = 3;
*/
public Builder clearImageUri() {
imageUri_ = getDefaultInstance().getImageUri();
onChanged();
return this;
}
/**
* string image_uri = 3;
*/
public Builder setImageUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
imageUri_ = value;
onChanged();
return this;
}
private int character_ = 0;
/**
* .POGOProtos.Data.Quests.QuestDialog.Character character = 4;
*/
public int getCharacterValue() {
return character_;
}
/**
* .POGOProtos.Data.Quests.QuestDialog.Character character = 4;
*/
public Builder setCharacterValue(int value) {
character_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Data.Quests.QuestDialog.Character character = 4;
*/
public POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character getCharacter() {
@SuppressWarnings("deprecation")
POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character result = POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character.valueOf(character_);
return result == null ? POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Data.Quests.QuestDialog.Character character = 4;
*/
public Builder setCharacter(POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog.Character value) {
if (value == null) {
throw new NullPointerException();
}
character_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Data.Quests.QuestDialog.Character character = 4;
*/
public Builder clearCharacter() {
character_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:POGOProtos.Data.Quests.QuestDialog)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.Quests.QuestDialog)
private static final POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog();
}
public static POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QuestDialog parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QuestDialog(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public POGOProtos.Data.Quests.QuestDialogOuterClass.QuestDialog getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_Quests_QuestDialog_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_Quests_QuestDialog_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n(POGOProtos/Data/Quests/QuestDialog.pro" +
"to\022\026POGOProtos.Data.Quests\"\370\002\n\013QuestDial" +
"og\022\014\n\004text\030\001 \001(\t\022K\n\nexpression\030\002 \001(\01627.P" +
"OGOProtos.Data.Quests.QuestDialog.Charac" +
"terExpression\022\021\n\timage_uri\030\003 \001(\t\022@\n\tchar" +
"acter\030\004 \001(\0162-.POGOProtos.Data.Quests.Que" +
"stDialog.Character\"\200\001\n\023CharacterExpressi" +
"on\022\024\n\020EXPRESSION_UNSET\020\000\022\t\n\005HAPPY\020\001\022\017\n\013S" +
"YMPATHETIC\020\002\022\r\n\tENERGETIC\020\003\022\t\n\005PUSHY\020\004\022\r" +
"\n\tIMPATIENT\020\005\022\016\n\nADMIRATION\020\006\"6\n\tCharact" +
"er\022\023\n\017CHARACTER_UNSET\020\000\022\024\n\020PROFESSOR_WIL" +
"LOW\020\001b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_POGOProtos_Data_Quests_QuestDialog_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_Quests_QuestDialog_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_Quests_QuestDialog_descriptor,
new java.lang.String[] { "Text", "Expression", "ImageUri", "Character", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy