All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.java.com.streamlayer.sdkSettings.moderation.common.ModerationSettings Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// 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.ModerationSettings}
 */
public  final class ModerationSettings extends
    com.google.protobuf.GeneratedMessageLite<
        ModerationSettings, ModerationSettings.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.moderation.common.ModerationSettings)
    ModerationSettingsOrBuilder {
  private ModerationSettings() {
  }
  private int bitField0_;
  public static final int GENERAL_FIELD_NUMBER = 1;
  private com.streamlayer.sdkSettings.moderation.common.ModerationGeneral general_;
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
   */
  @java.lang.Override
  public boolean hasGeneral() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
   */
  @java.lang.Override
  public com.streamlayer.sdkSettings.moderation.common.ModerationGeneral getGeneral() {
    return general_ == null ? com.streamlayer.sdkSettings.moderation.common.ModerationGeneral.getDefaultInstance() : general_;
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
   */
  private void setGeneral(com.streamlayer.sdkSettings.moderation.common.ModerationGeneral value) {
    value.getClass();
  general_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeGeneral(com.streamlayer.sdkSettings.moderation.common.ModerationGeneral value) {
    value.getClass();
  if (general_ != null &&
        general_ != com.streamlayer.sdkSettings.moderation.common.ModerationGeneral.getDefaultInstance()) {
      general_ =
        com.streamlayer.sdkSettings.moderation.common.ModerationGeneral.newBuilder(general_).mergeFrom(value).buildPartial();
    } else {
      general_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
   */
  private void clearGeneral() {  general_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int NOTIFICATIONS_FIELD_NUMBER = 2;
  private com.streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications_;
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
   */
  @java.lang.Override
  public boolean hasNotifications() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
   */
  @java.lang.Override
  public com.streamlayer.sdkSettings.moderation.common.ModerationNotifications getNotifications() {
    return notifications_ == null ? com.streamlayer.sdkSettings.moderation.common.ModerationNotifications.getDefaultInstance() : notifications_;
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
   */
  private void setNotifications(com.streamlayer.sdkSettings.moderation.common.ModerationNotifications value) {
    value.getClass();
  notifications_ = value;
    bitField0_ |= 0x00000002;
    }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeNotifications(com.streamlayer.sdkSettings.moderation.common.ModerationNotifications value) {
    value.getClass();
  if (notifications_ != null &&
        notifications_ != com.streamlayer.sdkSettings.moderation.common.ModerationNotifications.getDefaultInstance()) {
      notifications_ =
        com.streamlayer.sdkSettings.moderation.common.ModerationNotifications.newBuilder(notifications_).mergeFrom(value).buildPartial();
    } else {
      notifications_ = value;
    }
    bitField0_ |= 0x00000002;
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
   */
  private void clearNotifications() {  notifications_ = null;
    bitField0_ = (bitField0_ & ~0x00000002);
  }

  public static final int SPONSORSHIPS_FIELD_NUMBER = 3;
  private com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships_;
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
   */
  @java.lang.Override
  public boolean hasSponsorships() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
   */
  @java.lang.Override
  public com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships getSponsorships() {
    return sponsorships_ == null ? com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships.getDefaultInstance() : sponsorships_;
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
   */
  private void setSponsorships(com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships value) {
    value.getClass();
  sponsorships_ = value;
    bitField0_ |= 0x00000004;
    }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeSponsorships(com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships value) {
    value.getClass();
  if (sponsorships_ != null &&
        sponsorships_ != com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships.getDefaultInstance()) {
      sponsorships_ =
        com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships.newBuilder(sponsorships_).mergeFrom(value).buildPartial();
    } else {
      sponsorships_ = value;
    }
    bitField0_ |= 0x00000004;
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
   */
  private void clearSponsorships() {  sponsorships_ = null;
    bitField0_ = (bitField0_ & ~0x00000004);
  }

  public static com.streamlayer.sdkSettings.moderation.common.ModerationSettings 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.ModerationSettings 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.ModerationSettings 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.ModerationSettings 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.ModerationSettings parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.sdkSettings.moderation.common.ModerationSettings 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.ModerationSettings 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.ModerationSettings 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.ModerationSettings parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.sdkSettings.moderation.common.ModerationSettings 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.ModerationSettings 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.ModerationSettings 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.ModerationSettings prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

  /**
   * Protobuf type {@code streamlayer.sdkSettings.moderation.common.ModerationSettings}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageLite.Builder<
        com.streamlayer.sdkSettings.moderation.common.ModerationSettings, Builder> implements
      // @@protoc_insertion_point(builder_implements:streamlayer.sdkSettings.moderation.common.ModerationSettings)
      com.streamlayer.sdkSettings.moderation.common.ModerationSettingsOrBuilder {
    // Construct using com.streamlayer.sdkSettings.moderation.common.ModerationSettings.newBuilder()
    private Builder() {
      super(DEFAULT_INSTANCE);
    }


    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
     */
    @java.lang.Override
    public boolean hasGeneral() {
      return instance.hasGeneral();
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
     */
    @java.lang.Override
    public com.streamlayer.sdkSettings.moderation.common.ModerationGeneral getGeneral() {
      return instance.getGeneral();
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
     */
    public Builder setGeneral(com.streamlayer.sdkSettings.moderation.common.ModerationGeneral value) {
      copyOnWrite();
      instance.setGeneral(value);
      return this;
      }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
     */
    public Builder setGeneral(
        com.streamlayer.sdkSettings.moderation.common.ModerationGeneral.Builder builderForValue) {
      copyOnWrite();
      instance.setGeneral(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
     */
    public Builder mergeGeneral(com.streamlayer.sdkSettings.moderation.common.ModerationGeneral value) {
      copyOnWrite();
      instance.mergeGeneral(value);
      return this;
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationGeneral general = 1 [json_name = "general"];
     */
    public Builder clearGeneral() {  copyOnWrite();
      instance.clearGeneral();
      return this;
    }

    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
     */
    @java.lang.Override
    public boolean hasNotifications() {
      return instance.hasNotifications();
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
     */
    @java.lang.Override
    public com.streamlayer.sdkSettings.moderation.common.ModerationNotifications getNotifications() {
      return instance.getNotifications();
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
     */
    public Builder setNotifications(com.streamlayer.sdkSettings.moderation.common.ModerationNotifications value) {
      copyOnWrite();
      instance.setNotifications(value);
      return this;
      }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
     */
    public Builder setNotifications(
        com.streamlayer.sdkSettings.moderation.common.ModerationNotifications.Builder builderForValue) {
      copyOnWrite();
      instance.setNotifications(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
     */
    public Builder mergeNotifications(com.streamlayer.sdkSettings.moderation.common.ModerationNotifications value) {
      copyOnWrite();
      instance.mergeNotifications(value);
      return this;
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationNotifications notifications = 2 [json_name = "notifications"];
     */
    public Builder clearNotifications() {  copyOnWrite();
      instance.clearNotifications();
      return this;
    }

    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
     */
    @java.lang.Override
    public boolean hasSponsorships() {
      return instance.hasSponsorships();
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
     */
    @java.lang.Override
    public com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships getSponsorships() {
      return instance.getSponsorships();
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
     */
    public Builder setSponsorships(com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships value) {
      copyOnWrite();
      instance.setSponsorships(value);
      return this;
      }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
     */
    public Builder setSponsorships(
        com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships.Builder builderForValue) {
      copyOnWrite();
      instance.setSponsorships(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
     */
    public Builder mergeSponsorships(com.streamlayer.sdkSettings.moderation.common.ModerationSponsorships value) {
      copyOnWrite();
      instance.mergeSponsorships(value);
      return this;
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSponsorships sponsorships = 3 [json_name = "sponsorships"];
     */
    public Builder clearSponsorships() {  copyOnWrite();
      instance.clearSponsorships();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.sdkSettings.moderation.common.ModerationSettings)
  }
  @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.ModerationSettings();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "bitField0_",
            "general_",
            "notifications_",
            "sponsorships_",
          };
          java.lang.String info =
              "\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
              "\u1009\u0001\u0003\u1009\u0002";
          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.ModerationSettings.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.ModerationSettings)
  private static final com.streamlayer.sdkSettings.moderation.common.ModerationSettings DEFAULT_INSTANCE;
  static {
    ModerationSettings defaultInstance = new ModerationSettings();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      ModerationSettings.class, defaultInstance);
  }

  public static com.streamlayer.sdkSettings.moderation.common.ModerationSettings getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static volatile com.google.protobuf.Parser PARSER;

  public static com.google.protobuf.Parser parser() {
    return DEFAULT_INSTANCE.getParserForType();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy