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

main.java.com.streamlayer.interactive.common.QuestionNotification 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/interactive.common.proto

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

/**
 * Protobuf type {@code streamlayer.interactive.QuestionNotification}
 */
public  final class QuestionNotification extends
    com.google.protobuf.GeneratedMessageLite<
        QuestionNotification, QuestionNotification.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.interactive.QuestionNotification)
    QuestionNotificationOrBuilder {
  private QuestionNotification() {
    title_ = "";
    image_ = "";
    indicatorColor_ = "";
    body_ = "";
  }
  private int bitField0_;
  public static final int TITLE_FIELD_NUMBER = 1;
  private java.lang.String title_;
  /**
   * string title = 1 [json_name = "title"];
   * @return The title.
   */
  @java.lang.Override
  public java.lang.String getTitle() {
    return title_;
  }
  /**
   * string title = 1 [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 = 1 [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 = 1 [json_name = "title"];
   */
  private void clearTitle() {

    title_ = getDefaultInstance().getTitle();
  }
  /**
   * string title = 1 [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 = 2;
  private java.lang.String image_;
  /**
   * string image = 2 [json_name = "image"];
   * @return The image.
   */
  @java.lang.Override
  public java.lang.String getImage() {
    return image_;
  }
  /**
   * string image = 2 [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 = 2 [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 = 2 [json_name = "image"];
   */
  private void clearImage() {

    image_ = getDefaultInstance().getImage();
  }
  /**
   * string image = 2 [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 INDICATOR_COLOR_FIELD_NUMBER = 3;
  private java.lang.String indicatorColor_;
  /**
   * string indicator_color = 3 [json_name = "indicatorColor"];
   * @return The indicatorColor.
   */
  @java.lang.Override
  public java.lang.String getIndicatorColor() {
    return indicatorColor_;
  }
  /**
   * string indicator_color = 3 [json_name = "indicatorColor"];
   * @return The bytes for indicatorColor.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getIndicatorColorBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(indicatorColor_);
  }
  /**
   * string indicator_color = 3 [json_name = "indicatorColor"];
   * @param value The indicatorColor to set.
   */
  private void setIndicatorColor(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    indicatorColor_ = value;
  }
  /**
   * string indicator_color = 3 [json_name = "indicatorColor"];
   */
  private void clearIndicatorColor() {

    indicatorColor_ = getDefaultInstance().getIndicatorColor();
  }
  /**
   * string indicator_color = 3 [json_name = "indicatorColor"];
   * @param value The bytes for indicatorColor to set.
   */
  private void setIndicatorColorBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    indicatorColor_ = value.toStringUtf8();

  }

  public static final int IMAGE_POSITION_FIELD_NUMBER = 4;
  private int imagePosition_;
  /**
   * .streamlayer.interactive.ImagePosition image_position = 4 [json_name = "imagePosition"];
   * @return The enum numeric value on the wire for imagePosition.
   */
  @java.lang.Override
  public int getImagePositionValue() {
    return imagePosition_;
  }
  /**
   * .streamlayer.interactive.ImagePosition image_position = 4 [json_name = "imagePosition"];
   * @return The imagePosition.
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.ImagePosition getImagePosition() {
    com.streamlayer.interactive.common.ImagePosition result = com.streamlayer.interactive.common.ImagePosition.forNumber(imagePosition_);
    return result == null ? com.streamlayer.interactive.common.ImagePosition.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.interactive.ImagePosition image_position = 4 [json_name = "imagePosition"];
   * @param value The enum numeric value on the wire for imagePosition to set.
   */
  private void setImagePositionValue(int value) {
      imagePosition_ = value;
  }
  /**
   * .streamlayer.interactive.ImagePosition image_position = 4 [json_name = "imagePosition"];
   * @param value The imagePosition to set.
   */
  private void setImagePosition(com.streamlayer.interactive.common.ImagePosition value) {
    imagePosition_ = value.getNumber();

  }
  /**
   * .streamlayer.interactive.ImagePosition image_position = 4 [json_name = "imagePosition"];
   */
  private void clearImagePosition() {

    imagePosition_ = 0;
  }

  public static final int BODY_FIELD_NUMBER = 5;
  private java.lang.String body_;
  /**
   * string body = 5 [json_name = "body"];
   * @return The body.
   */
  @java.lang.Override
  public java.lang.String getBody() {
    return body_;
  }
  /**
   * string body = 5 [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 = 5 [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 = 5 [json_name = "body"];
   */
  private void clearBody() {

    body_ = getDefaultInstance().getBody();
  }
  /**
   * string body = 5 [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 IMAGE_MODE_FIELD_NUMBER = 6;
  private int imageMode_;
  /**
   * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
   * @return The enum numeric value on the wire for imageMode.
   */
  @java.lang.Override
  public int getImageModeValue() {
    return imageMode_;
  }
  /**
   * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
   * @return The imageMode.
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.QuestionImages getImageMode() {
    com.streamlayer.interactive.common.QuestionImages result = com.streamlayer.interactive.common.QuestionImages.forNumber(imageMode_);
    return result == null ? com.streamlayer.interactive.common.QuestionImages.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
   * @param value The enum numeric value on the wire for imageMode to set.
   */
  private void setImageModeValue(int value) {
      imageMode_ = value;
  }
  /**
   * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
   * @param value The imageMode to set.
   */
  private void setImageMode(com.streamlayer.interactive.common.QuestionImages value) {
    imageMode_ = value.getNumber();

  }
  /**
   * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
   */
  private void clearImageMode() {

    imageMode_ = 0;
  }

  public static final int PROMOTION_FIELD_NUMBER = 7;
  private com.streamlayer.interactive.common.PromotionNotification promotion_;
  /**
   * .streamlayer.interactive.PromotionNotification promotion = 7 [json_name = "promotion"];
   */
  @java.lang.Override
  public boolean hasPromotion() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.interactive.PromotionNotification promotion = 7 [json_name = "promotion"];
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.PromotionNotification getPromotion() {
    return promotion_ == null ? com.streamlayer.interactive.common.PromotionNotification.getDefaultInstance() : promotion_;
  }
  /**
   * .streamlayer.interactive.PromotionNotification promotion = 7 [json_name = "promotion"];
   */
  private void setPromotion(com.streamlayer.interactive.common.PromotionNotification value) {
    value.getClass();
  promotion_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.interactive.PromotionNotification promotion = 7 [json_name = "promotion"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergePromotion(com.streamlayer.interactive.common.PromotionNotification value) {
    value.getClass();
  if (promotion_ != null &&
        promotion_ != com.streamlayer.interactive.common.PromotionNotification.getDefaultInstance()) {
      promotion_ =
        com.streamlayer.interactive.common.PromotionNotification.newBuilder(promotion_).mergeFrom(value).buildPartial();
    } else {
      promotion_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.interactive.PromotionNotification promotion = 7 [json_name = "promotion"];
   */
  private void clearPromotion() {  promotion_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int ENABLED_FIELD_NUMBER = 8;
  private int enabled_;
  /**
   * .streamlayer.interactive.NotificationEnabled enabled = 8 [json_name = "enabled"];
   * @return The enum numeric value on the wire for enabled.
   */
  @java.lang.Override
  public int getEnabledValue() {
    return enabled_;
  }
  /**
   * .streamlayer.interactive.NotificationEnabled enabled = 8 [json_name = "enabled"];
   * @return The enabled.
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.NotificationEnabled getEnabled() {
    com.streamlayer.interactive.common.NotificationEnabled result = com.streamlayer.interactive.common.NotificationEnabled.forNumber(enabled_);
    return result == null ? com.streamlayer.interactive.common.NotificationEnabled.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.interactive.NotificationEnabled enabled = 8 [json_name = "enabled"];
   * @param value The enum numeric value on the wire for enabled to set.
   */
  private void setEnabledValue(int value) {
      enabled_ = value;
  }
  /**
   * .streamlayer.interactive.NotificationEnabled enabled = 8 [json_name = "enabled"];
   * @param value The enabled to set.
   */
  private void setEnabled(com.streamlayer.interactive.common.NotificationEnabled value) {
    enabled_ = value.getNumber();

  }
  /**
   * .streamlayer.interactive.NotificationEnabled enabled = 8 [json_name = "enabled"];
   */
  private void clearEnabled() {

    enabled_ = 0;
  }

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

  public static com.streamlayer.interactive.common.QuestionNotification 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.common.QuestionNotification parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.interactive.common.QuestionNotification 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.common.QuestionNotification prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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


    /**
     * string title = 1 [json_name = "title"];
     * @return The title.
     */
    @java.lang.Override
    public java.lang.String getTitle() {
      return instance.getTitle();
    }
    /**
     * string title = 1 [json_name = "title"];
     * @return The bytes for title.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTitleBytes() {
      return instance.getTitleBytes();
    }
    /**
     * string title = 1 [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 = 1 [json_name = "title"];
     * @return This builder for chaining.
     */
    public Builder clearTitle() {
      copyOnWrite();
      instance.clearTitle();
      return this;
    }
    /**
     * string title = 1 [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 = 2 [json_name = "image"];
     * @return The image.
     */
    @java.lang.Override
    public java.lang.String getImage() {
      return instance.getImage();
    }
    /**
     * string image = 2 [json_name = "image"];
     * @return The bytes for image.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getImageBytes() {
      return instance.getImageBytes();
    }
    /**
     * string image = 2 [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 = 2 [json_name = "image"];
     * @return This builder for chaining.
     */
    public Builder clearImage() {
      copyOnWrite();
      instance.clearImage();
      return this;
    }
    /**
     * string image = 2 [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 indicator_color = 3 [json_name = "indicatorColor"];
     * @return The indicatorColor.
     */
    @java.lang.Override
    public java.lang.String getIndicatorColor() {
      return instance.getIndicatorColor();
    }
    /**
     * string indicator_color = 3 [json_name = "indicatorColor"];
     * @return The bytes for indicatorColor.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getIndicatorColorBytes() {
      return instance.getIndicatorColorBytes();
    }
    /**
     * string indicator_color = 3 [json_name = "indicatorColor"];
     * @param value The indicatorColor to set.
     * @return This builder for chaining.
     */
    public Builder setIndicatorColor(
        java.lang.String value) {
      copyOnWrite();
      instance.setIndicatorColor(value);
      return this;
    }
    /**
     * string indicator_color = 3 [json_name = "indicatorColor"];
     * @return This builder for chaining.
     */
    public Builder clearIndicatorColor() {
      copyOnWrite();
      instance.clearIndicatorColor();
      return this;
    }
    /**
     * string indicator_color = 3 [json_name = "indicatorColor"];
     * @param value The bytes for indicatorColor to set.
     * @return This builder for chaining.
     */
    public Builder setIndicatorColorBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setIndicatorColorBytes(value);
      return this;
    }

    /**
     * .streamlayer.interactive.ImagePosition image_position = 4 [json_name = "imagePosition"];
     * @return The enum numeric value on the wire for imagePosition.
     */
    @java.lang.Override
    public int getImagePositionValue() {
      return instance.getImagePositionValue();
    }
    /**
     * .streamlayer.interactive.ImagePosition image_position = 4 [json_name = "imagePosition"];
     * @param value The imagePosition to set.
     * @return This builder for chaining.
     */
    public Builder setImagePositionValue(int value) {
      copyOnWrite();
      instance.setImagePositionValue(value);
      return this;
    }
    /**
     * .streamlayer.interactive.ImagePosition image_position = 4 [json_name = "imagePosition"];
     * @return The imagePosition.
     */
    @java.lang.Override
    public com.streamlayer.interactive.common.ImagePosition getImagePosition() {
      return instance.getImagePosition();
    }
    /**
     * .streamlayer.interactive.ImagePosition image_position = 4 [json_name = "imagePosition"];
     * @param value The enum numeric value on the wire for imagePosition to set.
     * @return This builder for chaining.
     */
    public Builder setImagePosition(com.streamlayer.interactive.common.ImagePosition value) {
      copyOnWrite();
      instance.setImagePosition(value);
      return this;
    }
    /**
     * .streamlayer.interactive.ImagePosition image_position = 4 [json_name = "imagePosition"];
     * @return This builder for chaining.
     */
    public Builder clearImagePosition() {
      copyOnWrite();
      instance.clearImagePosition();
      return this;
    }

    /**
     * string body = 5 [json_name = "body"];
     * @return The body.
     */
    @java.lang.Override
    public java.lang.String getBody() {
      return instance.getBody();
    }
    /**
     * string body = 5 [json_name = "body"];
     * @return The bytes for body.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getBodyBytes() {
      return instance.getBodyBytes();
    }
    /**
     * string body = 5 [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 = 5 [json_name = "body"];
     * @return This builder for chaining.
     */
    public Builder clearBody() {
      copyOnWrite();
      instance.clearBody();
      return this;
    }
    /**
     * string body = 5 [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;
    }

    /**
     * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
     * @return The enum numeric value on the wire for imageMode.
     */
    @java.lang.Override
    public int getImageModeValue() {
      return instance.getImageModeValue();
    }
    /**
     * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
     * @param value The imageMode to set.
     * @return This builder for chaining.
     */
    public Builder setImageModeValue(int value) {
      copyOnWrite();
      instance.setImageModeValue(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
     * @return The imageMode.
     */
    @java.lang.Override
    public com.streamlayer.interactive.common.QuestionImages getImageMode() {
      return instance.getImageMode();
    }
    /**
     * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
     * @param value The enum numeric value on the wire for imageMode to set.
     * @return This builder for chaining.
     */
    public Builder setImageMode(com.streamlayer.interactive.common.QuestionImages value) {
      copyOnWrite();
      instance.setImageMode(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"];
     * @return This builder for chaining.
     */
    public Builder clearImageMode() {
      copyOnWrite();
      instance.clearImageMode();
      return this;
    }

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

    /**
     * .streamlayer.interactive.NotificationEnabled enabled = 8 [json_name = "enabled"];
     * @return The enum numeric value on the wire for enabled.
     */
    @java.lang.Override
    public int getEnabledValue() {
      return instance.getEnabledValue();
    }
    /**
     * .streamlayer.interactive.NotificationEnabled enabled = 8 [json_name = "enabled"];
     * @param value The enabled to set.
     * @return This builder for chaining.
     */
    public Builder setEnabledValue(int value) {
      copyOnWrite();
      instance.setEnabledValue(value);
      return this;
    }
    /**
     * .streamlayer.interactive.NotificationEnabled enabled = 8 [json_name = "enabled"];
     * @return The enabled.
     */
    @java.lang.Override
    public com.streamlayer.interactive.common.NotificationEnabled getEnabled() {
      return instance.getEnabled();
    }
    /**
     * .streamlayer.interactive.NotificationEnabled enabled = 8 [json_name = "enabled"];
     * @param value The enum numeric value on the wire for enabled to set.
     * @return This builder for chaining.
     */
    public Builder setEnabled(com.streamlayer.interactive.common.NotificationEnabled value) {
      copyOnWrite();
      instance.setEnabled(value);
      return this;
    }
    /**
     * .streamlayer.interactive.NotificationEnabled enabled = 8 [json_name = "enabled"];
     * @return This builder for chaining.
     */
    public Builder clearEnabled() {
      copyOnWrite();
      instance.clearEnabled();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.interactive.QuestionNotification)
  }
  @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.common.QuestionNotification();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "bitField0_",
            "title_",
            "image_",
            "indicatorColor_",
            "imagePosition_",
            "body_",
            "imageMode_",
            "promotion_",
            "enabled_",
          };
          java.lang.String info =
              "\u0000\b\u0000\u0001\u0001\b\b\u0000\u0000\u0000\u0001\u0208\u0002\u0208\u0003\u0208" +
              "\u0004\f\u0005\u0208\u0006\f\u0007\u1009\u0000\b\f";
          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.common.QuestionNotification.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.QuestionNotification)
  private static final com.streamlayer.interactive.common.QuestionNotification DEFAULT_INSTANCE;
  static {
    QuestionNotification defaultInstance = new QuestionNotification();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      QuestionNotification.class, defaultInstance);
  }

  public static com.streamlayer.interactive.common.QuestionNotification 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