
org.yamcs.protobuf.RouteInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yamcs/protobuf/server/server_service.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.server.RouteInfo}
*/
public final class RouteInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.server.RouteInfo)
RouteInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RouteInfo.newBuilder() to construct.
private RouteInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RouteInfo() {
service_ = "";
method_ = "";
description_ = "";
httpMethod_ = "";
url_ = "";
inputType_ = "";
outputType_ = "";
logFormat_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RouteInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RouteInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
service_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
method_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
description_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
httpMethod_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
url_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
inputType_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
outputType_ = bs;
break;
}
case 64: {
bitField0_ |= 0x00000080;
deprecated_ = input.readBool();
break;
}
case 72: {
bitField0_ |= 0x00000100;
requestCount_ = input.readInt64();
break;
}
case 80: {
bitField0_ |= 0x00000200;
errorCount_ = input.readInt64();
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
logFormat_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_RouteInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_RouteInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.RouteInfo.class, org.yamcs.protobuf.RouteInfo.Builder.class);
}
private int bitField0_;
public static final int SERVICE_FIELD_NUMBER = 1;
private volatile java.lang.Object service_;
/**
* optional string service = 1;
* @return Whether the service field is set.
*/
@java.lang.Override
public boolean hasService() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string service = 1;
* @return The service.
*/
@java.lang.Override
public java.lang.String getService() {
java.lang.Object ref = service_;
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();
if (bs.isValidUtf8()) {
service_ = s;
}
return s;
}
}
/**
* optional string service = 1;
* @return The bytes for service.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceBytes() {
java.lang.Object ref = service_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
service_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METHOD_FIELD_NUMBER = 2;
private volatile java.lang.Object method_;
/**
* optional string method = 2;
* @return Whether the method field is set.
*/
@java.lang.Override
public boolean hasMethod() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string method = 2;
* @return The method.
*/
@java.lang.Override
public java.lang.String getMethod() {
java.lang.Object ref = method_;
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();
if (bs.isValidUtf8()) {
method_ = s;
}
return s;
}
}
/**
* optional string method = 2;
* @return The bytes for method.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
* optional string description = 3;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string description = 3;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
if (bs.isValidUtf8()) {
description_ = s;
}
return s;
}
}
/**
* optional string description = 3;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HTTPMETHOD_FIELD_NUMBER = 4;
private volatile java.lang.Object httpMethod_;
/**
* optional string httpMethod = 4;
* @return Whether the httpMethod field is set.
*/
@java.lang.Override
public boolean hasHttpMethod() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string httpMethod = 4;
* @return The httpMethod.
*/
@java.lang.Override
public java.lang.String getHttpMethod() {
java.lang.Object ref = httpMethod_;
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();
if (bs.isValidUtf8()) {
httpMethod_ = s;
}
return s;
}
}
/**
* optional string httpMethod = 4;
* @return The bytes for httpMethod.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpMethodBytes() {
java.lang.Object ref = httpMethod_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpMethod_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URL_FIELD_NUMBER = 5;
private volatile java.lang.Object url_;
/**
* optional string url = 5;
* @return Whether the url field is set.
*/
@java.lang.Override
public boolean hasUrl() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string url = 5;
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
java.lang.Object ref = url_;
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();
if (bs.isValidUtf8()) {
url_ = s;
}
return s;
}
}
/**
* optional string url = 5;
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INPUTTYPE_FIELD_NUMBER = 6;
private volatile java.lang.Object inputType_;
/**
* optional string inputType = 6;
* @return Whether the inputType field is set.
*/
@java.lang.Override
public boolean hasInputType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string inputType = 6;
* @return The inputType.
*/
@java.lang.Override
public java.lang.String getInputType() {
java.lang.Object ref = inputType_;
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();
if (bs.isValidUtf8()) {
inputType_ = s;
}
return s;
}
}
/**
* optional string inputType = 6;
* @return The bytes for inputType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInputTypeBytes() {
java.lang.Object ref = inputType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inputType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OUTPUTTYPE_FIELD_NUMBER = 7;
private volatile java.lang.Object outputType_;
/**
* optional string outputType = 7;
* @return Whether the outputType field is set.
*/
@java.lang.Override
public boolean hasOutputType() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string outputType = 7;
* @return The outputType.
*/
@java.lang.Override
public java.lang.String getOutputType() {
java.lang.Object ref = outputType_;
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();
if (bs.isValidUtf8()) {
outputType_ = s;
}
return s;
}
}
/**
* optional string outputType = 7;
* @return The bytes for outputType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOutputTypeBytes() {
java.lang.Object ref = outputType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
outputType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPRECATED_FIELD_NUMBER = 8;
private boolean deprecated_;
/**
* optional bool deprecated = 8;
* @return Whether the deprecated field is set.
*/
@java.lang.Override
public boolean hasDeprecated() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool deprecated = 8;
* @return The deprecated.
*/
@java.lang.Override
public boolean getDeprecated() {
return deprecated_;
}
public static final int REQUESTCOUNT_FIELD_NUMBER = 9;
private long requestCount_;
/**
* optional int64 requestCount = 9;
* @return Whether the requestCount field is set.
*/
@java.lang.Override
public boolean hasRequestCount() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 requestCount = 9;
* @return The requestCount.
*/
@java.lang.Override
public long getRequestCount() {
return requestCount_;
}
public static final int ERRORCOUNT_FIELD_NUMBER = 10;
private long errorCount_;
/**
* optional int64 errorCount = 10;
* @return Whether the errorCount field is set.
*/
@java.lang.Override
public boolean hasErrorCount() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 errorCount = 10;
* @return The errorCount.
*/
@java.lang.Override
public long getErrorCount() {
return errorCount_;
}
public static final int LOGFORMAT_FIELD_NUMBER = 11;
private volatile java.lang.Object logFormat_;
/**
* optional string logFormat = 11;
* @return Whether the logFormat field is set.
*/
@java.lang.Override
public boolean hasLogFormat() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string logFormat = 11;
* @return The logFormat.
*/
@java.lang.Override
public java.lang.String getLogFormat() {
java.lang.Object ref = logFormat_;
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();
if (bs.isValidUtf8()) {
logFormat_ = s;
}
return s;
}
}
/**
* optional string logFormat = 11;
* @return The bytes for logFormat.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogFormatBytes() {
java.lang.Object ref = logFormat_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logFormat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, httpMethod_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, url_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, inputType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, outputType_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(8, deprecated_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt64(9, requestCount_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt64(10, errorCount_);
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, logFormat_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, httpMethod_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, url_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, inputType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, outputType_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, deprecated_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, requestCount_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, errorCount_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, logFormat_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.yamcs.protobuf.RouteInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.RouteInfo other = (org.yamcs.protobuf.RouteInfo) obj;
if (hasService() != other.hasService()) return false;
if (hasService()) {
if (!getService()
.equals(other.getService())) return false;
}
if (hasMethod() != other.hasMethod()) return false;
if (hasMethod()) {
if (!getMethod()
.equals(other.getMethod())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (hasHttpMethod() != other.hasHttpMethod()) return false;
if (hasHttpMethod()) {
if (!getHttpMethod()
.equals(other.getHttpMethod())) return false;
}
if (hasUrl() != other.hasUrl()) return false;
if (hasUrl()) {
if (!getUrl()
.equals(other.getUrl())) return false;
}
if (hasInputType() != other.hasInputType()) return false;
if (hasInputType()) {
if (!getInputType()
.equals(other.getInputType())) return false;
}
if (hasOutputType() != other.hasOutputType()) return false;
if (hasOutputType()) {
if (!getOutputType()
.equals(other.getOutputType())) return false;
}
if (hasDeprecated() != other.hasDeprecated()) return false;
if (hasDeprecated()) {
if (getDeprecated()
!= other.getDeprecated()) return false;
}
if (hasRequestCount() != other.hasRequestCount()) return false;
if (hasRequestCount()) {
if (getRequestCount()
!= other.getRequestCount()) return false;
}
if (hasErrorCount() != other.hasErrorCount()) return false;
if (hasErrorCount()) {
if (getErrorCount()
!= other.getErrorCount()) return false;
}
if (hasLogFormat() != other.hasLogFormat()) return false;
if (hasLogFormat()) {
if (!getLogFormat()
.equals(other.getLogFormat())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasService()) {
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getService().hashCode();
}
if (hasMethod()) {
hash = (37 * hash) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + getMethod().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (hasHttpMethod()) {
hash = (37 * hash) + HTTPMETHOD_FIELD_NUMBER;
hash = (53 * hash) + getHttpMethod().hashCode();
}
if (hasUrl()) {
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
}
if (hasInputType()) {
hash = (37 * hash) + INPUTTYPE_FIELD_NUMBER;
hash = (53 * hash) + getInputType().hashCode();
}
if (hasOutputType()) {
hash = (37 * hash) + OUTPUTTYPE_FIELD_NUMBER;
hash = (53 * hash) + getOutputType().hashCode();
}
if (hasDeprecated()) {
hash = (37 * hash) + DEPRECATED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeprecated());
}
if (hasRequestCount()) {
hash = (37 * hash) + REQUESTCOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRequestCount());
}
if (hasErrorCount()) {
hash = (37 * hash) + ERRORCOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getErrorCount());
}
if (hasLogFormat()) {
hash = (37 * hash) + LOGFORMAT_FIELD_NUMBER;
hash = (53 * hash) + getLogFormat().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.RouteInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.RouteInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.RouteInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.RouteInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.RouteInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.RouteInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.RouteInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.RouteInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.yamcs.protobuf.RouteInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.RouteInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.yamcs.protobuf.RouteInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.RouteInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.yamcs.protobuf.RouteInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.server.RouteInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.server.RouteInfo)
org.yamcs.protobuf.RouteInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_RouteInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_RouteInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.RouteInfo.class, org.yamcs.protobuf.RouteInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.RouteInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
service_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
method_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
httpMethod_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
url_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
inputType_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
outputType_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
deprecated_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
requestCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
errorCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000200);
logFormat_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_RouteInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.RouteInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.RouteInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.RouteInfo build() {
org.yamcs.protobuf.RouteInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.RouteInfo buildPartial() {
org.yamcs.protobuf.RouteInfo result = new org.yamcs.protobuf.RouteInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.service_ = service_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.method_ = method_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.description_ = description_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.httpMethod_ = httpMethod_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.url_ = url_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.inputType_ = inputType_;
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.outputType_ = outputType_;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.deprecated_ = deprecated_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.requestCount_ = requestCount_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.errorCount_ = errorCount_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000400;
}
result.logFormat_ = logFormat_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.RouteInfo) {
return mergeFrom((org.yamcs.protobuf.RouteInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.RouteInfo other) {
if (other == org.yamcs.protobuf.RouteInfo.getDefaultInstance()) return this;
if (other.hasService()) {
bitField0_ |= 0x00000001;
service_ = other.service_;
onChanged();
}
if (other.hasMethod()) {
bitField0_ |= 0x00000002;
method_ = other.method_;
onChanged();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000004;
description_ = other.description_;
onChanged();
}
if (other.hasHttpMethod()) {
bitField0_ |= 0x00000008;
httpMethod_ = other.httpMethod_;
onChanged();
}
if (other.hasUrl()) {
bitField0_ |= 0x00000010;
url_ = other.url_;
onChanged();
}
if (other.hasInputType()) {
bitField0_ |= 0x00000020;
inputType_ = other.inputType_;
onChanged();
}
if (other.hasOutputType()) {
bitField0_ |= 0x00000040;
outputType_ = other.outputType_;
onChanged();
}
if (other.hasDeprecated()) {
setDeprecated(other.getDeprecated());
}
if (other.hasRequestCount()) {
setRequestCount(other.getRequestCount());
}
if (other.hasErrorCount()) {
setErrorCount(other.getErrorCount());
}
if (other.hasLogFormat()) {
bitField0_ |= 0x00000400;
logFormat_ = other.logFormat_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.RouteInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.RouteInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object service_ = "";
/**
* optional string service = 1;
* @return Whether the service field is set.
*/
public boolean hasService() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string service = 1;
* @return The service.
*/
public java.lang.String getService() {
java.lang.Object ref = service_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
service_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string service = 1;
* @return The bytes for service.
*/
public com.google.protobuf.ByteString
getServiceBytes() {
java.lang.Object ref = service_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
service_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string service = 1;
* @param value The service to set.
* @return This builder for chaining.
*/
public Builder setService(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
service_ = value;
onChanged();
return this;
}
/**
* optional string service = 1;
* @return This builder for chaining.
*/
public Builder clearService() {
bitField0_ = (bitField0_ & ~0x00000001);
service_ = getDefaultInstance().getService();
onChanged();
return this;
}
/**
* optional string service = 1;
* @param value The bytes for service to set.
* @return This builder for chaining.
*/
public Builder setServiceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
service_ = value;
onChanged();
return this;
}
private java.lang.Object method_ = "";
/**
* optional string method = 2;
* @return Whether the method field is set.
*/
public boolean hasMethod() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string method = 2;
* @return The method.
*/
public java.lang.String getMethod() {
java.lang.Object ref = method_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
method_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string method = 2;
* @return The bytes for method.
*/
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string method = 2;
* @param value The method to set.
* @return This builder for chaining.
*/
public Builder setMethod(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
method_ = value;
onChanged();
return this;
}
/**
* optional string method = 2;
* @return This builder for chaining.
*/
public Builder clearMethod() {
bitField0_ = (bitField0_ & ~0x00000002);
method_ = getDefaultInstance().getMethod();
onChanged();
return this;
}
/**
* optional string method = 2;
* @param value The bytes for method to set.
* @return This builder for chaining.
*/
public Builder setMethodBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
method_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* optional string description = 3;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
description_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string description = 3;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
description_ = value;
onChanged();
return this;
}
/**
* optional string description = 3;
* @return This builder for chaining.
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000004);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* optional string description = 3;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
description_ = value;
onChanged();
return this;
}
private java.lang.Object httpMethod_ = "";
/**
* optional string httpMethod = 4;
* @return Whether the httpMethod field is set.
*/
public boolean hasHttpMethod() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string httpMethod = 4;
* @return The httpMethod.
*/
public java.lang.String getHttpMethod() {
java.lang.Object ref = httpMethod_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
httpMethod_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string httpMethod = 4;
* @return The bytes for httpMethod.
*/
public com.google.protobuf.ByteString
getHttpMethodBytes() {
java.lang.Object ref = httpMethod_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpMethod_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string httpMethod = 4;
* @param value The httpMethod to set.
* @return This builder for chaining.
*/
public Builder setHttpMethod(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
httpMethod_ = value;
onChanged();
return this;
}
/**
* optional string httpMethod = 4;
* @return This builder for chaining.
*/
public Builder clearHttpMethod() {
bitField0_ = (bitField0_ & ~0x00000008);
httpMethod_ = getDefaultInstance().getHttpMethod();
onChanged();
return this;
}
/**
* optional string httpMethod = 4;
* @param value The bytes for httpMethod to set.
* @return This builder for chaining.
*/
public Builder setHttpMethodBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
httpMethod_ = value;
onChanged();
return this;
}
private java.lang.Object url_ = "";
/**
* optional string url = 5;
* @return Whether the url field is set.
*/
public boolean hasUrl() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string url = 5;
* @return The url.
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
url_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string url = 5;
* @return The bytes for url.
*/
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string url = 5;
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
url_ = value;
onChanged();
return this;
}
/**
* optional string url = 5;
* @return This builder for chaining.
*/
public Builder clearUrl() {
bitField0_ = (bitField0_ & ~0x00000010);
url_ = getDefaultInstance().getUrl();
onChanged();
return this;
}
/**
* optional string url = 5;
* @param value The bytes for url to set.
* @return This builder for chaining.
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
url_ = value;
onChanged();
return this;
}
private java.lang.Object inputType_ = "";
/**
* optional string inputType = 6;
* @return Whether the inputType field is set.
*/
public boolean hasInputType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string inputType = 6;
* @return The inputType.
*/
public java.lang.String getInputType() {
java.lang.Object ref = inputType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
inputType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string inputType = 6;
* @return The bytes for inputType.
*/
public com.google.protobuf.ByteString
getInputTypeBytes() {
java.lang.Object ref = inputType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inputType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string inputType = 6;
* @param value The inputType to set.
* @return This builder for chaining.
*/
public Builder setInputType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
inputType_ = value;
onChanged();
return this;
}
/**
* optional string inputType = 6;
* @return This builder for chaining.
*/
public Builder clearInputType() {
bitField0_ = (bitField0_ & ~0x00000020);
inputType_ = getDefaultInstance().getInputType();
onChanged();
return this;
}
/**
* optional string inputType = 6;
* @param value The bytes for inputType to set.
* @return This builder for chaining.
*/
public Builder setInputTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
inputType_ = value;
onChanged();
return this;
}
private java.lang.Object outputType_ = "";
/**
* optional string outputType = 7;
* @return Whether the outputType field is set.
*/
public boolean hasOutputType() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string outputType = 7;
* @return The outputType.
*/
public java.lang.String getOutputType() {
java.lang.Object ref = outputType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
outputType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string outputType = 7;
* @return The bytes for outputType.
*/
public com.google.protobuf.ByteString
getOutputTypeBytes() {
java.lang.Object ref = outputType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
outputType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string outputType = 7;
* @param value The outputType to set.
* @return This builder for chaining.
*/
public Builder setOutputType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
outputType_ = value;
onChanged();
return this;
}
/**
* optional string outputType = 7;
* @return This builder for chaining.
*/
public Builder clearOutputType() {
bitField0_ = (bitField0_ & ~0x00000040);
outputType_ = getDefaultInstance().getOutputType();
onChanged();
return this;
}
/**
* optional string outputType = 7;
* @param value The bytes for outputType to set.
* @return This builder for chaining.
*/
public Builder setOutputTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
outputType_ = value;
onChanged();
return this;
}
private boolean deprecated_ ;
/**
* optional bool deprecated = 8;
* @return Whether the deprecated field is set.
*/
@java.lang.Override
public boolean hasDeprecated() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool deprecated = 8;
* @return The deprecated.
*/
@java.lang.Override
public boolean getDeprecated() {
return deprecated_;
}
/**
* optional bool deprecated = 8;
* @param value The deprecated to set.
* @return This builder for chaining.
*/
public Builder setDeprecated(boolean value) {
bitField0_ |= 0x00000080;
deprecated_ = value;
onChanged();
return this;
}
/**
* optional bool deprecated = 8;
* @return This builder for chaining.
*/
public Builder clearDeprecated() {
bitField0_ = (bitField0_ & ~0x00000080);
deprecated_ = false;
onChanged();
return this;
}
private long requestCount_ ;
/**
* optional int64 requestCount = 9;
* @return Whether the requestCount field is set.
*/
@java.lang.Override
public boolean hasRequestCount() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 requestCount = 9;
* @return The requestCount.
*/
@java.lang.Override
public long getRequestCount() {
return requestCount_;
}
/**
* optional int64 requestCount = 9;
* @param value The requestCount to set.
* @return This builder for chaining.
*/
public Builder setRequestCount(long value) {
bitField0_ |= 0x00000100;
requestCount_ = value;
onChanged();
return this;
}
/**
* optional int64 requestCount = 9;
* @return This builder for chaining.
*/
public Builder clearRequestCount() {
bitField0_ = (bitField0_ & ~0x00000100);
requestCount_ = 0L;
onChanged();
return this;
}
private long errorCount_ ;
/**
* optional int64 errorCount = 10;
* @return Whether the errorCount field is set.
*/
@java.lang.Override
public boolean hasErrorCount() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 errorCount = 10;
* @return The errorCount.
*/
@java.lang.Override
public long getErrorCount() {
return errorCount_;
}
/**
* optional int64 errorCount = 10;
* @param value The errorCount to set.
* @return This builder for chaining.
*/
public Builder setErrorCount(long value) {
bitField0_ |= 0x00000200;
errorCount_ = value;
onChanged();
return this;
}
/**
* optional int64 errorCount = 10;
* @return This builder for chaining.
*/
public Builder clearErrorCount() {
bitField0_ = (bitField0_ & ~0x00000200);
errorCount_ = 0L;
onChanged();
return this;
}
private java.lang.Object logFormat_ = "";
/**
* optional string logFormat = 11;
* @return Whether the logFormat field is set.
*/
public boolean hasLogFormat() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string logFormat = 11;
* @return The logFormat.
*/
public java.lang.String getLogFormat() {
java.lang.Object ref = logFormat_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
logFormat_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string logFormat = 11;
* @return The bytes for logFormat.
*/
public com.google.protobuf.ByteString
getLogFormatBytes() {
java.lang.Object ref = logFormat_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logFormat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string logFormat = 11;
* @param value The logFormat to set.
* @return This builder for chaining.
*/
public Builder setLogFormat(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
logFormat_ = value;
onChanged();
return this;
}
/**
* optional string logFormat = 11;
* @return This builder for chaining.
*/
public Builder clearLogFormat() {
bitField0_ = (bitField0_ & ~0x00000400);
logFormat_ = getDefaultInstance().getLogFormat();
onChanged();
return this;
}
/**
* optional string logFormat = 11;
* @param value The bytes for logFormat to set.
* @return This builder for chaining.
*/
public Builder setLogFormatBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
logFormat_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yamcs.protobuf.server.RouteInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.server.RouteInfo)
private static final org.yamcs.protobuf.RouteInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.RouteInfo();
}
public static org.yamcs.protobuf.RouteInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RouteInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RouteInfo(input, extensionRegistry);
}
};
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.yamcs.protobuf.RouteInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy