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

io.ray.serve.generated.LoggingConfig Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: src/ray/protobuf/serve.proto

package io.ray.serve.generated;

/**
 * Protobuf type {@code ray.serve.LoggingConfig}
 */
public final class LoggingConfig extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:ray.serve.LoggingConfig)
    LoggingConfigOrBuilder {
private static final long serialVersionUID = 0L;
  // Use LoggingConfig.newBuilder() to construct.
  private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private LoggingConfig() {
    encoding_ = 0;
    logLevel_ = "";
    logsDir_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new LoggingConfig();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private LoggingConfig(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {
            int rawValue = input.readEnum();

            encoding_ = rawValue;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            logLevel_ = s;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();

            logsDir_ = s;
            break;
          }
          case 32: {

            enableAccessLog_ = input.readBool();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_LoggingConfig_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_LoggingConfig_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.ray.serve.generated.LoggingConfig.class, io.ray.serve.generated.LoggingConfig.Builder.class);
  }

  public static final int ENCODING_FIELD_NUMBER = 1;
  private int encoding_;
  /**
   * .ray.serve.EncodingType encoding = 1 [json_name = "encoding"];
   * @return The enum numeric value on the wire for encoding.
   */
  @java.lang.Override public int getEncodingValue() {
    return encoding_;
  }
  /**
   * .ray.serve.EncodingType encoding = 1 [json_name = "encoding"];
   * @return The encoding.
   */
  @java.lang.Override public io.ray.serve.generated.EncodingType getEncoding() {
    @SuppressWarnings("deprecation")
    io.ray.serve.generated.EncodingType result = io.ray.serve.generated.EncodingType.valueOf(encoding_);
    return result == null ? io.ray.serve.generated.EncodingType.UNRECOGNIZED : result;
  }

  public static final int LOG_LEVEL_FIELD_NUMBER = 2;
  private volatile java.lang.Object logLevel_;
  /**
   * string log_level = 2 [json_name = "logLevel"];
   * @return The logLevel.
   */
  @java.lang.Override
  public java.lang.String getLogLevel() {
    java.lang.Object ref = logLevel_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      logLevel_ = s;
      return s;
    }
  }
  /**
   * string log_level = 2 [json_name = "logLevel"];
   * @return The bytes for logLevel.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLogLevelBytes() {
    java.lang.Object ref = logLevel_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      logLevel_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LOGS_DIR_FIELD_NUMBER = 3;
  private volatile java.lang.Object logsDir_;
  /**
   * string logs_dir = 3 [json_name = "logsDir"];
   * @return The logsDir.
   */
  @java.lang.Override
  public java.lang.String getLogsDir() {
    java.lang.Object ref = logsDir_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      logsDir_ = s;
      return s;
    }
  }
  /**
   * string logs_dir = 3 [json_name = "logsDir"];
   * @return The bytes for logsDir.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLogsDirBytes() {
    java.lang.Object ref = logsDir_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      logsDir_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ENABLE_ACCESS_LOG_FIELD_NUMBER = 4;
  private boolean enableAccessLog_;
  /**
   * bool enable_access_log = 4 [json_name = "enableAccessLog"];
   * @return The enableAccessLog.
   */
  @java.lang.Override
  public boolean getEnableAccessLog() {
    return enableAccessLog_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (encoding_ != io.ray.serve.generated.EncodingType.TEXT.getNumber()) {
      output.writeEnum(1, encoding_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logLevel_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, logLevel_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsDir_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, logsDir_);
    }
    if (enableAccessLog_ != false) {
      output.writeBool(4, enableAccessLog_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (encoding_ != io.ray.serve.generated.EncodingType.TEXT.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(1, encoding_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logLevel_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, logLevel_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsDir_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, logsDir_);
    }
    if (enableAccessLog_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(4, enableAccessLog_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof io.ray.serve.generated.LoggingConfig)) {
      return super.equals(obj);
    }
    io.ray.serve.generated.LoggingConfig other = (io.ray.serve.generated.LoggingConfig) obj;

    if (encoding_ != other.encoding_) return false;
    if (!getLogLevel()
        .equals(other.getLogLevel())) return false;
    if (!getLogsDir()
        .equals(other.getLogsDir())) return false;
    if (getEnableAccessLog()
        != other.getEnableAccessLog()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ENCODING_FIELD_NUMBER;
    hash = (53 * hash) + encoding_;
    hash = (37 * hash) + LOG_LEVEL_FIELD_NUMBER;
    hash = (53 * hash) + getLogLevel().hashCode();
    hash = (37 * hash) + LOGS_DIR_FIELD_NUMBER;
    hash = (53 * hash) + getLogsDir().hashCode();
    hash = (37 * hash) + ENABLE_ACCESS_LOG_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getEnableAccessLog());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.ray.serve.generated.LoggingConfig parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.ray.serve.generated.LoggingConfig parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.ray.serve.generated.LoggingConfig parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.ray.serve.generated.LoggingConfig parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.ray.serve.generated.LoggingConfig parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.ray.serve.generated.LoggingConfig parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.ray.serve.generated.LoggingConfig parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.ray.serve.generated.LoggingConfig parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.ray.serve.generated.LoggingConfig parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.ray.serve.generated.LoggingConfig parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.ray.serve.generated.LoggingConfig parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.ray.serve.generated.LoggingConfig parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(io.ray.serve.generated.LoggingConfig prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code ray.serve.LoggingConfig}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:ray.serve.LoggingConfig)
      io.ray.serve.generated.LoggingConfigOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_LoggingConfig_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_LoggingConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.ray.serve.generated.LoggingConfig.class, io.ray.serve.generated.LoggingConfig.Builder.class);
    }

    // Construct using io.ray.serve.generated.LoggingConfig.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      encoding_ = 0;

      logLevel_ = "";

      logsDir_ = "";

      enableAccessLog_ = false;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_LoggingConfig_descriptor;
    }

    @java.lang.Override
    public io.ray.serve.generated.LoggingConfig getDefaultInstanceForType() {
      return io.ray.serve.generated.LoggingConfig.getDefaultInstance();
    }

    @java.lang.Override
    public io.ray.serve.generated.LoggingConfig build() {
      io.ray.serve.generated.LoggingConfig result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.ray.serve.generated.LoggingConfig buildPartial() {
      io.ray.serve.generated.LoggingConfig result = new io.ray.serve.generated.LoggingConfig(this);
      result.encoding_ = encoding_;
      result.logLevel_ = logLevel_;
      result.logsDir_ = logsDir_;
      result.enableAccessLog_ = enableAccessLog_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.ray.serve.generated.LoggingConfig) {
        return mergeFrom((io.ray.serve.generated.LoggingConfig)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.ray.serve.generated.LoggingConfig other) {
      if (other == io.ray.serve.generated.LoggingConfig.getDefaultInstance()) return this;
      if (other.encoding_ != 0) {
        setEncodingValue(other.getEncodingValue());
      }
      if (!other.getLogLevel().isEmpty()) {
        logLevel_ = other.logLevel_;
        onChanged();
      }
      if (!other.getLogsDir().isEmpty()) {
        logsDir_ = other.logsDir_;
        onChanged();
      }
      if (other.getEnableAccessLog() != false) {
        setEnableAccessLog(other.getEnableAccessLog());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      io.ray.serve.generated.LoggingConfig parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.ray.serve.generated.LoggingConfig) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int encoding_ = 0;
    /**
     * .ray.serve.EncodingType encoding = 1 [json_name = "encoding"];
     * @return The enum numeric value on the wire for encoding.
     */
    @java.lang.Override public int getEncodingValue() {
      return encoding_;
    }
    /**
     * .ray.serve.EncodingType encoding = 1 [json_name = "encoding"];
     * @param value The enum numeric value on the wire for encoding to set.
     * @return This builder for chaining.
     */
    public Builder setEncodingValue(int value) {
      
      encoding_ = value;
      onChanged();
      return this;
    }
    /**
     * .ray.serve.EncodingType encoding = 1 [json_name = "encoding"];
     * @return The encoding.
     */
    @java.lang.Override
    public io.ray.serve.generated.EncodingType getEncoding() {
      @SuppressWarnings("deprecation")
      io.ray.serve.generated.EncodingType result = io.ray.serve.generated.EncodingType.valueOf(encoding_);
      return result == null ? io.ray.serve.generated.EncodingType.UNRECOGNIZED : result;
    }
    /**
     * .ray.serve.EncodingType encoding = 1 [json_name = "encoding"];
     * @param value The encoding to set.
     * @return This builder for chaining.
     */
    public Builder setEncoding(io.ray.serve.generated.EncodingType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      encoding_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .ray.serve.EncodingType encoding = 1 [json_name = "encoding"];
     * @return This builder for chaining.
     */
    public Builder clearEncoding() {
      
      encoding_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object logLevel_ = "";
    /**
     * string log_level = 2 [json_name = "logLevel"];
     * @return The logLevel.
     */
    public java.lang.String getLogLevel() {
      java.lang.Object ref = logLevel_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        logLevel_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string log_level = 2 [json_name = "logLevel"];
     * @return The bytes for logLevel.
     */
    public com.google.protobuf.ByteString
        getLogLevelBytes() {
      java.lang.Object ref = logLevel_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        logLevel_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string log_level = 2 [json_name = "logLevel"];
     * @param value The logLevel to set.
     * @return This builder for chaining.
     */
    public Builder setLogLevel(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      logLevel_ = value;
      onChanged();
      return this;
    }
    /**
     * string log_level = 2 [json_name = "logLevel"];
     * @return This builder for chaining.
     */
    public Builder clearLogLevel() {
      
      logLevel_ = getDefaultInstance().getLogLevel();
      onChanged();
      return this;
    }
    /**
     * string log_level = 2 [json_name = "logLevel"];
     * @param value The bytes for logLevel to set.
     * @return This builder for chaining.
     */
    public Builder setLogLevelBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      logLevel_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object logsDir_ = "";
    /**
     * string logs_dir = 3 [json_name = "logsDir"];
     * @return The logsDir.
     */
    public java.lang.String getLogsDir() {
      java.lang.Object ref = logsDir_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        logsDir_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string logs_dir = 3 [json_name = "logsDir"];
     * @return The bytes for logsDir.
     */
    public com.google.protobuf.ByteString
        getLogsDirBytes() {
      java.lang.Object ref = logsDir_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        logsDir_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string logs_dir = 3 [json_name = "logsDir"];
     * @param value The logsDir to set.
     * @return This builder for chaining.
     */
    public Builder setLogsDir(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      logsDir_ = value;
      onChanged();
      return this;
    }
    /**
     * string logs_dir = 3 [json_name = "logsDir"];
     * @return This builder for chaining.
     */
    public Builder clearLogsDir() {
      
      logsDir_ = getDefaultInstance().getLogsDir();
      onChanged();
      return this;
    }
    /**
     * string logs_dir = 3 [json_name = "logsDir"];
     * @param value The bytes for logsDir to set.
     * @return This builder for chaining.
     */
    public Builder setLogsDirBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      logsDir_ = value;
      onChanged();
      return this;
    }

    private boolean enableAccessLog_ ;
    /**
     * bool enable_access_log = 4 [json_name = "enableAccessLog"];
     * @return The enableAccessLog.
     */
    @java.lang.Override
    public boolean getEnableAccessLog() {
      return enableAccessLog_;
    }
    /**
     * bool enable_access_log = 4 [json_name = "enableAccessLog"];
     * @param value The enableAccessLog to set.
     * @return This builder for chaining.
     */
    public Builder setEnableAccessLog(boolean value) {
      
      enableAccessLog_ = value;
      onChanged();
      return this;
    }
    /**
     * bool enable_access_log = 4 [json_name = "enableAccessLog"];
     * @return This builder for chaining.
     */
    public Builder clearEnableAccessLog() {
      
      enableAccessLog_ = false;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:ray.serve.LoggingConfig)
  }

  // @@protoc_insertion_point(class_scope:ray.serve.LoggingConfig)
  private static final io.ray.serve.generated.LoggingConfig DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.ray.serve.generated.LoggingConfig();
  }

  public static io.ray.serve.generated.LoggingConfig getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public LoggingConfig parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new LoggingConfig(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public io.ray.serve.generated.LoggingConfig getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy