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

main.java.com.streamlayer.sdkSettings.common.GamesOverlaySettings 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/sdkSettings.common.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.sdkSettings.common;

/**
 * Protobuf type {@code streamlayer.sdkSettings.GamesOverlaySettings}
 */
public  final class GamesOverlaySettings extends
    com.google.protobuf.GeneratedMessageLite<
        GamesOverlaySettings, GamesOverlaySettings.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.GamesOverlaySettings)
    GamesOverlaySettingsOrBuilder {
  private GamesOverlaySettings() {
    pinnedLeaderboardId_ = "";
  }
  private int bitField0_;
  public static final int INPLAY_GAME_FIELD_NUMBER = 1;
  private com.streamlayer.sdkSettings.game.common.GameSettings inplayGame_;
  /**
   * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
   */
  @java.lang.Override
  public boolean hasInplayGame() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
   */
  @java.lang.Override
  public com.streamlayer.sdkSettings.game.common.GameSettings getInplayGame() {
    return inplayGame_ == null ? com.streamlayer.sdkSettings.game.common.GameSettings.getDefaultInstance() : inplayGame_;
  }
  /**
   * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
   */
  private void setInplayGame(com.streamlayer.sdkSettings.game.common.GameSettings value) {
    value.getClass();
  inplayGame_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeInplayGame(com.streamlayer.sdkSettings.game.common.GameSettings value) {
    value.getClass();
  if (inplayGame_ != null &&
        inplayGame_ != com.streamlayer.sdkSettings.game.common.GameSettings.getDefaultInstance()) {
      inplayGame_ =
        com.streamlayer.sdkSettings.game.common.GameSettings.newBuilder(inplayGame_).mergeFrom(value).buildPartial();
    } else {
      inplayGame_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
   */
  private void clearInplayGame() {  inplayGame_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int MODERATION_FIELD_NUMBER = 2;
  private com.streamlayer.sdkSettings.moderation.common.ModerationSettings moderation_;
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
   */
  @java.lang.Override
  public boolean hasModeration() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
   */
  @java.lang.Override
  public com.streamlayer.sdkSettings.moderation.common.ModerationSettings getModeration() {
    return moderation_ == null ? com.streamlayer.sdkSettings.moderation.common.ModerationSettings.getDefaultInstance() : moderation_;
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
   */
  private void setModeration(com.streamlayer.sdkSettings.moderation.common.ModerationSettings value) {
    value.getClass();
  moderation_ = value;
    bitField0_ |= 0x00000002;
    }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeModeration(com.streamlayer.sdkSettings.moderation.common.ModerationSettings value) {
    value.getClass();
  if (moderation_ != null &&
        moderation_ != com.streamlayer.sdkSettings.moderation.common.ModerationSettings.getDefaultInstance()) {
      moderation_ =
        com.streamlayer.sdkSettings.moderation.common.ModerationSettings.newBuilder(moderation_).mergeFrom(value).buildPartial();
    } else {
      moderation_ = value;
    }
    bitField0_ |= 0x00000002;
  }
  /**
   * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
   */
  private void clearModeration() {  moderation_ = null;
    bitField0_ = (bitField0_ & ~0x00000002);
  }

  public static final int PINNED_LEADERBOARD_ID_FIELD_NUMBER = 3;
  private java.lang.String pinnedLeaderboardId_;
  /**
   * string pinned_leaderboard_id = 3 [json_name = "pinnedLeaderboardId"];
   * @return The pinnedLeaderboardId.
   */
  @java.lang.Override
  public java.lang.String getPinnedLeaderboardId() {
    return pinnedLeaderboardId_;
  }
  /**
   * string pinned_leaderboard_id = 3 [json_name = "pinnedLeaderboardId"];
   * @return The bytes for pinnedLeaderboardId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPinnedLeaderboardIdBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(pinnedLeaderboardId_);
  }
  /**
   * string pinned_leaderboard_id = 3 [json_name = "pinnedLeaderboardId"];
   * @param value The pinnedLeaderboardId to set.
   */
  private void setPinnedLeaderboardId(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    pinnedLeaderboardId_ = value;
  }
  /**
   * string pinned_leaderboard_id = 3 [json_name = "pinnedLeaderboardId"];
   */
  private void clearPinnedLeaderboardId() {

    pinnedLeaderboardId_ = getDefaultInstance().getPinnedLeaderboardId();
  }
  /**
   * string pinned_leaderboard_id = 3 [json_name = "pinnedLeaderboardId"];
   * @param value The bytes for pinnedLeaderboardId to set.
   */
  private void setPinnedLeaderboardIdBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    pinnedLeaderboardId_ = value.toStringUtf8();

  }

  public static final int LEADERBOARD_KIND_FIELD_NUMBER = 4;
  private int leaderboardKind_;
  /**
   * .streamlayer.sdkSettings.LeaderboardKind leaderboard_kind = 4 [json_name = "leaderboardKind"];
   * @return The enum numeric value on the wire for leaderboardKind.
   */
  @java.lang.Override
  public int getLeaderboardKindValue() {
    return leaderboardKind_;
  }
  /**
   * .streamlayer.sdkSettings.LeaderboardKind leaderboard_kind = 4 [json_name = "leaderboardKind"];
   * @return The leaderboardKind.
   */
  @java.lang.Override
  public com.streamlayer.sdkSettings.common.LeaderboardKind getLeaderboardKind() {
    com.streamlayer.sdkSettings.common.LeaderboardKind result = com.streamlayer.sdkSettings.common.LeaderboardKind.forNumber(leaderboardKind_);
    return result == null ? com.streamlayer.sdkSettings.common.LeaderboardKind.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.sdkSettings.LeaderboardKind leaderboard_kind = 4 [json_name = "leaderboardKind"];
   * @param value The enum numeric value on the wire for leaderboardKind to set.
   */
  private void setLeaderboardKindValue(int value) {
      leaderboardKind_ = value;
  }
  /**
   * .streamlayer.sdkSettings.LeaderboardKind leaderboard_kind = 4 [json_name = "leaderboardKind"];
   * @param value The leaderboardKind to set.
   */
  private void setLeaderboardKind(com.streamlayer.sdkSettings.common.LeaderboardKind value) {
    leaderboardKind_ = value.getNumber();

  }
  /**
   * .streamlayer.sdkSettings.LeaderboardKind leaderboard_kind = 4 [json_name = "leaderboardKind"];
   */
  private void clearLeaderboardKind() {

    leaderboardKind_ = 0;
  }

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

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

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


    /**
     * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
     */
    @java.lang.Override
    public boolean hasInplayGame() {
      return instance.hasInplayGame();
    }
    /**
     * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
     */
    @java.lang.Override
    public com.streamlayer.sdkSettings.game.common.GameSettings getInplayGame() {
      return instance.getInplayGame();
    }
    /**
     * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
     */
    public Builder setInplayGame(com.streamlayer.sdkSettings.game.common.GameSettings value) {
      copyOnWrite();
      instance.setInplayGame(value);
      return this;
      }
    /**
     * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
     */
    public Builder setInplayGame(
        com.streamlayer.sdkSettings.game.common.GameSettings.Builder builderForValue) {
      copyOnWrite();
      instance.setInplayGame(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
     */
    public Builder mergeInplayGame(com.streamlayer.sdkSettings.game.common.GameSettings value) {
      copyOnWrite();
      instance.mergeInplayGame(value);
      return this;
    }
    /**
     * .streamlayer.sdkSettings.game.common.GameSettings inplay_game = 1 [json_name = "inplayGame"];
     */
    public Builder clearInplayGame() {  copyOnWrite();
      instance.clearInplayGame();
      return this;
    }

    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
     */
    @java.lang.Override
    public boolean hasModeration() {
      return instance.hasModeration();
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
     */
    @java.lang.Override
    public com.streamlayer.sdkSettings.moderation.common.ModerationSettings getModeration() {
      return instance.getModeration();
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
     */
    public Builder setModeration(com.streamlayer.sdkSettings.moderation.common.ModerationSettings value) {
      copyOnWrite();
      instance.setModeration(value);
      return this;
      }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
     */
    public Builder setModeration(
        com.streamlayer.sdkSettings.moderation.common.ModerationSettings.Builder builderForValue) {
      copyOnWrite();
      instance.setModeration(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
     */
    public Builder mergeModeration(com.streamlayer.sdkSettings.moderation.common.ModerationSettings value) {
      copyOnWrite();
      instance.mergeModeration(value);
      return this;
    }
    /**
     * .streamlayer.sdkSettings.moderation.common.ModerationSettings moderation = 2 [json_name = "moderation"];
     */
    public Builder clearModeration() {  copyOnWrite();
      instance.clearModeration();
      return this;
    }

    /**
     * string pinned_leaderboard_id = 3 [json_name = "pinnedLeaderboardId"];
     * @return The pinnedLeaderboardId.
     */
    @java.lang.Override
    public java.lang.String getPinnedLeaderboardId() {
      return instance.getPinnedLeaderboardId();
    }
    /**
     * string pinned_leaderboard_id = 3 [json_name = "pinnedLeaderboardId"];
     * @return The bytes for pinnedLeaderboardId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPinnedLeaderboardIdBytes() {
      return instance.getPinnedLeaderboardIdBytes();
    }
    /**
     * string pinned_leaderboard_id = 3 [json_name = "pinnedLeaderboardId"];
     * @param value The pinnedLeaderboardId to set.
     * @return This builder for chaining.
     */
    public Builder setPinnedLeaderboardId(
        java.lang.String value) {
      copyOnWrite();
      instance.setPinnedLeaderboardId(value);
      return this;
    }
    /**
     * string pinned_leaderboard_id = 3 [json_name = "pinnedLeaderboardId"];
     * @return This builder for chaining.
     */
    public Builder clearPinnedLeaderboardId() {
      copyOnWrite();
      instance.clearPinnedLeaderboardId();
      return this;
    }
    /**
     * string pinned_leaderboard_id = 3 [json_name = "pinnedLeaderboardId"];
     * @param value The bytes for pinnedLeaderboardId to set.
     * @return This builder for chaining.
     */
    public Builder setPinnedLeaderboardIdBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setPinnedLeaderboardIdBytes(value);
      return this;
    }

    /**
     * .streamlayer.sdkSettings.LeaderboardKind leaderboard_kind = 4 [json_name = "leaderboardKind"];
     * @return The enum numeric value on the wire for leaderboardKind.
     */
    @java.lang.Override
    public int getLeaderboardKindValue() {
      return instance.getLeaderboardKindValue();
    }
    /**
     * .streamlayer.sdkSettings.LeaderboardKind leaderboard_kind = 4 [json_name = "leaderboardKind"];
     * @param value The leaderboardKind to set.
     * @return This builder for chaining.
     */
    public Builder setLeaderboardKindValue(int value) {
      copyOnWrite();
      instance.setLeaderboardKindValue(value);
      return this;
    }
    /**
     * .streamlayer.sdkSettings.LeaderboardKind leaderboard_kind = 4 [json_name = "leaderboardKind"];
     * @return The leaderboardKind.
     */
    @java.lang.Override
    public com.streamlayer.sdkSettings.common.LeaderboardKind getLeaderboardKind() {
      return instance.getLeaderboardKind();
    }
    /**
     * .streamlayer.sdkSettings.LeaderboardKind leaderboard_kind = 4 [json_name = "leaderboardKind"];
     * @param value The enum numeric value on the wire for leaderboardKind to set.
     * @return This builder for chaining.
     */
    public Builder setLeaderboardKind(com.streamlayer.sdkSettings.common.LeaderboardKind value) {
      copyOnWrite();
      instance.setLeaderboardKind(value);
      return this;
    }
    /**
     * .streamlayer.sdkSettings.LeaderboardKind leaderboard_kind = 4 [json_name = "leaderboardKind"];
     * @return This builder for chaining.
     */
    public Builder clearLeaderboardKind() {
      copyOnWrite();
      instance.clearLeaderboardKind();
      return this;
    }

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

  public static com.streamlayer.sdkSettings.common.GamesOverlaySettings 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