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

main.java.com.streamlayer.interactive.feed.TweetHistory Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/interactive/feed/interactive.feed.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.interactive.feed;

/**
 * Protobuf type {@code streamlayer.interactive.feed.TweetHistory}
 */
public  final class TweetHistory extends
    com.google.protobuf.GeneratedMessageLite<
        TweetHistory, TweetHistory.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.interactive.feed.TweetHistory)
    TweetHistoryOrBuilder {
  private TweetHistory() {
    tweetId_ = "";
    title_ = "";
    image_ = "";
    body_ = "";
    account_ = "";
  }
  private int bitField0_;
  public static final int TWEET_ID_FIELD_NUMBER = 1;
  private java.lang.String tweetId_;
  /**
   * string tweet_id = 1 [json_name = "tweetId"];
   * @return The tweetId.
   */
  @java.lang.Override
  public java.lang.String getTweetId() {
    return tweetId_;
  }
  /**
   * string tweet_id = 1 [json_name = "tweetId"];
   * @return The bytes for tweetId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTweetIdBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(tweetId_);
  }
  /**
   * string tweet_id = 1 [json_name = "tweetId"];
   * @param value The tweetId to set.
   */
  private void setTweetId(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    tweetId_ = value;
  }
  /**
   * string tweet_id = 1 [json_name = "tweetId"];
   */
  private void clearTweetId() {

    tweetId_ = getDefaultInstance().getTweetId();
  }
  /**
   * string tweet_id = 1 [json_name = "tweetId"];
   * @param value The bytes for tweetId to set.
   */
  private void setTweetIdBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    tweetId_ = value.toStringUtf8();

  }

  public static final int TITLE_FIELD_NUMBER = 2;
  private java.lang.String title_;
  /**
   * string title = 2 [json_name = "title"];
   * @return The title.
   */
  @java.lang.Override
  public java.lang.String getTitle() {
    return title_;
  }
  /**
   * string title = 2 [json_name = "title"];
   * @return The bytes for title.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTitleBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(title_);
  }
  /**
   * string title = 2 [json_name = "title"];
   * @param value The title to set.
   */
  private void setTitle(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    title_ = value;
  }
  /**
   * string title = 2 [json_name = "title"];
   */
  private void clearTitle() {

    title_ = getDefaultInstance().getTitle();
  }
  /**
   * string title = 2 [json_name = "title"];
   * @param value The bytes for title to set.
   */
  private void setTitleBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    title_ = value.toStringUtf8();

  }

  public static final int IMAGE_FIELD_NUMBER = 3;
  private java.lang.String image_;
  /**
   * string image = 3 [json_name = "image"];
   * @return The image.
   */
  @java.lang.Override
  public java.lang.String getImage() {
    return image_;
  }
  /**
   * string image = 3 [json_name = "image"];
   * @return The bytes for image.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getImageBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(image_);
  }
  /**
   * string image = 3 [json_name = "image"];
   * @param value The image to set.
   */
  private void setImage(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    image_ = value;
  }
  /**
   * string image = 3 [json_name = "image"];
   */
  private void clearImage() {

    image_ = getDefaultInstance().getImage();
  }
  /**
   * string image = 3 [json_name = "image"];
   * @param value The bytes for image to set.
   */
  private void setImageBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    image_ = value.toStringUtf8();

  }

  public static final int BODY_FIELD_NUMBER = 4;
  private java.lang.String body_;
  /**
   * string body = 4 [json_name = "body"];
   * @return The body.
   */
  @java.lang.Override
  public java.lang.String getBody() {
    return body_;
  }
  /**
   * string body = 4 [json_name = "body"];
   * @return The bytes for body.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getBodyBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(body_);
  }
  /**
   * string body = 4 [json_name = "body"];
   * @param value The body to set.
   */
  private void setBody(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    body_ = value;
  }
  /**
   * string body = 4 [json_name = "body"];
   */
  private void clearBody() {

    body_ = getDefaultInstance().getBody();
  }
  /**
   * string body = 4 [json_name = "body"];
   * @param value The bytes for body to set.
   */
  private void setBodyBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    body_ = value.toStringUtf8();

  }

  public static final int ACCOUNT_FIELD_NUMBER = 5;
  private java.lang.String account_;
  /**
   * string account = 5 [json_name = "account"];
   * @return The account.
   */
  @java.lang.Override
  public java.lang.String getAccount() {
    return account_;
  }
  /**
   * string account = 5 [json_name = "account"];
   * @return The bytes for account.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAccountBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(account_);
  }
  /**
   * string account = 5 [json_name = "account"];
   * @param value The account to set.
   */
  private void setAccount(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    account_ = value;
  }
  /**
   * string account = 5 [json_name = "account"];
   */
  private void clearAccount() {

    account_ = getDefaultInstance().getAccount();
  }
  /**
   * string account = 5 [json_name = "account"];
   * @param value The bytes for account to set.
   */
  private void setAccountBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    account_ = value.toStringUtf8();

  }

  public static final int ACCOUNT_VERIFIED_FIELD_NUMBER = 6;
  private boolean accountVerified_;
  /**
   * bool account_verified = 6 [json_name = "accountVerified"];
   * @return The accountVerified.
   */
  @java.lang.Override
  public boolean getAccountVerified() {
    return accountVerified_;
  }
  /**
   * bool account_verified = 6 [json_name = "accountVerified"];
   * @param value The accountVerified to set.
   */
  private void setAccountVerified(boolean value) {
    
    accountVerified_ = value;
  }
  /**
   * bool account_verified = 6 [json_name = "accountVerified"];
   */
  private void clearAccountVerified() {

    accountVerified_ = false;
  }

  public static final int TWEET_FIELD_NUMBER = 7;
  private com.streamlayer.social.Tweet tweet_;
  /**
   * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
   */
  @java.lang.Override
  public boolean hasTweet() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
   */
  @java.lang.Override
  public com.streamlayer.social.Tweet getTweet() {
    return tweet_ == null ? com.streamlayer.social.Tweet.getDefaultInstance() : tweet_;
  }
  /**
   * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
   */
  private void setTweet(com.streamlayer.social.Tweet value) {
    value.getClass();
  tweet_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeTweet(com.streamlayer.social.Tweet value) {
    value.getClass();
  if (tweet_ != null &&
        tweet_ != com.streamlayer.social.Tweet.getDefaultInstance()) {
      tweet_ =
        com.streamlayer.social.Tweet.newBuilder(tweet_).mergeFrom(value).buildPartial();
    } else {
      tweet_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
   */
  private void clearTweet() {  tweet_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static com.streamlayer.interactive.feed.TweetHistory parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.interactive.feed.TweetHistory parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.interactive.feed.TweetHistory parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.interactive.feed.TweetHistory parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.interactive.feed.TweetHistory parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.interactive.feed.TweetHistory parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.interactive.feed.TweetHistory parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.interactive.feed.TweetHistory parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static com.streamlayer.interactive.feed.TweetHistory parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.interactive.feed.TweetHistory parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.streamlayer.interactive.feed.TweetHistory parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.interactive.feed.TweetHistory parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static Builder newBuilder() {
    return (Builder) DEFAULT_INSTANCE.createBuilder();
  }
  public static Builder newBuilder(com.streamlayer.interactive.feed.TweetHistory prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

  /**
   * Protobuf type {@code streamlayer.interactive.feed.TweetHistory}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageLite.Builder<
        com.streamlayer.interactive.feed.TweetHistory, Builder> implements
      // @@protoc_insertion_point(builder_implements:streamlayer.interactive.feed.TweetHistory)
      com.streamlayer.interactive.feed.TweetHistoryOrBuilder {
    // Construct using com.streamlayer.interactive.feed.TweetHistory.newBuilder()
    private Builder() {
      super(DEFAULT_INSTANCE);
    }


    /**
     * string tweet_id = 1 [json_name = "tweetId"];
     * @return The tweetId.
     */
    @java.lang.Override
    public java.lang.String getTweetId() {
      return instance.getTweetId();
    }
    /**
     * string tweet_id = 1 [json_name = "tweetId"];
     * @return The bytes for tweetId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTweetIdBytes() {
      return instance.getTweetIdBytes();
    }
    /**
     * string tweet_id = 1 [json_name = "tweetId"];
     * @param value The tweetId to set.
     * @return This builder for chaining.
     */
    public Builder setTweetId(
        java.lang.String value) {
      copyOnWrite();
      instance.setTweetId(value);
      return this;
    }
    /**
     * string tweet_id = 1 [json_name = "tweetId"];
     * @return This builder for chaining.
     */
    public Builder clearTweetId() {
      copyOnWrite();
      instance.clearTweetId();
      return this;
    }
    /**
     * string tweet_id = 1 [json_name = "tweetId"];
     * @param value The bytes for tweetId to set.
     * @return This builder for chaining.
     */
    public Builder setTweetIdBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setTweetIdBytes(value);
      return this;
    }

    /**
     * string title = 2 [json_name = "title"];
     * @return The title.
     */
    @java.lang.Override
    public java.lang.String getTitle() {
      return instance.getTitle();
    }
    /**
     * string title = 2 [json_name = "title"];
     * @return The bytes for title.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTitleBytes() {
      return instance.getTitleBytes();
    }
    /**
     * string title = 2 [json_name = "title"];
     * @param value The title to set.
     * @return This builder for chaining.
     */
    public Builder setTitle(
        java.lang.String value) {
      copyOnWrite();
      instance.setTitle(value);
      return this;
    }
    /**
     * string title = 2 [json_name = "title"];
     * @return This builder for chaining.
     */
    public Builder clearTitle() {
      copyOnWrite();
      instance.clearTitle();
      return this;
    }
    /**
     * string title = 2 [json_name = "title"];
     * @param value The bytes for title to set.
     * @return This builder for chaining.
     */
    public Builder setTitleBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setTitleBytes(value);
      return this;
    }

    /**
     * string image = 3 [json_name = "image"];
     * @return The image.
     */
    @java.lang.Override
    public java.lang.String getImage() {
      return instance.getImage();
    }
    /**
     * string image = 3 [json_name = "image"];
     * @return The bytes for image.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getImageBytes() {
      return instance.getImageBytes();
    }
    /**
     * string image = 3 [json_name = "image"];
     * @param value The image to set.
     * @return This builder for chaining.
     */
    public Builder setImage(
        java.lang.String value) {
      copyOnWrite();
      instance.setImage(value);
      return this;
    }
    /**
     * string image = 3 [json_name = "image"];
     * @return This builder for chaining.
     */
    public Builder clearImage() {
      copyOnWrite();
      instance.clearImage();
      return this;
    }
    /**
     * string image = 3 [json_name = "image"];
     * @param value The bytes for image to set.
     * @return This builder for chaining.
     */
    public Builder setImageBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setImageBytes(value);
      return this;
    }

    /**
     * string body = 4 [json_name = "body"];
     * @return The body.
     */
    @java.lang.Override
    public java.lang.String getBody() {
      return instance.getBody();
    }
    /**
     * string body = 4 [json_name = "body"];
     * @return The bytes for body.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getBodyBytes() {
      return instance.getBodyBytes();
    }
    /**
     * string body = 4 [json_name = "body"];
     * @param value The body to set.
     * @return This builder for chaining.
     */
    public Builder setBody(
        java.lang.String value) {
      copyOnWrite();
      instance.setBody(value);
      return this;
    }
    /**
     * string body = 4 [json_name = "body"];
     * @return This builder for chaining.
     */
    public Builder clearBody() {
      copyOnWrite();
      instance.clearBody();
      return this;
    }
    /**
     * string body = 4 [json_name = "body"];
     * @param value The bytes for body to set.
     * @return This builder for chaining.
     */
    public Builder setBodyBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setBodyBytes(value);
      return this;
    }

    /**
     * string account = 5 [json_name = "account"];
     * @return The account.
     */
    @java.lang.Override
    public java.lang.String getAccount() {
      return instance.getAccount();
    }
    /**
     * string account = 5 [json_name = "account"];
     * @return The bytes for account.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAccountBytes() {
      return instance.getAccountBytes();
    }
    /**
     * string account = 5 [json_name = "account"];
     * @param value The account to set.
     * @return This builder for chaining.
     */
    public Builder setAccount(
        java.lang.String value) {
      copyOnWrite();
      instance.setAccount(value);
      return this;
    }
    /**
     * string account = 5 [json_name = "account"];
     * @return This builder for chaining.
     */
    public Builder clearAccount() {
      copyOnWrite();
      instance.clearAccount();
      return this;
    }
    /**
     * string account = 5 [json_name = "account"];
     * @param value The bytes for account to set.
     * @return This builder for chaining.
     */
    public Builder setAccountBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setAccountBytes(value);
      return this;
    }

    /**
     * bool account_verified = 6 [json_name = "accountVerified"];
     * @return The accountVerified.
     */
    @java.lang.Override
    public boolean getAccountVerified() {
      return instance.getAccountVerified();
    }
    /**
     * bool account_verified = 6 [json_name = "accountVerified"];
     * @param value The accountVerified to set.
     * @return This builder for chaining.
     */
    public Builder setAccountVerified(boolean value) {
      copyOnWrite();
      instance.setAccountVerified(value);
      return this;
    }
    /**
     * bool account_verified = 6 [json_name = "accountVerified"];
     * @return This builder for chaining.
     */
    public Builder clearAccountVerified() {
      copyOnWrite();
      instance.clearAccountVerified();
      return this;
    }

    /**
     * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
     */
    @java.lang.Override
    public boolean hasTweet() {
      return instance.hasTweet();
    }
    /**
     * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
     */
    @java.lang.Override
    public com.streamlayer.social.Tweet getTweet() {
      return instance.getTweet();
    }
    /**
     * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
     */
    public Builder setTweet(com.streamlayer.social.Tweet value) {
      copyOnWrite();
      instance.setTweet(value);
      return this;
      }
    /**
     * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
     */
    public Builder setTweet(
        com.streamlayer.social.Tweet.Builder builderForValue) {
      copyOnWrite();
      instance.setTweet(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
     */
    public Builder mergeTweet(com.streamlayer.social.Tweet value) {
      copyOnWrite();
      instance.mergeTweet(value);
      return this;
    }
    /**
     * .streamlayer.social.Tweet tweet = 7 [json_name = "tweet"];
     */
    public Builder clearTweet() {  copyOnWrite();
      instance.clearTweet();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.interactive.feed.TweetHistory)
  }
  @java.lang.Override
  @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
  protected final java.lang.Object dynamicMethod(
      com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
      java.lang.Object arg0, java.lang.Object arg1) {
    switch (method) {
      case NEW_MUTABLE_INSTANCE: {
        return new com.streamlayer.interactive.feed.TweetHistory();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "bitField0_",
            "tweetId_",
            "title_",
            "image_",
            "body_",
            "account_",
            "accountVerified_",
            "tweet_",
          };
          java.lang.String info =
              "\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
              "\u0003\u0208\u0004\u0208\u0005\u0208\u0006\u0007\u0007\u1009\u0000";
          return newMessageInfo(DEFAULT_INSTANCE, info, objects);
      }
      // fall through
      case GET_DEFAULT_INSTANCE: {
        return DEFAULT_INSTANCE;
      }
      case GET_PARSER: {
        com.google.protobuf.Parser parser = PARSER;
        if (parser == null) {
          synchronized (com.streamlayer.interactive.feed.TweetHistory.class) {
            parser = PARSER;
            if (parser == null) {
              parser =
                  new DefaultInstanceBasedParser(
                      DEFAULT_INSTANCE);
              PARSER = parser;
            }
          }
        }
        return parser;
    }
    case GET_MEMOIZED_IS_INITIALIZED: {
      return (byte) 1;
    }
    case SET_MEMOIZED_IS_INITIALIZED: {
      return null;
    }
    }
    throw new UnsupportedOperationException();
  }


  // @@protoc_insertion_point(class_scope:streamlayer.interactive.feed.TweetHistory)
  private static final com.streamlayer.interactive.feed.TweetHistory DEFAULT_INSTANCE;
  static {
    TweetHistory defaultInstance = new TweetHistory();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      TweetHistory.class, defaultInstance);
  }

  public static com.streamlayer.interactive.feed.TweetHistory getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static volatile com.google.protobuf.Parser PARSER;

  public static com.google.protobuf.Parser parser() {
    return DEFAULT_INSTANCE.getParserForType();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy