All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openfeed.News Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed.proto
// Protobuf Java Version: 4.28.3

package org.openfeed;

/**
 * 
 * / News or informational message
 * 
* * Protobuf type {@code org.openfeed.News} */ public final class News extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.News) NewsOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", News.class.getName()); } // Use News.newBuilder() to construct. private News(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private News() { source_ = ""; languageCode_ = ""; headLine_ = ""; text_ = ""; symbols_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_News_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_News_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.News.class, org.openfeed.News.Builder.class); } public static final int ORIGINATIONTIME_FIELD_NUMBER = 1; private long originationTime_ = 0L; /** *
   * Origination time = UTC timestamp nano seconds since Unix epoch
   * 
* * sint64 originationTime = 1; * @return The originationTime. */ @java.lang.Override public long getOriginationTime() { return originationTime_; } public static final int SOURCE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object source_ = ""; /** * string source = 2; * @return The source. */ @java.lang.Override public java.lang.String getSource() { java.lang.Object ref = source_; 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(); source_ = s; return s; } } /** * string source = 2; * @return The bytes for source. */ @java.lang.Override public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LANGUAGECODE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** * string languageCode = 3; * @return The languageCode. */ @java.lang.Override public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; } } /** * string languageCode = 3; * @return The bytes for languageCode. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEADLINE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object headLine_ = ""; /** * string headLine = 4; * @return The headLine. */ @java.lang.Override public java.lang.String getHeadLine() { java.lang.Object ref = headLine_; 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(); headLine_ = s; return s; } } /** * string headLine = 4; * @return The bytes for headLine. */ @java.lang.Override public com.google.protobuf.ByteString getHeadLineBytes() { java.lang.Object ref = headLine_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headLine_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object text_ = ""; /** * string text = 5; * @return The text. */ @java.lang.Override 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 = 5; * @return The bytes for text. */ @java.lang.Override 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 SYMBOLS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList symbols_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string symbols = 6; * @return A list containing the symbols. */ public com.google.protobuf.ProtocolStringList getSymbolsList() { return symbols_; } /** * repeated string symbols = 6; * @return The count of symbols. */ public int getSymbolsCount() { return symbols_.size(); } /** * repeated string symbols = 6; * @param index The index of the element to return. * @return The symbols at the given index. */ public java.lang.String getSymbols(int index) { return symbols_.get(index); } /** * repeated string symbols = 6; * @param index The index of the value to return. * @return The bytes of the symbols at the given index. */ public com.google.protobuf.ByteString getSymbolsBytes(int index) { return symbols_.getByteString(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 (originationTime_ != 0L) { output.writeSInt64(1, originationTime_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, languageCode_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(headLine_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, headLine_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, text_); } for (int i = 0; i < symbols_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 6, symbols_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (originationTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(1, originationTime_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, languageCode_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(headLine_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, headLine_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, text_); } { int dataSize = 0; for (int i = 0; i < symbols_.size(); i++) { dataSize += computeStringSizeNoTag(symbols_.getRaw(i)); } size += dataSize; size += 1 * getSymbolsList().size(); } 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 org.openfeed.News)) { return super.equals(obj); } org.openfeed.News other = (org.openfeed.News) obj; if (getOriginationTime() != other.getOriginationTime()) return false; if (!getSource() .equals(other.getSource())) return false; if (!getLanguageCode() .equals(other.getLanguageCode())) return false; if (!getHeadLine() .equals(other.getHeadLine())) return false; if (!getText() .equals(other.getText())) return false; if (!getSymbolsList() .equals(other.getSymbolsList())) 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) + ORIGINATIONTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOriginationTime()); hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); hash = (37 * hash) + LANGUAGECODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + HEADLINE_FIELD_NUMBER; hash = (53 * hash) + getHeadLine().hashCode(); hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); if (getSymbolsCount() > 0) { hash = (37 * hash) + SYMBOLS_FIELD_NUMBER; hash = (53 * hash) + getSymbolsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.News parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.News parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.News parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.News parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.News parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.News parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.News parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.News parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.News parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.News parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.News parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.News parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.openfeed.News 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * / News or informational message
   * 
* * Protobuf type {@code org.openfeed.News} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.News) org.openfeed.NewsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_News_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_News_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.News.class, org.openfeed.News.Builder.class); } // Construct using org.openfeed.News.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; originationTime_ = 0L; source_ = ""; languageCode_ = ""; headLine_ = ""; text_ = ""; symbols_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.Openfeed.internal_static_org_openfeed_News_descriptor; } @java.lang.Override public org.openfeed.News getDefaultInstanceForType() { return org.openfeed.News.getDefaultInstance(); } @java.lang.Override public org.openfeed.News build() { org.openfeed.News result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.News buildPartial() { org.openfeed.News result = new org.openfeed.News(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.openfeed.News result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.originationTime_ = originationTime_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.source_ = source_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.languageCode_ = languageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.headLine_ = headLine_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.text_ = text_; } if (((from_bitField0_ & 0x00000020) != 0)) { symbols_.makeImmutable(); result.symbols_ = symbols_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.News) { return mergeFrom((org.openfeed.News)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.News other) { if (other == org.openfeed.News.getDefaultInstance()) return this; if (other.getOriginationTime() != 0L) { setOriginationTime(other.getOriginationTime()); } if (!other.getSource().isEmpty()) { source_ = other.source_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getHeadLine().isEmpty()) { headLine_ = other.headLine_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getText().isEmpty()) { text_ = other.text_; bitField0_ |= 0x00000010; onChanged(); } if (!other.symbols_.isEmpty()) { if (symbols_.isEmpty()) { symbols_ = other.symbols_; bitField0_ |= 0x00000020; } else { ensureSymbolsIsMutable(); symbols_.addAll(other.symbols_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { originationTime_ = input.readSInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { source_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { headLine_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { text_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { java.lang.String s = input.readStringRequireUtf8(); ensureSymbolsIsMutable(); symbols_.add(s); break; } // case 50 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 long originationTime_ ; /** *
     * Origination time = UTC timestamp nano seconds since Unix epoch
     * 
* * sint64 originationTime = 1; * @return The originationTime. */ @java.lang.Override public long getOriginationTime() { return originationTime_; } /** *
     * Origination time = UTC timestamp nano seconds since Unix epoch
     * 
* * sint64 originationTime = 1; * @param value The originationTime to set. * @return This builder for chaining. */ public Builder setOriginationTime(long value) { originationTime_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Origination time = UTC timestamp nano seconds since Unix epoch
     * 
* * sint64 originationTime = 1; * @return This builder for chaining. */ public Builder clearOriginationTime() { bitField0_ = (bitField0_ & ~0x00000001); originationTime_ = 0L; onChanged(); return this; } private java.lang.Object source_ = ""; /** * string source = 2; * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } else { return (java.lang.String) ref; } } /** * string source = 2; * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string source = 2; * @param value The source to set. * @return This builder for chaining. */ public Builder setSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } source_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string source = 2; * @return This builder for chaining. */ public Builder clearSource() { source_ = getDefaultInstance().getSource(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string source = 2; * @param value The bytes for source to set. * @return This builder for chaining. */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); source_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object languageCode_ = ""; /** * string languageCode = 3; * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * string languageCode = 3; * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string languageCode = 3; * @param value The languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string languageCode = 3; * @return This builder for chaining. */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string languageCode = 3; * @param value The bytes for languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object headLine_ = ""; /** * string headLine = 4; * @return The headLine. */ public java.lang.String getHeadLine() { java.lang.Object ref = headLine_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headLine_ = s; return s; } else { return (java.lang.String) ref; } } /** * string headLine = 4; * @return The bytes for headLine. */ public com.google.protobuf.ByteString getHeadLineBytes() { java.lang.Object ref = headLine_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headLine_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string headLine = 4; * @param value The headLine to set. * @return This builder for chaining. */ public Builder setHeadLine( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headLine_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string headLine = 4; * @return This builder for chaining. */ public Builder clearHeadLine() { headLine_ = getDefaultInstance().getHeadLine(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string headLine = 4; * @param value The bytes for headLine to set. * @return This builder for chaining. */ public Builder setHeadLineBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headLine_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object text_ = ""; /** * string text = 5; * @return The text. */ 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 = 5; * @return The bytes for text. */ 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 = 5; * @param value The text to set. * @return This builder for chaining. */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } text_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string text = 5; * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string text = 5; * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); text_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList symbols_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSymbolsIsMutable() { if (!symbols_.isModifiable()) { symbols_ = new com.google.protobuf.LazyStringArrayList(symbols_); } bitField0_ |= 0x00000020; } /** * repeated string symbols = 6; * @return A list containing the symbols. */ public com.google.protobuf.ProtocolStringList getSymbolsList() { symbols_.makeImmutable(); return symbols_; } /** * repeated string symbols = 6; * @return The count of symbols. */ public int getSymbolsCount() { return symbols_.size(); } /** * repeated string symbols = 6; * @param index The index of the element to return. * @return The symbols at the given index. */ public java.lang.String getSymbols(int index) { return symbols_.get(index); } /** * repeated string symbols = 6; * @param index The index of the value to return. * @return The bytes of the symbols at the given index. */ public com.google.protobuf.ByteString getSymbolsBytes(int index) { return symbols_.getByteString(index); } /** * repeated string symbols = 6; * @param index The index to set the value at. * @param value The symbols to set. * @return This builder for chaining. */ public Builder setSymbols( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSymbolsIsMutable(); symbols_.set(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string symbols = 6; * @param value The symbols to add. * @return This builder for chaining. */ public Builder addSymbols( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSymbolsIsMutable(); symbols_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string symbols = 6; * @param values The symbols to add. * @return This builder for chaining. */ public Builder addAllSymbols( java.lang.Iterable values) { ensureSymbolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, symbols_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string symbols = 6; * @return This builder for chaining. */ public Builder clearSymbols() { symbols_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } /** * repeated string symbols = 6; * @param value The bytes of the symbols to add. * @return This builder for chaining. */ public Builder addSymbolsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSymbolsIsMutable(); symbols_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.openfeed.News) } // @@protoc_insertion_point(class_scope:org.openfeed.News) private static final org.openfeed.News DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.News(); } public static org.openfeed.News getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public News 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 org.openfeed.News getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy