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

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

There is a newer version: 5.120.2
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.ModerationNotifications}
 */
public  final class ModerationNotifications extends
    com.google.protobuf.GeneratedMessageLite<
        ModerationNotifications, ModerationNotifications.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.moderation.common.ModerationNotifications)
    ModerationNotificationsOrBuilder {
  private ModerationNotifications() {
    defaultImage_ = "";
  }
  public static final int DEFAULT_IMAGE_FIELD_NUMBER = 1;
  private java.lang.String defaultImage_;
  /**
   * string default_image = 1 [json_name = "defaultImage"];
   * @return The defaultImage.
   */
  @java.lang.Override
  public java.lang.String getDefaultImage() {
    return defaultImage_;
  }
  /**
   * string default_image = 1 [json_name = "defaultImage"];
   * @return The bytes for defaultImage.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDefaultImageBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(defaultImage_);
  }
  /**
   * string default_image = 1 [json_name = "defaultImage"];
   * @param value The defaultImage to set.
   */
  private void setDefaultImage(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    defaultImage_ = value;
  }
  /**
   * string default_image = 1 [json_name = "defaultImage"];
   */
  private void clearDefaultImage() {

    defaultImage_ = getDefaultInstance().getDefaultImage();
  }
  /**
   * string default_image = 1 [json_name = "defaultImage"];
   * @param value The bytes for defaultImage to set.
   */
  private void setDefaultImageBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    defaultImage_ = value.toStringUtf8();

  }

  public static final int IMAGE_MODE_FIELD_NUMBER = 2;
  private int imageMode_;
  /**
   * .streamlayer.interactive.QuestionImages image_mode = 2 [json_name = "imageMode"];
   * @return The enum numeric value on the wire for imageMode.
   */
  @java.lang.Override
  public int getImageModeValue() {
    return imageMode_;
  }
  /**
   * .streamlayer.interactive.QuestionImages image_mode = 2 [json_name = "imageMode"];
   * @return The imageMode.
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.QuestionImages getImageMode() {
    com.streamlayer.interactive.common.QuestionImages result = com.streamlayer.interactive.common.QuestionImages.forNumber(imageMode_);
    return result == null ? com.streamlayer.interactive.common.QuestionImages.UNRECOGNIZED : result;
  }
  /**
   * .streamlayer.interactive.QuestionImages image_mode = 2 [json_name = "imageMode"];
   * @param value The enum numeric value on the wire for imageMode to set.
   */
  private void setImageModeValue(int value) {
      imageMode_ = value;
  }
  /**
   * .streamlayer.interactive.QuestionImages image_mode = 2 [json_name = "imageMode"];
   * @param value The imageMode to set.
   */
  private void setImageMode(com.streamlayer.interactive.common.QuestionImages value) {
    imageMode_ = value.getNumber();

  }
  /**
   * .streamlayer.interactive.QuestionImages image_mode = 2 [json_name = "imageMode"];
   */
  private void clearImageMode() {

    imageMode_ = 0;
  }

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

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

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


    /**
     * string default_image = 1 [json_name = "defaultImage"];
     * @return The defaultImage.
     */
    @java.lang.Override
    public java.lang.String getDefaultImage() {
      return instance.getDefaultImage();
    }
    /**
     * string default_image = 1 [json_name = "defaultImage"];
     * @return The bytes for defaultImage.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDefaultImageBytes() {
      return instance.getDefaultImageBytes();
    }
    /**
     * string default_image = 1 [json_name = "defaultImage"];
     * @param value The defaultImage to set.
     * @return This builder for chaining.
     */
    public Builder setDefaultImage(
        java.lang.String value) {
      copyOnWrite();
      instance.setDefaultImage(value);
      return this;
    }
    /**
     * string default_image = 1 [json_name = "defaultImage"];
     * @return This builder for chaining.
     */
    public Builder clearDefaultImage() {
      copyOnWrite();
      instance.clearDefaultImage();
      return this;
    }
    /**
     * string default_image = 1 [json_name = "defaultImage"];
     * @param value The bytes for defaultImage to set.
     * @return This builder for chaining.
     */
    public Builder setDefaultImageBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setDefaultImageBytes(value);
      return this;
    }

    /**
     * .streamlayer.interactive.QuestionImages image_mode = 2 [json_name = "imageMode"];
     * @return The enum numeric value on the wire for imageMode.
     */
    @java.lang.Override
    public int getImageModeValue() {
      return instance.getImageModeValue();
    }
    /**
     * .streamlayer.interactive.QuestionImages image_mode = 2 [json_name = "imageMode"];
     * @param value The imageMode to set.
     * @return This builder for chaining.
     */
    public Builder setImageModeValue(int value) {
      copyOnWrite();
      instance.setImageModeValue(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionImages image_mode = 2 [json_name = "imageMode"];
     * @return The imageMode.
     */
    @java.lang.Override
    public com.streamlayer.interactive.common.QuestionImages getImageMode() {
      return instance.getImageMode();
    }
    /**
     * .streamlayer.interactive.QuestionImages image_mode = 2 [json_name = "imageMode"];
     * @param value The enum numeric value on the wire for imageMode to set.
     * @return This builder for chaining.
     */
    public Builder setImageMode(com.streamlayer.interactive.common.QuestionImages value) {
      copyOnWrite();
      instance.setImageMode(value);
      return this;
    }
    /**
     * .streamlayer.interactive.QuestionImages image_mode = 2 [json_name = "imageMode"];
     * @return This builder for chaining.
     */
    public Builder clearImageMode() {
      copyOnWrite();
      instance.clearImageMode();
      return this;
    }

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

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