main.java.com.streamlayer.sdkSettings.common.Advertising 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/sdkSettings.common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sdkSettings.common;
/**
* Protobuf type {@code streamlayer.sdkSettings.Advertising}
*/
public final class Advertising extends
com.google.protobuf.GeneratedMessageLite<
Advertising, Advertising.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.Advertising)
AdvertisingOrBuilder {
private Advertising() {
templateId_ = "";
}
public static final int TEMPLATE_ID_FIELD_NUMBER = 1;
private java.lang.String templateId_;
/**
* string template_id = 1 [json_name = "templateId"];
* @return The templateId.
*/
@java.lang.Override
public java.lang.String getTemplateId() {
return templateId_;
}
/**
* string template_id = 1 [json_name = "templateId"];
* @return The bytes for templateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTemplateIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(templateId_);
}
/**
* string template_id = 1 [json_name = "templateId"];
* @param value The templateId to set.
*/
private void setTemplateId(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
templateId_ = value;
}
/**
* string template_id = 1 [json_name = "templateId"];
*/
private void clearTemplateId() {
templateId_ = getDefaultInstance().getTemplateId();
}
/**
* string template_id = 1 [json_name = "templateId"];
* @param value The bytes for templateId to set.
*/
private void setTemplateIdBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
templateId_ = value.toStringUtf8();
}
public static final int OVERLAY_SETTINGS_FIELD_NUMBER = 2;
private static final class OverlaySettingsDefaultEntryHolder {
static final com.google.protobuf.MapEntryLite<
java.lang.String, com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings> defaultEntry =
com.google.protobuf.MapEntryLite
.newDefaultInstance(
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings.getDefaultInstance());
}
private com.google.protobuf.MapFieldLite<
java.lang.String, com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings> overlaySettings_ =
com.google.protobuf.MapFieldLite.emptyMapField();
private com.google.protobuf.MapFieldLite
internalGetOverlaySettings() {
return overlaySettings_;
}
private com.google.protobuf.MapFieldLite
internalGetMutableOverlaySettings() {
if (!overlaySettings_.isMutable()) {
overlaySettings_ = overlaySettings_.mutableCopy();
}
return overlaySettings_;
}
@java.lang.Override
public int getOverlaySettingsCount() {
return internalGetOverlaySettings().size();
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
@java.lang.Override
public boolean containsOverlaySettings(
java.lang.String key) {
java.lang.Class> keyClass = key.getClass();
return internalGetOverlaySettings().containsKey(key);
}
/**
* Use {@link #getOverlaySettingsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getOverlaySettings() {
return getOverlaySettingsMap();
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
@java.lang.Override
public java.util.Map getOverlaySettingsMap() {
return java.util.Collections.unmodifiableMap(
internalGetOverlaySettings());
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
@java.lang.Override
public /* nullable */
com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings getOverlaySettingsOrDefault(
java.lang.String key,
/* nullable */
com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings defaultValue) {
java.lang.Class> keyClass = key.getClass();
java.util.Map map =
internalGetOverlaySettings();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
@java.lang.Override
public com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings getOverlaySettingsOrThrow(
java.lang.String key) {
java.lang.Class> keyClass = key.getClass();
java.util.Map map =
internalGetOverlaySettings();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
private java.util.Map
getMutableOverlaySettingsMap() {
return internalGetMutableOverlaySettings();
}
public static com.streamlayer.sdkSettings.common.Advertising parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.common.Advertising 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.common.Advertising 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.common.Advertising 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.common.Advertising parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.common.Advertising 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.common.Advertising parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.common.Advertising 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.common.Advertising parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.common.Advertising 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.common.Advertising parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.common.Advertising 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.common.Advertising prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sdkSettings.Advertising}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sdkSettings.common.Advertising, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sdkSettings.Advertising)
com.streamlayer.sdkSettings.common.AdvertisingOrBuilder {
// Construct using com.streamlayer.sdkSettings.common.Advertising.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string template_id = 1 [json_name = "templateId"];
* @return The templateId.
*/
@java.lang.Override
public java.lang.String getTemplateId() {
return instance.getTemplateId();
}
/**
* string template_id = 1 [json_name = "templateId"];
* @return The bytes for templateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTemplateIdBytes() {
return instance.getTemplateIdBytes();
}
/**
* string template_id = 1 [json_name = "templateId"];
* @param value The templateId to set.
* @return This builder for chaining.
*/
public Builder setTemplateId(
java.lang.String value) {
copyOnWrite();
instance.setTemplateId(value);
return this;
}
/**
* string template_id = 1 [json_name = "templateId"];
* @return This builder for chaining.
*/
public Builder clearTemplateId() {
copyOnWrite();
instance.clearTemplateId();
return this;
}
/**
* string template_id = 1 [json_name = "templateId"];
* @param value The bytes for templateId to set.
* @return This builder for chaining.
*/
public Builder setTemplateIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTemplateIdBytes(value);
return this;
}
@java.lang.Override
public int getOverlaySettingsCount() {
return instance.getOverlaySettingsMap().size();
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
@java.lang.Override
public boolean containsOverlaySettings(
java.lang.String key) {
java.lang.Class> keyClass = key.getClass();
return instance.getOverlaySettingsMap().containsKey(key);
}
public Builder clearOverlaySettings() {
copyOnWrite();
instance.getMutableOverlaySettingsMap().clear();
return this;
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
public Builder removeOverlaySettings(
java.lang.String key) {
java.lang.Class> keyClass = key.getClass();
copyOnWrite();
instance.getMutableOverlaySettingsMap().remove(key);
return this;
}
/**
* Use {@link #getOverlaySettingsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getOverlaySettings() {
return getOverlaySettingsMap();
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
@java.lang.Override
public java.util.Map getOverlaySettingsMap() {
return java.util.Collections.unmodifiableMap(
instance.getOverlaySettingsMap());
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
@java.lang.Override
public /* nullable */
com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings getOverlaySettingsOrDefault(
java.lang.String key,
/* nullable */
com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings defaultValue) {
java.lang.Class> keyClass = key.getClass();
java.util.Map map =
instance.getOverlaySettingsMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
@java.lang.Override
public com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings getOverlaySettingsOrThrow(
java.lang.String key) {
java.lang.Class> keyClass = key.getClass();
java.util.Map map =
instance.getOverlaySettingsMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
public Builder putOverlaySettings(
java.lang.String key,
com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings value) {
java.lang.Class> keyClass = key.getClass();
java.lang.Class> valueClass = value.getClass();
copyOnWrite();
instance.getMutableOverlaySettingsMap().put(key, value);
return this;
}
/**
*
* key is overlay name
*
*
* map<string, .streamlayer.sdkSettings.AdvertisingOverlaySettings> overlay_settings = 2 [json_name = "overlaySettings"];
*/
public Builder putAllOverlaySettings(
java.util.Map values) {
copyOnWrite();
instance.getMutableOverlaySettingsMap().putAll(values);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sdkSettings.Advertising)
}
@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.common.Advertising();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"templateId_",
"overlaySettings_",
OverlaySettingsDefaultEntryHolder.defaultEntry,
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0001\u0000\u0000\u0001\u0208\u00022";
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.common.Advertising.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.Advertising)
private static final com.streamlayer.sdkSettings.common.Advertising DEFAULT_INSTANCE;
static {
Advertising defaultInstance = new Advertising();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Advertising.class, defaultInstance);
}
public static com.streamlayer.sdkSettings.common.Advertising getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}