main.java.com.streamlayer.interactive.feed.InsightHistory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// 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.InsightHistory}
*/
public final class InsightHistory extends
com.google.protobuf.GeneratedMessageLite<
InsightHistory, InsightHistory.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.interactive.feed.InsightHistory)
InsightHistoryOrBuilder {
private InsightHistory() {
questionId_ = "";
title_ = "";
image_ = "";
}
private int bitField0_;
public static final int QUESTION_ID_FIELD_NUMBER = 1;
private java.lang.String questionId_;
/**
* string question_id = 1 [json_name = "questionId"];
* @return The questionId.
*/
@java.lang.Override
public java.lang.String getQuestionId() {
return questionId_;
}
/**
* string question_id = 1 [json_name = "questionId"];
* @return The bytes for questionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQuestionIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(questionId_);
}
/**
* string question_id = 1 [json_name = "questionId"];
* @param value The questionId to set.
*/
private void setQuestionId(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
questionId_ = value;
}
/**
* string question_id = 1 [json_name = "questionId"];
*/
private void clearQuestionId() {
questionId_ = getDefaultInstance().getQuestionId();
}
/**
* string question_id = 1 [json_name = "questionId"];
* @param value The bytes for questionId to set.
*/
private void setQuestionIdBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
questionId_ = value.toStringUtf8();
}
public static final int TITLE_FIELD_NUMBER = 2;
private java.lang.String title_;
/**
*
* notification.title
*
*
* string title = 2 [json_name = "title"];
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
return title_;
}
/**
*
* notification.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_);
}
/**
*
* notification.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;
}
/**
*
* notification.title
*
*
* string title = 2 [json_name = "title"];
*/
private void clearTitle() {
title_ = getDefaultInstance().getTitle();
}
/**
*
* notification.title
*
*
* 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_;
/**
*
* notification.image
*
*
* string image = 3 [json_name = "image"];
* @return The image.
*/
@java.lang.Override
public java.lang.String getImage() {
return image_;
}
/**
*
* notification.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_);
}
/**
*
* notification.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;
}
/**
*
* notification.image
*
*
* string image = 3 [json_name = "image"];
*/
private void clearImage() {
image_ = getDefaultInstance().getImage();
}
/**
*
* notification.image
*
*
* 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 IMAGE_MODE_FIELD_NUMBER = 4;
private int imageMode_;
/**
*
* combined with moderation defaults
*
*
* .streamlayer.interactive.QuestionImages image_mode = 4 [json_name = "imageMode"];
* @return The enum numeric value on the wire for imageMode.
*/
@java.lang.Override
public int getImageModeValue() {
return imageMode_;
}
/**
*
* combined with moderation defaults
*
*
* .streamlayer.interactive.QuestionImages image_mode = 4 [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;
}
/**
*
* combined with moderation defaults
*
*
* .streamlayer.interactive.QuestionImages image_mode = 4 [json_name = "imageMode"];
* @param value The enum numeric value on the wire for imageMode to set.
*/
private void setImageModeValue(int value) {
imageMode_ = value;
}
/**
*
* combined with moderation defaults
*
*
* .streamlayer.interactive.QuestionImages image_mode = 4 [json_name = "imageMode"];
* @param value The imageMode to set.
*/
private void setImageMode(com.streamlayer.interactive.common.QuestionImages value) {
imageMode_ = value.getNumber();
}
/**
*
* combined with moderation defaults
*
*
* .streamlayer.interactive.QuestionImages image_mode = 4 [json_name = "imageMode"];
*/
private void clearImageMode() {
imageMode_ = 0;
}
public static final int INSTANT_VIEW_FIELD_NUMBER = 5;
private com.streamlayer.interactive.feed.InstantView instantView_;
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
@java.lang.Override
public boolean hasInstantView() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
@java.lang.Override
public com.streamlayer.interactive.feed.InstantView getInstantView() {
return instantView_ == null ? com.streamlayer.interactive.feed.InstantView.getDefaultInstance() : instantView_;
}
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
private void setInstantView(com.streamlayer.interactive.feed.InstantView value) {
value.getClass();
instantView_ = value;
bitField0_ |= 0x00000001;
}
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeInstantView(com.streamlayer.interactive.feed.InstantView value) {
value.getClass();
if (instantView_ != null &&
instantView_ != com.streamlayer.interactive.feed.InstantView.getDefaultInstance()) {
instantView_ =
com.streamlayer.interactive.feed.InstantView.newBuilder(instantView_).mergeFrom(value).buildPartial();
} else {
instantView_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
private void clearInstantView() { instantView_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int NOTIFICATION_FIELD_NUMBER = 6;
private com.streamlayer.interactive.feed.InsightNotification notification_;
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
@java.lang.Override
public boolean hasNotification() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
@java.lang.Override
public com.streamlayer.interactive.feed.InsightNotification getNotification() {
return notification_ == null ? com.streamlayer.interactive.feed.InsightNotification.getDefaultInstance() : notification_;
}
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
private void setNotification(com.streamlayer.interactive.feed.InsightNotification value) {
value.getClass();
notification_ = value;
bitField0_ |= 0x00000002;
}
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeNotification(com.streamlayer.interactive.feed.InsightNotification value) {
value.getClass();
if (notification_ != null &&
notification_ != com.streamlayer.interactive.feed.InsightNotification.getDefaultInstance()) {
notification_ =
com.streamlayer.interactive.feed.InsightNotification.newBuilder(notification_).mergeFrom(value).buildPartial();
} else {
notification_ = value;
}
bitField0_ |= 0x00000002;
}
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
private void clearNotification() { notification_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int USE_AS_NOTIFICATION_FIELD_NUMBER = 7;
private int useAsNotification_;
/**
* .streamlayer.interactive.UseAsNotification use_as_notification = 7 [json_name = "useAsNotification"];
* @return The enum numeric value on the wire for useAsNotification.
*/
@java.lang.Override
public int getUseAsNotificationValue() {
return useAsNotification_;
}
/**
* .streamlayer.interactive.UseAsNotification use_as_notification = 7 [json_name = "useAsNotification"];
* @return The useAsNotification.
*/
@java.lang.Override
public com.streamlayer.interactive.common.UseAsNotification getUseAsNotification() {
com.streamlayer.interactive.common.UseAsNotification result = com.streamlayer.interactive.common.UseAsNotification.forNumber(useAsNotification_);
return result == null ? com.streamlayer.interactive.common.UseAsNotification.UNRECOGNIZED : result;
}
/**
* .streamlayer.interactive.UseAsNotification use_as_notification = 7 [json_name = "useAsNotification"];
* @param value The enum numeric value on the wire for useAsNotification to set.
*/
private void setUseAsNotificationValue(int value) {
useAsNotification_ = value;
}
/**
* .streamlayer.interactive.UseAsNotification use_as_notification = 7 [json_name = "useAsNotification"];
* @param value The useAsNotification to set.
*/
private void setUseAsNotification(com.streamlayer.interactive.common.UseAsNotification value) {
useAsNotification_ = value.getNumber();
}
/**
* .streamlayer.interactive.UseAsNotification use_as_notification = 7 [json_name = "useAsNotification"];
*/
private void clearUseAsNotification() {
useAsNotification_ = 0;
}
public static com.streamlayer.interactive.feed.InsightHistory 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.InsightHistory 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.InsightHistory 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.InsightHistory 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.InsightHistory parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.interactive.feed.InsightHistory 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.InsightHistory parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.feed.InsightHistory 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.InsightHistory parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.feed.InsightHistory 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.InsightHistory 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.InsightHistory 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.InsightHistory prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.interactive.feed.InsightHistory}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.interactive.feed.InsightHistory, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.interactive.feed.InsightHistory)
com.streamlayer.interactive.feed.InsightHistoryOrBuilder {
// Construct using com.streamlayer.interactive.feed.InsightHistory.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string question_id = 1 [json_name = "questionId"];
* @return The questionId.
*/
@java.lang.Override
public java.lang.String getQuestionId() {
return instance.getQuestionId();
}
/**
* string question_id = 1 [json_name = "questionId"];
* @return The bytes for questionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQuestionIdBytes() {
return instance.getQuestionIdBytes();
}
/**
* string question_id = 1 [json_name = "questionId"];
* @param value The questionId to set.
* @return This builder for chaining.
*/
public Builder setQuestionId(
java.lang.String value) {
copyOnWrite();
instance.setQuestionId(value);
return this;
}
/**
* string question_id = 1 [json_name = "questionId"];
* @return This builder for chaining.
*/
public Builder clearQuestionId() {
copyOnWrite();
instance.clearQuestionId();
return this;
}
/**
* string question_id = 1 [json_name = "questionId"];
* @param value The bytes for questionId to set.
* @return This builder for chaining.
*/
public Builder setQuestionIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setQuestionIdBytes(value);
return this;
}
/**
*
* notification.title
*
*
* string title = 2 [json_name = "title"];
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
return instance.getTitle();
}
/**
*
* notification.title
*
*
* string title = 2 [json_name = "title"];
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
return instance.getTitleBytes();
}
/**
*
* notification.title
*
*
* 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;
}
/**
*
* notification.title
*
*
* string title = 2 [json_name = "title"];
* @return This builder for chaining.
*/
public Builder clearTitle() {
copyOnWrite();
instance.clearTitle();
return this;
}
/**
*
* notification.title
*
*
* 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;
}
/**
*
* notification.image
*
*
* string image = 3 [json_name = "image"];
* @return The image.
*/
@java.lang.Override
public java.lang.String getImage() {
return instance.getImage();
}
/**
*
* notification.image
*
*
* string image = 3 [json_name = "image"];
* @return The bytes for image.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getImageBytes() {
return instance.getImageBytes();
}
/**
*
* notification.image
*
*
* 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;
}
/**
*
* notification.image
*
*
* string image = 3 [json_name = "image"];
* @return This builder for chaining.
*/
public Builder clearImage() {
copyOnWrite();
instance.clearImage();
return this;
}
/**
*
* notification.image
*
*
* 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;
}
/**
*
* combined with moderation defaults
*
*
* .streamlayer.interactive.QuestionImages image_mode = 4 [json_name = "imageMode"];
* @return The enum numeric value on the wire for imageMode.
*/
@java.lang.Override
public int getImageModeValue() {
return instance.getImageModeValue();
}
/**
*
* combined with moderation defaults
*
*
* .streamlayer.interactive.QuestionImages image_mode = 4 [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;
}
/**
*
* combined with moderation defaults
*
*
* .streamlayer.interactive.QuestionImages image_mode = 4 [json_name = "imageMode"];
* @return The imageMode.
*/
@java.lang.Override
public com.streamlayer.interactive.common.QuestionImages getImageMode() {
return instance.getImageMode();
}
/**
*
* combined with moderation defaults
*
*
* .streamlayer.interactive.QuestionImages image_mode = 4 [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;
}
/**
*
* combined with moderation defaults
*
*
* .streamlayer.interactive.QuestionImages image_mode = 4 [json_name = "imageMode"];
* @return This builder for chaining.
*/
public Builder clearImageMode() {
copyOnWrite();
instance.clearImageMode();
return this;
}
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
@java.lang.Override
public boolean hasInstantView() {
return instance.hasInstantView();
}
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
@java.lang.Override
public com.streamlayer.interactive.feed.InstantView getInstantView() {
return instance.getInstantView();
}
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
public Builder setInstantView(com.streamlayer.interactive.feed.InstantView value) {
copyOnWrite();
instance.setInstantView(value);
return this;
}
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
public Builder setInstantView(
com.streamlayer.interactive.feed.InstantView.Builder builderForValue) {
copyOnWrite();
instance.setInstantView(builderForValue.build());
return this;
}
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
public Builder mergeInstantView(com.streamlayer.interactive.feed.InstantView value) {
copyOnWrite();
instance.mergeInstantView(value);
return this;
}
/**
* optional .streamlayer.interactive.feed.InstantView instant_view = 5 [json_name = "instantView"];
*/
public Builder clearInstantView() { copyOnWrite();
instance.clearInstantView();
return this;
}
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
@java.lang.Override
public boolean hasNotification() {
return instance.hasNotification();
}
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
@java.lang.Override
public com.streamlayer.interactive.feed.InsightNotification getNotification() {
return instance.getNotification();
}
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
public Builder setNotification(com.streamlayer.interactive.feed.InsightNotification value) {
copyOnWrite();
instance.setNotification(value);
return this;
}
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
public Builder setNotification(
com.streamlayer.interactive.feed.InsightNotification.Builder builderForValue) {
copyOnWrite();
instance.setNotification(builderForValue.build());
return this;
}
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
public Builder mergeNotification(com.streamlayer.interactive.feed.InsightNotification value) {
copyOnWrite();
instance.mergeNotification(value);
return this;
}
/**
* optional .streamlayer.interactive.feed.InsightNotification notification = 6 [json_name = "notification"];
*/
public Builder clearNotification() { copyOnWrite();
instance.clearNotification();
return this;
}
/**
* .streamlayer.interactive.UseAsNotification use_as_notification = 7 [json_name = "useAsNotification"];
* @return The enum numeric value on the wire for useAsNotification.
*/
@java.lang.Override
public int getUseAsNotificationValue() {
return instance.getUseAsNotificationValue();
}
/**
* .streamlayer.interactive.UseAsNotification use_as_notification = 7 [json_name = "useAsNotification"];
* @param value The useAsNotification to set.
* @return This builder for chaining.
*/
public Builder setUseAsNotificationValue(int value) {
copyOnWrite();
instance.setUseAsNotificationValue(value);
return this;
}
/**
* .streamlayer.interactive.UseAsNotification use_as_notification = 7 [json_name = "useAsNotification"];
* @return The useAsNotification.
*/
@java.lang.Override
public com.streamlayer.interactive.common.UseAsNotification getUseAsNotification() {
return instance.getUseAsNotification();
}
/**
* .streamlayer.interactive.UseAsNotification use_as_notification = 7 [json_name = "useAsNotification"];
* @param value The enum numeric value on the wire for useAsNotification to set.
* @return This builder for chaining.
*/
public Builder setUseAsNotification(com.streamlayer.interactive.common.UseAsNotification value) {
copyOnWrite();
instance.setUseAsNotification(value);
return this;
}
/**
* .streamlayer.interactive.UseAsNotification use_as_notification = 7 [json_name = "useAsNotification"];
* @return This builder for chaining.
*/
public Builder clearUseAsNotification() {
copyOnWrite();
instance.clearUseAsNotification();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.interactive.feed.InsightHistory)
}
@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.InsightHistory();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"questionId_",
"title_",
"image_",
"imageMode_",
"instantView_",
"notification_",
"useAsNotification_",
};
java.lang.String info =
"\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
"\u0003\u0208\u0004\f\u0005\u1009\u0000\u0006\u1009\u0001\u0007\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.feed.InsightHistory.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.InsightHistory)
private static final com.streamlayer.interactive.feed.InsightHistory DEFAULT_INSTANCE;
static {
InsightHistory defaultInstance = new InsightHistory();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
InsightHistory.class, defaultInstance);
}
public static com.streamlayer.interactive.feed.InsightHistory getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}