main.java.com.streamlayer.sdkSettings.common.AdvertisingSettings 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.AdvertisingSettings}
*/
public final class AdvertisingSettings extends
com.google.protobuf.GeneratedMessageLite<
AdvertisingSettings, AdvertisingSettings.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.AdvertisingSettings)
AdvertisingSettingsOrBuilder {
private AdvertisingSettings() {
images_ = emptyProtobufList();
videos_ = emptyProtobufList();
}
public static final int FREQUENCY_FIELD_NUMBER = 1;
private int frequency_;
/**
* int32 frequency = 1 [json_name = "frequency"];
* @return The frequency.
*/
@java.lang.Override
public int getFrequency() {
return frequency_;
}
/**
* int32 frequency = 1 [json_name = "frequency"];
* @param value The frequency to set.
*/
private void setFrequency(int value) {
frequency_ = value;
}
/**
* int32 frequency = 1 [json_name = "frequency"];
*/
private void clearFrequency() {
frequency_ = 0;
}
public static final int IMAGES_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.ProtobufList images_;
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
@java.lang.Override
public java.util.List getImagesList() {
return images_;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public java.util.List extends com.streamlayer.sdkSettings.common.AdvertisingImageOrBuilder>
getImagesOrBuilderList() {
return images_;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
@java.lang.Override
public int getImagesCount() {
return images_.size();
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
@java.lang.Override
public com.streamlayer.sdkSettings.common.AdvertisingImage getImages(int index) {
return images_.get(index);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public com.streamlayer.sdkSettings.common.AdvertisingImageOrBuilder getImagesOrBuilder(
int index) {
return images_.get(index);
}
private void ensureImagesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = images_;
if (!tmp.isModifiable()) {
images_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
private void setImages(
int index, com.streamlayer.sdkSettings.common.AdvertisingImage value) {
value.getClass();
ensureImagesIsMutable();
images_.set(index, value);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
private void addImages(com.streamlayer.sdkSettings.common.AdvertisingImage value) {
value.getClass();
ensureImagesIsMutable();
images_.add(value);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
private void addImages(
int index, com.streamlayer.sdkSettings.common.AdvertisingImage value) {
value.getClass();
ensureImagesIsMutable();
images_.add(index, value);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
private void addAllImages(
java.lang.Iterable extends com.streamlayer.sdkSettings.common.AdvertisingImage> values) {
ensureImagesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, images_);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
private void clearImages() {
images_ = emptyProtobufList();
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
private void removeImages(int index) {
ensureImagesIsMutable();
images_.remove(index);
}
public static final int VIDEOS_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.ProtobufList videos_;
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
@java.lang.Override
public java.util.List getVideosList() {
return videos_;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public java.util.List extends com.streamlayer.sdkSettings.common.AdvertisingVideoOrBuilder>
getVideosOrBuilderList() {
return videos_;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
@java.lang.Override
public int getVideosCount() {
return videos_.size();
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
@java.lang.Override
public com.streamlayer.sdkSettings.common.AdvertisingVideo getVideos(int index) {
return videos_.get(index);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public com.streamlayer.sdkSettings.common.AdvertisingVideoOrBuilder getVideosOrBuilder(
int index) {
return videos_.get(index);
}
private void ensureVideosIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = videos_;
if (!tmp.isModifiable()) {
videos_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
private void setVideos(
int index, com.streamlayer.sdkSettings.common.AdvertisingVideo value) {
value.getClass();
ensureVideosIsMutable();
videos_.set(index, value);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
private void addVideos(com.streamlayer.sdkSettings.common.AdvertisingVideo value) {
value.getClass();
ensureVideosIsMutable();
videos_.add(value);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
private void addVideos(
int index, com.streamlayer.sdkSettings.common.AdvertisingVideo value) {
value.getClass();
ensureVideosIsMutable();
videos_.add(index, value);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
private void addAllVideos(
java.lang.Iterable extends com.streamlayer.sdkSettings.common.AdvertisingVideo> values) {
ensureVideosIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, videos_);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
private void clearVideos() {
videos_ = emptyProtobufList();
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
private void removeVideos(int index) {
ensureVideosIsMutable();
videos_.remove(index);
}
public static com.streamlayer.sdkSettings.common.AdvertisingSettings 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.AdvertisingSettings 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.AdvertisingSettings 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.AdvertisingSettings 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.AdvertisingSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.common.AdvertisingSettings 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.AdvertisingSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.common.AdvertisingSettings 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.AdvertisingSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.common.AdvertisingSettings 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.AdvertisingSettings 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.AdvertisingSettings 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.AdvertisingSettings prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sdkSettings.AdvertisingSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sdkSettings.common.AdvertisingSettings, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sdkSettings.AdvertisingSettings)
com.streamlayer.sdkSettings.common.AdvertisingSettingsOrBuilder {
// Construct using com.streamlayer.sdkSettings.common.AdvertisingSettings.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* int32 frequency = 1 [json_name = "frequency"];
* @return The frequency.
*/
@java.lang.Override
public int getFrequency() {
return instance.getFrequency();
}
/**
* int32 frequency = 1 [json_name = "frequency"];
* @param value The frequency to set.
* @return This builder for chaining.
*/
public Builder setFrequency(int value) {
copyOnWrite();
instance.setFrequency(value);
return this;
}
/**
* int32 frequency = 1 [json_name = "frequency"];
* @return This builder for chaining.
*/
public Builder clearFrequency() {
copyOnWrite();
instance.clearFrequency();
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
@java.lang.Override
public java.util.List getImagesList() {
return java.util.Collections.unmodifiableList(
instance.getImagesList());
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
@java.lang.Override
public int getImagesCount() {
return instance.getImagesCount();
}/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
@java.lang.Override
public com.streamlayer.sdkSettings.common.AdvertisingImage getImages(int index) {
return instance.getImages(index);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public Builder setImages(
int index, com.streamlayer.sdkSettings.common.AdvertisingImage value) {
copyOnWrite();
instance.setImages(index, value);
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public Builder setImages(
int index, com.streamlayer.sdkSettings.common.AdvertisingImage.Builder builderForValue) {
copyOnWrite();
instance.setImages(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public Builder addImages(com.streamlayer.sdkSettings.common.AdvertisingImage value) {
copyOnWrite();
instance.addImages(value);
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public Builder addImages(
int index, com.streamlayer.sdkSettings.common.AdvertisingImage value) {
copyOnWrite();
instance.addImages(index, value);
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public Builder addImages(
com.streamlayer.sdkSettings.common.AdvertisingImage.Builder builderForValue) {
copyOnWrite();
instance.addImages(builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public Builder addImages(
int index, com.streamlayer.sdkSettings.common.AdvertisingImage.Builder builderForValue) {
copyOnWrite();
instance.addImages(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public Builder addAllImages(
java.lang.Iterable extends com.streamlayer.sdkSettings.common.AdvertisingImage> values) {
copyOnWrite();
instance.addAllImages(values);
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public Builder clearImages() {
copyOnWrite();
instance.clearImages();
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingImage images = 2 [json_name = "images"];
*/
public Builder removeImages(int index) {
copyOnWrite();
instance.removeImages(index);
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
@java.lang.Override
public java.util.List getVideosList() {
return java.util.Collections.unmodifiableList(
instance.getVideosList());
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
@java.lang.Override
public int getVideosCount() {
return instance.getVideosCount();
}/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
@java.lang.Override
public com.streamlayer.sdkSettings.common.AdvertisingVideo getVideos(int index) {
return instance.getVideos(index);
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public Builder setVideos(
int index, com.streamlayer.sdkSettings.common.AdvertisingVideo value) {
copyOnWrite();
instance.setVideos(index, value);
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public Builder setVideos(
int index, com.streamlayer.sdkSettings.common.AdvertisingVideo.Builder builderForValue) {
copyOnWrite();
instance.setVideos(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public Builder addVideos(com.streamlayer.sdkSettings.common.AdvertisingVideo value) {
copyOnWrite();
instance.addVideos(value);
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public Builder addVideos(
int index, com.streamlayer.sdkSettings.common.AdvertisingVideo value) {
copyOnWrite();
instance.addVideos(index, value);
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public Builder addVideos(
com.streamlayer.sdkSettings.common.AdvertisingVideo.Builder builderForValue) {
copyOnWrite();
instance.addVideos(builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public Builder addVideos(
int index, com.streamlayer.sdkSettings.common.AdvertisingVideo.Builder builderForValue) {
copyOnWrite();
instance.addVideos(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public Builder addAllVideos(
java.lang.Iterable extends com.streamlayer.sdkSettings.common.AdvertisingVideo> values) {
copyOnWrite();
instance.addAllVideos(values);
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public Builder clearVideos() {
copyOnWrite();
instance.clearVideos();
return this;
}
/**
* repeated .streamlayer.sdkSettings.AdvertisingVideo videos = 3 [json_name = "videos"];
*/
public Builder removeVideos(int index) {
copyOnWrite();
instance.removeVideos(index);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sdkSettings.AdvertisingSettings)
}
@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.AdvertisingSettings();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"frequency_",
"images_",
com.streamlayer.sdkSettings.common.AdvertisingImage.class,
"videos_",
com.streamlayer.sdkSettings.common.AdvertisingVideo.class,
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0002\u0000\u0001\u0004\u0002\u001b" +
"\u0003\u001b";
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.AdvertisingSettings.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.AdvertisingSettings)
private static final com.streamlayer.sdkSettings.common.AdvertisingSettings DEFAULT_INSTANCE;
static {
AdvertisingSettings defaultInstance = new AdvertisingSettings();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
AdvertisingSettings.class, defaultInstance);
}
public static com.streamlayer.sdkSettings.common.AdvertisingSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}