POGOProtos.Data.News.NewsArticleOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/News/NewsArticle.proto
package POGOProtos.Data.News;
public final class NewsArticleOuterClass {
private NewsArticleOuterClass() {}
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 NewsArticleOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Data.News.NewsArticle)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
*/
java.lang.String getId();
/**
* string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* repeated string image_url = 2;
*/
java.util.List
getImageUrlList();
/**
* repeated string image_url = 2;
*/
int getImageUrlCount();
/**
* repeated string image_url = 2;
*/
java.lang.String getImageUrl(int index);
/**
* repeated string image_url = 2;
*/
com.google.protobuf.ByteString
getImageUrlBytes(int index);
/**
* string header_key = 3;
*/
java.lang.String getHeaderKey();
/**
* string header_key = 3;
*/
com.google.protobuf.ByteString
getHeaderKeyBytes();
/**
* string subheader_key = 4;
*/
java.lang.String getSubheaderKey();
/**
* string subheader_key = 4;
*/
com.google.protobuf.ByteString
getSubheaderKeyBytes();
/**
* string main_text_key = 5;
*/
java.lang.String getMainTextKey();
/**
* string main_text_key = 5;
*/
com.google.protobuf.ByteString
getMainTextKeyBytes();
/**
* int64 timestamp = 6;
*/
long getTimestamp();
/**
* .POGOProtos.Data.News.NewsArticle.NewsTemplate template = 7;
*/
int getTemplateValue();
/**
* .POGOProtos.Data.News.NewsArticle.NewsTemplate template = 7;
*/
POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate getTemplate();
/**
* bool enabled = 8;
*/
boolean getEnabled();
/**
* bool article_read = 9;
*/
boolean getArticleRead();
}
/**
* Protobuf type {@code POGOProtos.Data.News.NewsArticle}
*/
public static final class NewsArticle extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:POGOProtos.Data.News.NewsArticle)
NewsArticleOrBuilder {
private static final long serialVersionUID = 0L;
// Use NewsArticle.newBuilder() to construct.
private NewsArticle(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NewsArticle() {
id_ = "";
imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
headerKey_ = "";
subheaderKey_ = "";
mainTextKey_ = "";
timestamp_ = 0L;
template_ = 0;
enabled_ = false;
articleRead_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NewsArticle(
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();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
imageUrl_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
imageUrl_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
headerKey_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
subheaderKey_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
mainTextKey_ = s;
break;
}
case 48: {
timestamp_ = input.readInt64();
break;
}
case 56: {
int rawValue = input.readEnum();
template_ = rawValue;
break;
}
case 64: {
enabled_ = input.readBool();
break;
}
case 72: {
articleRead_ = input.readBool();
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 {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
imageUrl_ = imageUrl_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.News.NewsArticleOuterClass.internal_static_POGOProtos_Data_News_NewsArticle_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.News.NewsArticleOuterClass.internal_static_POGOProtos_Data_News_NewsArticle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.class, POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.Builder.class);
}
/**
* Protobuf enum {@code POGOProtos.Data.News.NewsArticle.NewsTemplate}
*/
public enum NewsTemplate
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNSET = 0;
*/
UNSET(0),
/**
* DEFAULT_TEMPLATE = 1;
*/
DEFAULT_TEMPLATE(1),
UNRECOGNIZED(-1),
;
/**
* UNSET = 0;
*/
public static final int UNSET_VALUE = 0;
/**
* DEFAULT_TEMPLATE = 1;
*/
public static final int DEFAULT_TEMPLATE_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 NewsTemplate valueOf(int value) {
return forNumber(value);
}
public static NewsTemplate forNumber(int value) {
switch (value) {
case 0: return UNSET;
case 1: return DEFAULT_TEMPLATE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
NewsTemplate> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public NewsTemplate findValueByNumber(int number) {
return NewsTemplate.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.News.NewsArticleOuterClass.NewsArticle.getDescriptor().getEnumTypes().get(0);
}
private static final NewsTemplate[] VALUES = values();
public static NewsTemplate 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 NewsTemplate(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Data.News.NewsArticle.NewsTemplate)
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
* string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMAGE_URL_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList imageUrl_;
/**
* repeated string image_url = 2;
*/
public com.google.protobuf.ProtocolStringList
getImageUrlList() {
return imageUrl_;
}
/**
* repeated string image_url = 2;
*/
public int getImageUrlCount() {
return imageUrl_.size();
}
/**
* repeated string image_url = 2;
*/
public java.lang.String getImageUrl(int index) {
return imageUrl_.get(index);
}
/**
* repeated string image_url = 2;
*/
public com.google.protobuf.ByteString
getImageUrlBytes(int index) {
return imageUrl_.getByteString(index);
}
public static final int HEADER_KEY_FIELD_NUMBER = 3;
private volatile java.lang.Object headerKey_;
/**
* string header_key = 3;
*/
public java.lang.String getHeaderKey() {
java.lang.Object ref = headerKey_;
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();
headerKey_ = s;
return s;
}
}
/**
* string header_key = 3;
*/
public com.google.protobuf.ByteString
getHeaderKeyBytes() {
java.lang.Object ref = headerKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
headerKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBHEADER_KEY_FIELD_NUMBER = 4;
private volatile java.lang.Object subheaderKey_;
/**
* string subheader_key = 4;
*/
public java.lang.String getSubheaderKey() {
java.lang.Object ref = subheaderKey_;
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();
subheaderKey_ = s;
return s;
}
}
/**
* string subheader_key = 4;
*/
public com.google.protobuf.ByteString
getSubheaderKeyBytes() {
java.lang.Object ref = subheaderKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subheaderKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAIN_TEXT_KEY_FIELD_NUMBER = 5;
private volatile java.lang.Object mainTextKey_;
/**
* string main_text_key = 5;
*/
public java.lang.String getMainTextKey() {
java.lang.Object ref = mainTextKey_;
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();
mainTextKey_ = s;
return s;
}
}
/**
* string main_text_key = 5;
*/
public com.google.protobuf.ByteString
getMainTextKeyBytes() {
java.lang.Object ref = mainTextKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mainTextKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 6;
private long timestamp_;
/**
* int64 timestamp = 6;
*/
public long getTimestamp() {
return timestamp_;
}
public static final int TEMPLATE_FIELD_NUMBER = 7;
private int template_;
/**
* .POGOProtos.Data.News.NewsArticle.NewsTemplate template = 7;
*/
public int getTemplateValue() {
return template_;
}
/**
* .POGOProtos.Data.News.NewsArticle.NewsTemplate template = 7;
*/
public POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate getTemplate() {
@SuppressWarnings("deprecation")
POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate result = POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate.valueOf(template_);
return result == null ? POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate.UNRECOGNIZED : result;
}
public static final int ENABLED_FIELD_NUMBER = 8;
private boolean enabled_;
/**
* bool enabled = 8;
*/
public boolean getEnabled() {
return enabled_;
}
public static final int ARTICLE_READ_FIELD_NUMBER = 9;
private boolean articleRead_;
/**
* bool article_read = 9;
*/
public boolean getArticleRead() {
return articleRead_;
}
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 (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
for (int i = 0; i < imageUrl_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, imageUrl_.getRaw(i));
}
if (!getHeaderKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, headerKey_);
}
if (!getSubheaderKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subheaderKey_);
}
if (!getMainTextKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mainTextKey_);
}
if (timestamp_ != 0L) {
output.writeInt64(6, timestamp_);
}
if (template_ != POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate.UNSET.getNumber()) {
output.writeEnum(7, template_);
}
if (enabled_ != false) {
output.writeBool(8, enabled_);
}
if (articleRead_ != false) {
output.writeBool(9, articleRead_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
{
int dataSize = 0;
for (int i = 0; i < imageUrl_.size(); i++) {
dataSize += computeStringSizeNoTag(imageUrl_.getRaw(i));
}
size += dataSize;
size += 1 * getImageUrlList().size();
}
if (!getHeaderKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, headerKey_);
}
if (!getSubheaderKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, subheaderKey_);
}
if (!getMainTextKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, mainTextKey_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, timestamp_);
}
if (template_ != POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate.UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, template_);
}
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, enabled_);
}
if (articleRead_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, articleRead_);
}
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.News.NewsArticleOuterClass.NewsArticle)) {
return super.equals(obj);
}
POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle other = (POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle) obj;
boolean result = true;
result = result && getId()
.equals(other.getId());
result = result && getImageUrlList()
.equals(other.getImageUrlList());
result = result && getHeaderKey()
.equals(other.getHeaderKey());
result = result && getSubheaderKey()
.equals(other.getSubheaderKey());
result = result && getMainTextKey()
.equals(other.getMainTextKey());
result = result && (getTimestamp()
== other.getTimestamp());
result = result && template_ == other.template_;
result = result && (getEnabled()
== other.getEnabled());
result = result && (getArticleRead()
== other.getArticleRead());
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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (getImageUrlCount() > 0) {
hash = (37 * hash) + IMAGE_URL_FIELD_NUMBER;
hash = (53 * hash) + getImageUrlList().hashCode();
}
hash = (37 * hash) + HEADER_KEY_FIELD_NUMBER;
hash = (53 * hash) + getHeaderKey().hashCode();
hash = (37 * hash) + SUBHEADER_KEY_FIELD_NUMBER;
hash = (53 * hash) + getSubheaderKey().hashCode();
hash = (37 * hash) + MAIN_TEXT_KEY_FIELD_NUMBER;
hash = (53 * hash) + getMainTextKey().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (37 * hash) + TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + template_;
hash = (37 * hash) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnabled());
hash = (37 * hash) + ARTICLE_READ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getArticleRead());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle 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.News.NewsArticleOuterClass.NewsArticle parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle 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.News.NewsArticleOuterClass.NewsArticle parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle 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.News.NewsArticleOuterClass.NewsArticle parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle 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.News.NewsArticleOuterClass.NewsArticle 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.News.NewsArticle}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:POGOProtos.Data.News.NewsArticle)
POGOProtos.Data.News.NewsArticleOuterClass.NewsArticleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return POGOProtos.Data.News.NewsArticleOuterClass.internal_static_POGOProtos_Data_News_NewsArticle_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return POGOProtos.Data.News.NewsArticleOuterClass.internal_static_POGOProtos_Data_News_NewsArticle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.class, POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.Builder.class);
}
// Construct using POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.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();
id_ = "";
imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
headerKey_ = "";
subheaderKey_ = "";
mainTextKey_ = "";
timestamp_ = 0L;
template_ = 0;
enabled_ = false;
articleRead_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return POGOProtos.Data.News.NewsArticleOuterClass.internal_static_POGOProtos_Data_News_NewsArticle_descriptor;
}
@java.lang.Override
public POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle getDefaultInstanceForType() {
return POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.getDefaultInstance();
}
@java.lang.Override
public POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle build() {
POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle buildPartial() {
POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle result = new POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.id_ = id_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
imageUrl_ = imageUrl_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.imageUrl_ = imageUrl_;
result.headerKey_ = headerKey_;
result.subheaderKey_ = subheaderKey_;
result.mainTextKey_ = mainTextKey_;
result.timestamp_ = timestamp_;
result.template_ = template_;
result.enabled_ = enabled_;
result.articleRead_ = articleRead_;
result.bitField0_ = to_bitField0_;
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.News.NewsArticleOuterClass.NewsArticle) {
return mergeFrom((POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle other) {
if (other == POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.imageUrl_.isEmpty()) {
if (imageUrl_.isEmpty()) {
imageUrl_ = other.imageUrl_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureImageUrlIsMutable();
imageUrl_.addAll(other.imageUrl_);
}
onChanged();
}
if (!other.getHeaderKey().isEmpty()) {
headerKey_ = other.headerKey_;
onChanged();
}
if (!other.getSubheaderKey().isEmpty()) {
subheaderKey_ = other.subheaderKey_;
onChanged();
}
if (!other.getMainTextKey().isEmpty()) {
mainTextKey_ = other.mainTextKey_;
onChanged();
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (other.template_ != 0) {
setTemplateValue(other.getTemplateValue());
}
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
if (other.getArticleRead() != false) {
setArticleRead(other.getArticleRead());
}
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.News.NewsArticleOuterClass.NewsArticle parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
* string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* string id = 1;
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureImageUrlIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
imageUrl_ = new com.google.protobuf.LazyStringArrayList(imageUrl_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string image_url = 2;
*/
public com.google.protobuf.ProtocolStringList
getImageUrlList() {
return imageUrl_.getUnmodifiableView();
}
/**
* repeated string image_url = 2;
*/
public int getImageUrlCount() {
return imageUrl_.size();
}
/**
* repeated string image_url = 2;
*/
public java.lang.String getImageUrl(int index) {
return imageUrl_.get(index);
}
/**
* repeated string image_url = 2;
*/
public com.google.protobuf.ByteString
getImageUrlBytes(int index) {
return imageUrl_.getByteString(index);
}
/**
* repeated string image_url = 2;
*/
public Builder setImageUrl(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureImageUrlIsMutable();
imageUrl_.set(index, value);
onChanged();
return this;
}
/**
* repeated string image_url = 2;
*/
public Builder addImageUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureImageUrlIsMutable();
imageUrl_.add(value);
onChanged();
return this;
}
/**
* repeated string image_url = 2;
*/
public Builder addAllImageUrl(
java.lang.Iterable values) {
ensureImageUrlIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, imageUrl_);
onChanged();
return this;
}
/**
* repeated string image_url = 2;
*/
public Builder clearImageUrl() {
imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string image_url = 2;
*/
public Builder addImageUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureImageUrlIsMutable();
imageUrl_.add(value);
onChanged();
return this;
}
private java.lang.Object headerKey_ = "";
/**
* string header_key = 3;
*/
public java.lang.String getHeaderKey() {
java.lang.Object ref = headerKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
headerKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string header_key = 3;
*/
public com.google.protobuf.ByteString
getHeaderKeyBytes() {
java.lang.Object ref = headerKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
headerKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string header_key = 3;
*/
public Builder setHeaderKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
headerKey_ = value;
onChanged();
return this;
}
/**
* string header_key = 3;
*/
public Builder clearHeaderKey() {
headerKey_ = getDefaultInstance().getHeaderKey();
onChanged();
return this;
}
/**
* string header_key = 3;
*/
public Builder setHeaderKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
headerKey_ = value;
onChanged();
return this;
}
private java.lang.Object subheaderKey_ = "";
/**
* string subheader_key = 4;
*/
public java.lang.String getSubheaderKey() {
java.lang.Object ref = subheaderKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subheaderKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string subheader_key = 4;
*/
public com.google.protobuf.ByteString
getSubheaderKeyBytes() {
java.lang.Object ref = subheaderKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subheaderKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string subheader_key = 4;
*/
public Builder setSubheaderKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subheaderKey_ = value;
onChanged();
return this;
}
/**
* string subheader_key = 4;
*/
public Builder clearSubheaderKey() {
subheaderKey_ = getDefaultInstance().getSubheaderKey();
onChanged();
return this;
}
/**
* string subheader_key = 4;
*/
public Builder setSubheaderKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subheaderKey_ = value;
onChanged();
return this;
}
private java.lang.Object mainTextKey_ = "";
/**
* string main_text_key = 5;
*/
public java.lang.String getMainTextKey() {
java.lang.Object ref = mainTextKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mainTextKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string main_text_key = 5;
*/
public com.google.protobuf.ByteString
getMainTextKeyBytes() {
java.lang.Object ref = mainTextKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mainTextKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string main_text_key = 5;
*/
public Builder setMainTextKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
mainTextKey_ = value;
onChanged();
return this;
}
/**
* string main_text_key = 5;
*/
public Builder clearMainTextKey() {
mainTextKey_ = getDefaultInstance().getMainTextKey();
onChanged();
return this;
}
/**
* string main_text_key = 5;
*/
public Builder setMainTextKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
mainTextKey_ = value;
onChanged();
return this;
}
private long timestamp_ ;
/**
* int64 timestamp = 6;
*/
public long getTimestamp() {
return timestamp_;
}
/**
* int64 timestamp = 6;
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
* int64 timestamp = 6;
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
private int template_ = 0;
/**
* .POGOProtos.Data.News.NewsArticle.NewsTemplate template = 7;
*/
public int getTemplateValue() {
return template_;
}
/**
* .POGOProtos.Data.News.NewsArticle.NewsTemplate template = 7;
*/
public Builder setTemplateValue(int value) {
template_ = value;
onChanged();
return this;
}
/**
* .POGOProtos.Data.News.NewsArticle.NewsTemplate template = 7;
*/
public POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate getTemplate() {
@SuppressWarnings("deprecation")
POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate result = POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate.valueOf(template_);
return result == null ? POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate.UNRECOGNIZED : result;
}
/**
* .POGOProtos.Data.News.NewsArticle.NewsTemplate template = 7;
*/
public Builder setTemplate(POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle.NewsTemplate value) {
if (value == null) {
throw new NullPointerException();
}
template_ = value.getNumber();
onChanged();
return this;
}
/**
* .POGOProtos.Data.News.NewsArticle.NewsTemplate template = 7;
*/
public Builder clearTemplate() {
template_ = 0;
onChanged();
return this;
}
private boolean enabled_ ;
/**
* bool enabled = 8;
*/
public boolean getEnabled() {
return enabled_;
}
/**
* bool enabled = 8;
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
* bool enabled = 8;
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
private boolean articleRead_ ;
/**
* bool article_read = 9;
*/
public boolean getArticleRead() {
return articleRead_;
}
/**
* bool article_read = 9;
*/
public Builder setArticleRead(boolean value) {
articleRead_ = value;
onChanged();
return this;
}
/**
* bool article_read = 9;
*/
public Builder clearArticleRead() {
articleRead_ = false;
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.News.NewsArticle)
}
// @@protoc_insertion_point(class_scope:POGOProtos.Data.News.NewsArticle)
private static final POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle();
}
public static POGOProtos.Data.News.NewsArticleOuterClass.NewsArticle getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NewsArticle parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NewsArticle(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.News.NewsArticleOuterClass.NewsArticle getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_POGOProtos_Data_News_NewsArticle_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_POGOProtos_Data_News_NewsArticle_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/News/NewsArticle.proto" +
"\022\024POGOProtos.Data.News\"\233\002\n\013NewsArticle\022\n" +
"\n\002id\030\001 \001(\t\022\021\n\timage_url\030\002 \003(\t\022\022\n\nheader_" +
"key\030\003 \001(\t\022\025\n\rsubheader_key\030\004 \001(\t\022\025\n\rmain" +
"_text_key\030\005 \001(\t\022\021\n\ttimestamp\030\006 \001(\003\022@\n\010te" +
"mplate\030\007 \001(\0162..POGOProtos.Data.News.News" +
"Article.NewsTemplate\022\017\n\007enabled\030\010 \001(\010\022\024\n" +
"\014article_read\030\t \001(\010\"/\n\014NewsTemplate\022\t\n\005U" +
"NSET\020\000\022\024\n\020DEFAULT_TEMPLATE\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_News_NewsArticle_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_POGOProtos_Data_News_NewsArticle_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_POGOProtos_Data_News_NewsArticle_descriptor,
new java.lang.String[] { "Id", "ImageUrl", "HeaderKey", "SubheaderKey", "MainTextKey", "Timestamp", "Template", "Enabled", "ArticleRead", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy