org.finos.tracdap.config.RouteConfig 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.RouteConfig}
*/
public final class RouteConfig extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:tracdap.config.RouteConfig)
RouteConfigOrBuilder {
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= */ "",
RouteConfig.class.getName());
}
// Use RouteConfig.newBuilder() to construct.
private RouteConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private RouteConfig() {
routeName_ = "";
routeType_ = 0;
protocols_ = emptyIntList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_RouteConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_RouteConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.config.RouteConfig.class, org.finos.tracdap.config.RouteConfig.Builder.class);
}
private int bitField0_;
public static final int ROUTENAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object routeName_ = "";
/**
* string routeName = 1;
* @return The routeName.
*/
@java.lang.Override
public java.lang.String getRouteName() {
java.lang.Object ref = routeName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routeName_ = s;
return s;
}
}
/**
* string routeName = 1;
* @return The bytes for routeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRouteNameBytes() {
java.lang.Object ref = routeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROUTETYPE_FIELD_NUMBER = 2;
private int routeType_ = 0;
/**
* .tracdap.config.RoutingProtocol routeType = 2;
* @return The enum numeric value on the wire for routeType.
*/
@java.lang.Override public int getRouteTypeValue() {
return routeType_;
}
/**
* .tracdap.config.RoutingProtocol routeType = 2;
* @return The routeType.
*/
@java.lang.Override public org.finos.tracdap.config.RoutingProtocol getRouteType() {
org.finos.tracdap.config.RoutingProtocol result = org.finos.tracdap.config.RoutingProtocol.forNumber(routeType_);
return result == null ? org.finos.tracdap.config.RoutingProtocol.UNRECOGNIZED : result;
}
public static final int PROTOCOLS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList protocols_;
private static final com.google.protobuf.Internal.IntListAdapter.IntConverter<
org.finos.tracdap.config.RoutingProtocol> protocols_converter_ =
new com.google.protobuf.Internal.IntListAdapter.IntConverter<
org.finos.tracdap.config.RoutingProtocol>() {
public org.finos.tracdap.config.RoutingProtocol convert(int from) {
org.finos.tracdap.config.RoutingProtocol result = org.finos.tracdap.config.RoutingProtocol.forNumber(from);
return result == null ? org.finos.tracdap.config.RoutingProtocol.UNRECOGNIZED : result;
}
};
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @return A list containing the protocols.
*/
@java.lang.Override
public java.util.List getProtocolsList() {
return new com.google.protobuf.Internal.IntListAdapter<
org.finos.tracdap.config.RoutingProtocol>(protocols_, protocols_converter_);
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @return The count of protocols.
*/
@java.lang.Override
public int getProtocolsCount() {
return protocols_.size();
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @param index The index of the element to return.
* @return The protocols at the given index.
*/
@java.lang.Override
public org.finos.tracdap.config.RoutingProtocol getProtocols(int index) {
return protocols_converter_.convert(protocols_.getInt(index));
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @return A list containing the enum numeric values on the wire for protocols.
*/
@java.lang.Override
public java.util.List
getProtocolsValueList() {
return protocols_;
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of protocols at the given index.
*/
@java.lang.Override
public int getProtocolsValue(int index) {
return protocols_.getInt(index);
}
private int protocolsMemoizedSerializedSize;
public static final int MATCH_FIELD_NUMBER = 5;
private org.finos.tracdap.config.RoutingMatch match_;
/**
* .tracdap.config.RoutingMatch match = 5;
* @return Whether the match field is set.
*/
@java.lang.Override
public boolean hasMatch() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .tracdap.config.RoutingMatch match = 5;
* @return The match.
*/
@java.lang.Override
public org.finos.tracdap.config.RoutingMatch getMatch() {
return match_ == null ? org.finos.tracdap.config.RoutingMatch.getDefaultInstance() : match_;
}
/**
* .tracdap.config.RoutingMatch match = 5;
*/
@java.lang.Override
public org.finos.tracdap.config.RoutingMatchOrBuilder getMatchOrBuilder() {
return match_ == null ? org.finos.tracdap.config.RoutingMatch.getDefaultInstance() : match_;
}
public static final int TARGET_FIELD_NUMBER = 6;
private org.finos.tracdap.config.RoutingTarget target_;
/**
* .tracdap.config.RoutingTarget target = 6;
* @return Whether the target field is set.
*/
@java.lang.Override
public boolean hasTarget() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .tracdap.config.RoutingTarget target = 6;
* @return The target.
*/
@java.lang.Override
public org.finos.tracdap.config.RoutingTarget getTarget() {
return target_ == null ? org.finos.tracdap.config.RoutingTarget.getDefaultInstance() : target_;
}
/**
* .tracdap.config.RoutingTarget target = 6;
*/
@java.lang.Override
public org.finos.tracdap.config.RoutingTargetOrBuilder getTargetOrBuilder() {
return target_ == null ? org.finos.tracdap.config.RoutingTarget.getDefaultInstance() : target_;
}
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 {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(routeName_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, routeName_);
}
if (routeType_ != org.finos.tracdap.config.RoutingProtocol.PROTOCOL_NOT_SET.getNumber()) {
output.writeEnum(2, routeType_);
}
if (getProtocolsList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(protocolsMemoizedSerializedSize);
}
for (int i = 0; i < protocols_.size(); i++) {
output.writeEnumNoTag(protocols_.getInt(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getMatch());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getTarget());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(routeName_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, routeName_);
}
if (routeType_ != org.finos.tracdap.config.RoutingProtocol.PROTOCOL_NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, routeType_);
}
{
int dataSize = 0;
for (int i = 0; i < protocols_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(protocols_.getInt(i));
}
size += dataSize;
if (!getProtocolsList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}protocolsMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getMatch());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getTarget());
}
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.RouteConfig)) {
return super.equals(obj);
}
org.finos.tracdap.config.RouteConfig other = (org.finos.tracdap.config.RouteConfig) obj;
if (!getRouteName()
.equals(other.getRouteName())) return false;
if (routeType_ != other.routeType_) return false;
if (!protocols_.equals(other.protocols_)) return false;
if (hasMatch() != other.hasMatch()) return false;
if (hasMatch()) {
if (!getMatch()
.equals(other.getMatch())) return false;
}
if (hasTarget() != other.hasTarget()) return false;
if (hasTarget()) {
if (!getTarget()
.equals(other.getTarget())) 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) + ROUTENAME_FIELD_NUMBER;
hash = (53 * hash) + getRouteName().hashCode();
hash = (37 * hash) + ROUTETYPE_FIELD_NUMBER;
hash = (53 * hash) + routeType_;
if (getProtocolsCount() > 0) {
hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER;
hash = (53 * hash) + protocols_.hashCode();
}
if (hasMatch()) {
hash = (37 * hash) + MATCH_FIELD_NUMBER;
hash = (53 * hash) + getMatch().hashCode();
}
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.finos.tracdap.config.RouteConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.RouteConfig 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.RouteConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.RouteConfig 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.RouteConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.RouteConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.config.RouteConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.RouteConfig 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.RouteConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.RouteConfig 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.RouteConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.RouteConfig 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.RouteConfig 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.RouteConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:tracdap.config.RouteConfig)
org.finos.tracdap.config.RouteConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_RouteConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_RouteConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.config.RouteConfig.class, org.finos.tracdap.config.RouteConfig.Builder.class);
}
// Construct using org.finos.tracdap.config.RouteConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getMatchFieldBuilder();
getTargetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
routeName_ = "";
routeType_ = 0;
protocols_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
match_ = null;
if (matchBuilder_ != null) {
matchBuilder_.dispose();
matchBuilder_ = null;
}
target_ = null;
if (targetBuilder_ != null) {
targetBuilder_.dispose();
targetBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_RouteConfig_descriptor;
}
@java.lang.Override
public org.finos.tracdap.config.RouteConfig getDefaultInstanceForType() {
return org.finos.tracdap.config.RouteConfig.getDefaultInstance();
}
@java.lang.Override
public org.finos.tracdap.config.RouteConfig build() {
org.finos.tracdap.config.RouteConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.finos.tracdap.config.RouteConfig buildPartial() {
org.finos.tracdap.config.RouteConfig result = new org.finos.tracdap.config.RouteConfig(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.finos.tracdap.config.RouteConfig result) {
if (((bitField0_ & 0x00000004) != 0)) {
protocols_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.protocols_ = protocols_;
}
private void buildPartial0(org.finos.tracdap.config.RouteConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.routeName_ = routeName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.routeType_ = routeType_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.match_ = matchBuilder_ == null
? match_
: matchBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.target_ = targetBuilder_ == null
? target_
: targetBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.finos.tracdap.config.RouteConfig) {
return mergeFrom((org.finos.tracdap.config.RouteConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.finos.tracdap.config.RouteConfig other) {
if (other == org.finos.tracdap.config.RouteConfig.getDefaultInstance()) return this;
if (!other.getRouteName().isEmpty()) {
routeName_ = other.routeName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.routeType_ != 0) {
setRouteTypeValue(other.getRouteTypeValue());
}
if (!other.protocols_.isEmpty()) {
if (protocols_.isEmpty()) {
protocols_ = other.protocols_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureProtocolsIsMutable();
protocols_.addAll(other.protocols_);
}
onChanged();
}
if (other.hasMatch()) {
mergeMatch(other.getMatch());
}
if (other.hasTarget()) {
mergeTarget(other.getTarget());
}
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 10: {
routeName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
routeType_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
int tmpRaw = input.readEnum();
ensureProtocolsIsMutable();
protocols_.addInt(tmpRaw);
break;
} // case 24
case 26: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureProtocolsIsMutable();
protocols_.addInt(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 26
case 42: {
input.readMessage(
getMatchFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 42
case 50: {
input.readMessage(
getTargetFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 50
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 java.lang.Object routeName_ = "";
/**
* string routeName = 1;
* @return The routeName.
*/
public java.lang.String getRouteName() {
java.lang.Object ref = routeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string routeName = 1;
* @return The bytes for routeName.
*/
public com.google.protobuf.ByteString
getRouteNameBytes() {
java.lang.Object ref = routeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string routeName = 1;
* @param value The routeName to set.
* @return This builder for chaining.
*/
public Builder setRouteName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
routeName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string routeName = 1;
* @return This builder for chaining.
*/
public Builder clearRouteName() {
routeName_ = getDefaultInstance().getRouteName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string routeName = 1;
* @param value The bytes for routeName to set.
* @return This builder for chaining.
*/
public Builder setRouteNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
routeName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int routeType_ = 0;
/**
* .tracdap.config.RoutingProtocol routeType = 2;
* @return The enum numeric value on the wire for routeType.
*/
@java.lang.Override public int getRouteTypeValue() {
return routeType_;
}
/**
* .tracdap.config.RoutingProtocol routeType = 2;
* @param value The enum numeric value on the wire for routeType to set.
* @return This builder for chaining.
*/
public Builder setRouteTypeValue(int value) {
routeType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .tracdap.config.RoutingProtocol routeType = 2;
* @return The routeType.
*/
@java.lang.Override
public org.finos.tracdap.config.RoutingProtocol getRouteType() {
org.finos.tracdap.config.RoutingProtocol result = org.finos.tracdap.config.RoutingProtocol.forNumber(routeType_);
return result == null ? org.finos.tracdap.config.RoutingProtocol.UNRECOGNIZED : result;
}
/**
* .tracdap.config.RoutingProtocol routeType = 2;
* @param value The routeType to set.
* @return This builder for chaining.
*/
public Builder setRouteType(org.finos.tracdap.config.RoutingProtocol value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
routeType_ = value.getNumber();
onChanged();
return this;
}
/**
* .tracdap.config.RoutingProtocol routeType = 2;
* @return This builder for chaining.
*/
public Builder clearRouteType() {
bitField0_ = (bitField0_ & ~0x00000002);
routeType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList protocols_ =
emptyIntList();
private void ensureProtocolsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
protocols_ = makeMutableCopy(protocols_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @return A list containing the protocols.
*/
public java.util.List getProtocolsList() {
return new com.google.protobuf.Internal.IntListAdapter<
org.finos.tracdap.config.RoutingProtocol>(protocols_, protocols_converter_);
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @return The count of protocols.
*/
public int getProtocolsCount() {
return protocols_.size();
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @param index The index of the element to return.
* @return The protocols at the given index.
*/
public org.finos.tracdap.config.RoutingProtocol getProtocols(int index) {
return protocols_converter_.convert(protocols_.getInt(index));
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @param index The index to set the value at.
* @param value The protocols to set.
* @return This builder for chaining.
*/
public Builder setProtocols(
int index, org.finos.tracdap.config.RoutingProtocol value) {
if (value == null) {
throw new NullPointerException();
}
ensureProtocolsIsMutable();
protocols_.setInt(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @param value The protocols to add.
* @return This builder for chaining.
*/
public Builder addProtocols(org.finos.tracdap.config.RoutingProtocol value) {
if (value == null) {
throw new NullPointerException();
}
ensureProtocolsIsMutable();
protocols_.addInt(value.getNumber());
onChanged();
return this;
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @param values The protocols to add.
* @return This builder for chaining.
*/
public Builder addAllProtocols(
java.lang.Iterable extends org.finos.tracdap.config.RoutingProtocol> values) {
ensureProtocolsIsMutable();
for (org.finos.tracdap.config.RoutingProtocol value : values) {
protocols_.addInt(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @return This builder for chaining.
*/
public Builder clearProtocols() {
protocols_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @return A list containing the enum numeric values on the wire for protocols.
*/
public java.util.List
getProtocolsValueList() {
return java.util.Collections.unmodifiableList(protocols_);
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of protocols at the given index.
*/
public int getProtocolsValue(int index) {
return protocols_.getInt(index);
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for protocols to set.
* @return This builder for chaining.
*/
public Builder setProtocolsValue(
int index, int value) {
ensureProtocolsIsMutable();
protocols_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @param value The enum numeric value on the wire for protocols to add.
* @return This builder for chaining.
*/
public Builder addProtocolsValue(int value) {
ensureProtocolsIsMutable();
protocols_.addInt(value);
onChanged();
return this;
}
/**
* repeated .tracdap.config.RoutingProtocol protocols = 3;
* @param values The enum numeric values on the wire for protocols to add.
* @return This builder for chaining.
*/
public Builder addAllProtocolsValue(
java.lang.Iterable values) {
ensureProtocolsIsMutable();
for (int value : values) {
protocols_.addInt(value);
}
onChanged();
return this;
}
private org.finos.tracdap.config.RoutingMatch match_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.RoutingMatch, org.finos.tracdap.config.RoutingMatch.Builder, org.finos.tracdap.config.RoutingMatchOrBuilder> matchBuilder_;
/**
* .tracdap.config.RoutingMatch match = 5;
* @return Whether the match field is set.
*/
public boolean hasMatch() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .tracdap.config.RoutingMatch match = 5;
* @return The match.
*/
public org.finos.tracdap.config.RoutingMatch getMatch() {
if (matchBuilder_ == null) {
return match_ == null ? org.finos.tracdap.config.RoutingMatch.getDefaultInstance() : match_;
} else {
return matchBuilder_.getMessage();
}
}
/**
* .tracdap.config.RoutingMatch match = 5;
*/
public Builder setMatch(org.finos.tracdap.config.RoutingMatch value) {
if (matchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
match_ = value;
} else {
matchBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .tracdap.config.RoutingMatch match = 5;
*/
public Builder setMatch(
org.finos.tracdap.config.RoutingMatch.Builder builderForValue) {
if (matchBuilder_ == null) {
match_ = builderForValue.build();
} else {
matchBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .tracdap.config.RoutingMatch match = 5;
*/
public Builder mergeMatch(org.finos.tracdap.config.RoutingMatch value) {
if (matchBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
match_ != null &&
match_ != org.finos.tracdap.config.RoutingMatch.getDefaultInstance()) {
getMatchBuilder().mergeFrom(value);
} else {
match_ = value;
}
} else {
matchBuilder_.mergeFrom(value);
}
if (match_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .tracdap.config.RoutingMatch match = 5;
*/
public Builder clearMatch() {
bitField0_ = (bitField0_ & ~0x00000008);
match_ = null;
if (matchBuilder_ != null) {
matchBuilder_.dispose();
matchBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.config.RoutingMatch match = 5;
*/
public org.finos.tracdap.config.RoutingMatch.Builder getMatchBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getMatchFieldBuilder().getBuilder();
}
/**
* .tracdap.config.RoutingMatch match = 5;
*/
public org.finos.tracdap.config.RoutingMatchOrBuilder getMatchOrBuilder() {
if (matchBuilder_ != null) {
return matchBuilder_.getMessageOrBuilder();
} else {
return match_ == null ?
org.finos.tracdap.config.RoutingMatch.getDefaultInstance() : match_;
}
}
/**
* .tracdap.config.RoutingMatch match = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.RoutingMatch, org.finos.tracdap.config.RoutingMatch.Builder, org.finos.tracdap.config.RoutingMatchOrBuilder>
getMatchFieldBuilder() {
if (matchBuilder_ == null) {
matchBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.RoutingMatch, org.finos.tracdap.config.RoutingMatch.Builder, org.finos.tracdap.config.RoutingMatchOrBuilder>(
getMatch(),
getParentForChildren(),
isClean());
match_ = null;
}
return matchBuilder_;
}
private org.finos.tracdap.config.RoutingTarget target_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.RoutingTarget, org.finos.tracdap.config.RoutingTarget.Builder, org.finos.tracdap.config.RoutingTargetOrBuilder> targetBuilder_;
/**
* .tracdap.config.RoutingTarget target = 6;
* @return Whether the target field is set.
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .tracdap.config.RoutingTarget target = 6;
* @return The target.
*/
public org.finos.tracdap.config.RoutingTarget getTarget() {
if (targetBuilder_ == null) {
return target_ == null ? org.finos.tracdap.config.RoutingTarget.getDefaultInstance() : target_;
} else {
return targetBuilder_.getMessage();
}
}
/**
* .tracdap.config.RoutingTarget target = 6;
*/
public Builder setTarget(org.finos.tracdap.config.RoutingTarget value) {
if (targetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
} else {
targetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .tracdap.config.RoutingTarget target = 6;
*/
public Builder setTarget(
org.finos.tracdap.config.RoutingTarget.Builder builderForValue) {
if (targetBuilder_ == null) {
target_ = builderForValue.build();
} else {
targetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .tracdap.config.RoutingTarget target = 6;
*/
public Builder mergeTarget(org.finos.tracdap.config.RoutingTarget value) {
if (targetBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
target_ != null &&
target_ != org.finos.tracdap.config.RoutingTarget.getDefaultInstance()) {
getTargetBuilder().mergeFrom(value);
} else {
target_ = value;
}
} else {
targetBuilder_.mergeFrom(value);
}
if (target_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .tracdap.config.RoutingTarget target = 6;
*/
public Builder clearTarget() {
bitField0_ = (bitField0_ & ~0x00000010);
target_ = null;
if (targetBuilder_ != null) {
targetBuilder_.dispose();
targetBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.config.RoutingTarget target = 6;
*/
public org.finos.tracdap.config.RoutingTarget.Builder getTargetBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getTargetFieldBuilder().getBuilder();
}
/**
* .tracdap.config.RoutingTarget target = 6;
*/
public org.finos.tracdap.config.RoutingTargetOrBuilder getTargetOrBuilder() {
if (targetBuilder_ != null) {
return targetBuilder_.getMessageOrBuilder();
} else {
return target_ == null ?
org.finos.tracdap.config.RoutingTarget.getDefaultInstance() : target_;
}
}
/**
* .tracdap.config.RoutingTarget target = 6;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.RoutingTarget, org.finos.tracdap.config.RoutingTarget.Builder, org.finos.tracdap.config.RoutingTargetOrBuilder>
getTargetFieldBuilder() {
if (targetBuilder_ == null) {
targetBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.RoutingTarget, org.finos.tracdap.config.RoutingTarget.Builder, org.finos.tracdap.config.RoutingTargetOrBuilder>(
getTarget(),
getParentForChildren(),
isClean());
target_ = null;
}
return targetBuilder_;
}
// @@protoc_insertion_point(builder_scope:tracdap.config.RouteConfig)
}
// @@protoc_insertion_point(class_scope:tracdap.config.RouteConfig)
private static final org.finos.tracdap.config.RouteConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.finos.tracdap.config.RouteConfig();
}
public static org.finos.tracdap.config.RouteConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RouteConfig 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.RouteConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}