main.java.com.streamlayer.sdkSettings.game.common.GameAppearance 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/sdkSettings/game/common/game_common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sdkSettings.game.common;
/**
* Protobuf type {@code streamlayer.sdkSettings.game.common.GameAppearance}
*/
public final class GameAppearance extends
com.google.protobuf.GeneratedMessageLite<
GameAppearance, GameAppearance.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.game.common.GameAppearance)
GameAppearanceOrBuilder {
private GameAppearance() {
primaryColor_ = "";
secondaryColor_ = "";
accentColor_ = "";
}
public static final int PRIMARY_COLOR_FIELD_NUMBER = 1;
private java.lang.String primaryColor_;
/**
* string primary_color = 1 [json_name = "primaryColor"];
* @return The primaryColor.
*/
@java.lang.Override
public java.lang.String getPrimaryColor() {
return primaryColor_;
}
/**
* string primary_color = 1 [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 = 1 [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 = 1 [json_name = "primaryColor"];
*/
private void clearPrimaryColor() {
primaryColor_ = getDefaultInstance().getPrimaryColor();
}
/**
* string primary_color = 1 [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 SECONDARY_COLOR_FIELD_NUMBER = 2;
private java.lang.String secondaryColor_;
/**
* string secondary_color = 2 [json_name = "secondaryColor"];
* @return The secondaryColor.
*/
@java.lang.Override
public java.lang.String getSecondaryColor() {
return secondaryColor_;
}
/**
* string secondary_color = 2 [json_name = "secondaryColor"];
* @return The bytes for secondaryColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSecondaryColorBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(secondaryColor_);
}
/**
* string secondary_color = 2 [json_name = "secondaryColor"];
* @param value The secondaryColor to set.
*/
private void setSecondaryColor(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
secondaryColor_ = value;
}
/**
* string secondary_color = 2 [json_name = "secondaryColor"];
*/
private void clearSecondaryColor() {
secondaryColor_ = getDefaultInstance().getSecondaryColor();
}
/**
* string secondary_color = 2 [json_name = "secondaryColor"];
* @param value The bytes for secondaryColor to set.
*/
private void setSecondaryColorBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
secondaryColor_ = value.toStringUtf8();
}
public static final int ACCENT_COLOR_FIELD_NUMBER = 3;
private java.lang.String accentColor_;
/**
* string accent_color = 3 [json_name = "accentColor"];
* @return The accentColor.
*/
@java.lang.Override
public java.lang.String getAccentColor() {
return accentColor_;
}
/**
* string accent_color = 3 [json_name = "accentColor"];
* @return The bytes for accentColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccentColorBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(accentColor_);
}
/**
* string accent_color = 3 [json_name = "accentColor"];
* @param value The accentColor to set.
*/
private void setAccentColor(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
accentColor_ = value;
}
/**
* string accent_color = 3 [json_name = "accentColor"];
*/
private void clearAccentColor() {
accentColor_ = getDefaultInstance().getAccentColor();
}
/**
* string accent_color = 3 [json_name = "accentColor"];
* @param value The bytes for accentColor to set.
*/
private void setAccentColorBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
accentColor_ = value.toStringUtf8();
}
public static com.streamlayer.sdkSettings.game.common.GameAppearance parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.game.common.GameAppearance 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.sdkSettings.game.common.GameAppearance parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.game.common.GameAppearance 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.sdkSettings.game.common.GameAppearance parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.game.common.GameAppearance 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.sdkSettings.game.common.GameAppearance parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.game.common.GameAppearance 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.sdkSettings.game.common.GameAppearance parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.game.common.GameAppearance parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.sdkSettings.game.common.GameAppearance parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.game.common.GameAppearance 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.sdkSettings.game.common.GameAppearance prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sdkSettings.game.common.GameAppearance}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sdkSettings.game.common.GameAppearance, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sdkSettings.game.common.GameAppearance)
com.streamlayer.sdkSettings.game.common.GameAppearanceOrBuilder {
// Construct using com.streamlayer.sdkSettings.game.common.GameAppearance.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string primary_color = 1 [json_name = "primaryColor"];
* @return The primaryColor.
*/
@java.lang.Override
public java.lang.String getPrimaryColor() {
return instance.getPrimaryColor();
}
/**
* string primary_color = 1 [json_name = "primaryColor"];
* @return The bytes for primaryColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPrimaryColorBytes() {
return instance.getPrimaryColorBytes();
}
/**
* string primary_color = 1 [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 = 1 [json_name = "primaryColor"];
* @return This builder for chaining.
*/
public Builder clearPrimaryColor() {
copyOnWrite();
instance.clearPrimaryColor();
return this;
}
/**
* string primary_color = 1 [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;
}
/**
* string secondary_color = 2 [json_name = "secondaryColor"];
* @return The secondaryColor.
*/
@java.lang.Override
public java.lang.String getSecondaryColor() {
return instance.getSecondaryColor();
}
/**
* string secondary_color = 2 [json_name = "secondaryColor"];
* @return The bytes for secondaryColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSecondaryColorBytes() {
return instance.getSecondaryColorBytes();
}
/**
* string secondary_color = 2 [json_name = "secondaryColor"];
* @param value The secondaryColor to set.
* @return This builder for chaining.
*/
public Builder setSecondaryColor(
java.lang.String value) {
copyOnWrite();
instance.setSecondaryColor(value);
return this;
}
/**
* string secondary_color = 2 [json_name = "secondaryColor"];
* @return This builder for chaining.
*/
public Builder clearSecondaryColor() {
copyOnWrite();
instance.clearSecondaryColor();
return this;
}
/**
* string secondary_color = 2 [json_name = "secondaryColor"];
* @param value The bytes for secondaryColor to set.
* @return This builder for chaining.
*/
public Builder setSecondaryColorBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSecondaryColorBytes(value);
return this;
}
/**
* string accent_color = 3 [json_name = "accentColor"];
* @return The accentColor.
*/
@java.lang.Override
public java.lang.String getAccentColor() {
return instance.getAccentColor();
}
/**
* string accent_color = 3 [json_name = "accentColor"];
* @return The bytes for accentColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccentColorBytes() {
return instance.getAccentColorBytes();
}
/**
* string accent_color = 3 [json_name = "accentColor"];
* @param value The accentColor to set.
* @return This builder for chaining.
*/
public Builder setAccentColor(
java.lang.String value) {
copyOnWrite();
instance.setAccentColor(value);
return this;
}
/**
* string accent_color = 3 [json_name = "accentColor"];
* @return This builder for chaining.
*/
public Builder clearAccentColor() {
copyOnWrite();
instance.clearAccentColor();
return this;
}
/**
* string accent_color = 3 [json_name = "accentColor"];
* @param value The bytes for accentColor to set.
* @return This builder for chaining.
*/
public Builder setAccentColorBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setAccentColorBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sdkSettings.game.common.GameAppearance)
}
@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.sdkSettings.game.common.GameAppearance();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"primaryColor_",
"secondaryColor_",
"accentColor_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
"\u0003\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.sdkSettings.game.common.GameAppearance.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.sdkSettings.game.common.GameAppearance)
private static final com.streamlayer.sdkSettings.game.common.GameAppearance DEFAULT_INSTANCE;
static {
GameAppearance defaultInstance = new GameAppearance();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
GameAppearance.class, defaultInstance);
}
public static com.streamlayer.sdkSettings.game.common.GameAppearance getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}