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

main.java.com.streamlayer.sdkSettings.common.AdvertisingConstraint 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.AdvertisingConstraint}
 */
public  final class AdvertisingConstraint extends
    com.google.protobuf.GeneratedMessageLite<
        AdvertisingConstraint, AdvertisingConstraint.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.AdvertisingConstraint)
    AdvertisingConstraintOrBuilder {
  private AdvertisingConstraint() {
    mime_ = "";
  }
  public static final int WIDTH_FIELD_NUMBER = 1;
  private int width_;
  /**
   * int32 width = 1 [json_name = "width"];
   * @return The width.
   */
  @java.lang.Override
  public int getWidth() {
    return width_;
  }
  /**
   * int32 width = 1 [json_name = "width"];
   * @param value The width to set.
   */
  private void setWidth(int value) {
    
    width_ = value;
  }
  /**
   * int32 width = 1 [json_name = "width"];
   */
  private void clearWidth() {

    width_ = 0;
  }

  public static final int HEIGHT_FIELD_NUMBER = 2;
  private int height_;
  /**
   * int32 height = 2 [json_name = "height"];
   * @return The height.
   */
  @java.lang.Override
  public int getHeight() {
    return height_;
  }
  /**
   * int32 height = 2 [json_name = "height"];
   * @param value The height to set.
   */
  private void setHeight(int value) {
    
    height_ = value;
  }
  /**
   * int32 height = 2 [json_name = "height"];
   */
  private void clearHeight() {

    height_ = 0;
  }

  public static final int MAX_FILE_SIZE_FIELD_NUMBER = 3;
  private double maxFileSize_;
  /**
   * double max_file_size = 3 [json_name = "maxFileSize"];
   * @return The maxFileSize.
   */
  @java.lang.Override
  public double getMaxFileSize() {
    return maxFileSize_;
  }
  /**
   * double max_file_size = 3 [json_name = "maxFileSize"];
   * @param value The maxFileSize to set.
   */
  private void setMaxFileSize(double value) {
    
    maxFileSize_ = value;
  }
  /**
   * double max_file_size = 3 [json_name = "maxFileSize"];
   */
  private void clearMaxFileSize() {

    maxFileSize_ = 0D;
  }

  public static final int MIME_FIELD_NUMBER = 4;
  private java.lang.String mime_;
  /**
   * string mime = 4 [json_name = "mime"];
   * @return The mime.
   */
  @java.lang.Override
  public java.lang.String getMime() {
    return mime_;
  }
  /**
   * string mime = 4 [json_name = "mime"];
   * @return The bytes for mime.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMimeBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(mime_);
  }
  /**
   * string mime = 4 [json_name = "mime"];
   * @param value The mime to set.
   */
  private void setMime(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    mime_ = value;
  }
  /**
   * string mime = 4 [json_name = "mime"];
   */
  private void clearMime() {

    mime_ = getDefaultInstance().getMime();
  }
  /**
   * string mime = 4 [json_name = "mime"];
   * @param value The bytes for mime to set.
   */
  private void setMimeBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    mime_ = value.toStringUtf8();

  }

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

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

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


    /**
     * int32 width = 1 [json_name = "width"];
     * @return The width.
     */
    @java.lang.Override
    public int getWidth() {
      return instance.getWidth();
    }
    /**
     * int32 width = 1 [json_name = "width"];
     * @param value The width to set.
     * @return This builder for chaining.
     */
    public Builder setWidth(int value) {
      copyOnWrite();
      instance.setWidth(value);
      return this;
    }
    /**
     * int32 width = 1 [json_name = "width"];
     * @return This builder for chaining.
     */
    public Builder clearWidth() {
      copyOnWrite();
      instance.clearWidth();
      return this;
    }

    /**
     * int32 height = 2 [json_name = "height"];
     * @return The height.
     */
    @java.lang.Override
    public int getHeight() {
      return instance.getHeight();
    }
    /**
     * int32 height = 2 [json_name = "height"];
     * @param value The height to set.
     * @return This builder for chaining.
     */
    public Builder setHeight(int value) {
      copyOnWrite();
      instance.setHeight(value);
      return this;
    }
    /**
     * int32 height = 2 [json_name = "height"];
     * @return This builder for chaining.
     */
    public Builder clearHeight() {
      copyOnWrite();
      instance.clearHeight();
      return this;
    }

    /**
     * double max_file_size = 3 [json_name = "maxFileSize"];
     * @return The maxFileSize.
     */
    @java.lang.Override
    public double getMaxFileSize() {
      return instance.getMaxFileSize();
    }
    /**
     * double max_file_size = 3 [json_name = "maxFileSize"];
     * @param value The maxFileSize to set.
     * @return This builder for chaining.
     */
    public Builder setMaxFileSize(double value) {
      copyOnWrite();
      instance.setMaxFileSize(value);
      return this;
    }
    /**
     * double max_file_size = 3 [json_name = "maxFileSize"];
     * @return This builder for chaining.
     */
    public Builder clearMaxFileSize() {
      copyOnWrite();
      instance.clearMaxFileSize();
      return this;
    }

    /**
     * string mime = 4 [json_name = "mime"];
     * @return The mime.
     */
    @java.lang.Override
    public java.lang.String getMime() {
      return instance.getMime();
    }
    /**
     * string mime = 4 [json_name = "mime"];
     * @return The bytes for mime.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getMimeBytes() {
      return instance.getMimeBytes();
    }
    /**
     * string mime = 4 [json_name = "mime"];
     * @param value The mime to set.
     * @return This builder for chaining.
     */
    public Builder setMime(
        java.lang.String value) {
      copyOnWrite();
      instance.setMime(value);
      return this;
    }
    /**
     * string mime = 4 [json_name = "mime"];
     * @return This builder for chaining.
     */
    public Builder clearMime() {
      copyOnWrite();
      instance.clearMime();
      return this;
    }
    /**
     * string mime = 4 [json_name = "mime"];
     * @param value The bytes for mime to set.
     * @return This builder for chaining.
     */
    public Builder setMimeBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setMimeBytes(value);
      return this;
    }

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

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