// Generated by the protocol buffer compiler. DO NOT EDIT!
package com.trendmicro.mist.proto;
public final class BridgeTalk {
private BridgeTalk() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public static final class BrokerInfo extends
com.google.protobuf.GeneratedMessage {
// Use BrokerInfo.newBuilder() to construct.
private BrokerInfo() {}
private static final BrokerInfo defaultInstance = new BrokerInfo();
public static BrokerInfo getDefaultInstance() {
return defaultInstance;
}
public BrokerInfo getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_BrokerInfo_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_BrokerInfo_fieldAccessorTable;
}
// required int32 id = 1;
public static final int ID_FIELD_NUMBER = 1;
private boolean hasId;
private int id_ = 0;
public boolean hasId() { return hasId; }
public int getId() { return id_; }
// required string type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private boolean hasType;
private java.lang.String type_ = "";
public boolean hasType() { return hasType; }
public java.lang.String getType() { return type_; }
// required string host = 3;
public static final int HOST_FIELD_NUMBER = 3;
private boolean hasHost;
private java.lang.String host_ = "";
public boolean hasHost() { return hasHost; }
public java.lang.String getHost() { return host_; }
// required string port = 4;
public static final int PORT_FIELD_NUMBER = 4;
private boolean hasPort;
private java.lang.String port_ = "";
public boolean hasPort() { return hasPort; }
public java.lang.String getPort() { return port_; }
// required string username = 5;
public static final int USERNAME_FIELD_NUMBER = 5;
private boolean hasUsername;
private java.lang.String username_ = "";
public boolean hasUsername() { return hasUsername; }
public java.lang.String getUsername() { return username_; }
// required string password = 6;
public static final int PASSWORD_FIELD_NUMBER = 6;
private boolean hasPassword;
private java.lang.String password_ = "";
public boolean hasPassword() { return hasPassword; }
public java.lang.String getPassword() { return password_; }
@Override
public final boolean isInitialized() {
if (!hasId) return false;
if (!hasType) return false;
if (!hasHost) return false;
if (!hasPort) return false;
if (!hasUsername) return false;
if (!hasPassword) return false;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (hasId()) {
output.writeInt32(1, getId());
}
if (hasType()) {
output.writeString(2, getType());
}
if (hasHost()) {
output.writeString(3, getHost());
}
if (hasPort()) {
output.writeString(4, getPort());
}
if (hasUsername()) {
output.writeString(5, getUsername());
}
if (hasPassword()) {
output.writeString(6, getPassword());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasId()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, getId());
}
if (hasType()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getType());
}
if (hasHost()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(3, getHost());
}
if (hasPort()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(4, getPort());
}
if (hasUsername()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(5, getUsername());
}
if (hasPassword()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(6, getPassword());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public static com.trendmicro.mist.proto.BridgeTalk.BrokerInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BrokerInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BrokerInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BrokerInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BrokerInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BrokerInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BrokerInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BrokerInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BrokerInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BrokerInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return new Builder(); }
public Builder newBuilderForType() { return new Builder(); }
public static Builder newBuilder(com.trendmicro.mist.proto.BridgeTalk.BrokerInfo prototype) {
return new Builder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
// Construct using com.trendmicro.mist.proto.BridgeTalk.BrokerInfo.newBuilder()
private Builder() {}
com.trendmicro.mist.proto.BridgeTalk.BrokerInfo result = new com.trendmicro.mist.proto.BridgeTalk.BrokerInfo();
@Override
protected com.trendmicro.mist.proto.BridgeTalk.BrokerInfo internalGetResult() {
return result;
}
@Override
public Builder clear() {
result = new com.trendmicro.mist.proto.BridgeTalk.BrokerInfo();
return this;
}
@Override
public Builder clone() {
return new Builder().mergeFrom(result);
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.trendmicro.mist.proto.BridgeTalk.BrokerInfo.getDescriptor();
}
public com.trendmicro.mist.proto.BridgeTalk.BrokerInfo getDefaultInstanceForType() {
return com.trendmicro.mist.proto.BridgeTalk.BrokerInfo.getDefaultInstance();
}
public com.trendmicro.mist.proto.BridgeTalk.BrokerInfo build() {
if (result != null && !isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result);
}
return buildPartial();
}
private com.trendmicro.mist.proto.BridgeTalk.BrokerInfo buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.trendmicro.mist.proto.BridgeTalk.BrokerInfo buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder."); }
com.trendmicro.mist.proto.BridgeTalk.BrokerInfo returnMe = result;
result = null;
return returnMe;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.trendmicro.mist.proto.BridgeTalk.BrokerInfo) {
return mergeFrom((com.trendmicro.mist.proto.BridgeTalk.BrokerInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.trendmicro.mist.proto.BridgeTalk.BrokerInfo other) {
if (other == com.trendmicro.mist.proto.BridgeTalk.BrokerInfo.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasHost()) {
setHost(other.getHost());
}
if (other.hasPort()) {
setPort(other.getPort());
}
if (other.hasUsername()) {
setUsername(other.getUsername());
}
if (other.hasPassword()) {
setPassword(other.getPassword());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return mergeFrom(input,
com.google.protobuf.ExtensionRegistry.getEmptyRegistry());
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 8: {
setId(input.readInt32());
break;
}
case 18: {
setType(input.readString());
break;
}
case 26: {
setHost(input.readString());
break;
}
case 34: {
setPort(input.readString());
break;
}
case 42: {
setUsername(input.readString());
break;
}
case 50: {
setPassword(input.readString());
break;
}
}
}
}
// required int32 id = 1;
public boolean hasId() {
return result.hasId();
}
public int getId() {
return result.getId();
}
public Builder setId(int value) {
result.hasId = true;
result.id_ = value;
return this;
}
public Builder clearId() {
result.hasId = false;
result.id_ = 0;
return this;
}
// required string type = 2;
public boolean hasType() {
return result.hasType();
}
public java.lang.String getType() {
return result.getType();
}
public Builder setType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasType = true;
result.type_ = value;
return this;
}
public Builder clearType() {
result.hasType = false;
result.type_ = "";
return this;
}
// required string host = 3;
public boolean hasHost() {
return result.hasHost();
}
public java.lang.String getHost() {
return result.getHost();
}
public Builder setHost(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasHost = true;
result.host_ = value;
return this;
}
public Builder clearHost() {
result.hasHost = false;
result.host_ = "";
return this;
}
// required string port = 4;
public boolean hasPort() {
return result.hasPort();
}
public java.lang.String getPort() {
return result.getPort();
}
public Builder setPort(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasPort = true;
result.port_ = value;
return this;
}
public Builder clearPort() {
result.hasPort = false;
result.port_ = "";
return this;
}
// required string username = 5;
public boolean hasUsername() {
return result.hasUsername();
}
public java.lang.String getUsername() {
return result.getUsername();
}
public Builder setUsername(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasUsername = true;
result.username_ = value;
return this;
}
public Builder clearUsername() {
result.hasUsername = false;
result.username_ = "";
return this;
}
// required string password = 6;
public boolean hasPassword() {
return result.hasPassword();
}
public java.lang.String getPassword() {
return result.getPassword();
}
public Builder setPassword(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasPassword = true;
result.password_ = value;
return this;
}
public Builder clearPassword() {
result.hasPassword = false;
result.password_ = "";
return this;
}
}
static {
com.trendmicro.mist.proto.BridgeTalk.getDescriptor();
}
}
public static final class ForwarderInfo extends
com.google.protobuf.GeneratedMessage {
// Use ForwarderInfo.newBuilder() to construct.
private ForwarderInfo() {}
private static final ForwarderInfo defaultInstance = new ForwarderInfo();
public static ForwarderInfo getDefaultInstance() {
return defaultInstance;
}
public ForwarderInfo getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_ForwarderInfo_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_ForwarderInfo_fieldAccessorTable;
}
public static final class Target extends
com.google.protobuf.GeneratedMessage {
// Use Target.newBuilder() to construct.
private Target() {}
private static final Target defaultInstance = new Target();
public static Target getDefaultInstance() {
return defaultInstance;
}
public Target getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_ForwarderInfo_Target_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_ForwarderInfo_Target_fieldAccessorTable;
}
// required int32 broker_id = 1;
public static final int BROKER_ID_FIELD_NUMBER = 1;
private boolean hasBrokerId;
private int brokerId_ = 0;
public boolean hasBrokerId() { return hasBrokerId; }
public int getBrokerId() { return brokerId_; }
// required string exchange = 2;
public static final int EXCHANGE_FIELD_NUMBER = 2;
private boolean hasExchange;
private java.lang.String exchange_ = "";
public boolean hasExchange() { return hasExchange; }
public java.lang.String getExchange() { return exchange_; }
@Override
public final boolean isInitialized() {
if (!hasBrokerId) return false;
if (!hasExchange) return false;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (hasBrokerId()) {
output.writeInt32(1, getBrokerId());
}
if (hasExchange()) {
output.writeString(2, getExchange());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasBrokerId()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, getBrokerId());
}
if (hasExchange()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getExchange());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return new Builder(); }
public Builder newBuilderForType() { return new Builder(); }
public static Builder newBuilder(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target prototype) {
return new Builder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
// Construct using com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.newBuilder()
private Builder() {}
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target result = new com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target();
@Override
protected com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target internalGetResult() {
return result;
}
@Override
public Builder clear() {
result = new com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target();
return this;
}
@Override
public Builder clone() {
return new Builder().mergeFrom(result);
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.getDescriptor();
}
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target getDefaultInstanceForType() {
return com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.getDefaultInstance();
}
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target build() {
if (result != null && !isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result);
}
return buildPartial();
}
private com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder."); }
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target returnMe = result;
result = null;
return returnMe;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target) {
return mergeFrom((com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target other) {
if (other == com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.getDefaultInstance()) return this;
if (other.hasBrokerId()) {
setBrokerId(other.getBrokerId());
}
if (other.hasExchange()) {
setExchange(other.getExchange());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return mergeFrom(input,
com.google.protobuf.ExtensionRegistry.getEmptyRegistry());
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 8: {
setBrokerId(input.readInt32());
break;
}
case 18: {
setExchange(input.readString());
break;
}
}
}
}
// required int32 broker_id = 1;
public boolean hasBrokerId() {
return result.hasBrokerId();
}
public int getBrokerId() {
return result.getBrokerId();
}
public Builder setBrokerId(int value) {
result.hasBrokerId = true;
result.brokerId_ = value;
return this;
}
public Builder clearBrokerId() {
result.hasBrokerId = false;
result.brokerId_ = 0;
return this;
}
// required string exchange = 2;
public boolean hasExchange() {
return result.hasExchange();
}
public java.lang.String getExchange() {
return result.getExchange();
}
public Builder setExchange(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasExchange = true;
result.exchange_ = value;
return this;
}
public Builder clearExchange() {
result.hasExchange = false;
result.exchange_ = "";
return this;
}
}
static {
com.trendmicro.mist.proto.BridgeTalk.getDescriptor();
}
}
// required int32 id = 1;
public static final int ID_FIELD_NUMBER = 1;
private boolean hasId;
private int id_ = 0;
public boolean hasId() { return hasId; }
public int getId() { return id_; }
// required .com.trendmicro.mist.proto.ForwarderInfo.Target src = 2;
public static final int SRC_FIELD_NUMBER = 2;
private boolean hasSrc;
private com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target src_ = com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.getDefaultInstance();
public boolean hasSrc() { return hasSrc; }
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target getSrc() { return src_; }
// repeated .com.trendmicro.mist.proto.ForwarderInfo.Target dest = 3;
public static final int DEST_FIELD_NUMBER = 3;
private java.util.List<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target> dest_ =
java.util.Collections.emptyList();
public java.util.List<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target> getDestList() {
return dest_;
}
public int getDestCount() { return dest_.size(); }
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target getDest(int index) {
return dest_.get(index);
}
// optional string comment = 4;
public static final int COMMENT_FIELD_NUMBER = 4;
private boolean hasComment;
private java.lang.String comment_ = "";
public boolean hasComment() { return hasComment; }
public java.lang.String getComment() { return comment_; }
// required bool online = 5;
public static final int ONLINE_FIELD_NUMBER = 5;
private boolean hasOnline;
private boolean online_ = false;
public boolean hasOnline() { return hasOnline; }
public boolean getOnline() { return online_; }
@Override
public final boolean isInitialized() {
if (!hasId) return false;
if (!hasSrc) return false;
if (!hasOnline) return false;
if (!getSrc().isInitialized()) return false;
for (com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target element : getDestList()) {
if (!element.isInitialized()) return false;
}
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (hasId()) {
output.writeInt32(1, getId());
}
if (hasSrc()) {
output.writeMessage(2, getSrc());
}
for (com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target element : getDestList()) {
output.writeMessage(3, element);
}
if (hasComment()) {
output.writeString(4, getComment());
}
if (hasOnline()) {
output.writeBool(5, getOnline());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasId()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, getId());
}
if (hasSrc()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSrc());
}
for (com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target element : getDestList()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, element);
}
if (hasComment()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(4, getComment());
}
if (hasOnline()) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, getOnline());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return new Builder(); }
public Builder newBuilderForType() { return new Builder(); }
public static Builder newBuilder(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo prototype) {
return new Builder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
// Construct using com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.newBuilder()
private Builder() {}
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo result = new com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo();
@Override
protected com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo internalGetResult() {
return result;
}
@Override
public Builder clear() {
result = new com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo();
return this;
}
@Override
public Builder clone() {
return new Builder().mergeFrom(result);
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.getDescriptor();
}
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo getDefaultInstanceForType() {
return com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.getDefaultInstance();
}
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo build() {
if (result != null && !isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result);
}
return buildPartial();
}
private com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder."); }
if (result.dest_ != java.util.Collections.EMPTY_LIST) {
result.dest_ =
java.util.Collections.unmodifiableList(result.dest_);
}
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo returnMe = result;
result = null;
return returnMe;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo) {
return mergeFrom((com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo other) {
if (other == com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasSrc()) {
mergeSrc(other.getSrc());
}
if (!other.dest_.isEmpty()) {
if (result.dest_.isEmpty()) {
result.dest_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target>();
}
result.dest_.addAll(other.dest_);
}
if (other.hasComment()) {
setComment(other.getComment());
}
if (other.hasOnline()) {
setOnline(other.getOnline());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return mergeFrom(input,
com.google.protobuf.ExtensionRegistry.getEmptyRegistry());
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 8: {
setId(input.readInt32());
break;
}
case 18: {
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.Builder subBuilder = com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.newBuilder();
if (hasSrc()) {
subBuilder.mergeFrom(getSrc());
}
input.readMessage(subBuilder, extensionRegistry);
setSrc(subBuilder.buildPartial());
break;
}
case 26: {
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.Builder subBuilder = com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addDest(subBuilder.buildPartial());
break;
}
case 34: {
setComment(input.readString());
break;
}
case 40: {
setOnline(input.readBool());
break;
}
}
}
}
// required int32 id = 1;
public boolean hasId() {
return result.hasId();
}
public int getId() {
return result.getId();
}
public Builder setId(int value) {
result.hasId = true;
result.id_ = value;
return this;
}
public Builder clearId() {
result.hasId = false;
result.id_ = 0;
return this;
}
// required .com.trendmicro.mist.proto.ForwarderInfo.Target src = 2;
public boolean hasSrc() {
return result.hasSrc();
}
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target getSrc() {
return result.getSrc();
}
public Builder setSrc(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target value) {
if (value == null) {
throw new NullPointerException();
}
result.hasSrc = true;
result.src_ = value;
return this;
}
public Builder setSrc(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.Builder builderForValue) {
result.hasSrc = true;
result.src_ = builderForValue.build();
return this;
}
public Builder mergeSrc(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target value) {
if (result.hasSrc() &&
result.src_ != com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.getDefaultInstance()) {
result.src_ =
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.newBuilder(result.src_).mergeFrom(value).buildPartial();
} else {
result.src_ = value;
}
result.hasSrc = true;
return this;
}
public Builder clearSrc() {
result.hasSrc = false;
result.src_ = com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.getDefaultInstance();
return this;
}
// repeated .com.trendmicro.mist.proto.ForwarderInfo.Target dest = 3;
public java.util.List<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target> getDestList() {
return java.util.Collections.unmodifiableList(result.dest_);
}
public int getDestCount() {
return result.getDestCount();
}
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target getDest(int index) {
return result.getDest(index);
}
public Builder setDest(int index, com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target value) {
if (value == null) {
throw new NullPointerException();
}
result.dest_.set(index, value);
return this;
}
public Builder setDest(int index, com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.Builder builderForValue) {
result.dest_.set(index, builderForValue.build());
return this;
}
public Builder addDest(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target value) {
if (value == null) {
throw new NullPointerException();
}
if (result.dest_.isEmpty()) {
result.dest_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target>();
}
result.dest_.add(value);
return this;
}
public Builder addDest(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.Builder builderForValue) {
if (result.dest_.isEmpty()) {
result.dest_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target>();
}
result.dest_.add(builderForValue.build());
return this;
}
public Builder addAllDest(
java.lang.Iterable<? extends com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target> values) {
if (result.dest_.isEmpty()) {
result.dest_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target>();
}
super.addAll(values, result.dest_);
return this;
}
public Builder clearDest() {
result.dest_ = java.util.Collections.emptyList();
return this;
}
// optional string comment = 4;
public boolean hasComment() {
return result.hasComment();
}
public java.lang.String getComment() {
return result.getComment();
}
public Builder setComment(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasComment = true;
result.comment_ = value;
return this;
}
public Builder clearComment() {
result.hasComment = false;
result.comment_ = "";
return this;
}
// required bool online = 5;
public boolean hasOnline() {
return result.hasOnline();
}
public boolean getOnline() {
return result.getOnline();
}
public Builder setOnline(boolean value) {
result.hasOnline = true;
result.online_ = value;
return this;
}
public Builder clearOnline() {
result.hasOnline = false;
result.online_ = false;
return this;
}
}
static {
com.trendmicro.mist.proto.BridgeTalk.getDescriptor();
}
}
public static final class BridgeConfig extends
com.google.protobuf.GeneratedMessage {
// Use BridgeConfig.newBuilder() to construct.
private BridgeConfig() {}
private static final BridgeConfig defaultInstance = new BridgeConfig();
public static BridgeConfig getDefaultInstance() {
return defaultInstance;
}
public BridgeConfig getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_BridgeConfig_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_BridgeConfig_fieldAccessorTable;
}
// repeated .com.trendmicro.mist.proto.BrokerInfo brokers = 1;
public static final int BROKERS_FIELD_NUMBER = 1;
private java.util.List<com.trendmicro.mist.proto.BridgeTalk.BrokerInfo> brokers_ =
java.util.Collections.emptyList();
public java.util.List<com.trendmicro.mist.proto.BridgeTalk.BrokerInfo> getBrokersList() {
return brokers_;
}
public int getBrokersCount() { return brokers_.size(); }
public com.trendmicro.mist.proto.BridgeTalk.BrokerInfo getBrokers(int index) {
return brokers_.get(index);
}
// repeated .com.trendmicro.mist.proto.ForwarderInfo forwarders = 2;
public static final int FORWARDERS_FIELD_NUMBER = 2;
private java.util.List<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo> forwarders_ =
java.util.Collections.emptyList();
public java.util.List<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo> getForwardersList() {
return forwarders_;
}
public int getForwardersCount() { return forwarders_.size(); }
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo getForwarders(int index) {
return forwarders_.get(index);
}
@Override
public final boolean isInitialized() {
for (com.trendmicro.mist.proto.BridgeTalk.BrokerInfo element : getBrokersList()) {
if (!element.isInitialized()) return false;
}
for (com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo element : getForwardersList()) {
if (!element.isInitialized()) return false;
}
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (com.trendmicro.mist.proto.BridgeTalk.BrokerInfo element : getBrokersList()) {
output.writeMessage(1, element);
}
for (com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo element : getForwardersList()) {
output.writeMessage(2, element);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (com.trendmicro.mist.proto.BridgeTalk.BrokerInfo element : getBrokersList()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, element);
}
for (com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo element : getForwardersList()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, element);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public static com.trendmicro.mist.proto.BridgeTalk.BridgeConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BridgeConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BridgeConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BridgeConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BridgeConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BridgeConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BridgeConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BridgeConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BridgeConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.BridgeConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return new Builder(); }
public Builder newBuilderForType() { return new Builder(); }
public static Builder newBuilder(com.trendmicro.mist.proto.BridgeTalk.BridgeConfig prototype) {
return new Builder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
// Construct using com.trendmicro.mist.proto.BridgeTalk.BridgeConfig.newBuilder()
private Builder() {}
com.trendmicro.mist.proto.BridgeTalk.BridgeConfig result = new com.trendmicro.mist.proto.BridgeTalk.BridgeConfig();
@Override
protected com.trendmicro.mist.proto.BridgeTalk.BridgeConfig internalGetResult() {
return result;
}
@Override
public Builder clear() {
result = new com.trendmicro.mist.proto.BridgeTalk.BridgeConfig();
return this;
}
@Override
public Builder clone() {
return new Builder().mergeFrom(result);
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.trendmicro.mist.proto.BridgeTalk.BridgeConfig.getDescriptor();
}
public com.trendmicro.mist.proto.BridgeTalk.BridgeConfig getDefaultInstanceForType() {
return com.trendmicro.mist.proto.BridgeTalk.BridgeConfig.getDefaultInstance();
}
public com.trendmicro.mist.proto.BridgeTalk.BridgeConfig build() {
if (result != null && !isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result);
}
return buildPartial();
}
private com.trendmicro.mist.proto.BridgeTalk.BridgeConfig buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.trendmicro.mist.proto.BridgeTalk.BridgeConfig buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder."); }
if (result.brokers_ != java.util.Collections.EMPTY_LIST) {
result.brokers_ =
java.util.Collections.unmodifiableList(result.brokers_);
}
if (result.forwarders_ != java.util.Collections.EMPTY_LIST) {
result.forwarders_ =
java.util.Collections.unmodifiableList(result.forwarders_);
}
com.trendmicro.mist.proto.BridgeTalk.BridgeConfig returnMe = result;
result = null;
return returnMe;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.trendmicro.mist.proto.BridgeTalk.BridgeConfig) {
return mergeFrom((com.trendmicro.mist.proto.BridgeTalk.BridgeConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.trendmicro.mist.proto.BridgeTalk.BridgeConfig other) {
if (other == com.trendmicro.mist.proto.BridgeTalk.BridgeConfig.getDefaultInstance()) return this;
if (!other.brokers_.isEmpty()) {
if (result.brokers_.isEmpty()) {
result.brokers_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.BrokerInfo>();
}
result.brokers_.addAll(other.brokers_);
}
if (!other.forwarders_.isEmpty()) {
if (result.forwarders_.isEmpty()) {
result.forwarders_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo>();
}
result.forwarders_.addAll(other.forwarders_);
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return mergeFrom(input,
com.google.protobuf.ExtensionRegistry.getEmptyRegistry());
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 10: {
com.trendmicro.mist.proto.BridgeTalk.BrokerInfo.Builder subBuilder = com.trendmicro.mist.proto.BridgeTalk.BrokerInfo.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addBrokers(subBuilder.buildPartial());
break;
}
case 18: {
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Builder subBuilder = com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addForwarders(subBuilder.buildPartial());
break;
}
}
}
}
// repeated .com.trendmicro.mist.proto.BrokerInfo brokers = 1;
public java.util.List<com.trendmicro.mist.proto.BridgeTalk.BrokerInfo> getBrokersList() {
return java.util.Collections.unmodifiableList(result.brokers_);
}
public int getBrokersCount() {
return result.getBrokersCount();
}
public com.trendmicro.mist.proto.BridgeTalk.BrokerInfo getBrokers(int index) {
return result.getBrokers(index);
}
public Builder setBrokers(int index, com.trendmicro.mist.proto.BridgeTalk.BrokerInfo value) {
if (value == null) {
throw new NullPointerException();
}
result.brokers_.set(index, value);
return this;
}
public Builder setBrokers(int index, com.trendmicro.mist.proto.BridgeTalk.BrokerInfo.Builder builderForValue) {
result.brokers_.set(index, builderForValue.build());
return this;
}
public Builder addBrokers(com.trendmicro.mist.proto.BridgeTalk.BrokerInfo value) {
if (value == null) {
throw new NullPointerException();
}
if (result.brokers_.isEmpty()) {
result.brokers_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.BrokerInfo>();
}
result.brokers_.add(value);
return this;
}
public Builder addBrokers(com.trendmicro.mist.proto.BridgeTalk.BrokerInfo.Builder builderForValue) {
if (result.brokers_.isEmpty()) {
result.brokers_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.BrokerInfo>();
}
result.brokers_.add(builderForValue.build());
return this;
}
public Builder addAllBrokers(
java.lang.Iterable<? extends com.trendmicro.mist.proto.BridgeTalk.BrokerInfo> values) {
if (result.brokers_.isEmpty()) {
result.brokers_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.BrokerInfo>();
}
super.addAll(values, result.brokers_);
return this;
}
public Builder clearBrokers() {
result.brokers_ = java.util.Collections.emptyList();
return this;
}
// repeated .com.trendmicro.mist.proto.ForwarderInfo forwarders = 2;
public java.util.List<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo> getForwardersList() {
return java.util.Collections.unmodifiableList(result.forwarders_);
}
public int getForwardersCount() {
return result.getForwardersCount();
}
public com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo getForwarders(int index) {
return result.getForwarders(index);
}
public Builder setForwarders(int index, com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo value) {
if (value == null) {
throw new NullPointerException();
}
result.forwarders_.set(index, value);
return this;
}
public Builder setForwarders(int index, com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Builder builderForValue) {
result.forwarders_.set(index, builderForValue.build());
return this;
}
public Builder addForwarders(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo value) {
if (value == null) {
throw new NullPointerException();
}
if (result.forwarders_.isEmpty()) {
result.forwarders_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo>();
}
result.forwarders_.add(value);
return this;
}
public Builder addForwarders(com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Builder builderForValue) {
if (result.forwarders_.isEmpty()) {
result.forwarders_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo>();
}
result.forwarders_.add(builderForValue.build());
return this;
}
public Builder addAllForwarders(
java.lang.Iterable<? extends com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo> values) {
if (result.forwarders_.isEmpty()) {
result.forwarders_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo>();
}
super.addAll(values, result.forwarders_);
return this;
}
public Builder clearForwarders() {
result.forwarders_ = java.util.Collections.emptyList();
return this;
}
}
static {
com.trendmicro.mist.proto.BridgeTalk.getDescriptor();
}
}
public static final class Request extends
com.google.protobuf.GeneratedMessage {
// Use Request.newBuilder() to construct.
private Request() {}
private static final Request defaultInstance = new Request();
public static Request getDefaultInstance() {
return defaultInstance;
}
public Request getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_Request_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_Request_fieldAccessorTable;
}
// required string command = 1;
public static final int COMMAND_FIELD_NUMBER = 1;
private boolean hasCommand;
private java.lang.String command_ = "";
public boolean hasCommand() { return hasCommand; }
public java.lang.String getCommand() { return command_; }
@Override
public final boolean isInitialized() {
if (!hasCommand) return false;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (hasCommand()) {
output.writeString(1, getCommand());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasCommand()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getCommand());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public static com.trendmicro.mist.proto.BridgeTalk.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Request parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Request parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Request parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return new Builder(); }
public Builder newBuilderForType() { return new Builder(); }
public static Builder newBuilder(com.trendmicro.mist.proto.BridgeTalk.Request prototype) {
return new Builder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
// Construct using com.trendmicro.mist.proto.BridgeTalk.Request.newBuilder()
private Builder() {}
com.trendmicro.mist.proto.BridgeTalk.Request result = new com.trendmicro.mist.proto.BridgeTalk.Request();
@Override
protected com.trendmicro.mist.proto.BridgeTalk.Request internalGetResult() {
return result;
}
@Override
public Builder clear() {
result = new com.trendmicro.mist.proto.BridgeTalk.Request();
return this;
}
@Override
public Builder clone() {
return new Builder().mergeFrom(result);
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.trendmicro.mist.proto.BridgeTalk.Request.getDescriptor();
}
public com.trendmicro.mist.proto.BridgeTalk.Request getDefaultInstanceForType() {
return com.trendmicro.mist.proto.BridgeTalk.Request.getDefaultInstance();
}
public com.trendmicro.mist.proto.BridgeTalk.Request build() {
if (result != null && !isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result);
}
return buildPartial();
}
private com.trendmicro.mist.proto.BridgeTalk.Request buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.trendmicro.mist.proto.BridgeTalk.Request buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder."); }
com.trendmicro.mist.proto.BridgeTalk.Request returnMe = result;
result = null;
return returnMe;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.trendmicro.mist.proto.BridgeTalk.Request) {
return mergeFrom((com.trendmicro.mist.proto.BridgeTalk.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.trendmicro.mist.proto.BridgeTalk.Request other) {
if (other == com.trendmicro.mist.proto.BridgeTalk.Request.getDefaultInstance()) return this;
if (other.hasCommand()) {
setCommand(other.getCommand());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return mergeFrom(input,
com.google.protobuf.ExtensionRegistry.getEmptyRegistry());
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 10: {
setCommand(input.readString());
break;
}
}
}
}
// required string command = 1;
public boolean hasCommand() {
return result.hasCommand();
}
public java.lang.String getCommand() {
return result.getCommand();
}
public Builder setCommand(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasCommand = true;
result.command_ = value;
return this;
}
public Builder clearCommand() {
result.hasCommand = false;
result.command_ = "";
return this;
}
}
static {
com.trendmicro.mist.proto.BridgeTalk.getDescriptor();
}
}
public static final class Response extends
com.google.protobuf.GeneratedMessage {
// Use Response.newBuilder() to construct.
private Response() {}
private static final Response defaultInstance = new Response();
public static Response getDefaultInstance() {
return defaultInstance;
}
public Response getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_Response_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_Response_fieldAccessorTable;
}
// required bool success = 1;
public static final int SUCCESS_FIELD_NUMBER = 1;
private boolean hasSuccess;
private boolean success_ = false;
public boolean hasSuccess() { return hasSuccess; }
public boolean getSuccess() { return success_; }
// optional string context = 2 [default = ""];
public static final int CONTEXT_FIELD_NUMBER = 2;
private boolean hasContext;
private java.lang.String context_ = "";
public boolean hasContext() { return hasContext; }
public java.lang.String getContext() { return context_; }
// optional string exception = 3 [default = ""];
public static final int EXCEPTION_FIELD_NUMBER = 3;
private boolean hasException;
private java.lang.String exception_ = "";
public boolean hasException() { return hasException; }
public java.lang.String getException() { return exception_; }
@Override
public final boolean isInitialized() {
if (!hasSuccess) return false;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (hasSuccess()) {
output.writeBool(1, getSuccess());
}
if (hasContext()) {
output.writeString(2, getContext());
}
if (hasException()) {
output.writeString(3, getException());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasSuccess()) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, getSuccess());
}
if (hasContext()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getContext());
}
if (hasException()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(3, getException());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public static com.trendmicro.mist.proto.BridgeTalk.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Response parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Response parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return new Builder(); }
public Builder newBuilderForType() { return new Builder(); }
public static Builder newBuilder(com.trendmicro.mist.proto.BridgeTalk.Response prototype) {
return new Builder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
// Construct using com.trendmicro.mist.proto.BridgeTalk.Response.newBuilder()
private Builder() {}
com.trendmicro.mist.proto.BridgeTalk.Response result = new com.trendmicro.mist.proto.BridgeTalk.Response();
@Override
protected com.trendmicro.mist.proto.BridgeTalk.Response internalGetResult() {
return result;
}
@Override
public Builder clear() {
result = new com.trendmicro.mist.proto.BridgeTalk.Response();
return this;
}
@Override
public Builder clone() {
return new Builder().mergeFrom(result);
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.trendmicro.mist.proto.BridgeTalk.Response.getDescriptor();
}
public com.trendmicro.mist.proto.BridgeTalk.Response getDefaultInstanceForType() {
return com.trendmicro.mist.proto.BridgeTalk.Response.getDefaultInstance();
}
public com.trendmicro.mist.proto.BridgeTalk.Response build() {
if (result != null && !isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result);
}
return buildPartial();
}
private com.trendmicro.mist.proto.BridgeTalk.Response buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.trendmicro.mist.proto.BridgeTalk.Response buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder."); }
com.trendmicro.mist.proto.BridgeTalk.Response returnMe = result;
result = null;
return returnMe;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.trendmicro.mist.proto.BridgeTalk.Response) {
return mergeFrom((com.trendmicro.mist.proto.BridgeTalk.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.trendmicro.mist.proto.BridgeTalk.Response other) {
if (other == com.trendmicro.mist.proto.BridgeTalk.Response.getDefaultInstance()) return this;
if (other.hasSuccess()) {
setSuccess(other.getSuccess());
}
if (other.hasContext()) {
setContext(other.getContext());
}
if (other.hasException()) {
setException(other.getException());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return mergeFrom(input,
com.google.protobuf.ExtensionRegistry.getEmptyRegistry());
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 8: {
setSuccess(input.readBool());
break;
}
case 18: {
setContext(input.readString());
break;
}
case 26: {
setException(input.readString());
break;
}
}
}
}
// required bool success = 1;
public boolean hasSuccess() {
return result.hasSuccess();
}
public boolean getSuccess() {
return result.getSuccess();
}
public Builder setSuccess(boolean value) {
result.hasSuccess = true;
result.success_ = value;
return this;
}
public Builder clearSuccess() {
result.hasSuccess = false;
result.success_ = false;
return this;
}
// optional string context = 2 [default = ""];
public boolean hasContext() {
return result.hasContext();
}
public java.lang.String getContext() {
return result.getContext();
}
public Builder setContext(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasContext = true;
result.context_ = value;
return this;
}
public Builder clearContext() {
result.hasContext = false;
result.context_ = "";
return this;
}
// optional string exception = 3 [default = ""];
public boolean hasException() {
return result.hasException();
}
public java.lang.String getException() {
return result.getException();
}
public Builder setException(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasException = true;
result.exception_ = value;
return this;
}
public Builder clearException() {
result.hasException = false;
result.exception_ = "";
return this;
}
}
static {
com.trendmicro.mist.proto.BridgeTalk.getDescriptor();
}
}
public static final class Command extends
com.google.protobuf.GeneratedMessage {
// Use Command.newBuilder() to construct.
private Command() {}
private static final Command defaultInstance = new Command();
public static Command getDefaultInstance() {
return defaultInstance;
}
public Command getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_Command_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.trendmicro.mist.proto.BridgeTalk.internal_static_com_trendmicro_mist_proto_Command_fieldAccessorTable;
}
// repeated .com.trendmicro.mist.proto.Request request = 1;
public static final int REQUEST_FIELD_NUMBER = 1;
private java.util.List<com.trendmicro.mist.proto.BridgeTalk.Request> request_ =
java.util.Collections.emptyList();
public java.util.List<com.trendmicro.mist.proto.BridgeTalk.Request> getRequestList() {
return request_;
}
public int getRequestCount() { return request_.size(); }
public com.trendmicro.mist.proto.BridgeTalk.Request getRequest(int index) {
return request_.get(index);
}
// repeated .com.trendmicro.mist.proto.Response response = 2;
public static final int RESPONSE_FIELD_NUMBER = 2;
private java.util.List<com.trendmicro.mist.proto.BridgeTalk.Response> response_ =
java.util.Collections.emptyList();
public java.util.List<com.trendmicro.mist.proto.BridgeTalk.Response> getResponseList() {
return response_;
}
public int getResponseCount() { return response_.size(); }
public com.trendmicro.mist.proto.BridgeTalk.Response getResponse(int index) {
return response_.get(index);
}
@Override
public final boolean isInitialized() {
for (com.trendmicro.mist.proto.BridgeTalk.Request element : getRequestList()) {
if (!element.isInitialized()) return false;
}
for (com.trendmicro.mist.proto.BridgeTalk.Response element : getResponseList()) {
if (!element.isInitialized()) return false;
}
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (com.trendmicro.mist.proto.BridgeTalk.Request element : getRequestList()) {
output.writeMessage(1, element);
}
for (com.trendmicro.mist.proto.BridgeTalk.Response element : getResponseList()) {
output.writeMessage(2, element);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (com.trendmicro.mist.proto.BridgeTalk.Request element : getRequestList()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, element);
}
for (com.trendmicro.mist.proto.BridgeTalk.Response element : getResponseList()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, element);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public static com.trendmicro.mist.proto.BridgeTalk.Command parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Command parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Command parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Command parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Command parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Command parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Command parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Command parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeDelimitedFrom(input, extensionRegistry)
.buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Command parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.trendmicro.mist.proto.BridgeTalk.Command parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return new Builder(); }
public Builder newBuilderForType() { return new Builder(); }
public static Builder newBuilder(com.trendmicro.mist.proto.BridgeTalk.Command prototype) {
return new Builder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
// Construct using com.trendmicro.mist.proto.BridgeTalk.Command.newBuilder()
private Builder() {}
com.trendmicro.mist.proto.BridgeTalk.Command result = new com.trendmicro.mist.proto.BridgeTalk.Command();
@Override
protected com.trendmicro.mist.proto.BridgeTalk.Command internalGetResult() {
return result;
}
@Override
public Builder clear() {
result = new com.trendmicro.mist.proto.BridgeTalk.Command();
return this;
}
@Override
public Builder clone() {
return new Builder().mergeFrom(result);
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.trendmicro.mist.proto.BridgeTalk.Command.getDescriptor();
}
public com.trendmicro.mist.proto.BridgeTalk.Command getDefaultInstanceForType() {
return com.trendmicro.mist.proto.BridgeTalk.Command.getDefaultInstance();
}
public com.trendmicro.mist.proto.BridgeTalk.Command build() {
if (result != null && !isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result);
}
return buildPartial();
}
private com.trendmicro.mist.proto.BridgeTalk.Command buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.trendmicro.mist.proto.BridgeTalk.Command buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder."); }
if (result.request_ != java.util.Collections.EMPTY_LIST) {
result.request_ =
java.util.Collections.unmodifiableList(result.request_);
}
if (result.response_ != java.util.Collections.EMPTY_LIST) {
result.response_ =
java.util.Collections.unmodifiableList(result.response_);
}
com.trendmicro.mist.proto.BridgeTalk.Command returnMe = result;
result = null;
return returnMe;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.trendmicro.mist.proto.BridgeTalk.Command) {
return mergeFrom((com.trendmicro.mist.proto.BridgeTalk.Command)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.trendmicro.mist.proto.BridgeTalk.Command other) {
if (other == com.trendmicro.mist.proto.BridgeTalk.Command.getDefaultInstance()) return this;
if (!other.request_.isEmpty()) {
if (result.request_.isEmpty()) {
result.request_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.Request>();
}
result.request_.addAll(other.request_);
}
if (!other.response_.isEmpty()) {
if (result.response_.isEmpty()) {
result.response_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.Response>();
}
result.response_.addAll(other.response_);
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return mergeFrom(input,
com.google.protobuf.ExtensionRegistry.getEmptyRegistry());
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 10: {
com.trendmicro.mist.proto.BridgeTalk.Request.Builder subBuilder = com.trendmicro.mist.proto.BridgeTalk.Request.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addRequest(subBuilder.buildPartial());
break;
}
case 18: {
com.trendmicro.mist.proto.BridgeTalk.Response.Builder subBuilder = com.trendmicro.mist.proto.BridgeTalk.Response.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addResponse(subBuilder.buildPartial());
break;
}
}
}
}
// repeated .com.trendmicro.mist.proto.Request request = 1;
public java.util.List<com.trendmicro.mist.proto.BridgeTalk.Request> getRequestList() {
return java.util.Collections.unmodifiableList(result.request_);
}
public int getRequestCount() {
return result.getRequestCount();
}
public com.trendmicro.mist.proto.BridgeTalk.Request getRequest(int index) {
return result.getRequest(index);
}
public Builder setRequest(int index, com.trendmicro.mist.proto.BridgeTalk.Request value) {
if (value == null) {
throw new NullPointerException();
}
result.request_.set(index, value);
return this;
}
public Builder setRequest(int index, com.trendmicro.mist.proto.BridgeTalk.Request.Builder builderForValue) {
result.request_.set(index, builderForValue.build());
return this;
}
public Builder addRequest(com.trendmicro.mist.proto.BridgeTalk.Request value) {
if (value == null) {
throw new NullPointerException();
}
if (result.request_.isEmpty()) {
result.request_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.Request>();
}
result.request_.add(value);
return this;
}
public Builder addRequest(com.trendmicro.mist.proto.BridgeTalk.Request.Builder builderForValue) {
if (result.request_.isEmpty()) {
result.request_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.Request>();
}
result.request_.add(builderForValue.build());
return this;
}
public Builder addAllRequest(
java.lang.Iterable<? extends com.trendmicro.mist.proto.BridgeTalk.Request> values) {
if (result.request_.isEmpty()) {
result.request_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.Request>();
}
super.addAll(values, result.request_);
return this;
}
public Builder clearRequest() {
result.request_ = java.util.Collections.emptyList();
return this;
}
// repeated .com.trendmicro.mist.proto.Response response = 2;
public java.util.List<com.trendmicro.mist.proto.BridgeTalk.Response> getResponseList() {
return java.util.Collections.unmodifiableList(result.response_);
}
public int getResponseCount() {
return result.getResponseCount();
}
public com.trendmicro.mist.proto.BridgeTalk.Response getResponse(int index) {
return result.getResponse(index);
}
public Builder setResponse(int index, com.trendmicro.mist.proto.BridgeTalk.Response value) {
if (value == null) {
throw new NullPointerException();
}
result.response_.set(index, value);
return this;
}
public Builder setResponse(int index, com.trendmicro.mist.proto.BridgeTalk.Response.Builder builderForValue) {
result.response_.set(index, builderForValue.build());
return this;
}
public Builder addResponse(com.trendmicro.mist.proto.BridgeTalk.Response value) {
if (value == null) {
throw new NullPointerException();
}
if (result.response_.isEmpty()) {
result.response_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.Response>();
}
result.response_.add(value);
return this;
}
public Builder addResponse(com.trendmicro.mist.proto.BridgeTalk.Response.Builder builderForValue) {
if (result.response_.isEmpty()) {
result.response_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.Response>();
}
result.response_.add(builderForValue.build());
return this;
}
public Builder addAllResponse(
java.lang.Iterable<? extends com.trendmicro.mist.proto.BridgeTalk.Response> values) {
if (result.response_.isEmpty()) {
result.response_ = new java.util.ArrayList<com.trendmicro.mist.proto.BridgeTalk.Response>();
}
super.addAll(values, result.response_);
return this;
}
public Builder clearResponse() {
result.response_ = java.util.Collections.emptyList();
return this;
}
}
static {
com.trendmicro.mist.proto.BridgeTalk.getDescriptor();
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_trendmicro_mist_proto_BrokerInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_trendmicro_mist_proto_BrokerInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_trendmicro_mist_proto_ForwarderInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_trendmicro_mist_proto_ForwarderInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_trendmicro_mist_proto_ForwarderInfo_Target_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_trendmicro_mist_proto_ForwarderInfo_Target_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_trendmicro_mist_proto_BridgeConfig_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_trendmicro_mist_proto_BridgeConfig_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_trendmicro_mist_proto_Request_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_trendmicro_mist_proto_Request_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_trendmicro_mist_proto_Response_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_trendmicro_mist_proto_Response_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_trendmicro_mist_proto_Command_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_trendmicro_mist_proto_Command_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String descriptorData =
"\n\020BridgeTalk.proto\022\031com.trendmicro.mist." +
"proto\"f\n\nBrokerInfo\022\n\n\002id\030\001 \002(\005\022\014\n\004type\030" +
"\002 \002(\t\022\014\n\004host\030\003 \002(\t\022\014\n\004port\030\004 \002(\t\022\020\n\010use" +
"rname\030\005 \002(\t\022\020\n\010password\030\006 \002(\t\"\350\001\n\rForwar" +
"derInfo\022\n\n\002id\030\001 \002(\005\022<\n\003src\030\002 \002(\0132/.com.t" +
"rendmicro.mist.proto.ForwarderInfo.Targe" +
"t\022=\n\004dest\030\003 \003(\0132/.com.trendmicro.mist.pr" +
"oto.ForwarderInfo.Target\022\017\n\007comment\030\004 \001(" +
"\t\022\016\n\006online\030\005 \002(\010\032-\n\006Target\022\021\n\tbroker_id" +
"\030\001 \002(\005\022\020\n\010exchange\030\002 \002(\t\"\204\001\n\014BridgeConfi" +
"g\0226\n\007brokers\030\001 \003(\0132%.com.trendmicro.mist" +
".proto.BrokerInfo\022<\n\nforwarders\030\002 \003(\0132(." +
"com.trendmicro.mist.proto.ForwarderInfo\"" +
"\032\n\007Request\022\017\n\007command\030\001 \002(\t\"C\n\010Response\022" +
"\017\n\007success\030\001 \002(\010\022\021\n\007context\030\002 \001(\t:\000\022\023\n\te" +
"xception\030\003 \001(\t:\000\"u\n\007Command\0223\n\007request\030\001" +
" \003(\0132\".com.trendmicro.mist.proto.Request" +
"\0225\n\010response\030\002 \003(\0132#.com.trendmicro.mist" +
".proto.ResponseB\'\n\031com.trendmicro.mist.p" +
"rotoB\nBridgeTalk";
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_com_trendmicro_mist_proto_BrokerInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_trendmicro_mist_proto_BrokerInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_trendmicro_mist_proto_BrokerInfo_descriptor,
new java.lang.String[] { "Id", "Type", "Host", "Port", "Username", "Password", },
com.trendmicro.mist.proto.BridgeTalk.BrokerInfo.class,
com.trendmicro.mist.proto.BridgeTalk.BrokerInfo.Builder.class);
internal_static_com_trendmicro_mist_proto_ForwarderInfo_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_trendmicro_mist_proto_ForwarderInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_trendmicro_mist_proto_ForwarderInfo_descriptor,
new java.lang.String[] { "Id", "Src", "Dest", "Comment", "Online", },
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.class,
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Builder.class);
internal_static_com_trendmicro_mist_proto_ForwarderInfo_Target_descriptor =
internal_static_com_trendmicro_mist_proto_ForwarderInfo_descriptor.getNestedTypes().get(0);
internal_static_com_trendmicro_mist_proto_ForwarderInfo_Target_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_trendmicro_mist_proto_ForwarderInfo_Target_descriptor,
new java.lang.String[] { "BrokerId", "Exchange", },
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.class,
com.trendmicro.mist.proto.BridgeTalk.ForwarderInfo.Target.Builder.class);
internal_static_com_trendmicro_mist_proto_BridgeConfig_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_trendmicro_mist_proto_BridgeConfig_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_trendmicro_mist_proto_BridgeConfig_descriptor,
new java.lang.String[] { "Brokers", "Forwarders", },
com.trendmicro.mist.proto.BridgeTalk.BridgeConfig.class,
com.trendmicro.mist.proto.BridgeTalk.BridgeConfig.Builder.class);
internal_static_com_trendmicro_mist_proto_Request_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_trendmicro_mist_proto_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_trendmicro_mist_proto_Request_descriptor,
new java.lang.String[] { "Command", },
com.trendmicro.mist.proto.BridgeTalk.Request.class,
com.trendmicro.mist.proto.BridgeTalk.Request.Builder.class);
internal_static_com_trendmicro_mist_proto_Response_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_com_trendmicro_mist_proto_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_trendmicro_mist_proto_Response_descriptor,
new java.lang.String[] { "Success", "Context", "Exception", },
com.trendmicro.mist.proto.BridgeTalk.Response.class,
com.trendmicro.mist.proto.BridgeTalk.Response.Builder.class);
internal_static_com_trendmicro_mist_proto_Command_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_com_trendmicro_mist_proto_Command_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_trendmicro_mist_proto_Command_descriptor,
new java.lang.String[] { "Request", "Response", },
com.trendmicro.mist.proto.BridgeTalk.Command.class,
com.trendmicro.mist.proto.BridgeTalk.Command.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
}