main.java.com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships 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/moderation/common/moderation_common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sdkSettings.moderation.common;
/**
* Protobuf type {@code streamlayer.sdkSettings.moderation.common.ModerationSponsorships}
*/
public final class ModerationSponsorships extends
com.google.protobuf.GeneratedMessageLite<
ModerationSponsorships, ModerationSponsorships.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.moderation.common.ModerationSponsorships)
ModerationSponsorshipsOrBuilder {
private ModerationSponsorships() {
sponsors_ = emptyProtobufList();
}
public static final int ROTATE_FIELD_NUMBER = 1;
private boolean rotate_;
/**
* bool rotate = 1 [json_name = "rotate"];
* @return The rotate.
*/
@java.lang.Override
public boolean getRotate() {
return rotate_;
}
/**
* bool rotate = 1 [json_name = "rotate"];
* @param value The rotate to set.
*/
private void setRotate(boolean value) {
rotate_ = value;
}
/**
* bool rotate = 1 [json_name = "rotate"];
*/
private void clearRotate() {
rotate_ = false;
}
public static final int NO_SPONSOR_FIELD_NUMBER = 2;
private boolean noSponsor_;
/**
* bool no_sponsor = 2 [json_name = "noSponsor"];
* @return The noSponsor.
*/
@java.lang.Override
public boolean getNoSponsor() {
return noSponsor_;
}
/**
* bool no_sponsor = 2 [json_name = "noSponsor"];
* @param value The noSponsor to set.
*/
private void setNoSponsor(boolean value) {
noSponsor_ = value;
}
/**
* bool no_sponsor = 2 [json_name = "noSponsor"];
*/
private void clearNoSponsor() {
noSponsor_ = false;
}
public static final int SPONSORS_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.ProtobufList sponsors_;
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
@java.lang.Override
public java.util.List getSponsorsList() {
return sponsors_;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public java.util.List extends com.streamlayer.interactive.common.SponsorshipOrBuilder>
getSponsorsOrBuilderList() {
return sponsors_;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
@java.lang.Override
public int getSponsorsCount() {
return sponsors_.size();
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
@java.lang.Override
public com.streamlayer.interactive.common.Sponsorship getSponsors(int index) {
return sponsors_.get(index);
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public com.streamlayer.interactive.common.SponsorshipOrBuilder getSponsorsOrBuilder(
int index) {
return sponsors_.get(index);
}
private void ensureSponsorsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = sponsors_;
if (!tmp.isModifiable()) {
sponsors_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
private void setSponsors(
int index, com.streamlayer.interactive.common.Sponsorship value) {
value.getClass();
ensureSponsorsIsMutable();
sponsors_.set(index, value);
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
private void addSponsors(com.streamlayer.interactive.common.Sponsorship value) {
value.getClass();
ensureSponsorsIsMutable();
sponsors_.add(value);
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
private void addSponsors(
int index, com.streamlayer.interactive.common.Sponsorship value) {
value.getClass();
ensureSponsorsIsMutable();
sponsors_.add(index, value);
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
private void addAllSponsors(
java.lang.Iterable extends com.streamlayer.interactive.common.Sponsorship> values) {
ensureSponsorsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, sponsors_);
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
private void clearSponsors() {
sponsors_ = emptyProtobufList();
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
private void removeSponsors(int index) {
ensureSponsorsIsMutable();
sponsors_.remove(index);
}
public static com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships 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.moderation.common.ModerationSponsorships 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.moderation.common.ModerationSponsorships 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.moderation.common.ModerationSponsorships parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships 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.moderation.common.ModerationSponsorships parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships 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.moderation.common.ModerationSponsorships parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships 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.moderation.common.ModerationSponsorships parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships 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.moderation.common.ModerationSponsorships prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sdkSettings.moderation.common.ModerationSponsorships}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sdkSettings.moderation.common.ModerationSponsorships)
com.streamlayer.sdkSettings.moderation.common.ModerationSponsorshipsOrBuilder {
// Construct using com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* bool rotate = 1 [json_name = "rotate"];
* @return The rotate.
*/
@java.lang.Override
public boolean getRotate() {
return instance.getRotate();
}
/**
* bool rotate = 1 [json_name = "rotate"];
* @param value The rotate to set.
* @return This builder for chaining.
*/
public Builder setRotate(boolean value) {
copyOnWrite();
instance.setRotate(value);
return this;
}
/**
* bool rotate = 1 [json_name = "rotate"];
* @return This builder for chaining.
*/
public Builder clearRotate() {
copyOnWrite();
instance.clearRotate();
return this;
}
/**
* bool no_sponsor = 2 [json_name = "noSponsor"];
* @return The noSponsor.
*/
@java.lang.Override
public boolean getNoSponsor() {
return instance.getNoSponsor();
}
/**
* bool no_sponsor = 2 [json_name = "noSponsor"];
* @param value The noSponsor to set.
* @return This builder for chaining.
*/
public Builder setNoSponsor(boolean value) {
copyOnWrite();
instance.setNoSponsor(value);
return this;
}
/**
* bool no_sponsor = 2 [json_name = "noSponsor"];
* @return This builder for chaining.
*/
public Builder clearNoSponsor() {
copyOnWrite();
instance.clearNoSponsor();
return this;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
@java.lang.Override
public java.util.List getSponsorsList() {
return java.util.Collections.unmodifiableList(
instance.getSponsorsList());
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
@java.lang.Override
public int getSponsorsCount() {
return instance.getSponsorsCount();
}/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
@java.lang.Override
public com.streamlayer.interactive.common.Sponsorship getSponsors(int index) {
return instance.getSponsors(index);
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public Builder setSponsors(
int index, com.streamlayer.interactive.common.Sponsorship value) {
copyOnWrite();
instance.setSponsors(index, value);
return this;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public Builder setSponsors(
int index, com.streamlayer.interactive.common.Sponsorship.Builder builderForValue) {
copyOnWrite();
instance.setSponsors(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public Builder addSponsors(com.streamlayer.interactive.common.Sponsorship value) {
copyOnWrite();
instance.addSponsors(value);
return this;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public Builder addSponsors(
int index, com.streamlayer.interactive.common.Sponsorship value) {
copyOnWrite();
instance.addSponsors(index, value);
return this;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public Builder addSponsors(
com.streamlayer.interactive.common.Sponsorship.Builder builderForValue) {
copyOnWrite();
instance.addSponsors(builderForValue.build());
return this;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public Builder addSponsors(
int index, com.streamlayer.interactive.common.Sponsorship.Builder builderForValue) {
copyOnWrite();
instance.addSponsors(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public Builder addAllSponsors(
java.lang.Iterable extends com.streamlayer.interactive.common.Sponsorship> values) {
copyOnWrite();
instance.addAllSponsors(values);
return this;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public Builder clearSponsors() {
copyOnWrite();
instance.clearSponsors();
return this;
}
/**
* repeated .streamlayer.interactive.Sponsorship sponsors = 3 [json_name = "sponsors"];
*/
public Builder removeSponsors(int index) {
copyOnWrite();
instance.removeSponsors(index);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sdkSettings.moderation.common.ModerationSponsorships)
}
@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.moderation.common.ModerationSponsorships();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"rotate_",
"noSponsor_",
"sponsors_",
com.streamlayer.interactive.common.Sponsorship.class,
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0001\u0000\u0001\u0007\u0002\u0007" +
"\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.moderation.common.ModerationSponsorships.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.moderation.common.ModerationSponsorships)
private static final com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships DEFAULT_INSTANCE;
static {
ModerationSponsorships defaultInstance = new ModerationSponsorships();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ModerationSponsorships.class, defaultInstance);
}
public static com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}