// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: wso2/discovery/api/endpoint_security.proto

package org.wso2.choreo.connect.discovery.api;

/**
 * <pre>
 * Endpoint config model
 * </pre>
 *
 * Protobuf type {@code wso2.discovery.api.EndpointSecurity}
 */
public final class EndpointSecurity extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wso2.discovery.api.EndpointSecurity)
    EndpointSecurityOrBuilder {
private static final long serialVersionUID = 0L;
  // Use EndpointSecurity.newBuilder() to construct.
  private EndpointSecurity(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private EndpointSecurity() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private EndpointSecurity(
      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 10: {
            org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder subBuilder = null;
            if (sandBoxSecurityInfo_ != null) {
              subBuilder = sandBoxSecurityInfo_.toBuilder();
            }
            sandBoxSecurityInfo_ = input.readMessage(org.wso2.choreo.connect.discovery.api.SecurityInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(sandBoxSecurityInfo_);
              sandBoxSecurityInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder subBuilder = null;
            if (productionSecurityInfo_ != null) {
              subBuilder = productionSecurityInfo_.toBuilder();
            }
            productionSecurityInfo_ = input.readMessage(org.wso2.choreo.connect.discovery.api.SecurityInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(productionSecurityInfo_);
              productionSecurityInfo_ = subBuilder.buildPartial();
            }

            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 org.wso2.choreo.connect.discovery.api.EndpointSecurityProto.internal_static_wso2_discovery_api_EndpointSecurity_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.wso2.choreo.connect.discovery.api.EndpointSecurityProto.internal_static_wso2_discovery_api_EndpointSecurity_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.wso2.choreo.connect.discovery.api.EndpointSecurity.class, org.wso2.choreo.connect.discovery.api.EndpointSecurity.Builder.class);
  }

  public static final int SANDBOXSECURITYINFO_FIELD_NUMBER = 1;
  private org.wso2.choreo.connect.discovery.api.SecurityInfo sandBoxSecurityInfo_;
  /**
   * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
   * @return Whether the sandBoxSecurityInfo field is set.
   */
  @java.lang.Override
  public boolean hasSandBoxSecurityInfo() {
    return sandBoxSecurityInfo_ != null;
  }
  /**
   * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
   * @return The sandBoxSecurityInfo.
   */
  @java.lang.Override
  public org.wso2.choreo.connect.discovery.api.SecurityInfo getSandBoxSecurityInfo() {
    return sandBoxSecurityInfo_ == null ? org.wso2.choreo.connect.discovery.api.SecurityInfo.getDefaultInstance() : sandBoxSecurityInfo_;
  }
  /**
   * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
   */
  @java.lang.Override
  public org.wso2.choreo.connect.discovery.api.SecurityInfoOrBuilder getSandBoxSecurityInfoOrBuilder() {
    return getSandBoxSecurityInfo();
  }

  public static final int PRODUCTIONSECURITYINFO_FIELD_NUMBER = 2;
  private org.wso2.choreo.connect.discovery.api.SecurityInfo productionSecurityInfo_;
  /**
   * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
   * @return Whether the productionSecurityInfo field is set.
   */
  @java.lang.Override
  public boolean hasProductionSecurityInfo() {
    return productionSecurityInfo_ != null;
  }
  /**
   * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
   * @return The productionSecurityInfo.
   */
  @java.lang.Override
  public org.wso2.choreo.connect.discovery.api.SecurityInfo getProductionSecurityInfo() {
    return productionSecurityInfo_ == null ? org.wso2.choreo.connect.discovery.api.SecurityInfo.getDefaultInstance() : productionSecurityInfo_;
  }
  /**
   * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
   */
  @java.lang.Override
  public org.wso2.choreo.connect.discovery.api.SecurityInfoOrBuilder getProductionSecurityInfoOrBuilder() {
    return getProductionSecurityInfo();
  }

  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 (sandBoxSecurityInfo_ != null) {
      output.writeMessage(1, getSandBoxSecurityInfo());
    }
    if (productionSecurityInfo_ != null) {
      output.writeMessage(2, getProductionSecurityInfo());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (sandBoxSecurityInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getSandBoxSecurityInfo());
    }
    if (productionSecurityInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getProductionSecurityInfo());
    }
    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 org.wso2.choreo.connect.discovery.api.EndpointSecurity)) {
      return super.equals(obj);
    }
    org.wso2.choreo.connect.discovery.api.EndpointSecurity other = (org.wso2.choreo.connect.discovery.api.EndpointSecurity) obj;

    if (hasSandBoxSecurityInfo() != other.hasSandBoxSecurityInfo()) return false;
    if (hasSandBoxSecurityInfo()) {
      if (!getSandBoxSecurityInfo()
          .equals(other.getSandBoxSecurityInfo())) return false;
    }
    if (hasProductionSecurityInfo() != other.hasProductionSecurityInfo()) return false;
    if (hasProductionSecurityInfo()) {
      if (!getProductionSecurityInfo()
          .equals(other.getProductionSecurityInfo())) 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();
    if (hasSandBoxSecurityInfo()) {
      hash = (37 * hash) + SANDBOXSECURITYINFO_FIELD_NUMBER;
      hash = (53 * hash) + getSandBoxSecurityInfo().hashCode();
    }
    if (hasProductionSecurityInfo()) {
      hash = (37 * hash) + PRODUCTIONSECURITYINFO_FIELD_NUMBER;
      hash = (53 * hash) + getProductionSecurityInfo().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity 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 org.wso2.choreo.connect.discovery.api.EndpointSecurity parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity 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 org.wso2.choreo.connect.discovery.api.EndpointSecurity parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity 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(org.wso2.choreo.connect.discovery.api.EndpointSecurity 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;
  }
  /**
   * <pre>
   * Endpoint config model
   * </pre>
   *
   * Protobuf type {@code wso2.discovery.api.EndpointSecurity}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:wso2.discovery.api.EndpointSecurity)
      org.wso2.choreo.connect.discovery.api.EndpointSecurityOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.wso2.choreo.connect.discovery.api.EndpointSecurityProto.internal_static_wso2_discovery_api_EndpointSecurity_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.wso2.choreo.connect.discovery.api.EndpointSecurityProto.internal_static_wso2_discovery_api_EndpointSecurity_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.wso2.choreo.connect.discovery.api.EndpointSecurity.class, org.wso2.choreo.connect.discovery.api.EndpointSecurity.Builder.class);
    }

    // Construct using org.wso2.choreo.connect.discovery.api.EndpointSecurity.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();
      if (sandBoxSecurityInfoBuilder_ == null) {
        sandBoxSecurityInfo_ = null;
      } else {
        sandBoxSecurityInfo_ = null;
        sandBoxSecurityInfoBuilder_ = null;
      }
      if (productionSecurityInfoBuilder_ == null) {
        productionSecurityInfo_ = null;
      } else {
        productionSecurityInfo_ = null;
        productionSecurityInfoBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.wso2.choreo.connect.discovery.api.EndpointSecurityProto.internal_static_wso2_discovery_api_EndpointSecurity_descriptor;
    }

    @java.lang.Override
    public org.wso2.choreo.connect.discovery.api.EndpointSecurity getDefaultInstanceForType() {
      return org.wso2.choreo.connect.discovery.api.EndpointSecurity.getDefaultInstance();
    }

    @java.lang.Override
    public org.wso2.choreo.connect.discovery.api.EndpointSecurity build() {
      org.wso2.choreo.connect.discovery.api.EndpointSecurity result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.wso2.choreo.connect.discovery.api.EndpointSecurity buildPartial() {
      org.wso2.choreo.connect.discovery.api.EndpointSecurity result = new org.wso2.choreo.connect.discovery.api.EndpointSecurity(this);
      if (sandBoxSecurityInfoBuilder_ == null) {
        result.sandBoxSecurityInfo_ = sandBoxSecurityInfo_;
      } else {
        result.sandBoxSecurityInfo_ = sandBoxSecurityInfoBuilder_.build();
      }
      if (productionSecurityInfoBuilder_ == null) {
        result.productionSecurityInfo_ = productionSecurityInfo_;
      } else {
        result.productionSecurityInfo_ = productionSecurityInfoBuilder_.build();
      }
      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 org.wso2.choreo.connect.discovery.api.EndpointSecurity) {
        return mergeFrom((org.wso2.choreo.connect.discovery.api.EndpointSecurity)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.wso2.choreo.connect.discovery.api.EndpointSecurity other) {
      if (other == org.wso2.choreo.connect.discovery.api.EndpointSecurity.getDefaultInstance()) return this;
      if (other.hasSandBoxSecurityInfo()) {
        mergeSandBoxSecurityInfo(other.getSandBoxSecurityInfo());
      }
      if (other.hasProductionSecurityInfo()) {
        mergeProductionSecurityInfo(other.getProductionSecurityInfo());
      }
      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 {
      org.wso2.choreo.connect.discovery.api.EndpointSecurity parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.wso2.choreo.connect.discovery.api.EndpointSecurity) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private org.wso2.choreo.connect.discovery.api.SecurityInfo sandBoxSecurityInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.wso2.choreo.connect.discovery.api.SecurityInfo, org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder, org.wso2.choreo.connect.discovery.api.SecurityInfoOrBuilder> sandBoxSecurityInfoBuilder_;
    /**
     * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
     * @return Whether the sandBoxSecurityInfo field is set.
     */
    public boolean hasSandBoxSecurityInfo() {
      return sandBoxSecurityInfoBuilder_ != null || sandBoxSecurityInfo_ != null;
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
     * @return The sandBoxSecurityInfo.
     */
    public org.wso2.choreo.connect.discovery.api.SecurityInfo getSandBoxSecurityInfo() {
      if (sandBoxSecurityInfoBuilder_ == null) {
        return sandBoxSecurityInfo_ == null ? org.wso2.choreo.connect.discovery.api.SecurityInfo.getDefaultInstance() : sandBoxSecurityInfo_;
      } else {
        return sandBoxSecurityInfoBuilder_.getMessage();
      }
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
     */
    public Builder setSandBoxSecurityInfo(org.wso2.choreo.connect.discovery.api.SecurityInfo value) {
      if (sandBoxSecurityInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sandBoxSecurityInfo_ = value;
        onChanged();
      } else {
        sandBoxSecurityInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
     */
    public Builder setSandBoxSecurityInfo(
        org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder builderForValue) {
      if (sandBoxSecurityInfoBuilder_ == null) {
        sandBoxSecurityInfo_ = builderForValue.build();
        onChanged();
      } else {
        sandBoxSecurityInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
     */
    public Builder mergeSandBoxSecurityInfo(org.wso2.choreo.connect.discovery.api.SecurityInfo value) {
      if (sandBoxSecurityInfoBuilder_ == null) {
        if (sandBoxSecurityInfo_ != null) {
          sandBoxSecurityInfo_ =
            org.wso2.choreo.connect.discovery.api.SecurityInfo.newBuilder(sandBoxSecurityInfo_).mergeFrom(value).buildPartial();
        } else {
          sandBoxSecurityInfo_ = value;
        }
        onChanged();
      } else {
        sandBoxSecurityInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
     */
    public Builder clearSandBoxSecurityInfo() {
      if (sandBoxSecurityInfoBuilder_ == null) {
        sandBoxSecurityInfo_ = null;
        onChanged();
      } else {
        sandBoxSecurityInfo_ = null;
        sandBoxSecurityInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
     */
    public org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder getSandBoxSecurityInfoBuilder() {
      
      onChanged();
      return getSandBoxSecurityInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
     */
    public org.wso2.choreo.connect.discovery.api.SecurityInfoOrBuilder getSandBoxSecurityInfoOrBuilder() {
      if (sandBoxSecurityInfoBuilder_ != null) {
        return sandBoxSecurityInfoBuilder_.getMessageOrBuilder();
      } else {
        return sandBoxSecurityInfo_ == null ?
            org.wso2.choreo.connect.discovery.api.SecurityInfo.getDefaultInstance() : sandBoxSecurityInfo_;
      }
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo SandBoxSecurityInfo = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.wso2.choreo.connect.discovery.api.SecurityInfo, org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder, org.wso2.choreo.connect.discovery.api.SecurityInfoOrBuilder> 
        getSandBoxSecurityInfoFieldBuilder() {
      if (sandBoxSecurityInfoBuilder_ == null) {
        sandBoxSecurityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.wso2.choreo.connect.discovery.api.SecurityInfo, org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder, org.wso2.choreo.connect.discovery.api.SecurityInfoOrBuilder>(
                getSandBoxSecurityInfo(),
                getParentForChildren(),
                isClean());
        sandBoxSecurityInfo_ = null;
      }
      return sandBoxSecurityInfoBuilder_;
    }

    private org.wso2.choreo.connect.discovery.api.SecurityInfo productionSecurityInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.wso2.choreo.connect.discovery.api.SecurityInfo, org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder, org.wso2.choreo.connect.discovery.api.SecurityInfoOrBuilder> productionSecurityInfoBuilder_;
    /**
     * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
     * @return Whether the productionSecurityInfo field is set.
     */
    public boolean hasProductionSecurityInfo() {
      return productionSecurityInfoBuilder_ != null || productionSecurityInfo_ != null;
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
     * @return The productionSecurityInfo.
     */
    public org.wso2.choreo.connect.discovery.api.SecurityInfo getProductionSecurityInfo() {
      if (productionSecurityInfoBuilder_ == null) {
        return productionSecurityInfo_ == null ? org.wso2.choreo.connect.discovery.api.SecurityInfo.getDefaultInstance() : productionSecurityInfo_;
      } else {
        return productionSecurityInfoBuilder_.getMessage();
      }
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
     */
    public Builder setProductionSecurityInfo(org.wso2.choreo.connect.discovery.api.SecurityInfo value) {
      if (productionSecurityInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        productionSecurityInfo_ = value;
        onChanged();
      } else {
        productionSecurityInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
     */
    public Builder setProductionSecurityInfo(
        org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder builderForValue) {
      if (productionSecurityInfoBuilder_ == null) {
        productionSecurityInfo_ = builderForValue.build();
        onChanged();
      } else {
        productionSecurityInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
     */
    public Builder mergeProductionSecurityInfo(org.wso2.choreo.connect.discovery.api.SecurityInfo value) {
      if (productionSecurityInfoBuilder_ == null) {
        if (productionSecurityInfo_ != null) {
          productionSecurityInfo_ =
            org.wso2.choreo.connect.discovery.api.SecurityInfo.newBuilder(productionSecurityInfo_).mergeFrom(value).buildPartial();
        } else {
          productionSecurityInfo_ = value;
        }
        onChanged();
      } else {
        productionSecurityInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
     */
    public Builder clearProductionSecurityInfo() {
      if (productionSecurityInfoBuilder_ == null) {
        productionSecurityInfo_ = null;
        onChanged();
      } else {
        productionSecurityInfo_ = null;
        productionSecurityInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
     */
    public org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder getProductionSecurityInfoBuilder() {
      
      onChanged();
      return getProductionSecurityInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
     */
    public org.wso2.choreo.connect.discovery.api.SecurityInfoOrBuilder getProductionSecurityInfoOrBuilder() {
      if (productionSecurityInfoBuilder_ != null) {
        return productionSecurityInfoBuilder_.getMessageOrBuilder();
      } else {
        return productionSecurityInfo_ == null ?
            org.wso2.choreo.connect.discovery.api.SecurityInfo.getDefaultInstance() : productionSecurityInfo_;
      }
    }
    /**
     * <code>.wso2.discovery.api.SecurityInfo ProductionSecurityInfo = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.wso2.choreo.connect.discovery.api.SecurityInfo, org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder, org.wso2.choreo.connect.discovery.api.SecurityInfoOrBuilder> 
        getProductionSecurityInfoFieldBuilder() {
      if (productionSecurityInfoBuilder_ == null) {
        productionSecurityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.wso2.choreo.connect.discovery.api.SecurityInfo, org.wso2.choreo.connect.discovery.api.SecurityInfo.Builder, org.wso2.choreo.connect.discovery.api.SecurityInfoOrBuilder>(
                getProductionSecurityInfo(),
                getParentForChildren(),
                isClean());
        productionSecurityInfo_ = null;
      }
      return productionSecurityInfoBuilder_;
    }
    @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:wso2.discovery.api.EndpointSecurity)
  }

  // @@protoc_insertion_point(class_scope:wso2.discovery.api.EndpointSecurity)
  private static final org.wso2.choreo.connect.discovery.api.EndpointSecurity DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.wso2.choreo.connect.discovery.api.EndpointSecurity();
  }

  public static org.wso2.choreo.connect.discovery.api.EndpointSecurity getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public org.wso2.choreo.connect.discovery.api.EndpointSecurity getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

