main.java.com.streamlayer.interactive.common.ServerNotificationOptions 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;
/**
*
* UI defines parameters for notification, api forwards parameters back in subscription messages
*
*
* Protobuf type {@code streamlayer.interactive.ServerNotificationOptions}
*/
public final class ServerNotificationOptions extends
com.google.protobuf.GeneratedMessageLite<
ServerNotificationOptions, ServerNotificationOptions.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.interactive.ServerNotificationOptions)
ServerNotificationOptionsOrBuilder {
private ServerNotificationOptions() {
}
public static final int SILENCE_FIELD_NUMBER = 1;
private boolean silence_;
/**
*
* skip modal
*
*
* bool silence = 1 [json_name = "silence"];
* @return The silence.
*/
@java.lang.Override
public boolean getSilence() {
return silence_;
}
/**
*
* skip modal
*
*
* bool silence = 1 [json_name = "silence"];
* @param value The silence to set.
*/
private void setSilence(boolean value) {
silence_ = value;
}
/**
*
* skip modal
*
*
* bool silence = 1 [json_name = "silence"];
*/
private void clearSilence() {
silence_ = false;
}
public static final int SKIP_UPDATE_FIELD_NUMBER = 2;
private boolean skipUpdate_;
/**
*
* skip update data
*
*
* bool skip_update = 2 [json_name = "skipUpdate"];
* @return The skipUpdate.
*/
@java.lang.Override
public boolean getSkipUpdate() {
return skipUpdate_;
}
/**
*
* skip update data
*
*
* bool skip_update = 2 [json_name = "skipUpdate"];
* @param value The skipUpdate to set.
*/
private void setSkipUpdate(boolean value) {
skipUpdate_ = value;
}
/**
*
* skip update data
*
*
* bool skip_update = 2 [json_name = "skipUpdate"];
*/
private void clearSkipUpdate() {
skipUpdate_ = false;
}
public static com.streamlayer.interactive.common.ServerNotificationOptions 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.ServerNotificationOptions 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.ServerNotificationOptions 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.ServerNotificationOptions 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.ServerNotificationOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.interactive.common.ServerNotificationOptions 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.ServerNotificationOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.common.ServerNotificationOptions 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.ServerNotificationOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.common.ServerNotificationOptions 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.ServerNotificationOptions 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.ServerNotificationOptions 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.ServerNotificationOptions prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* UI defines parameters for notification, api forwards parameters back in subscription messages
*
*
* Protobuf type {@code streamlayer.interactive.ServerNotificationOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.interactive.common.ServerNotificationOptions, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.interactive.ServerNotificationOptions)
com.streamlayer.interactive.common.ServerNotificationOptionsOrBuilder {
// Construct using com.streamlayer.interactive.common.ServerNotificationOptions.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* skip modal
*
*
* bool silence = 1 [json_name = "silence"];
* @return The silence.
*/
@java.lang.Override
public boolean getSilence() {
return instance.getSilence();
}
/**
*
* skip modal
*
*
* bool silence = 1 [json_name = "silence"];
* @param value The silence to set.
* @return This builder for chaining.
*/
public Builder setSilence(boolean value) {
copyOnWrite();
instance.setSilence(value);
return this;
}
/**
*
* skip modal
*
*
* bool silence = 1 [json_name = "silence"];
* @return This builder for chaining.
*/
public Builder clearSilence() {
copyOnWrite();
instance.clearSilence();
return this;
}
/**
*
* skip update data
*
*
* bool skip_update = 2 [json_name = "skipUpdate"];
* @return The skipUpdate.
*/
@java.lang.Override
public boolean getSkipUpdate() {
return instance.getSkipUpdate();
}
/**
*
* skip update data
*
*
* bool skip_update = 2 [json_name = "skipUpdate"];
* @param value The skipUpdate to set.
* @return This builder for chaining.
*/
public Builder setSkipUpdate(boolean value) {
copyOnWrite();
instance.setSkipUpdate(value);
return this;
}
/**
*
* skip update data
*
*
* bool skip_update = 2 [json_name = "skipUpdate"];
* @return This builder for chaining.
*/
public Builder clearSkipUpdate() {
copyOnWrite();
instance.clearSkipUpdate();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.interactive.ServerNotificationOptions)
}
@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.ServerNotificationOptions();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"silence_",
"skipUpdate_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0007\u0002\u0007" +
"";
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.ServerNotificationOptions.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.ServerNotificationOptions)
private static final com.streamlayer.interactive.common.ServerNotificationOptions DEFAULT_INSTANCE;
static {
ServerNotificationOptions defaultInstance = new ServerNotificationOptions();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ServerNotificationOptions.class, defaultInstance);
}
public static com.streamlayer.interactive.common.ServerNotificationOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}