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

org.finos.tracdap.config.WebServerConfig Maven / Gradle / Ivy

Go to download

TRAC D.A.P. config library, contains data structures used for config files (and other config sources)

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: tracdap/config/platform.proto
// Protobuf Java Version: 4.28.2

package org.finos.tracdap.config;

/**
 * Protobuf type {@code tracdap.config.WebServerConfig}
 */
public final class WebServerConfig extends
    com.google.protobuf.GeneratedMessage implements
    // @@protoc_insertion_point(message_implements:tracdap.config.WebServerConfig)
    WebServerConfigOrBuilder {
private static final long serialVersionUID = 0L;
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 28,
      /* patch= */ 2,
      /* suffix= */ "",
      WebServerConfig.class.getName());
  }
  // Use WebServerConfig.newBuilder() to construct.
  private WebServerConfig(com.google.protobuf.GeneratedMessage.Builder builder) {
    super(builder);
  }
  private WebServerConfig() {
    rewriteRules_ = java.util.Collections.emptyList();
    redirects_ = java.util.Collections.emptyList();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.finos.tracdap.config.Platform.internal_static_tracdap_config_WebServerConfig_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.finos.tracdap.config.Platform.internal_static_tracdap_config_WebServerConfig_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.finos.tracdap.config.WebServerConfig.class, org.finos.tracdap.config.WebServerConfig.Builder.class);
  }

  private int bitField0_;
  public static final int ENABLED_FIELD_NUMBER = 1;
  private boolean enabled_ = false;
  /**
   * bool enabled = 1;
   * @return The enabled.
   */
  @java.lang.Override
  public boolean getEnabled() {
    return enabled_;
  }

  public static final int CONTENTROOT_FIELD_NUMBER = 3;
  private org.finos.tracdap.config.PluginConfig contentRoot_;
  /**
   * .tracdap.config.PluginConfig contentRoot = 3;
   * @return Whether the contentRoot field is set.
   */
  @java.lang.Override
  public boolean hasContentRoot() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .tracdap.config.PluginConfig contentRoot = 3;
   * @return The contentRoot.
   */
  @java.lang.Override
  public org.finos.tracdap.config.PluginConfig getContentRoot() {
    return contentRoot_ == null ? org.finos.tracdap.config.PluginConfig.getDefaultInstance() : contentRoot_;
  }
  /**
   * .tracdap.config.PluginConfig contentRoot = 3;
   */
  @java.lang.Override
  public org.finos.tracdap.config.PluginConfigOrBuilder getContentRootOrBuilder() {
    return contentRoot_ == null ? org.finos.tracdap.config.PluginConfig.getDefaultInstance() : contentRoot_;
  }

  public static final int REWRITERULES_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private java.util.List rewriteRules_;
  /**
   * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
   */
  @java.lang.Override
  public java.util.List getRewriteRulesList() {
    return rewriteRules_;
  }
  /**
   * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
   */
  @java.lang.Override
  public java.util.List 
      getRewriteRulesOrBuilderList() {
    return rewriteRules_;
  }
  /**
   * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
   */
  @java.lang.Override
  public int getRewriteRulesCount() {
    return rewriteRules_.size();
  }
  /**
   * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
   */
  @java.lang.Override
  public org.finos.tracdap.config.WebServerRewriteRule getRewriteRules(int index) {
    return rewriteRules_.get(index);
  }
  /**
   * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
   */
  @java.lang.Override
  public org.finos.tracdap.config.WebServerRewriteRuleOrBuilder getRewriteRulesOrBuilder(
      int index) {
    return rewriteRules_.get(index);
  }

  public static final int REDIRECTS_FIELD_NUMBER = 5;
  @SuppressWarnings("serial")
  private java.util.List redirects_;
  /**
   * repeated .tracdap.config.WebServerRedirect redirects = 5;
   */
  @java.lang.Override
  public java.util.List getRedirectsList() {
    return redirects_;
  }
  /**
   * repeated .tracdap.config.WebServerRedirect redirects = 5;
   */
  @java.lang.Override
  public java.util.List 
      getRedirectsOrBuilderList() {
    return redirects_;
  }
  /**
   * repeated .tracdap.config.WebServerRedirect redirects = 5;
   */
  @java.lang.Override
  public int getRedirectsCount() {
    return redirects_.size();
  }
  /**
   * repeated .tracdap.config.WebServerRedirect redirects = 5;
   */
  @java.lang.Override
  public org.finos.tracdap.config.WebServerRedirect getRedirects(int index) {
    return redirects_.get(index);
  }
  /**
   * repeated .tracdap.config.WebServerRedirect redirects = 5;
   */
  @java.lang.Override
  public org.finos.tracdap.config.WebServerRedirectOrBuilder getRedirectsOrBuilder(
      int index) {
    return redirects_.get(index);
  }

  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 (enabled_ != false) {
      output.writeBool(1, enabled_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(3, getContentRoot());
    }
    for (int i = 0; i < rewriteRules_.size(); i++) {
      output.writeMessage(4, rewriteRules_.get(i));
    }
    for (int i = 0; i < redirects_.size(); i++) {
      output.writeMessage(5, redirects_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (enabled_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(1, enabled_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getContentRoot());
    }
    for (int i = 0; i < rewriteRules_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, rewriteRules_.get(i));
    }
    for (int i = 0; i < redirects_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, redirects_.get(i));
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof org.finos.tracdap.config.WebServerConfig)) {
      return super.equals(obj);
    }
    org.finos.tracdap.config.WebServerConfig other = (org.finos.tracdap.config.WebServerConfig) obj;

    if (getEnabled()
        != other.getEnabled()) return false;
    if (hasContentRoot() != other.hasContentRoot()) return false;
    if (hasContentRoot()) {
      if (!getContentRoot()
          .equals(other.getContentRoot())) return false;
    }
    if (!getRewriteRulesList()
        .equals(other.getRewriteRulesList())) return false;
    if (!getRedirectsList()
        .equals(other.getRedirectsList())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENABLED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getEnabled());
    if (hasContentRoot()) {
      hash = (37 * hash) + CONTENTROOT_FIELD_NUMBER;
      hash = (53 * hash) + getContentRoot().hashCode();
    }
    if (getRewriteRulesCount() > 0) {
      hash = (37 * hash) + REWRITERULES_FIELD_NUMBER;
      hash = (53 * hash) + getRewriteRulesList().hashCode();
    }
    if (getRedirectsCount() > 0) {
      hash = (37 * hash) + REDIRECTS_FIELD_NUMBER;
      hash = (53 * hash) + getRedirectsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.finos.tracdap.config.WebServerConfig parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.finos.tracdap.config.WebServerConfig parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.finos.tracdap.config.WebServerConfig parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.finos.tracdap.config.WebServerConfig parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.finos.tracdap.config.WebServerConfig parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.finos.tracdap.config.WebServerConfig parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.finos.tracdap.config.WebServerConfig parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static org.finos.tracdap.config.WebServerConfig parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static org.finos.tracdap.config.WebServerConfig parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static org.finos.tracdap.config.WebServerConfig parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static org.finos.tracdap.config.WebServerConfig parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static org.finos.tracdap.config.WebServerConfig parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(org.finos.tracdap.config.WebServerConfig 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.GeneratedMessage.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code tracdap.config.WebServerConfig}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessage.Builder implements
      // @@protoc_insertion_point(builder_implements:tracdap.config.WebServerConfig)
      org.finos.tracdap.config.WebServerConfigOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.finos.tracdap.config.Platform.internal_static_tracdap_config_WebServerConfig_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.finos.tracdap.config.Platform.internal_static_tracdap_config_WebServerConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.finos.tracdap.config.WebServerConfig.class, org.finos.tracdap.config.WebServerConfig.Builder.class);
    }

    // Construct using org.finos.tracdap.config.WebServerConfig.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessage
              .alwaysUseFieldBuilders) {
        getContentRootFieldBuilder();
        getRewriteRulesFieldBuilder();
        getRedirectsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      enabled_ = false;
      contentRoot_ = null;
      if (contentRootBuilder_ != null) {
        contentRootBuilder_.dispose();
        contentRootBuilder_ = null;
      }
      if (rewriteRulesBuilder_ == null) {
        rewriteRules_ = java.util.Collections.emptyList();
      } else {
        rewriteRules_ = null;
        rewriteRulesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      if (redirectsBuilder_ == null) {
        redirects_ = java.util.Collections.emptyList();
      } else {
        redirects_ = null;
        redirectsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000008);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.finos.tracdap.config.Platform.internal_static_tracdap_config_WebServerConfig_descriptor;
    }

    @java.lang.Override
    public org.finos.tracdap.config.WebServerConfig getDefaultInstanceForType() {
      return org.finos.tracdap.config.WebServerConfig.getDefaultInstance();
    }

    @java.lang.Override
    public org.finos.tracdap.config.WebServerConfig build() {
      org.finos.tracdap.config.WebServerConfig result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.finos.tracdap.config.WebServerConfig buildPartial() {
      org.finos.tracdap.config.WebServerConfig result = new org.finos.tracdap.config.WebServerConfig(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(org.finos.tracdap.config.WebServerConfig result) {
      if (rewriteRulesBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          rewriteRules_ = java.util.Collections.unmodifiableList(rewriteRules_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.rewriteRules_ = rewriteRules_;
      } else {
        result.rewriteRules_ = rewriteRulesBuilder_.build();
      }
      if (redirectsBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)) {
          redirects_ = java.util.Collections.unmodifiableList(redirects_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.redirects_ = redirects_;
      } else {
        result.redirects_ = redirectsBuilder_.build();
      }
    }

    private void buildPartial0(org.finos.tracdap.config.WebServerConfig result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.enabled_ = enabled_;
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.contentRoot_ = contentRootBuilder_ == null
            ? contentRoot_
            : contentRootBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof org.finos.tracdap.config.WebServerConfig) {
        return mergeFrom((org.finos.tracdap.config.WebServerConfig)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.finos.tracdap.config.WebServerConfig other) {
      if (other == org.finos.tracdap.config.WebServerConfig.getDefaultInstance()) return this;
      if (other.getEnabled() != false) {
        setEnabled(other.getEnabled());
      }
      if (other.hasContentRoot()) {
        mergeContentRoot(other.getContentRoot());
      }
      if (rewriteRulesBuilder_ == null) {
        if (!other.rewriteRules_.isEmpty()) {
          if (rewriteRules_.isEmpty()) {
            rewriteRules_ = other.rewriteRules_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureRewriteRulesIsMutable();
            rewriteRules_.addAll(other.rewriteRules_);
          }
          onChanged();
        }
      } else {
        if (!other.rewriteRules_.isEmpty()) {
          if (rewriteRulesBuilder_.isEmpty()) {
            rewriteRulesBuilder_.dispose();
            rewriteRulesBuilder_ = null;
            rewriteRules_ = other.rewriteRules_;
            bitField0_ = (bitField0_ & ~0x00000004);
            rewriteRulesBuilder_ = 
              com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                 getRewriteRulesFieldBuilder() : null;
          } else {
            rewriteRulesBuilder_.addAllMessages(other.rewriteRules_);
          }
        }
      }
      if (redirectsBuilder_ == null) {
        if (!other.redirects_.isEmpty()) {
          if (redirects_.isEmpty()) {
            redirects_ = other.redirects_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureRedirectsIsMutable();
            redirects_.addAll(other.redirects_);
          }
          onChanged();
        }
      } else {
        if (!other.redirects_.isEmpty()) {
          if (redirectsBuilder_.isEmpty()) {
            redirectsBuilder_.dispose();
            redirectsBuilder_ = null;
            redirects_ = other.redirects_;
            bitField0_ = (bitField0_ & ~0x00000008);
            redirectsBuilder_ = 
              com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                 getRedirectsFieldBuilder() : null;
          } else {
            redirectsBuilder_.addAllMessages(other.redirects_);
          }
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {
              enabled_ = input.readBool();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 26: {
              input.readMessage(
                  getContentRootFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 26
            case 34: {
              org.finos.tracdap.config.WebServerRewriteRule m =
                  input.readMessage(
                      org.finos.tracdap.config.WebServerRewriteRule.parser(),
                      extensionRegistry);
              if (rewriteRulesBuilder_ == null) {
                ensureRewriteRulesIsMutable();
                rewriteRules_.add(m);
              } else {
                rewriteRulesBuilder_.addMessage(m);
              }
              break;
            } // case 34
            case 42: {
              org.finos.tracdap.config.WebServerRedirect m =
                  input.readMessage(
                      org.finos.tracdap.config.WebServerRedirect.parser(),
                      extensionRegistry);
              if (redirectsBuilder_ == null) {
                ensureRedirectsIsMutable();
                redirects_.add(m);
              } else {
                redirectsBuilder_.addMessage(m);
              }
              break;
            } // case 42
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private boolean enabled_ ;
    /**
     * bool enabled = 1;
     * @return The enabled.
     */
    @java.lang.Override
    public boolean getEnabled() {
      return enabled_;
    }
    /**
     * bool enabled = 1;
     * @param value The enabled to set.
     * @return This builder for chaining.
     */
    public Builder setEnabled(boolean value) {

      enabled_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * bool enabled = 1;
     * @return This builder for chaining.
     */
    public Builder clearEnabled() {
      bitField0_ = (bitField0_ & ~0x00000001);
      enabled_ = false;
      onChanged();
      return this;
    }

    private org.finos.tracdap.config.PluginConfig contentRoot_;
    private com.google.protobuf.SingleFieldBuilder<
        org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder, org.finos.tracdap.config.PluginConfigOrBuilder> contentRootBuilder_;
    /**
     * .tracdap.config.PluginConfig contentRoot = 3;
     * @return Whether the contentRoot field is set.
     */
    public boolean hasContentRoot() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * .tracdap.config.PluginConfig contentRoot = 3;
     * @return The contentRoot.
     */
    public org.finos.tracdap.config.PluginConfig getContentRoot() {
      if (contentRootBuilder_ == null) {
        return contentRoot_ == null ? org.finos.tracdap.config.PluginConfig.getDefaultInstance() : contentRoot_;
      } else {
        return contentRootBuilder_.getMessage();
      }
    }
    /**
     * .tracdap.config.PluginConfig contentRoot = 3;
     */
    public Builder setContentRoot(org.finos.tracdap.config.PluginConfig value) {
      if (contentRootBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        contentRoot_ = value;
      } else {
        contentRootBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .tracdap.config.PluginConfig contentRoot = 3;
     */
    public Builder setContentRoot(
        org.finos.tracdap.config.PluginConfig.Builder builderForValue) {
      if (contentRootBuilder_ == null) {
        contentRoot_ = builderForValue.build();
      } else {
        contentRootBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .tracdap.config.PluginConfig contentRoot = 3;
     */
    public Builder mergeContentRoot(org.finos.tracdap.config.PluginConfig value) {
      if (contentRootBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          contentRoot_ != null &&
          contentRoot_ != org.finos.tracdap.config.PluginConfig.getDefaultInstance()) {
          getContentRootBuilder().mergeFrom(value);
        } else {
          contentRoot_ = value;
        }
      } else {
        contentRootBuilder_.mergeFrom(value);
      }
      if (contentRoot_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }
    /**
     * .tracdap.config.PluginConfig contentRoot = 3;
     */
    public Builder clearContentRoot() {
      bitField0_ = (bitField0_ & ~0x00000002);
      contentRoot_ = null;
      if (contentRootBuilder_ != null) {
        contentRootBuilder_.dispose();
        contentRootBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .tracdap.config.PluginConfig contentRoot = 3;
     */
    public org.finos.tracdap.config.PluginConfig.Builder getContentRootBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getContentRootFieldBuilder().getBuilder();
    }
    /**
     * .tracdap.config.PluginConfig contentRoot = 3;
     */
    public org.finos.tracdap.config.PluginConfigOrBuilder getContentRootOrBuilder() {
      if (contentRootBuilder_ != null) {
        return contentRootBuilder_.getMessageOrBuilder();
      } else {
        return contentRoot_ == null ?
            org.finos.tracdap.config.PluginConfig.getDefaultInstance() : contentRoot_;
      }
    }
    /**
     * .tracdap.config.PluginConfig contentRoot = 3;
     */
    private com.google.protobuf.SingleFieldBuilder<
        org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder, org.finos.tracdap.config.PluginConfigOrBuilder> 
        getContentRootFieldBuilder() {
      if (contentRootBuilder_ == null) {
        contentRootBuilder_ = new com.google.protobuf.SingleFieldBuilder<
            org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder, org.finos.tracdap.config.PluginConfigOrBuilder>(
                getContentRoot(),
                getParentForChildren(),
                isClean());
        contentRoot_ = null;
      }
      return contentRootBuilder_;
    }

    private java.util.List rewriteRules_ =
      java.util.Collections.emptyList();
    private void ensureRewriteRulesIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        rewriteRules_ = new java.util.ArrayList(rewriteRules_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilder<
        org.finos.tracdap.config.WebServerRewriteRule, org.finos.tracdap.config.WebServerRewriteRule.Builder, org.finos.tracdap.config.WebServerRewriteRuleOrBuilder> rewriteRulesBuilder_;

    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public java.util.List getRewriteRulesList() {
      if (rewriteRulesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(rewriteRules_);
      } else {
        return rewriteRulesBuilder_.getMessageList();
      }
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public int getRewriteRulesCount() {
      if (rewriteRulesBuilder_ == null) {
        return rewriteRules_.size();
      } else {
        return rewriteRulesBuilder_.getCount();
      }
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public org.finos.tracdap.config.WebServerRewriteRule getRewriteRules(int index) {
      if (rewriteRulesBuilder_ == null) {
        return rewriteRules_.get(index);
      } else {
        return rewriteRulesBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public Builder setRewriteRules(
        int index, org.finos.tracdap.config.WebServerRewriteRule value) {
      if (rewriteRulesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRewriteRulesIsMutable();
        rewriteRules_.set(index, value);
        onChanged();
      } else {
        rewriteRulesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public Builder setRewriteRules(
        int index, org.finos.tracdap.config.WebServerRewriteRule.Builder builderForValue) {
      if (rewriteRulesBuilder_ == null) {
        ensureRewriteRulesIsMutable();
        rewriteRules_.set(index, builderForValue.build());
        onChanged();
      } else {
        rewriteRulesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public Builder addRewriteRules(org.finos.tracdap.config.WebServerRewriteRule value) {
      if (rewriteRulesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRewriteRulesIsMutable();
        rewriteRules_.add(value);
        onChanged();
      } else {
        rewriteRulesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public Builder addRewriteRules(
        int index, org.finos.tracdap.config.WebServerRewriteRule value) {
      if (rewriteRulesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRewriteRulesIsMutable();
        rewriteRules_.add(index, value);
        onChanged();
      } else {
        rewriteRulesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public Builder addRewriteRules(
        org.finos.tracdap.config.WebServerRewriteRule.Builder builderForValue) {
      if (rewriteRulesBuilder_ == null) {
        ensureRewriteRulesIsMutable();
        rewriteRules_.add(builderForValue.build());
        onChanged();
      } else {
        rewriteRulesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public Builder addRewriteRules(
        int index, org.finos.tracdap.config.WebServerRewriteRule.Builder builderForValue) {
      if (rewriteRulesBuilder_ == null) {
        ensureRewriteRulesIsMutable();
        rewriteRules_.add(index, builderForValue.build());
        onChanged();
      } else {
        rewriteRulesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public Builder addAllRewriteRules(
        java.lang.Iterable values) {
      if (rewriteRulesBuilder_ == null) {
        ensureRewriteRulesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, rewriteRules_);
        onChanged();
      } else {
        rewriteRulesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public Builder clearRewriteRules() {
      if (rewriteRulesBuilder_ == null) {
        rewriteRules_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        rewriteRulesBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public Builder removeRewriteRules(int index) {
      if (rewriteRulesBuilder_ == null) {
        ensureRewriteRulesIsMutable();
        rewriteRules_.remove(index);
        onChanged();
      } else {
        rewriteRulesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public org.finos.tracdap.config.WebServerRewriteRule.Builder getRewriteRulesBuilder(
        int index) {
      return getRewriteRulesFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public org.finos.tracdap.config.WebServerRewriteRuleOrBuilder getRewriteRulesOrBuilder(
        int index) {
      if (rewriteRulesBuilder_ == null) {
        return rewriteRules_.get(index);  } else {
        return rewriteRulesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public java.util.List 
         getRewriteRulesOrBuilderList() {
      if (rewriteRulesBuilder_ != null) {
        return rewriteRulesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(rewriteRules_);
      }
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public org.finos.tracdap.config.WebServerRewriteRule.Builder addRewriteRulesBuilder() {
      return getRewriteRulesFieldBuilder().addBuilder(
          org.finos.tracdap.config.WebServerRewriteRule.getDefaultInstance());
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public org.finos.tracdap.config.WebServerRewriteRule.Builder addRewriteRulesBuilder(
        int index) {
      return getRewriteRulesFieldBuilder().addBuilder(
          index, org.finos.tracdap.config.WebServerRewriteRule.getDefaultInstance());
    }
    /**
     * repeated .tracdap.config.WebServerRewriteRule rewriteRules = 4;
     */
    public java.util.List 
         getRewriteRulesBuilderList() {
      return getRewriteRulesFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilder<
        org.finos.tracdap.config.WebServerRewriteRule, org.finos.tracdap.config.WebServerRewriteRule.Builder, org.finos.tracdap.config.WebServerRewriteRuleOrBuilder> 
        getRewriteRulesFieldBuilder() {
      if (rewriteRulesBuilder_ == null) {
        rewriteRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
            org.finos.tracdap.config.WebServerRewriteRule, org.finos.tracdap.config.WebServerRewriteRule.Builder, org.finos.tracdap.config.WebServerRewriteRuleOrBuilder>(
                rewriteRules_,
                ((bitField0_ & 0x00000004) != 0),
                getParentForChildren(),
                isClean());
        rewriteRules_ = null;
      }
      return rewriteRulesBuilder_;
    }

    private java.util.List redirects_ =
      java.util.Collections.emptyList();
    private void ensureRedirectsIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        redirects_ = new java.util.ArrayList(redirects_);
        bitField0_ |= 0x00000008;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilder<
        org.finos.tracdap.config.WebServerRedirect, org.finos.tracdap.config.WebServerRedirect.Builder, org.finos.tracdap.config.WebServerRedirectOrBuilder> redirectsBuilder_;

    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public java.util.List getRedirectsList() {
      if (redirectsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(redirects_);
      } else {
        return redirectsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public int getRedirectsCount() {
      if (redirectsBuilder_ == null) {
        return redirects_.size();
      } else {
        return redirectsBuilder_.getCount();
      }
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public org.finos.tracdap.config.WebServerRedirect getRedirects(int index) {
      if (redirectsBuilder_ == null) {
        return redirects_.get(index);
      } else {
        return redirectsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public Builder setRedirects(
        int index, org.finos.tracdap.config.WebServerRedirect value) {
      if (redirectsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRedirectsIsMutable();
        redirects_.set(index, value);
        onChanged();
      } else {
        redirectsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public Builder setRedirects(
        int index, org.finos.tracdap.config.WebServerRedirect.Builder builderForValue) {
      if (redirectsBuilder_ == null) {
        ensureRedirectsIsMutable();
        redirects_.set(index, builderForValue.build());
        onChanged();
      } else {
        redirectsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public Builder addRedirects(org.finos.tracdap.config.WebServerRedirect value) {
      if (redirectsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRedirectsIsMutable();
        redirects_.add(value);
        onChanged();
      } else {
        redirectsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public Builder addRedirects(
        int index, org.finos.tracdap.config.WebServerRedirect value) {
      if (redirectsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRedirectsIsMutable();
        redirects_.add(index, value);
        onChanged();
      } else {
        redirectsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public Builder addRedirects(
        org.finos.tracdap.config.WebServerRedirect.Builder builderForValue) {
      if (redirectsBuilder_ == null) {
        ensureRedirectsIsMutable();
        redirects_.add(builderForValue.build());
        onChanged();
      } else {
        redirectsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public Builder addRedirects(
        int index, org.finos.tracdap.config.WebServerRedirect.Builder builderForValue) {
      if (redirectsBuilder_ == null) {
        ensureRedirectsIsMutable();
        redirects_.add(index, builderForValue.build());
        onChanged();
      } else {
        redirectsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public Builder addAllRedirects(
        java.lang.Iterable values) {
      if (redirectsBuilder_ == null) {
        ensureRedirectsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, redirects_);
        onChanged();
      } else {
        redirectsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public Builder clearRedirects() {
      if (redirectsBuilder_ == null) {
        redirects_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        redirectsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public Builder removeRedirects(int index) {
      if (redirectsBuilder_ == null) {
        ensureRedirectsIsMutable();
        redirects_.remove(index);
        onChanged();
      } else {
        redirectsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public org.finos.tracdap.config.WebServerRedirect.Builder getRedirectsBuilder(
        int index) {
      return getRedirectsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public org.finos.tracdap.config.WebServerRedirectOrBuilder getRedirectsOrBuilder(
        int index) {
      if (redirectsBuilder_ == null) {
        return redirects_.get(index);  } else {
        return redirectsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public java.util.List 
         getRedirectsOrBuilderList() {
      if (redirectsBuilder_ != null) {
        return redirectsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(redirects_);
      }
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public org.finos.tracdap.config.WebServerRedirect.Builder addRedirectsBuilder() {
      return getRedirectsFieldBuilder().addBuilder(
          org.finos.tracdap.config.WebServerRedirect.getDefaultInstance());
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public org.finos.tracdap.config.WebServerRedirect.Builder addRedirectsBuilder(
        int index) {
      return getRedirectsFieldBuilder().addBuilder(
          index, org.finos.tracdap.config.WebServerRedirect.getDefaultInstance());
    }
    /**
     * repeated .tracdap.config.WebServerRedirect redirects = 5;
     */
    public java.util.List 
         getRedirectsBuilderList() {
      return getRedirectsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilder<
        org.finos.tracdap.config.WebServerRedirect, org.finos.tracdap.config.WebServerRedirect.Builder, org.finos.tracdap.config.WebServerRedirectOrBuilder> 
        getRedirectsFieldBuilder() {
      if (redirectsBuilder_ == null) {
        redirectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
            org.finos.tracdap.config.WebServerRedirect, org.finos.tracdap.config.WebServerRedirect.Builder, org.finos.tracdap.config.WebServerRedirectOrBuilder>(
                redirects_,
                ((bitField0_ & 0x00000008) != 0),
                getParentForChildren(),
                isClean());
        redirects_ = null;
      }
      return redirectsBuilder_;
    }

    // @@protoc_insertion_point(builder_scope:tracdap.config.WebServerConfig)
  }

  // @@protoc_insertion_point(class_scope:tracdap.config.WebServerConfig)
  private static final org.finos.tracdap.config.WebServerConfig DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.finos.tracdap.config.WebServerConfig();
  }

  public static org.finos.tracdap.config.WebServerConfig getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public WebServerConfig parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public org.finos.tracdap.config.WebServerConfig getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy