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

main.java.com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings 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.AdvertisingOverlaySettings}
 */
public  final class AdvertisingOverlaySettings extends
    com.google.protobuf.GeneratedMessageLite<
        AdvertisingOverlaySettings, AdvertisingOverlaySettings.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.AdvertisingOverlaySettings)
    AdvertisingOverlaySettingsOrBuilder {
  private AdvertisingOverlaySettings() {
    overlayName_ = "";
  }
  private int bitField0_;
  public static final int OVERLAY_TYPE_FIELD_NUMBER = 1;
  private int overlayType_;
  /**
   * .streamlayer.sdkSettings.SdkOverlayType overlay_type = 1 [json_name = "overlayType"];
   * @return The enum numeric value on the wire for overlayType.
   */
  @java.lang.Override
  public int getOverlayTypeValue() {
    return overlayType_;
  }
  /**
   * .streamlayer.sdkSettings.SdkOverlayType overlay_type = 1 [json_name = "overlayType"];
   * @return The overlayType.
   */
  @java.lang.Override
  public com.streamlayer.sdkSettings.common.SdkOverlayType getOverlayType() {
    com.streamlayer.sdkSettings.common.SdkOverlayType result = com.streamlayer.sdkSettings.common.SdkOverlayType.forNumber(overlayType_);
    return result == null ? com.streamlayer.sdkSettings.common.SdkOverlayType.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.sdkSettings.SdkOverlayType overlay_type = 1 [json_name = "overlayType"];
   * @param value The enum numeric value on the wire for overlayType to set.
   */
  private void setOverlayTypeValue(int value) {
      overlayType_ = value;
  }
  /**
   * .streamlayer.sdkSettings.SdkOverlayType overlay_type = 1 [json_name = "overlayType"];
   * @param value The overlayType to set.
   */
  private void setOverlayType(com.streamlayer.sdkSettings.common.SdkOverlayType value) {
    overlayType_ = value.getNumber();

  }
  /**
   * .streamlayer.sdkSettings.SdkOverlayType overlay_type = 1 [json_name = "overlayType"];
   */
  private void clearOverlayType() {

    overlayType_ = 0;
  }

  public static final int SETTINGS_FIELD_NUMBER = 2;
  private static final class SettingsDefaultEntryHolder {
    static final com.google.protobuf.MapEntryLite<
        java.lang.String, com.streamlayer.sdkSettings.common.AdvertisingSettings> defaultEntry =
            com.google.protobuf.MapEntryLite
            .newDefaultInstance(
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                com.streamlayer.sdkSettings.common.AdvertisingSettings.getDefaultInstance());
  }
  private com.google.protobuf.MapFieldLite<
      java.lang.String, com.streamlayer.sdkSettings.common.AdvertisingSettings> settings_ =
          com.google.protobuf.MapFieldLite.emptyMapField();
  private com.google.protobuf.MapFieldLite
  internalGetSettings() {
    return settings_;
  }
  private com.google.protobuf.MapFieldLite
  internalGetMutableSettings() {
    if (!settings_.isMutable()) {
      settings_ = settings_.mutableCopy();
    }
    return settings_;
  }
  @java.lang.Override

  public int getSettingsCount() {
    return internalGetSettings().size();
  }
  /**
   * 
   * key is AdvertisingType
   * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ @java.lang.Override public boolean containsSettings( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return internalGetSettings().containsKey(key); } /** * Use {@link #getSettingsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSettings() { return getSettingsMap(); } /** *
   * key is AdvertisingType
   * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ @java.lang.Override public java.util.Map getSettingsMap() { return java.util.Collections.unmodifiableMap( internalGetSettings()); } /** *
   * key is AdvertisingType
   * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ @java.lang.Override public /* nullable */ com.streamlayer.sdkSettings.common.AdvertisingSettings getSettingsOrDefault( java.lang.String key, /* nullable */ com.streamlayer.sdkSettings.common.AdvertisingSettings defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetSettings(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * key is AdvertisingType
   * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ @java.lang.Override public com.streamlayer.sdkSettings.common.AdvertisingSettings getSettingsOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetSettings(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** *
   * key is AdvertisingType
   * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ private java.util.Map getMutableSettingsMap() { return internalGetMutableSettings(); } public static final int ENABLED_FIELD_NUMBER = 3; private boolean enabled_; /** * bool enabled = 3 [json_name = "enabled"]; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** * bool enabled = 3 [json_name = "enabled"]; * @param value The enabled to set. */ private void setEnabled(boolean value) { enabled_ = value; } /** * bool enabled = 3 [json_name = "enabled"]; */ private void clearEnabled() { enabled_ = false; } public static final int OVERLAY_NAME_FIELD_NUMBER = 4; private java.lang.String overlayName_; /** * string overlay_name = 4 [json_name = "overlayName"]; * @return The overlayName. */ @java.lang.Override public java.lang.String getOverlayName() { return overlayName_; } /** * string overlay_name = 4 [json_name = "overlayName"]; * @return The bytes for overlayName. */ @java.lang.Override public com.google.protobuf.ByteString getOverlayNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(overlayName_); } /** * string overlay_name = 4 [json_name = "overlayName"]; * @param value The overlayName to set. */ private void setOverlayName( java.lang.String value) { java.lang.Class valueClass = value.getClass(); overlayName_ = value; } /** * string overlay_name = 4 [json_name = "overlayName"]; */ private void clearOverlayName() { overlayName_ = getDefaultInstance().getOverlayName(); } /** * string overlay_name = 4 [json_name = "overlayName"]; * @param value The bytes for overlayName to set. */ private void setOverlayNameBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); overlayName_ = value.toStringUtf8(); } public static final int USE_CUSTOM_FIELD_NUMBER = 5; private boolean useCustom_; /** *
   * use customized adv overlay settings for event. Default: false (use organization)
   * 
* * optional bool use_custom = 5 [json_name = "useCustom"]; * @return Whether the useCustom field is set. */ @java.lang.Override public boolean hasUseCustom() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * use customized adv overlay settings for event. Default: false (use organization)
   * 
* * optional bool use_custom = 5 [json_name = "useCustom"]; * @return The useCustom. */ @java.lang.Override public boolean getUseCustom() { return useCustom_; } /** *
   * use customized adv overlay settings for event. Default: false (use organization)
   * 
* * optional bool use_custom = 5 [json_name = "useCustom"]; * @param value The useCustom to set. */ private void setUseCustom(boolean value) { bitField0_ |= 0x00000001; useCustom_ = value; } /** *
   * use customized adv overlay settings for event. Default: false (use organization)
   * 
* * optional bool use_custom = 5 [json_name = "useCustom"]; */ private void clearUseCustom() { bitField0_ = (bitField0_ & ~0x00000001); useCustom_ = false; } public static com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings 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.AdvertisingOverlaySettings 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.AdvertisingOverlaySettings 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.AdvertisingOverlaySettings 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.AdvertisingOverlaySettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings 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.AdvertisingOverlaySettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings 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.AdvertisingOverlaySettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings 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.AdvertisingOverlaySettings 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.AdvertisingOverlaySettings 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.AdvertisingOverlaySettings prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code streamlayer.sdkSettings.AdvertisingOverlaySettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings, Builder> implements // @@protoc_insertion_point(builder_implements:streamlayer.sdkSettings.AdvertisingOverlaySettings) com.streamlayer.sdkSettings.common.AdvertisingOverlaySettingsOrBuilder { // Construct using com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .streamlayer.sdkSettings.SdkOverlayType overlay_type = 1 [json_name = "overlayType"]; * @return The enum numeric value on the wire for overlayType. */ @java.lang.Override public int getOverlayTypeValue() { return instance.getOverlayTypeValue(); } /** * .streamlayer.sdkSettings.SdkOverlayType overlay_type = 1 [json_name = "overlayType"]; * @param value The overlayType to set. * @return This builder for chaining. */ public Builder setOverlayTypeValue(int value) { copyOnWrite(); instance.setOverlayTypeValue(value); return this; } /** * .streamlayer.sdkSettings.SdkOverlayType overlay_type = 1 [json_name = "overlayType"]; * @return The overlayType. */ @java.lang.Override public com.streamlayer.sdkSettings.common.SdkOverlayType getOverlayType() { return instance.getOverlayType(); } /** * .streamlayer.sdkSettings.SdkOverlayType overlay_type = 1 [json_name = "overlayType"]; * @param value The enum numeric value on the wire for overlayType to set. * @return This builder for chaining. */ public Builder setOverlayType(com.streamlayer.sdkSettings.common.SdkOverlayType value) { copyOnWrite(); instance.setOverlayType(value); return this; } /** * .streamlayer.sdkSettings.SdkOverlayType overlay_type = 1 [json_name = "overlayType"]; * @return This builder for chaining. */ public Builder clearOverlayType() { copyOnWrite(); instance.clearOverlayType(); return this; } @java.lang.Override public int getSettingsCount() { return instance.getSettingsMap().size(); } /** *
     * key is AdvertisingType
     * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ @java.lang.Override public boolean containsSettings( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return instance.getSettingsMap().containsKey(key); } public Builder clearSettings() { copyOnWrite(); instance.getMutableSettingsMap().clear(); return this; } /** *
     * key is AdvertisingType
     * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ public Builder removeSettings( java.lang.String key) { java.lang.Class keyClass = key.getClass(); copyOnWrite(); instance.getMutableSettingsMap().remove(key); return this; } /** * Use {@link #getSettingsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSettings() { return getSettingsMap(); } /** *
     * key is AdvertisingType
     * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ @java.lang.Override public java.util.Map getSettingsMap() { return java.util.Collections.unmodifiableMap( instance.getSettingsMap()); } /** *
     * key is AdvertisingType
     * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ @java.lang.Override public /* nullable */ com.streamlayer.sdkSettings.common.AdvertisingSettings getSettingsOrDefault( java.lang.String key, /* nullable */ com.streamlayer.sdkSettings.common.AdvertisingSettings defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getSettingsMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * key is AdvertisingType
     * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ @java.lang.Override public com.streamlayer.sdkSettings.common.AdvertisingSettings getSettingsOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getSettingsMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** *
     * key is AdvertisingType
     * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ public Builder putSettings( java.lang.String key, com.streamlayer.sdkSettings.common.AdvertisingSettings value) { java.lang.Class keyClass = key.getClass(); java.lang.Class valueClass = value.getClass(); copyOnWrite(); instance.getMutableSettingsMap().put(key, value); return this; } /** *
     * key is AdvertisingType
     * 
* * map<string, .streamlayer.sdkSettings.AdvertisingSettings> settings = 2 [json_name = "settings"]; */ public Builder putAllSettings( java.util.Map values) { copyOnWrite(); instance.getMutableSettingsMap().putAll(values); return this; } /** * bool enabled = 3 [json_name = "enabled"]; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return instance.getEnabled(); } /** * bool enabled = 3 [json_name = "enabled"]; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { copyOnWrite(); instance.setEnabled(value); return this; } /** * bool enabled = 3 [json_name = "enabled"]; * @return This builder for chaining. */ public Builder clearEnabled() { copyOnWrite(); instance.clearEnabled(); return this; } /** * string overlay_name = 4 [json_name = "overlayName"]; * @return The overlayName. */ @java.lang.Override public java.lang.String getOverlayName() { return instance.getOverlayName(); } /** * string overlay_name = 4 [json_name = "overlayName"]; * @return The bytes for overlayName. */ @java.lang.Override public com.google.protobuf.ByteString getOverlayNameBytes() { return instance.getOverlayNameBytes(); } /** * string overlay_name = 4 [json_name = "overlayName"]; * @param value The overlayName to set. * @return This builder for chaining. */ public Builder setOverlayName( java.lang.String value) { copyOnWrite(); instance.setOverlayName(value); return this; } /** * string overlay_name = 4 [json_name = "overlayName"]; * @return This builder for chaining. */ public Builder clearOverlayName() { copyOnWrite(); instance.clearOverlayName(); return this; } /** * string overlay_name = 4 [json_name = "overlayName"]; * @param value The bytes for overlayName to set. * @return This builder for chaining. */ public Builder setOverlayNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setOverlayNameBytes(value); return this; } /** *
     * use customized adv overlay settings for event. Default: false (use organization)
     * 
* * optional bool use_custom = 5 [json_name = "useCustom"]; * @return Whether the useCustom field is set. */ @java.lang.Override public boolean hasUseCustom() { return instance.hasUseCustom(); } /** *
     * use customized adv overlay settings for event. Default: false (use organization)
     * 
* * optional bool use_custom = 5 [json_name = "useCustom"]; * @return The useCustom. */ @java.lang.Override public boolean getUseCustom() { return instance.getUseCustom(); } /** *
     * use customized adv overlay settings for event. Default: false (use organization)
     * 
* * optional bool use_custom = 5 [json_name = "useCustom"]; * @param value The useCustom to set. * @return This builder for chaining. */ public Builder setUseCustom(boolean value) { copyOnWrite(); instance.setUseCustom(value); return this; } /** *
     * use customized adv overlay settings for event. Default: false (use organization)
     * 
* * optional bool use_custom = 5 [json_name = "useCustom"]; * @return This builder for chaining. */ public Builder clearUseCustom() { copyOnWrite(); instance.clearUseCustom(); return this; } // @@protoc_insertion_point(builder_scope:streamlayer.sdkSettings.AdvertisingOverlaySettings) } @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.AdvertisingOverlaySettings(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "overlayType_", "settings_", SettingsDefaultEntryHolder.defaultEntry, "enabled_", "overlayName_", "useCustom_", }; java.lang.String info = "\u0000\u0005\u0000\u0001\u0001\u0005\u0005\u0001\u0000\u0000\u0001\f\u00022\u0003" + "\u0007\u0004\u0208\u0005\u1007\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.AdvertisingOverlaySettings.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.AdvertisingOverlaySettings) private static final com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings DEFAULT_INSTANCE; static { AdvertisingOverlaySettings defaultInstance = new AdvertisingOverlaySettings(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( AdvertisingOverlaySettings.class, defaultInstance); } public static com.streamlayer.sdkSettings.common.AdvertisingOverlaySettings 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