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

main.java.com.streamlayer.interactive.feed.FeedItemAttributes 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.FeedItemAttributes}
 */
public  final class FeedItemAttributes extends
    com.google.protobuf.GeneratedMessageLite<
        FeedItemAttributes, FeedItemAttributes.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.interactive.feed.FeedItemAttributes)
    FeedItemAttributesOrBuilder {
  private FeedItemAttributes() {
    id_ = "";
    created_ = "";
  }
  private int attributesCase_ = 0;
  private java.lang.Object attributes_;
  public enum AttributesCase {
    QUESTION(4),
    TWEET(5),
    INSIGHT(6),
    PROMOTION(7),
    ATTRIBUTES_NOT_SET(0);
    private final int value;
    private AttributesCase(int value) {
      this.value = value;
    }
    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static AttributesCase valueOf(int value) {
      return forNumber(value);
    }

    public static AttributesCase forNumber(int value) {
      switch (value) {
        case 4: return QUESTION;
        case 5: return TWEET;
        case 6: return INSIGHT;
        case 7: return PROMOTION;
        case 0: return ATTRIBUTES_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  @java.lang.Override
  public AttributesCase
  getAttributesCase() {
    return AttributesCase.forNumber(
        attributesCase_);
  }

  private void clearAttributes() {
    attributesCase_ = 0;
    attributes_ = null;
  }

  public static final int ID_FIELD_NUMBER = 1;
  private java.lang.String id_;
  /**
   * string id = 1 [json_name = "id"];
   * @return The id.
   */
  @java.lang.Override
  public java.lang.String getId() {
    return id_;
  }
  /**
   * string id = 1 [json_name = "id"];
   * @return The bytes for id.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getIdBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(id_);
  }
  /**
   * string id = 1 [json_name = "id"];
   * @param value The id to set.
   */
  private void setId(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    id_ = value;
  }
  /**
   * string id = 1 [json_name = "id"];
   */
  private void clearId() {

    id_ = getDefaultInstance().getId();
  }
  /**
   * string id = 1 [json_name = "id"];
   * @param value The bytes for id to set.
   */
  private void setIdBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    id_ = value.toStringUtf8();

  }

  public static final int TYPE_FIELD_NUMBER = 2;
  private int type_;
  /**
   * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
   * @return The enum numeric value on the wire for type.
   */
  @java.lang.Override
  public int getTypeValue() {
    return type_;
  }
  /**
   * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
   * @return The type.
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.QuestionType getType() {
    com.streamlayer.interactive.common.QuestionType result = com.streamlayer.interactive.common.QuestionType.forNumber(type_);
    return result == null ? com.streamlayer.interactive.common.QuestionType.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
   * @param value The enum numeric value on the wire for type to set.
   */
  private void setTypeValue(int value) {
      type_ = value;
  }
  /**
   * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
   * @param value The type to set.
   */
  private void setType(com.streamlayer.interactive.common.QuestionType value) {
    type_ = value.getNumber();

  }
  /**
   * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
   */
  private void clearType() {

    type_ = 0;
  }

  public static final int STATUS_FIELD_NUMBER = 3;
  private int status_;
  /**
   * .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
   * @return The enum numeric value on the wire for status.
   */
  @java.lang.Override
  public int getStatusValue() {
    return status_;
  }
  /**
   * .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
   * @return The status.
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.QuestionStatus getStatus() {
    com.streamlayer.interactive.common.QuestionStatus result = com.streamlayer.interactive.common.QuestionStatus.forNumber(status_);
    return result == null ? com.streamlayer.interactive.common.QuestionStatus.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
   * @param value The enum numeric value on the wire for status to set.
   */
  private void setStatusValue(int value) {
      status_ = value;
  }
  /**
   * .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
   * @param value The status to set.
   */
  private void setStatus(com.streamlayer.interactive.common.QuestionStatus value) {
    status_ = value.getNumber();

  }
  /**
   * .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
   */
  private void clearStatus() {

    status_ = 0;
  }

  public static final int CREATED_FIELD_NUMBER = 8;
  private java.lang.String created_;
  /**
   * string created = 8 [json_name = "created"];
   * @return The created.
   */
  @java.lang.Override
  public java.lang.String getCreated() {
    return created_;
  }
  /**
   * string created = 8 [json_name = "created"];
   * @return The bytes for created.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCreatedBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(created_);
  }
  /**
   * string created = 8 [json_name = "created"];
   * @param value The created to set.
   */
  private void setCreated(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    created_ = value;
  }
  /**
   * string created = 8 [json_name = "created"];
   */
  private void clearCreated() {

    created_ = getDefaultInstance().getCreated();
  }
  /**
   * string created = 8 [json_name = "created"];
   * @param value The bytes for created to set.
   */
  private void setCreatedBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    created_ = value.toStringUtf8();

  }

  public static final int QUESTION_FIELD_NUMBER = 4;
  /**
   * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
   */
  @java.lang.Override
  public boolean hasQuestion() {
    return attributesCase_ == 4;
  }
  /**
   * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
   */
  @java.lang.Override
  public com.streamlayer.interactive.feed.PickHistory getQuestion() {
    if (attributesCase_ == 4) {
       return (com.streamlayer.interactive.feed.PickHistory) attributes_;
    }
    return com.streamlayer.interactive.feed.PickHistory.getDefaultInstance();
  }
  /**
   * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
   */
  private void setQuestion(com.streamlayer.interactive.feed.PickHistory value) {
    value.getClass();
  attributes_ = value;
    attributesCase_ = 4;
  }
  /**
   * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
   */
  private void mergeQuestion(com.streamlayer.interactive.feed.PickHistory value) {
    value.getClass();
  if (attributesCase_ == 4 &&
        attributes_ != com.streamlayer.interactive.feed.PickHistory.getDefaultInstance()) {
      attributes_ = com.streamlayer.interactive.feed.PickHistory.newBuilder((com.streamlayer.interactive.feed.PickHistory) attributes_)
          .mergeFrom(value).buildPartial();
    } else {
      attributes_ = value;
    }
    attributesCase_ = 4;
  }
  /**
   * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
   */
  private void clearQuestion() {
    if (attributesCase_ == 4) {
      attributesCase_ = 0;
      attributes_ = null;
    }
  }

  public static final int TWEET_FIELD_NUMBER = 5;
  /**
   * .streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
   */
  @java.lang.Override
  public boolean hasTweet() {
    return attributesCase_ == 5;
  }
  /**
   * .streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
   */
  @java.lang.Override
  public com.streamlayer.interactive.feed.TweetHistory getTweet() {
    if (attributesCase_ == 5) {
       return (com.streamlayer.interactive.feed.TweetHistory) attributes_;
    }
    return com.streamlayer.interactive.feed.TweetHistory.getDefaultInstance();
  }
  /**
   * .streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
   */
  private void setTweet(com.streamlayer.interactive.feed.TweetHistory value) {
    value.getClass();
  attributes_ = value;
    attributesCase_ = 5;
  }
  /**
   * .streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
   */
  private void mergeTweet(com.streamlayer.interactive.feed.TweetHistory value) {
    value.getClass();
  if (attributesCase_ == 5 &&
        attributes_ != com.streamlayer.interactive.feed.TweetHistory.getDefaultInstance()) {
      attributes_ = com.streamlayer.interactive.feed.TweetHistory.newBuilder((com.streamlayer.interactive.feed.TweetHistory) attributes_)
          .mergeFrom(value).buildPartial();
    } else {
      attributes_ = value;
    }
    attributesCase_ = 5;
  }
  /**
   * .streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
   */
  private void clearTweet() {
    if (attributesCase_ == 5) {
      attributesCase_ = 0;
      attributes_ = null;
    }
  }

  public static final int INSIGHT_FIELD_NUMBER = 6;
  /**
   * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
   */
  @java.lang.Override
  public boolean hasInsight() {
    return attributesCase_ == 6;
  }
  /**
   * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
   */
  @java.lang.Override
  public com.streamlayer.interactive.feed.InsightHistory getInsight() {
    if (attributesCase_ == 6) {
       return (com.streamlayer.interactive.feed.InsightHistory) attributes_;
    }
    return com.streamlayer.interactive.feed.InsightHistory.getDefaultInstance();
  }
  /**
   * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
   */
  private void setInsight(com.streamlayer.interactive.feed.InsightHistory value) {
    value.getClass();
  attributes_ = value;
    attributesCase_ = 6;
  }
  /**
   * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
   */
  private void mergeInsight(com.streamlayer.interactive.feed.InsightHistory value) {
    value.getClass();
  if (attributesCase_ == 6 &&
        attributes_ != com.streamlayer.interactive.feed.InsightHistory.getDefaultInstance()) {
      attributes_ = com.streamlayer.interactive.feed.InsightHistory.newBuilder((com.streamlayer.interactive.feed.InsightHistory) attributes_)
          .mergeFrom(value).buildPartial();
    } else {
      attributes_ = value;
    }
    attributesCase_ = 6;
  }
  /**
   * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
   */
  private void clearInsight() {
    if (attributesCase_ == 6) {
      attributesCase_ = 0;
      attributes_ = null;
    }
  }

  public static final int PROMOTION_FIELD_NUMBER = 7;
  /**
   * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
   */
  @java.lang.Override
  public boolean hasPromotion() {
    return attributesCase_ == 7;
  }
  /**
   * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
   */
  @java.lang.Override
  public com.streamlayer.interactive.feed.PromotionHistory getPromotion() {
    if (attributesCase_ == 7) {
       return (com.streamlayer.interactive.feed.PromotionHistory) attributes_;
    }
    return com.streamlayer.interactive.feed.PromotionHistory.getDefaultInstance();
  }
  /**
   * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
   */
  private void setPromotion(com.streamlayer.interactive.feed.PromotionHistory value) {
    value.getClass();
  attributes_ = value;
    attributesCase_ = 7;
  }
  /**
   * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
   */
  private void mergePromotion(com.streamlayer.interactive.feed.PromotionHistory value) {
    value.getClass();
  if (attributesCase_ == 7 &&
        attributes_ != com.streamlayer.interactive.feed.PromotionHistory.getDefaultInstance()) {
      attributes_ = com.streamlayer.interactive.feed.PromotionHistory.newBuilder((com.streamlayer.interactive.feed.PromotionHistory) attributes_)
          .mergeFrom(value).buildPartial();
    } else {
      attributes_ = value;
    }
    attributesCase_ = 7;
  }
  /**
   * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
   */
  private void clearPromotion() {
    if (attributesCase_ == 7) {
      attributesCase_ = 0;
      attributes_ = null;
    }
  }

  public static com.streamlayer.interactive.feed.FeedItemAttributes 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.FeedItemAttributes 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.FeedItemAttributes 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.FeedItemAttributes 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.FeedItemAttributes parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.interactive.feed.FeedItemAttributes 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.FeedItemAttributes parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.interactive.feed.FeedItemAttributes 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.FeedItemAttributes parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.interactive.feed.FeedItemAttributes 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.FeedItemAttributes 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.FeedItemAttributes 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.FeedItemAttributes prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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

    @java.lang.Override
    public AttributesCase
        getAttributesCase() {
      return instance.getAttributesCase();
    }

    public Builder clearAttributes() {
      copyOnWrite();
      instance.clearAttributes();
      return this;
    }


    /**
     * string id = 1 [json_name = "id"];
     * @return The id.
     */
    @java.lang.Override
    public java.lang.String getId() {
      return instance.getId();
    }
    /**
     * string id = 1 [json_name = "id"];
     * @return The bytes for id.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getIdBytes() {
      return instance.getIdBytes();
    }
    /**
     * string id = 1 [json_name = "id"];
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(
        java.lang.String value) {
      copyOnWrite();
      instance.setId(value);
      return this;
    }
    /**
     * string id = 1 [json_name = "id"];
     * @return This builder for chaining.
     */
    public Builder clearId() {
      copyOnWrite();
      instance.clearId();
      return this;
    }
    /**
     * string id = 1 [json_name = "id"];
     * @param value The bytes for id to set.
     * @return This builder for chaining.
     */
    public Builder setIdBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setIdBytes(value);
      return this;
    }

    /**
     * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override
    public int getTypeValue() {
      return instance.getTypeValue();
    }
    /**
     * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeValue(int value) {
      copyOnWrite();
      instance.setTypeValue(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
     * @return The type.
     */
    @java.lang.Override
    public com.streamlayer.interactive.common.QuestionType getType() {
      return instance.getType();
    }
    /**
     * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
     * @param value The enum numeric value on the wire for type to set.
     * @return This builder for chaining.
     */
    public Builder setType(com.streamlayer.interactive.common.QuestionType value) {
      copyOnWrite();
      instance.setType(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionType type = 2 [json_name = "type"];
     * @return This builder for chaining.
     */
    public Builder clearType() {
      copyOnWrite();
      instance.clearType();
      return this;
    }

    /**
     * .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
     * @return The enum numeric value on the wire for status.
     */
    @java.lang.Override
    public int getStatusValue() {
      return instance.getStatusValue();
    }
    /**
     * .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
     * @param value The status to set.
     * @return This builder for chaining.
     */
    public Builder setStatusValue(int value) {
      copyOnWrite();
      instance.setStatusValue(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
     * @return The status.
     */
    @java.lang.Override
    public com.streamlayer.interactive.common.QuestionStatus getStatus() {
      return instance.getStatus();
    }
    /**
     * .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
     * @param value The enum numeric value on the wire for status to set.
     * @return This builder for chaining.
     */
    public Builder setStatus(com.streamlayer.interactive.common.QuestionStatus value) {
      copyOnWrite();
      instance.setStatus(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];
     * @return This builder for chaining.
     */
    public Builder clearStatus() {
      copyOnWrite();
      instance.clearStatus();
      return this;
    }

    /**
     * string created = 8 [json_name = "created"];
     * @return The created.
     */
    @java.lang.Override
    public java.lang.String getCreated() {
      return instance.getCreated();
    }
    /**
     * string created = 8 [json_name = "created"];
     * @return The bytes for created.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getCreatedBytes() {
      return instance.getCreatedBytes();
    }
    /**
     * string created = 8 [json_name = "created"];
     * @param value The created to set.
     * @return This builder for chaining.
     */
    public Builder setCreated(
        java.lang.String value) {
      copyOnWrite();
      instance.setCreated(value);
      return this;
    }
    /**
     * string created = 8 [json_name = "created"];
     * @return This builder for chaining.
     */
    public Builder clearCreated() {
      copyOnWrite();
      instance.clearCreated();
      return this;
    }
    /**
     * string created = 8 [json_name = "created"];
     * @param value The bytes for created to set.
     * @return This builder for chaining.
     */
    public Builder setCreatedBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setCreatedBytes(value);
      return this;
    }

    /**
     * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
     */
    @java.lang.Override
    public boolean hasQuestion() {
      return instance.hasQuestion();
    }
    /**
     * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
     */
    @java.lang.Override
    public com.streamlayer.interactive.feed.PickHistory getQuestion() {
      return instance.getQuestion();
    }
    /**
     * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
     */
    public Builder setQuestion(com.streamlayer.interactive.feed.PickHistory value) {
      copyOnWrite();
      instance.setQuestion(value);
      return this;
    }
    /**
     * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
     */
    public Builder setQuestion(
        com.streamlayer.interactive.feed.PickHistory.Builder builderForValue) {
      copyOnWrite();
      instance.setQuestion(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
     */
    public Builder mergeQuestion(com.streamlayer.interactive.feed.PickHistory value) {
      copyOnWrite();
      instance.mergeQuestion(value);
      return this;
    }
    /**
     * .streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
     */
    public Builder clearQuestion() {
      copyOnWrite();
      instance.clearQuestion();
      return this;
    }

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

    /**
     * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
     */
    @java.lang.Override
    public boolean hasInsight() {
      return instance.hasInsight();
    }
    /**
     * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
     */
    @java.lang.Override
    public com.streamlayer.interactive.feed.InsightHistory getInsight() {
      return instance.getInsight();
    }
    /**
     * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
     */
    public Builder setInsight(com.streamlayer.interactive.feed.InsightHistory value) {
      copyOnWrite();
      instance.setInsight(value);
      return this;
    }
    /**
     * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
     */
    public Builder setInsight(
        com.streamlayer.interactive.feed.InsightHistory.Builder builderForValue) {
      copyOnWrite();
      instance.setInsight(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
     */
    public Builder mergeInsight(com.streamlayer.interactive.feed.InsightHistory value) {
      copyOnWrite();
      instance.mergeInsight(value);
      return this;
    }
    /**
     * .streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
     */
    public Builder clearInsight() {
      copyOnWrite();
      instance.clearInsight();
      return this;
    }

    /**
     * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
     */
    @java.lang.Override
    public boolean hasPromotion() {
      return instance.hasPromotion();
    }
    /**
     * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
     */
    @java.lang.Override
    public com.streamlayer.interactive.feed.PromotionHistory getPromotion() {
      return instance.getPromotion();
    }
    /**
     * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
     */
    public Builder setPromotion(com.streamlayer.interactive.feed.PromotionHistory value) {
      copyOnWrite();
      instance.setPromotion(value);
      return this;
    }
    /**
     * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
     */
    public Builder setPromotion(
        com.streamlayer.interactive.feed.PromotionHistory.Builder builderForValue) {
      copyOnWrite();
      instance.setPromotion(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
     */
    public Builder mergePromotion(com.streamlayer.interactive.feed.PromotionHistory value) {
      copyOnWrite();
      instance.mergePromotion(value);
      return this;
    }
    /**
     * .streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
     */
    public Builder clearPromotion() {
      copyOnWrite();
      instance.clearPromotion();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.interactive.feed.FeedItemAttributes)
  }
  @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.FeedItemAttributes();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "attributes_",
            "attributesCase_",
            "id_",
            "type_",
            "status_",
            com.streamlayer.interactive.feed.PickHistory.class,
            com.streamlayer.interactive.feed.TweetHistory.class,
            com.streamlayer.interactive.feed.InsightHistory.class,
            com.streamlayer.interactive.feed.PromotionHistory.class,
            "created_",
          };
          java.lang.String info =
              "\u0000\b\u0001\u0000\u0001\b\b\u0000\u0000\u0000\u0001\u0208\u0002\f\u0003\f\u0004" +
              "<\u0000\u0005<\u0000\u0006<\u0000\u0007<\u0000\b\u0208";
          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.FeedItemAttributes.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.FeedItemAttributes)
  private static final com.streamlayer.interactive.feed.FeedItemAttributes DEFAULT_INSTANCE;
  static {
    FeedItemAttributes defaultInstance = new FeedItemAttributes();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      FeedItemAttributes.class, defaultInstance);
  }

  public static com.streamlayer.interactive.feed.FeedItemAttributes 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