main.java.com.streamlayer.interactive.common.PromotionNotification 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.PromotionNotification}
*/
public final class PromotionNotification extends
com.google.protobuf.GeneratedMessageLite<
PromotionNotification, PromotionNotification.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.interactive.PromotionNotification)
PromotionNotificationOrBuilder {
private PromotionNotification() {
sponsorLogo_ = "";
}
private int bitField0_;
public static final int SPONSOR_LOGO_FIELD_NUMBER = 1;
private java.lang.String sponsorLogo_;
/**
* string sponsor_logo = 1 [json_name = "sponsorLogo"];
* @return The sponsorLogo.
*/
@java.lang.Override
public java.lang.String getSponsorLogo() {
return sponsorLogo_;
}
/**
* string sponsor_logo = 1 [json_name = "sponsorLogo"];
* @return The bytes for sponsorLogo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSponsorLogoBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(sponsorLogo_);
}
/**
* string sponsor_logo = 1 [json_name = "sponsorLogo"];
* @param value The sponsorLogo to set.
*/
private void setSponsorLogo(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
sponsorLogo_ = value;
}
/**
* string sponsor_logo = 1 [json_name = "sponsorLogo"];
*/
private void clearSponsorLogo() {
sponsorLogo_ = getDefaultInstance().getSponsorLogo();
}
/**
* string sponsor_logo = 1 [json_name = "sponsorLogo"];
* @param value The bytes for sponsorLogo to set.
*/
private void setSponsorLogoBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
sponsorLogo_ = value.toStringUtf8();
}
public static final int SPONSOR_LOGO_MODE_FIELD_NUMBER = 2;
private int sponsorLogoMode_;
/**
* .streamlayer.interactive.NotificationSponsorLogoMode sponsor_logo_mode = 2 [json_name = "sponsorLogoMode"];
* @return The enum numeric value on the wire for sponsorLogoMode.
*/
@java.lang.Override
public int getSponsorLogoModeValue() {
return sponsorLogoMode_;
}
/**
* .streamlayer.interactive.NotificationSponsorLogoMode sponsor_logo_mode = 2 [json_name = "sponsorLogoMode"];
* @return The sponsorLogoMode.
*/
@java.lang.Override
public com.streamlayer.interactive.common.NotificationSponsorLogoMode getSponsorLogoMode() {
com.streamlayer.interactive.common.NotificationSponsorLogoMode result = com.streamlayer.interactive.common.NotificationSponsorLogoMode.forNumber(sponsorLogoMode_);
return result == null ? com.streamlayer.interactive.common.NotificationSponsorLogoMode.UNRECOGNIZED : result;
}
/**
* .streamlayer.interactive.NotificationSponsorLogoMode sponsor_logo_mode = 2 [json_name = "sponsorLogoMode"];
* @param value The enum numeric value on the wire for sponsorLogoMode to set.
*/
private void setSponsorLogoModeValue(int value) {
sponsorLogoMode_ = value;
}
/**
* .streamlayer.interactive.NotificationSponsorLogoMode sponsor_logo_mode = 2 [json_name = "sponsorLogoMode"];
* @param value The sponsorLogoMode to set.
*/
private void setSponsorLogoMode(com.streamlayer.interactive.common.NotificationSponsorLogoMode value) {
sponsorLogoMode_ = value.getNumber();
}
/**
* .streamlayer.interactive.NotificationSponsorLogoMode sponsor_logo_mode = 2 [json_name = "sponsorLogoMode"];
*/
private void clearSponsorLogoMode() {
sponsorLogoMode_ = 0;
}
public static final int CTA_BUTTON_FIELD_NUMBER = 3;
private com.streamlayer.interactive.common.CTAButton ctaButton_;
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
@java.lang.Override
public boolean hasCtaButton() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
@java.lang.Override
public com.streamlayer.interactive.common.CTAButton getCtaButton() {
return ctaButton_ == null ? com.streamlayer.interactive.common.CTAButton.getDefaultInstance() : ctaButton_;
}
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
private void setCtaButton(com.streamlayer.interactive.common.CTAButton value) {
value.getClass();
ctaButton_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeCtaButton(com.streamlayer.interactive.common.CTAButton value) {
value.getClass();
if (ctaButton_ != null &&
ctaButton_ != com.streamlayer.interactive.common.CTAButton.getDefaultInstance()) {
ctaButton_ =
com.streamlayer.interactive.common.CTAButton.newBuilder(ctaButton_).mergeFrom(value).buildPartial();
} else {
ctaButton_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
private void clearCtaButton() { ctaButton_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int IMAGE_POSITION_FIELD_NUMBER = 4;
private int imagePosition_;
/**
* .streamlayer.interactive.NotificationPromotionImagePosition image_position = 4 [json_name = "imagePosition"];
* @return The enum numeric value on the wire for imagePosition.
*/
@java.lang.Override
public int getImagePositionValue() {
return imagePosition_;
}
/**
* .streamlayer.interactive.NotificationPromotionImagePosition image_position = 4 [json_name = "imagePosition"];
* @return The imagePosition.
*/
@java.lang.Override
public com.streamlayer.interactive.common.NotificationPromotionImagePosition getImagePosition() {
com.streamlayer.interactive.common.NotificationPromotionImagePosition result = com.streamlayer.interactive.common.NotificationPromotionImagePosition.forNumber(imagePosition_);
return result == null ? com.streamlayer.interactive.common.NotificationPromotionImagePosition.UNRECOGNIZED : result;
}
/**
* .streamlayer.interactive.NotificationPromotionImagePosition image_position = 4 [json_name = "imagePosition"];
* @param value The enum numeric value on the wire for imagePosition to set.
*/
private void setImagePositionValue(int value) {
imagePosition_ = value;
}
/**
* .streamlayer.interactive.NotificationPromotionImagePosition image_position = 4 [json_name = "imagePosition"];
* @param value The imagePosition to set.
*/
private void setImagePosition(com.streamlayer.interactive.common.NotificationPromotionImagePosition value) {
imagePosition_ = value.getNumber();
}
/**
* .streamlayer.interactive.NotificationPromotionImagePosition image_position = 4 [json_name = "imagePosition"];
*/
private void clearImagePosition() {
imagePosition_ = 0;
}
public static final int MODE_FIELD_NUMBER = 5;
private int mode_;
/**
* .streamlayer.interactive.NotificationPromotionMode mode = 5 [json_name = "mode"];
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override
public int getModeValue() {
return mode_;
}
/**
* .streamlayer.interactive.NotificationPromotionMode mode = 5 [json_name = "mode"];
* @return The mode.
*/
@java.lang.Override
public com.streamlayer.interactive.common.NotificationPromotionMode getMode() {
com.streamlayer.interactive.common.NotificationPromotionMode result = com.streamlayer.interactive.common.NotificationPromotionMode.forNumber(mode_);
return result == null ? com.streamlayer.interactive.common.NotificationPromotionMode.UNRECOGNIZED : result;
}
/**
* .streamlayer.interactive.NotificationPromotionMode mode = 5 [json_name = "mode"];
* @param value The enum numeric value on the wire for mode to set.
*/
private void setModeValue(int value) {
mode_ = value;
}
/**
* .streamlayer.interactive.NotificationPromotionMode mode = 5 [json_name = "mode"];
* @param value The mode to set.
*/
private void setMode(com.streamlayer.interactive.common.NotificationPromotionMode value) {
mode_ = value.getNumber();
}
/**
* .streamlayer.interactive.NotificationPromotionMode mode = 5 [json_name = "mode"];
*/
private void clearMode() {
mode_ = 0;
}
public static com.streamlayer.interactive.common.PromotionNotification 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.PromotionNotification 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.PromotionNotification 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.PromotionNotification 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.PromotionNotification parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.interactive.common.PromotionNotification 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.PromotionNotification parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.common.PromotionNotification 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.PromotionNotification parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.common.PromotionNotification 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.PromotionNotification 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.PromotionNotification 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.PromotionNotification prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.interactive.PromotionNotification}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.interactive.common.PromotionNotification, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.interactive.PromotionNotification)
com.streamlayer.interactive.common.PromotionNotificationOrBuilder {
// Construct using com.streamlayer.interactive.common.PromotionNotification.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string sponsor_logo = 1 [json_name = "sponsorLogo"];
* @return The sponsorLogo.
*/
@java.lang.Override
public java.lang.String getSponsorLogo() {
return instance.getSponsorLogo();
}
/**
* string sponsor_logo = 1 [json_name = "sponsorLogo"];
* @return The bytes for sponsorLogo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSponsorLogoBytes() {
return instance.getSponsorLogoBytes();
}
/**
* string sponsor_logo = 1 [json_name = "sponsorLogo"];
* @param value The sponsorLogo to set.
* @return This builder for chaining.
*/
public Builder setSponsorLogo(
java.lang.String value) {
copyOnWrite();
instance.setSponsorLogo(value);
return this;
}
/**
* string sponsor_logo = 1 [json_name = "sponsorLogo"];
* @return This builder for chaining.
*/
public Builder clearSponsorLogo() {
copyOnWrite();
instance.clearSponsorLogo();
return this;
}
/**
* string sponsor_logo = 1 [json_name = "sponsorLogo"];
* @param value The bytes for sponsorLogo to set.
* @return This builder for chaining.
*/
public Builder setSponsorLogoBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSponsorLogoBytes(value);
return this;
}
/**
* .streamlayer.interactive.NotificationSponsorLogoMode sponsor_logo_mode = 2 [json_name = "sponsorLogoMode"];
* @return The enum numeric value on the wire for sponsorLogoMode.
*/
@java.lang.Override
public int getSponsorLogoModeValue() {
return instance.getSponsorLogoModeValue();
}
/**
* .streamlayer.interactive.NotificationSponsorLogoMode sponsor_logo_mode = 2 [json_name = "sponsorLogoMode"];
* @param value The sponsorLogoMode to set.
* @return This builder for chaining.
*/
public Builder setSponsorLogoModeValue(int value) {
copyOnWrite();
instance.setSponsorLogoModeValue(value);
return this;
}
/**
* .streamlayer.interactive.NotificationSponsorLogoMode sponsor_logo_mode = 2 [json_name = "sponsorLogoMode"];
* @return The sponsorLogoMode.
*/
@java.lang.Override
public com.streamlayer.interactive.common.NotificationSponsorLogoMode getSponsorLogoMode() {
return instance.getSponsorLogoMode();
}
/**
* .streamlayer.interactive.NotificationSponsorLogoMode sponsor_logo_mode = 2 [json_name = "sponsorLogoMode"];
* @param value The enum numeric value on the wire for sponsorLogoMode to set.
* @return This builder for chaining.
*/
public Builder setSponsorLogoMode(com.streamlayer.interactive.common.NotificationSponsorLogoMode value) {
copyOnWrite();
instance.setSponsorLogoMode(value);
return this;
}
/**
* .streamlayer.interactive.NotificationSponsorLogoMode sponsor_logo_mode = 2 [json_name = "sponsorLogoMode"];
* @return This builder for chaining.
*/
public Builder clearSponsorLogoMode() {
copyOnWrite();
instance.clearSponsorLogoMode();
return this;
}
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
@java.lang.Override
public boolean hasCtaButton() {
return instance.hasCtaButton();
}
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
@java.lang.Override
public com.streamlayer.interactive.common.CTAButton getCtaButton() {
return instance.getCtaButton();
}
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
public Builder setCtaButton(com.streamlayer.interactive.common.CTAButton value) {
copyOnWrite();
instance.setCtaButton(value);
return this;
}
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
public Builder setCtaButton(
com.streamlayer.interactive.common.CTAButton.Builder builderForValue) {
copyOnWrite();
instance.setCtaButton(builderForValue.build());
return this;
}
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
public Builder mergeCtaButton(com.streamlayer.interactive.common.CTAButton value) {
copyOnWrite();
instance.mergeCtaButton(value);
return this;
}
/**
* .streamlayer.interactive.CTAButton cta_button = 3 [json_name = "ctaButton"];
*/
public Builder clearCtaButton() { copyOnWrite();
instance.clearCtaButton();
return this;
}
/**
* .streamlayer.interactive.NotificationPromotionImagePosition image_position = 4 [json_name = "imagePosition"];
* @return The enum numeric value on the wire for imagePosition.
*/
@java.lang.Override
public int getImagePositionValue() {
return instance.getImagePositionValue();
}
/**
* .streamlayer.interactive.NotificationPromotionImagePosition image_position = 4 [json_name = "imagePosition"];
* @param value The imagePosition to set.
* @return This builder for chaining.
*/
public Builder setImagePositionValue(int value) {
copyOnWrite();
instance.setImagePositionValue(value);
return this;
}
/**
* .streamlayer.interactive.NotificationPromotionImagePosition image_position = 4 [json_name = "imagePosition"];
* @return The imagePosition.
*/
@java.lang.Override
public com.streamlayer.interactive.common.NotificationPromotionImagePosition getImagePosition() {
return instance.getImagePosition();
}
/**
* .streamlayer.interactive.NotificationPromotionImagePosition image_position = 4 [json_name = "imagePosition"];
* @param value The enum numeric value on the wire for imagePosition to set.
* @return This builder for chaining.
*/
public Builder setImagePosition(com.streamlayer.interactive.common.NotificationPromotionImagePosition value) {
copyOnWrite();
instance.setImagePosition(value);
return this;
}
/**
* .streamlayer.interactive.NotificationPromotionImagePosition image_position = 4 [json_name = "imagePosition"];
* @return This builder for chaining.
*/
public Builder clearImagePosition() {
copyOnWrite();
instance.clearImagePosition();
return this;
}
/**
* .streamlayer.interactive.NotificationPromotionMode mode = 5 [json_name = "mode"];
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override
public int getModeValue() {
return instance.getModeValue();
}
/**
* .streamlayer.interactive.NotificationPromotionMode mode = 5 [json_name = "mode"];
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setModeValue(int value) {
copyOnWrite();
instance.setModeValue(value);
return this;
}
/**
* .streamlayer.interactive.NotificationPromotionMode mode = 5 [json_name = "mode"];
* @return The mode.
*/
@java.lang.Override
public com.streamlayer.interactive.common.NotificationPromotionMode getMode() {
return instance.getMode();
}
/**
* .streamlayer.interactive.NotificationPromotionMode mode = 5 [json_name = "mode"];
* @param value The enum numeric value on the wire for mode to set.
* @return This builder for chaining.
*/
public Builder setMode(com.streamlayer.interactive.common.NotificationPromotionMode value) {
copyOnWrite();
instance.setMode(value);
return this;
}
/**
* .streamlayer.interactive.NotificationPromotionMode mode = 5 [json_name = "mode"];
* @return This builder for chaining.
*/
public Builder clearMode() {
copyOnWrite();
instance.clearMode();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.interactive.PromotionNotification)
}
@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.PromotionNotification();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"sponsorLogo_",
"sponsorLogoMode_",
"ctaButton_",
"imagePosition_",
"mode_",
};
java.lang.String info =
"\u0000\u0005\u0000\u0001\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0208\u0002\f" +
"\u0003\u1009\u0000\u0004\f\u0005\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.common.PromotionNotification.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.PromotionNotification)
private static final com.streamlayer.interactive.common.PromotionNotification DEFAULT_INSTANCE;
static {
PromotionNotification defaultInstance = new PromotionNotification();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
PromotionNotification.class, defaultInstance);
}
public static com.streamlayer.interactive.common.PromotionNotification getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}