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

main.java.com.streamlayer.sdkSettings.common.PresetSettings 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.PresetSettings}
 */
public  final class PresetSettings extends
    com.google.protobuf.GeneratedMessageLite<
        PresetSettings, PresetSettings.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.PresetSettings)
    PresetSettingsOrBuilder {
  private PresetSettings() {
    overlays_ = emptyProtobufList();
  }
  private int bitField0_;
  public static final int OVERLAYS_FIELD_NUMBER = 1;
  private com.google.protobuf.Internal.ProtobufList overlays_;
  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  @java.lang.Override
  public java.util.List getOverlaysList() {
    return overlays_;
  }
  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  public java.util.List 
      getOverlaysOrBuilderList() {
    return overlays_;
  }
  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  @java.lang.Override
  public int getOverlaysCount() {
    return overlays_.size();
  }
  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  @java.lang.Override
  public com.streamlayer.sdkSettings.common.SdkOverlay getOverlays(int index) {
    return overlays_.get(index);
  }
  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  public com.streamlayer.sdkSettings.common.SdkOverlayOrBuilder getOverlaysOrBuilder(
      int index) {
    return overlays_.get(index);
  }
  private void ensureOverlaysIsMutable() {
    com.google.protobuf.Internal.ProtobufList tmp = overlays_;
    if (!tmp.isModifiable()) {
      overlays_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }

  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  private void setOverlays(
      int index, com.streamlayer.sdkSettings.common.SdkOverlay value) {
    value.getClass();
  ensureOverlaysIsMutable();
    overlays_.set(index, value);
  }
  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  private void addOverlays(com.streamlayer.sdkSettings.common.SdkOverlay value) {
    value.getClass();
  ensureOverlaysIsMutable();
    overlays_.add(value);
  }
  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  private void addOverlays(
      int index, com.streamlayer.sdkSettings.common.SdkOverlay value) {
    value.getClass();
  ensureOverlaysIsMutable();
    overlays_.add(index, value);
  }
  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  private void addAllOverlays(
      java.lang.Iterable values) {
    ensureOverlaysIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, overlays_);
  }
  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  private void clearOverlays() {
    overlays_ = emptyProtobufList();
  }
  /**
   * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
   */
  private void removeOverlays(int index) {
    ensureOverlaysIsMutable();
    overlays_.remove(index);
  }

  public static final int ADVERTISING_FIELD_NUMBER = 2;
  private com.streamlayer.sdkSettings.common.Advertising advertising_;
  /**
   * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
   */
  @java.lang.Override
  public boolean hasAdvertising() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
   */
  @java.lang.Override
  public com.streamlayer.sdkSettings.common.Advertising getAdvertising() {
    return advertising_ == null ? com.streamlayer.sdkSettings.common.Advertising.getDefaultInstance() : advertising_;
  }
  /**
   * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
   */
  private void setAdvertising(com.streamlayer.sdkSettings.common.Advertising value) {
    value.getClass();
  advertising_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeAdvertising(com.streamlayer.sdkSettings.common.Advertising value) {
    value.getClass();
  if (advertising_ != null &&
        advertising_ != com.streamlayer.sdkSettings.common.Advertising.getDefaultInstance()) {
      advertising_ =
        com.streamlayer.sdkSettings.common.Advertising.newBuilder(advertising_).mergeFrom(value).buildPartial();
    } else {
      advertising_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
   */
  private void clearAdvertising() {  advertising_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

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

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

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


    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    @java.lang.Override
    public java.util.List getOverlaysList() {
      return java.util.Collections.unmodifiableList(
          instance.getOverlaysList());
    }
    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    @java.lang.Override
    public int getOverlaysCount() {
      return instance.getOverlaysCount();
    }/**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    @java.lang.Override
    public com.streamlayer.sdkSettings.common.SdkOverlay getOverlays(int index) {
      return instance.getOverlays(index);
    }
    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    public Builder setOverlays(
        int index, com.streamlayer.sdkSettings.common.SdkOverlay value) {
      copyOnWrite();
      instance.setOverlays(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    public Builder setOverlays(
        int index, com.streamlayer.sdkSettings.common.SdkOverlay.Builder builderForValue) {
      copyOnWrite();
      instance.setOverlays(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    public Builder addOverlays(com.streamlayer.sdkSettings.common.SdkOverlay value) {
      copyOnWrite();
      instance.addOverlays(value);
      return this;
    }
    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    public Builder addOverlays(
        int index, com.streamlayer.sdkSettings.common.SdkOverlay value) {
      copyOnWrite();
      instance.addOverlays(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    public Builder addOverlays(
        com.streamlayer.sdkSettings.common.SdkOverlay.Builder builderForValue) {
      copyOnWrite();
      instance.addOverlays(builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    public Builder addOverlays(
        int index, com.streamlayer.sdkSettings.common.SdkOverlay.Builder builderForValue) {
      copyOnWrite();
      instance.addOverlays(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    public Builder addAllOverlays(
        java.lang.Iterable values) {
      copyOnWrite();
      instance.addAllOverlays(values);
      return this;
    }
    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    public Builder clearOverlays() {
      copyOnWrite();
      instance.clearOverlays();
      return this;
    }
    /**
     * repeated .streamlayer.sdkSettings.SdkOverlay overlays = 1 [json_name = "overlays"];
     */
    public Builder removeOverlays(int index) {
      copyOnWrite();
      instance.removeOverlays(index);
      return this;
    }

    /**
     * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
     */
    @java.lang.Override
    public boolean hasAdvertising() {
      return instance.hasAdvertising();
    }
    /**
     * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
     */
    @java.lang.Override
    public com.streamlayer.sdkSettings.common.Advertising getAdvertising() {
      return instance.getAdvertising();
    }
    /**
     * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
     */
    public Builder setAdvertising(com.streamlayer.sdkSettings.common.Advertising value) {
      copyOnWrite();
      instance.setAdvertising(value);
      return this;
      }
    /**
     * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
     */
    public Builder setAdvertising(
        com.streamlayer.sdkSettings.common.Advertising.Builder builderForValue) {
      copyOnWrite();
      instance.setAdvertising(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
     */
    public Builder mergeAdvertising(com.streamlayer.sdkSettings.common.Advertising value) {
      copyOnWrite();
      instance.mergeAdvertising(value);
      return this;
    }
    /**
     * .streamlayer.sdkSettings.Advertising advertising = 2 [json_name = "advertising"];
     */
    public Builder clearAdvertising() {  copyOnWrite();
      instance.clearAdvertising();
      return this;
    }

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

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