main.java.com.streamlayer.interactive.common.QuestionAppearance 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/interactive.common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.interactive.common;
/**
* Protobuf type {@code streamlayer.interactive.QuestionAppearance}
*/
public final class QuestionAppearance extends
com.google.protobuf.GeneratedMessageLite<
QuestionAppearance, QuestionAppearance.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.interactive.QuestionAppearance)
QuestionAppearanceOrBuilder {
private QuestionAppearance() {
primaryColor_ = "";
}
public static final int LAYOUT_FIELD_NUMBER = 1;
private int layout_;
/**
* .streamlayer.interactive.QuestionLayout layout = 1 [json_name = "layout"];
* @return The enum numeric value on the wire for layout.
*/
@java.lang.Override
public int getLayoutValue() {
return layout_;
}
/**
* .streamlayer.interactive.QuestionLayout layout = 1 [json_name = "layout"];
* @return The layout.
*/
@java.lang.Override
public com.streamlayer.interactive.common.QuestionLayout getLayout() {
com.streamlayer.interactive.common.QuestionLayout result = com.streamlayer.interactive.common.QuestionLayout.forNumber(layout_);
return result == null ? com.streamlayer.interactive.common.QuestionLayout.UNRECOGNIZED : result;
}
/**
* .streamlayer.interactive.QuestionLayout layout = 1 [json_name = "layout"];
* @param value The enum numeric value on the wire for layout to set.
*/
private void setLayoutValue(int value) {
layout_ = value;
}
/**
* .streamlayer.interactive.QuestionLayout layout = 1 [json_name = "layout"];
* @param value The layout to set.
*/
private void setLayout(com.streamlayer.interactive.common.QuestionLayout value) {
layout_ = value.getNumber();
}
/**
* .streamlayer.interactive.QuestionLayout layout = 1 [json_name = "layout"];
*/
private void clearLayout() {
layout_ = 0;
}
public static final int IMAGES_FIELD_NUMBER = 2;
private int images_;
/**
* .streamlayer.interactive.QuestionImages images = 2 [json_name = "images"];
* @return The enum numeric value on the wire for images.
*/
@java.lang.Override
public int getImagesValue() {
return images_;
}
/**
* .streamlayer.interactive.QuestionImages images = 2 [json_name = "images"];
* @return The images.
*/
@java.lang.Override
public com.streamlayer.interactive.common.QuestionImages getImages() {
com.streamlayer.interactive.common.QuestionImages result = com.streamlayer.interactive.common.QuestionImages.forNumber(images_);
return result == null ? com.streamlayer.interactive.common.QuestionImages.UNRECOGNIZED : result;
}
/**
* .streamlayer.interactive.QuestionImages images = 2 [json_name = "images"];
* @param value The enum numeric value on the wire for images to set.
*/
private void setImagesValue(int value) {
images_ = value;
}
/**
* .streamlayer.interactive.QuestionImages images = 2 [json_name = "images"];
* @param value The images to set.
*/
private void setImages(com.streamlayer.interactive.common.QuestionImages value) {
images_ = value.getNumber();
}
/**
* .streamlayer.interactive.QuestionImages images = 2 [json_name = "images"];
*/
private void clearImages() {
images_ = 0;
}
public static final int PRIMARY_COLOR_FIELD_NUMBER = 3;
private java.lang.String primaryColor_;
/**
* string primary_color = 3 [json_name = "primaryColor"];
* @return The primaryColor.
*/
@java.lang.Override
public java.lang.String getPrimaryColor() {
return primaryColor_;
}
/**
* string primary_color = 3 [json_name = "primaryColor"];
* @return The bytes for primaryColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPrimaryColorBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(primaryColor_);
}
/**
* string primary_color = 3 [json_name = "primaryColor"];
* @param value The primaryColor to set.
*/
private void setPrimaryColor(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
primaryColor_ = value;
}
/**
* string primary_color = 3 [json_name = "primaryColor"];
*/
private void clearPrimaryColor() {
primaryColor_ = getDefaultInstance().getPrimaryColor();
}
/**
* string primary_color = 3 [json_name = "primaryColor"];
* @param value The bytes for primaryColor to set.
*/
private void setPrimaryColorBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
primaryColor_ = value.toStringUtf8();
}
public static final int POSITION_FIELD_NUMBER = 4;
private int position_;
/**
* .streamlayer.interactive.QuestionPosition position = 4 [json_name = "position"];
* @return The enum numeric value on the wire for position.
*/
@java.lang.Override
public int getPositionValue() {
return position_;
}
/**
* .streamlayer.interactive.QuestionPosition position = 4 [json_name = "position"];
* @return The position.
*/
@java.lang.Override
public com.streamlayer.interactive.common.QuestionPosition getPosition() {
com.streamlayer.interactive.common.QuestionPosition result = com.streamlayer.interactive.common.QuestionPosition.forNumber(position_);
return result == null ? com.streamlayer.interactive.common.QuestionPosition.UNRECOGNIZED : result;
}
/**
* .streamlayer.interactive.QuestionPosition position = 4 [json_name = "position"];
* @param value The enum numeric value on the wire for position to set.
*/
private void setPositionValue(int value) {
position_ = value;
}
/**
* .streamlayer.interactive.QuestionPosition position = 4 [json_name = "position"];
* @param value The position to set.
*/
private void setPosition(com.streamlayer.interactive.common.QuestionPosition value) {
position_ = value.getNumber();
}
/**
* .streamlayer.interactive.QuestionPosition position = 4 [json_name = "position"];
*/
private void clearPosition() {
position_ = 0;
}
public static final int AUTO_HIDE_INTERVAL_FIELD_NUMBER = 5;
private long autoHideInterval_;
/**
* uint64 auto_hide_interval = 5 [json_name = "autoHideInterval"];
* @return The autoHideInterval.
*/
@java.lang.Override
public long getAutoHideInterval() {
return autoHideInterval_;
}
/**
* uint64 auto_hide_interval = 5 [json_name = "autoHideInterval"];
* @param value The autoHideInterval to set.
*/
private void setAutoHideInterval(long value) {
autoHideInterval_ = value;
}
/**
* uint64 auto_hide_interval = 5 [json_name = "autoHideInterval"];
*/
private void clearAutoHideInterval() {
autoHideInterval_ = 0L;
}
public static com.streamlayer.interactive.common.QuestionAppearance 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.QuestionAppearance 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.QuestionAppearance 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.QuestionAppearance 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.QuestionAppearance parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.interactive.common.QuestionAppearance 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.QuestionAppearance parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.common.QuestionAppearance 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.QuestionAppearance parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.common.QuestionAppearance 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.QuestionAppearance 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.QuestionAppearance 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.QuestionAppearance prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.interactive.QuestionAppearance}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.interactive.common.QuestionAppearance, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.interactive.QuestionAppearance)
com.streamlayer.interactive.common.QuestionAppearanceOrBuilder {
// Construct using com.streamlayer.interactive.common.QuestionAppearance.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .streamlayer.interactive.QuestionLayout layout = 1 [json_name = "layout"];
* @return The enum numeric value on the wire for layout.
*/
@java.lang.Override
public int getLayoutValue() {
return instance.getLayoutValue();
}
/**
* .streamlayer.interactive.QuestionLayout layout = 1 [json_name = "layout"];
* @param value The layout to set.
* @return This builder for chaining.
*/
public Builder setLayoutValue(int value) {
copyOnWrite();
instance.setLayoutValue(value);
return this;
}
/**
* .streamlayer.interactive.QuestionLayout layout = 1 [json_name = "layout"];
* @return The layout.
*/
@java.lang.Override
public com.streamlayer.interactive.common.QuestionLayout getLayout() {
return instance.getLayout();
}
/**
* .streamlayer.interactive.QuestionLayout layout = 1 [json_name = "layout"];
* @param value The enum numeric value on the wire for layout to set.
* @return This builder for chaining.
*/
public Builder setLayout(com.streamlayer.interactive.common.QuestionLayout value) {
copyOnWrite();
instance.setLayout(value);
return this;
}
/**
* .streamlayer.interactive.QuestionLayout layout = 1 [json_name = "layout"];
* @return This builder for chaining.
*/
public Builder clearLayout() {
copyOnWrite();
instance.clearLayout();
return this;
}
/**
* .streamlayer.interactive.QuestionImages images = 2 [json_name = "images"];
* @return The enum numeric value on the wire for images.
*/
@java.lang.Override
public int getImagesValue() {
return instance.getImagesValue();
}
/**
* .streamlayer.interactive.QuestionImages images = 2 [json_name = "images"];
* @param value The images to set.
* @return This builder for chaining.
*/
public Builder setImagesValue(int value) {
copyOnWrite();
instance.setImagesValue(value);
return this;
}
/**
* .streamlayer.interactive.QuestionImages images = 2 [json_name = "images"];
* @return The images.
*/
@java.lang.Override
public com.streamlayer.interactive.common.QuestionImages getImages() {
return instance.getImages();
}
/**
* .streamlayer.interactive.QuestionImages images = 2 [json_name = "images"];
* @param value The enum numeric value on the wire for images to set.
* @return This builder for chaining.
*/
public Builder setImages(com.streamlayer.interactive.common.QuestionImages value) {
copyOnWrite();
instance.setImages(value);
return this;
}
/**
* .streamlayer.interactive.QuestionImages images = 2 [json_name = "images"];
* @return This builder for chaining.
*/
public Builder clearImages() {
copyOnWrite();
instance.clearImages();
return this;
}
/**
* string primary_color = 3 [json_name = "primaryColor"];
* @return The primaryColor.
*/
@java.lang.Override
public java.lang.String getPrimaryColor() {
return instance.getPrimaryColor();
}
/**
* string primary_color = 3 [json_name = "primaryColor"];
* @return The bytes for primaryColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPrimaryColorBytes() {
return instance.getPrimaryColorBytes();
}
/**
* string primary_color = 3 [json_name = "primaryColor"];
* @param value The primaryColor to set.
* @return This builder for chaining.
*/
public Builder setPrimaryColor(
java.lang.String value) {
copyOnWrite();
instance.setPrimaryColor(value);
return this;
}
/**
* string primary_color = 3 [json_name = "primaryColor"];
* @return This builder for chaining.
*/
public Builder clearPrimaryColor() {
copyOnWrite();
instance.clearPrimaryColor();
return this;
}
/**
* string primary_color = 3 [json_name = "primaryColor"];
* @param value The bytes for primaryColor to set.
* @return This builder for chaining.
*/
public Builder setPrimaryColorBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setPrimaryColorBytes(value);
return this;
}
/**
* .streamlayer.interactive.QuestionPosition position = 4 [json_name = "position"];
* @return The enum numeric value on the wire for position.
*/
@java.lang.Override
public int getPositionValue() {
return instance.getPositionValue();
}
/**
* .streamlayer.interactive.QuestionPosition position = 4 [json_name = "position"];
* @param value The position to set.
* @return This builder for chaining.
*/
public Builder setPositionValue(int value) {
copyOnWrite();
instance.setPositionValue(value);
return this;
}
/**
* .streamlayer.interactive.QuestionPosition position = 4 [json_name = "position"];
* @return The position.
*/
@java.lang.Override
public com.streamlayer.interactive.common.QuestionPosition getPosition() {
return instance.getPosition();
}
/**
* .streamlayer.interactive.QuestionPosition position = 4 [json_name = "position"];
* @param value The enum numeric value on the wire for position to set.
* @return This builder for chaining.
*/
public Builder setPosition(com.streamlayer.interactive.common.QuestionPosition value) {
copyOnWrite();
instance.setPosition(value);
return this;
}
/**
* .streamlayer.interactive.QuestionPosition position = 4 [json_name = "position"];
* @return This builder for chaining.
*/
public Builder clearPosition() {
copyOnWrite();
instance.clearPosition();
return this;
}
/**
* uint64 auto_hide_interval = 5 [json_name = "autoHideInterval"];
* @return The autoHideInterval.
*/
@java.lang.Override
public long getAutoHideInterval() {
return instance.getAutoHideInterval();
}
/**
* uint64 auto_hide_interval = 5 [json_name = "autoHideInterval"];
* @param value The autoHideInterval to set.
* @return This builder for chaining.
*/
public Builder setAutoHideInterval(long value) {
copyOnWrite();
instance.setAutoHideInterval(value);
return this;
}
/**
* uint64 auto_hide_interval = 5 [json_name = "autoHideInterval"];
* @return This builder for chaining.
*/
public Builder clearAutoHideInterval() {
copyOnWrite();
instance.clearAutoHideInterval();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.interactive.QuestionAppearance)
}
@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.QuestionAppearance();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"layout_",
"images_",
"primaryColor_",
"position_",
"autoHideInterval_",
};
java.lang.String info =
"\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\f\u0002\f\u0003" +
"\u0208\u0004\f\u0005\u0003";
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.QuestionAppearance.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.QuestionAppearance)
private static final com.streamlayer.interactive.common.QuestionAppearance DEFAULT_INSTANCE;
static {
QuestionAppearance defaultInstance = new QuestionAppearance();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
QuestionAppearance.class, defaultInstance);
}
public static com.streamlayer.interactive.common.QuestionAppearance getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}