org.finos.tracdap.config.GatewayConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracdap-api-config Show documentation
Show all versions of tracdap-api-config Show documentation
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.GatewayConfig}
*/
public final class GatewayConfig extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:tracdap.config.GatewayConfig)
GatewayConfigOrBuilder {
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= */ "",
GatewayConfig.class.getName());
}
// Use GatewayConfig.newBuilder() to construct.
private GatewayConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private GatewayConfig() {
routes_ = 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_GatewayConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_GatewayConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.config.GatewayConfig.class, org.finos.tracdap.config.GatewayConfig.Builder.class);
}
public static final int IDLETIMEOUT_FIELD_NUMBER = 1;
private int idleTimeout_ = 0;
/**
* uint32 idleTimeout = 1;
* @return The idleTimeout.
*/
@java.lang.Override
public int getIdleTimeout() {
return idleTimeout_;
}
public static final int ROUTES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List routes_;
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
@java.lang.Override
public java.util.List getRoutesList() {
return routes_;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
@java.lang.Override
public java.util.List extends org.finos.tracdap.config.RouteConfigOrBuilder>
getRoutesOrBuilderList() {
return routes_;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
@java.lang.Override
public int getRoutesCount() {
return routes_.size();
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
@java.lang.Override
public org.finos.tracdap.config.RouteConfig getRoutes(int index) {
return routes_.get(index);
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
@java.lang.Override
public org.finos.tracdap.config.RouteConfigOrBuilder getRoutesOrBuilder(
int index) {
return routes_.get(index);
}
public static final int REDIRECTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List redirects_;
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
@java.lang.Override
public java.util.List getRedirectsList() {
return redirects_;
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
@java.lang.Override
public java.util.List extends org.finos.tracdap.config.WebServerRedirectOrBuilder>
getRedirectsOrBuilderList() {
return redirects_;
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
@java.lang.Override
public int getRedirectsCount() {
return redirects_.size();
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
@java.lang.Override
public org.finos.tracdap.config.WebServerRedirect getRedirects(int index) {
return redirects_.get(index);
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
@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 (idleTimeout_ != 0) {
output.writeUInt32(1, idleTimeout_);
}
for (int i = 0; i < routes_.size(); i++) {
output.writeMessage(2, routes_.get(i));
}
for (int i = 0; i < redirects_.size(); i++) {
output.writeMessage(3, redirects_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (idleTimeout_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, idleTimeout_);
}
for (int i = 0; i < routes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, routes_.get(i));
}
for (int i = 0; i < redirects_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, 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.GatewayConfig)) {
return super.equals(obj);
}
org.finos.tracdap.config.GatewayConfig other = (org.finos.tracdap.config.GatewayConfig) obj;
if (getIdleTimeout()
!= other.getIdleTimeout()) return false;
if (!getRoutesList()
.equals(other.getRoutesList())) 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) + IDLETIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getIdleTimeout();
if (getRoutesCount() > 0) {
hash = (37 * hash) + ROUTES_FIELD_NUMBER;
hash = (53 * hash) + getRoutesList().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.GatewayConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.GatewayConfig 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.GatewayConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.GatewayConfig 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.GatewayConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.GatewayConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.config.GatewayConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.GatewayConfig 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.GatewayConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.GatewayConfig 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.GatewayConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.GatewayConfig 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.GatewayConfig 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.GatewayConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:tracdap.config.GatewayConfig)
org.finos.tracdap.config.GatewayConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_GatewayConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_GatewayConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.config.GatewayConfig.class, org.finos.tracdap.config.GatewayConfig.Builder.class);
}
// Construct using org.finos.tracdap.config.GatewayConfig.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
idleTimeout_ = 0;
if (routesBuilder_ == null) {
routes_ = java.util.Collections.emptyList();
} else {
routes_ = null;
routesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (redirectsBuilder_ == null) {
redirects_ = java.util.Collections.emptyList();
} else {
redirects_ = null;
redirectsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_GatewayConfig_descriptor;
}
@java.lang.Override
public org.finos.tracdap.config.GatewayConfig getDefaultInstanceForType() {
return org.finos.tracdap.config.GatewayConfig.getDefaultInstance();
}
@java.lang.Override
public org.finos.tracdap.config.GatewayConfig build() {
org.finos.tracdap.config.GatewayConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.finos.tracdap.config.GatewayConfig buildPartial() {
org.finos.tracdap.config.GatewayConfig result = new org.finos.tracdap.config.GatewayConfig(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.finos.tracdap.config.GatewayConfig result) {
if (routesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
routes_ = java.util.Collections.unmodifiableList(routes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.routes_ = routes_;
} else {
result.routes_ = routesBuilder_.build();
}
if (redirectsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
redirects_ = java.util.Collections.unmodifiableList(redirects_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.redirects_ = redirects_;
} else {
result.redirects_ = redirectsBuilder_.build();
}
}
private void buildPartial0(org.finos.tracdap.config.GatewayConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.idleTimeout_ = idleTimeout_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.finos.tracdap.config.GatewayConfig) {
return mergeFrom((org.finos.tracdap.config.GatewayConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.finos.tracdap.config.GatewayConfig other) {
if (other == org.finos.tracdap.config.GatewayConfig.getDefaultInstance()) return this;
if (other.getIdleTimeout() != 0) {
setIdleTimeout(other.getIdleTimeout());
}
if (routesBuilder_ == null) {
if (!other.routes_.isEmpty()) {
if (routes_.isEmpty()) {
routes_ = other.routes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRoutesIsMutable();
routes_.addAll(other.routes_);
}
onChanged();
}
} else {
if (!other.routes_.isEmpty()) {
if (routesBuilder_.isEmpty()) {
routesBuilder_.dispose();
routesBuilder_ = null;
routes_ = other.routes_;
bitField0_ = (bitField0_ & ~0x00000002);
routesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRoutesFieldBuilder() : null;
} else {
routesBuilder_.addAllMessages(other.routes_);
}
}
}
if (redirectsBuilder_ == null) {
if (!other.redirects_.isEmpty()) {
if (redirects_.isEmpty()) {
redirects_ = other.redirects_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureRedirectsIsMutable();
redirects_.addAll(other.redirects_);
}
onChanged();
}
} else {
if (!other.redirects_.isEmpty()) {
if (redirectsBuilder_.isEmpty()) {
redirectsBuilder_.dispose();
redirectsBuilder_ = null;
redirects_ = other.redirects_;
bitField0_ = (bitField0_ & ~0x00000004);
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: {
idleTimeout_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
org.finos.tracdap.config.RouteConfig m =
input.readMessage(
org.finos.tracdap.config.RouteConfig.parser(),
extensionRegistry);
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.add(m);
} else {
routesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
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 26
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 int idleTimeout_ ;
/**
* uint32 idleTimeout = 1;
* @return The idleTimeout.
*/
@java.lang.Override
public int getIdleTimeout() {
return idleTimeout_;
}
/**
* uint32 idleTimeout = 1;
* @param value The idleTimeout to set.
* @return This builder for chaining.
*/
public Builder setIdleTimeout(int value) {
idleTimeout_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* uint32 idleTimeout = 1;
* @return This builder for chaining.
*/
public Builder clearIdleTimeout() {
bitField0_ = (bitField0_ & ~0x00000001);
idleTimeout_ = 0;
onChanged();
return this;
}
private java.util.List routes_ =
java.util.Collections.emptyList();
private void ensureRoutesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
routes_ = new java.util.ArrayList(routes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.finos.tracdap.config.RouteConfig, org.finos.tracdap.config.RouteConfig.Builder, org.finos.tracdap.config.RouteConfigOrBuilder> routesBuilder_;
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public java.util.List getRoutesList() {
if (routesBuilder_ == null) {
return java.util.Collections.unmodifiableList(routes_);
} else {
return routesBuilder_.getMessageList();
}
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public int getRoutesCount() {
if (routesBuilder_ == null) {
return routes_.size();
} else {
return routesBuilder_.getCount();
}
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public org.finos.tracdap.config.RouteConfig getRoutes(int index) {
if (routesBuilder_ == null) {
return routes_.get(index);
} else {
return routesBuilder_.getMessage(index);
}
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public Builder setRoutes(
int index, org.finos.tracdap.config.RouteConfig value) {
if (routesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutesIsMutable();
routes_.set(index, value);
onChanged();
} else {
routesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public Builder setRoutes(
int index, org.finos.tracdap.config.RouteConfig.Builder builderForValue) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.set(index, builderForValue.build());
onChanged();
} else {
routesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public Builder addRoutes(org.finos.tracdap.config.RouteConfig value) {
if (routesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutesIsMutable();
routes_.add(value);
onChanged();
} else {
routesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public Builder addRoutes(
int index, org.finos.tracdap.config.RouteConfig value) {
if (routesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRoutesIsMutable();
routes_.add(index, value);
onChanged();
} else {
routesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public Builder addRoutes(
org.finos.tracdap.config.RouteConfig.Builder builderForValue) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.add(builderForValue.build());
onChanged();
} else {
routesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public Builder addRoutes(
int index, org.finos.tracdap.config.RouteConfig.Builder builderForValue) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.add(index, builderForValue.build());
onChanged();
} else {
routesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public Builder addAllRoutes(
java.lang.Iterable extends org.finos.tracdap.config.RouteConfig> values) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, routes_);
onChanged();
} else {
routesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public Builder clearRoutes() {
if (routesBuilder_ == null) {
routes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
routesBuilder_.clear();
}
return this;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public Builder removeRoutes(int index) {
if (routesBuilder_ == null) {
ensureRoutesIsMutable();
routes_.remove(index);
onChanged();
} else {
routesBuilder_.remove(index);
}
return this;
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public org.finos.tracdap.config.RouteConfig.Builder getRoutesBuilder(
int index) {
return getRoutesFieldBuilder().getBuilder(index);
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public org.finos.tracdap.config.RouteConfigOrBuilder getRoutesOrBuilder(
int index) {
if (routesBuilder_ == null) {
return routes_.get(index); } else {
return routesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public java.util.List extends org.finos.tracdap.config.RouteConfigOrBuilder>
getRoutesOrBuilderList() {
if (routesBuilder_ != null) {
return routesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(routes_);
}
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public org.finos.tracdap.config.RouteConfig.Builder addRoutesBuilder() {
return getRoutesFieldBuilder().addBuilder(
org.finos.tracdap.config.RouteConfig.getDefaultInstance());
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public org.finos.tracdap.config.RouteConfig.Builder addRoutesBuilder(
int index) {
return getRoutesFieldBuilder().addBuilder(
index, org.finos.tracdap.config.RouteConfig.getDefaultInstance());
}
/**
* repeated .tracdap.config.RouteConfig routes = 2;
*/
public java.util.List
getRoutesBuilderList() {
return getRoutesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.finos.tracdap.config.RouteConfig, org.finos.tracdap.config.RouteConfig.Builder, org.finos.tracdap.config.RouteConfigOrBuilder>
getRoutesFieldBuilder() {
if (routesBuilder_ == null) {
routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.finos.tracdap.config.RouteConfig, org.finos.tracdap.config.RouteConfig.Builder, org.finos.tracdap.config.RouteConfigOrBuilder>(
routes_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
routes_ = null;
}
return routesBuilder_;
}
private java.util.List redirects_ =
java.util.Collections.emptyList();
private void ensureRedirectsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
redirects_ = new java.util.ArrayList(redirects_);
bitField0_ |= 0x00000004;
}
}
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 = 3;
*/
public java.util.List getRedirectsList() {
if (redirectsBuilder_ == null) {
return java.util.Collections.unmodifiableList(redirects_);
} else {
return redirectsBuilder_.getMessageList();
}
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
public int getRedirectsCount() {
if (redirectsBuilder_ == null) {
return redirects_.size();
} else {
return redirectsBuilder_.getCount();
}
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
public Builder addAllRedirects(
java.lang.Iterable extends org.finos.tracdap.config.WebServerRedirect> 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 = 3;
*/
public Builder clearRedirects() {
if (redirectsBuilder_ == null) {
redirects_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
redirectsBuilder_.clear();
}
return this;
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
public Builder removeRedirects(int index) {
if (redirectsBuilder_ == null) {
ensureRedirectsIsMutable();
redirects_.remove(index);
onChanged();
} else {
redirectsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
public org.finos.tracdap.config.WebServerRedirect.Builder getRedirectsBuilder(
int index) {
return getRedirectsFieldBuilder().getBuilder(index);
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
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 = 3;
*/
public java.util.List extends org.finos.tracdap.config.WebServerRedirectOrBuilder>
getRedirectsOrBuilderList() {
if (redirectsBuilder_ != null) {
return redirectsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(redirects_);
}
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
public org.finos.tracdap.config.WebServerRedirect.Builder addRedirectsBuilder() {
return getRedirectsFieldBuilder().addBuilder(
org.finos.tracdap.config.WebServerRedirect.getDefaultInstance());
}
/**
* repeated .tracdap.config.WebServerRedirect redirects = 3;
*/
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 = 3;
*/
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_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
redirects_ = null;
}
return redirectsBuilder_;
}
// @@protoc_insertion_point(builder_scope:tracdap.config.GatewayConfig)
}
// @@protoc_insertion_point(class_scope:tracdap.config.GatewayConfig)
private static final org.finos.tracdap.config.GatewayConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.finos.tracdap.config.GatewayConfig();
}
public static org.finos.tracdap.config.GatewayConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GatewayConfig 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.GatewayConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}