org.yamcs.api.HttpRoute 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/api/annotations.proto
package org.yamcs.api;
/**
* Protobuf type {@code yamcs.api.HttpRoute}
*/
public final class HttpRoute extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.api.HttpRoute)
HttpRouteOrBuilder {
private static final long serialVersionUID = 0L;
// Use HttpRoute.newBuilder() to construct.
private HttpRoute(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HttpRoute() {
body_ = "";
additionalBindings_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HttpRoute(
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();
patternCase_ = 1;
pattern_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
patternCase_ = 2;
pattern_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
patternCase_ = 3;
pattern_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
patternCase_ = 4;
pattern_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
patternCase_ = 5;
pattern_ = bs;
break;
}
case 48: {
bitField0_ |= 0x00000020;
deprecated_ = input.readBool();
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
body_ = bs;
break;
}
case 64: {
bitField0_ |= 0x00000080;
maxBodySize_ = input.readInt32();
break;
}
case 72: {
bitField0_ |= 0x00000100;
offThread_ = input.readBool();
break;
}
case 80: {
bitField0_ |= 0x00000200;
dataLoad_ = input.readBool();
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000400) != 0)) {
additionalBindings_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
additionalBindings_.add(
input.readMessage(org.yamcs.api.HttpRoute.PARSER, extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000400) != 0)) {
additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.api.AnnotationsProto.internal_static_yamcs_api_HttpRoute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.api.AnnotationsProto.internal_static_yamcs_api_HttpRoute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.api.HttpRoute.class, org.yamcs.api.HttpRoute.Builder.class);
}
private int bitField0_;
private int patternCase_ = 0;
private java.lang.Object pattern_;
public enum PatternCase
implements com.google.protobuf.Internal.EnumLite {
GET(1),
PUT(2),
POST(3),
DELETE(4),
PATCH(5),
PATTERN_NOT_SET(0);
private final int value;
private PatternCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PatternCase valueOf(int value) {
return forNumber(value);
}
public static PatternCase forNumber(int value) {
switch (value) {
case 1: return GET;
case 2: return PUT;
case 3: return POST;
case 4: return DELETE;
case 5: return PATCH;
case 0: return PATTERN_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PatternCase
getPatternCase() {
return PatternCase.forNumber(
patternCase_);
}
public static final int GET_FIELD_NUMBER = 1;
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* optional string get = 1;
*/
public boolean hasGet() {
return patternCase_ == 1;
}
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* optional string get = 1;
*/
public java.lang.String getGet() {
java.lang.Object ref = "";
if (patternCase_ == 1) {
ref = pattern_;
}
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() && (patternCase_ == 1)) {
pattern_ = s;
}
return s;
}
}
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* optional string get = 1;
*/
public com.google.protobuf.ByteString
getGetBytes() {
java.lang.Object ref = "";
if (patternCase_ == 1) {
ref = pattern_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (patternCase_ == 1) {
pattern_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUT_FIELD_NUMBER = 2;
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* optional string put = 2;
*/
public boolean hasPut() {
return patternCase_ == 2;
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* optional string put = 2;
*/
public java.lang.String getPut() {
java.lang.Object ref = "";
if (patternCase_ == 2) {
ref = pattern_;
}
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() && (patternCase_ == 2)) {
pattern_ = s;
}
return s;
}
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* optional string put = 2;
*/
public com.google.protobuf.ByteString
getPutBytes() {
java.lang.Object ref = "";
if (patternCase_ == 2) {
ref = pattern_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (patternCase_ == 2) {
pattern_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POST_FIELD_NUMBER = 3;
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* optional string post = 3;
*/
public boolean hasPost() {
return patternCase_ == 3;
}
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* optional string post = 3;
*/
public java.lang.String getPost() {
java.lang.Object ref = "";
if (patternCase_ == 3) {
ref = pattern_;
}
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() && (patternCase_ == 3)) {
pattern_ = s;
}
return s;
}
}
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* optional string post = 3;
*/
public com.google.protobuf.ByteString
getPostBytes() {
java.lang.Object ref = "";
if (patternCase_ == 3) {
ref = pattern_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (patternCase_ == 3) {
pattern_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DELETE_FIELD_NUMBER = 4;
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* optional string delete = 4;
*/
public boolean hasDelete() {
return patternCase_ == 4;
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* optional string delete = 4;
*/
public java.lang.String getDelete() {
java.lang.Object ref = "";
if (patternCase_ == 4) {
ref = pattern_;
}
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() && (patternCase_ == 4)) {
pattern_ = s;
}
return s;
}
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* optional string delete = 4;
*/
public com.google.protobuf.ByteString
getDeleteBytes() {
java.lang.Object ref = "";
if (patternCase_ == 4) {
ref = pattern_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (patternCase_ == 4) {
pattern_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATCH_FIELD_NUMBER = 5;
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* optional string patch = 5;
*/
public boolean hasPatch() {
return patternCase_ == 5;
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* optional string patch = 5;
*/
public java.lang.String getPatch() {
java.lang.Object ref = "";
if (patternCase_ == 5) {
ref = pattern_;
}
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() && (patternCase_ == 5)) {
pattern_ = s;
}
return s;
}
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* optional string patch = 5;
*/
public com.google.protobuf.ByteString
getPatchBytes() {
java.lang.Object ref = "";
if (patternCase_ == 5) {
ref = pattern_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (patternCase_ == 5) {
pattern_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPRECATED_FIELD_NUMBER = 6;
private boolean deprecated_;
/**
* optional bool deprecated = 6;
*/
public boolean hasDeprecated() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool deprecated = 6;
*/
public boolean getDeprecated() {
return deprecated_;
}
public static final int BODY_FIELD_NUMBER = 7;
private volatile java.lang.Object body_;
/**
*
* Name of the field in the request message that maps to the request body
* The special value "*" indicates that the request message as a whole
* represents the body (excepting route params).
*
*
* optional string body = 7;
*/
public boolean hasBody() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Name of the field in the request message that maps to the request body
* The special value "*" indicates that the request message as a whole
* represents the body (excepting route params).
*
*
* optional string body = 7;
*/
public java.lang.String getBody() {
java.lang.Object ref = body_;
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()) {
body_ = s;
}
return s;
}
}
/**
*
* Name of the field in the request message that maps to the request body
* The special value "*" indicates that the request message as a whole
* represents the body (excepting route params).
*
*
* optional string body = 7;
*/
public com.google.protobuf.ByteString
getBodyBytes() {
java.lang.Object ref = body_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
body_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAXBODYSIZE_FIELD_NUMBER = 8;
private int maxBodySize_;
/**
* optional int32 maxBodySize = 8;
*/
public boolean hasMaxBodySize() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 maxBodySize = 8;
*/
public int getMaxBodySize() {
return maxBodySize_;
}
public static final int OFFTHREAD_FIELD_NUMBER = 9;
private boolean offThread_;
/**
*
* Set true if the execution of the route is expected to take a long time
* (more than 0.5 seconds). It will be offloaded to a worker thread.
* Leave false if the route uses its own threading mechanism (most of the
* routes should do that).
*
*
* optional bool offThread = 9;
*/
public boolean hasOffThread() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Set true if the execution of the route is expected to take a long time
* (more than 0.5 seconds). It will be offloaded to a worker thread.
* Leave false if the route uses its own threading mechanism (most of the
* routes should do that).
*
*
* optional bool offThread = 9;
*/
public boolean getOffThread() {
return offThread_;
}
public static final int DATALOAD_FIELD_NUMBER = 10;
private boolean dataLoad_;
/**
*
* Data load routes expect to receive a large body piece by piece in
* HttpContent objects.
*
* If false or unset, a small default is used, sufficient for standard use.
*
*
* optional bool dataLoad = 10;
*/
public boolean hasDataLoad() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Data load routes expect to receive a large body piece by piece in
* HttpContent objects.
*
* If false or unset, a small default is used, sufficient for standard use.
*
*
* optional bool dataLoad = 10;
*/
public boolean getDataLoad() {
return dataLoad_;
}
public static final int ADDITIONAL_BINDINGS_FIELD_NUMBER = 11;
private java.util.List additionalBindings_;
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public java.util.List getAdditionalBindingsList() {
return additionalBindings_;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public java.util.List extends org.yamcs.api.HttpRouteOrBuilder>
getAdditionalBindingsOrBuilderList() {
return additionalBindings_;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public int getAdditionalBindingsCount() {
return additionalBindings_.size();
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public org.yamcs.api.HttpRoute getAdditionalBindings(int index) {
return additionalBindings_.get(index);
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public org.yamcs.api.HttpRouteOrBuilder getAdditionalBindingsOrBuilder(
int index) {
return additionalBindings_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (patternCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pattern_);
}
if (patternCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pattern_);
}
if (patternCase_ == 3) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pattern_);
}
if (patternCase_ == 4) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pattern_);
}
if (patternCase_ == 5) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pattern_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(6, deprecated_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, body_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt32(8, maxBodySize_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeBool(9, offThread_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(10, dataLoad_);
}
for (int i = 0; i < additionalBindings_.size(); i++) {
output.writeMessage(11, additionalBindings_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (patternCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pattern_);
}
if (patternCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pattern_);
}
if (patternCase_ == 3) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pattern_);
}
if (patternCase_ == 4) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pattern_);
}
if (patternCase_ == 5) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pattern_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, deprecated_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, body_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, maxBodySize_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, offThread_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, dataLoad_);
}
for (int i = 0; i < additionalBindings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, additionalBindings_.get(i));
}
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.api.HttpRoute)) {
return super.equals(obj);
}
org.yamcs.api.HttpRoute other = (org.yamcs.api.HttpRoute) obj;
if (hasDeprecated() != other.hasDeprecated()) return false;
if (hasDeprecated()) {
if (getDeprecated()
!= other.getDeprecated()) return false;
}
if (hasBody() != other.hasBody()) return false;
if (hasBody()) {
if (!getBody()
.equals(other.getBody())) return false;
}
if (hasMaxBodySize() != other.hasMaxBodySize()) return false;
if (hasMaxBodySize()) {
if (getMaxBodySize()
!= other.getMaxBodySize()) return false;
}
if (hasOffThread() != other.hasOffThread()) return false;
if (hasOffThread()) {
if (getOffThread()
!= other.getOffThread()) return false;
}
if (hasDataLoad() != other.hasDataLoad()) return false;
if (hasDataLoad()) {
if (getDataLoad()
!= other.getDataLoad()) return false;
}
if (!getAdditionalBindingsList()
.equals(other.getAdditionalBindingsList())) return false;
if (!getPatternCase().equals(other.getPatternCase())) return false;
switch (patternCase_) {
case 1:
if (!getGet()
.equals(other.getGet())) return false;
break;
case 2:
if (!getPut()
.equals(other.getPut())) return false;
break;
case 3:
if (!getPost()
.equals(other.getPost())) return false;
break;
case 4:
if (!getDelete()
.equals(other.getDelete())) return false;
break;
case 5:
if (!getPatch()
.equals(other.getPatch())) return false;
break;
case 0:
default:
}
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 (hasDeprecated()) {
hash = (37 * hash) + DEPRECATED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeprecated());
}
if (hasBody()) {
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody().hashCode();
}
if (hasMaxBodySize()) {
hash = (37 * hash) + MAXBODYSIZE_FIELD_NUMBER;
hash = (53 * hash) + getMaxBodySize();
}
if (hasOffThread()) {
hash = (37 * hash) + OFFTHREAD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOffThread());
}
if (hasDataLoad()) {
hash = (37 * hash) + DATALOAD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDataLoad());
}
if (getAdditionalBindingsCount() > 0) {
hash = (37 * hash) + ADDITIONAL_BINDINGS_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalBindingsList().hashCode();
}
switch (patternCase_) {
case 1:
hash = (37 * hash) + GET_FIELD_NUMBER;
hash = (53 * hash) + getGet().hashCode();
break;
case 2:
hash = (37 * hash) + PUT_FIELD_NUMBER;
hash = (53 * hash) + getPut().hashCode();
break;
case 3:
hash = (37 * hash) + POST_FIELD_NUMBER;
hash = (53 * hash) + getPost().hashCode();
break;
case 4:
hash = (37 * hash) + DELETE_FIELD_NUMBER;
hash = (53 * hash) + getDelete().hashCode();
break;
case 5:
hash = (37 * hash) + PATCH_FIELD_NUMBER;
hash = (53 * hash) + getPatch().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.api.HttpRoute parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.api.HttpRoute parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.api.HttpRoute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.api.HttpRoute 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.api.HttpRoute parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.api.HttpRoute parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.api.HttpRoute parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.api.HttpRoute 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.api.HttpRoute parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.api.HttpRoute 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.api.HttpRoute parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.api.HttpRoute 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.api.HttpRoute 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.api.HttpRoute}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.api.HttpRoute)
org.yamcs.api.HttpRouteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.api.AnnotationsProto.internal_static_yamcs_api_HttpRoute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.api.AnnotationsProto.internal_static_yamcs_api_HttpRoute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.api.HttpRoute.class, org.yamcs.api.HttpRoute.Builder.class);
}
// Construct using org.yamcs.api.HttpRoute.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAdditionalBindingsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
deprecated_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
body_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
maxBodySize_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
offThread_ = false;
bitField0_ = (bitField0_ & ~0x00000100);
dataLoad_ = false;
bitField0_ = (bitField0_ & ~0x00000200);
if (additionalBindingsBuilder_ == null) {
additionalBindings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
} else {
additionalBindingsBuilder_.clear();
}
patternCase_ = 0;
pattern_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.api.AnnotationsProto.internal_static_yamcs_api_HttpRoute_descriptor;
}
@java.lang.Override
public org.yamcs.api.HttpRoute getDefaultInstanceForType() {
return org.yamcs.api.HttpRoute.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.api.HttpRoute build() {
org.yamcs.api.HttpRoute result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.api.HttpRoute buildPartial() {
org.yamcs.api.HttpRoute result = new org.yamcs.api.HttpRoute(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (patternCase_ == 1) {
result.pattern_ = pattern_;
}
if (patternCase_ == 2) {
result.pattern_ = pattern_;
}
if (patternCase_ == 3) {
result.pattern_ = pattern_;
}
if (patternCase_ == 4) {
result.pattern_ = pattern_;
}
if (patternCase_ == 5) {
result.pattern_ = pattern_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.deprecated_ = deprecated_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.body_ = body_;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.maxBodySize_ = maxBodySize_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.offThread_ = offThread_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.dataLoad_ = dataLoad_;
to_bitField0_ |= 0x00000200;
}
if (additionalBindingsBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0)) {
additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.additionalBindings_ = additionalBindings_;
} else {
result.additionalBindings_ = additionalBindingsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
result.patternCase_ = patternCase_;
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.api.HttpRoute) {
return mergeFrom((org.yamcs.api.HttpRoute)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.api.HttpRoute other) {
if (other == org.yamcs.api.HttpRoute.getDefaultInstance()) return this;
if (other.hasDeprecated()) {
setDeprecated(other.getDeprecated());
}
if (other.hasBody()) {
bitField0_ |= 0x00000040;
body_ = other.body_;
onChanged();
}
if (other.hasMaxBodySize()) {
setMaxBodySize(other.getMaxBodySize());
}
if (other.hasOffThread()) {
setOffThread(other.getOffThread());
}
if (other.hasDataLoad()) {
setDataLoad(other.getDataLoad());
}
if (additionalBindingsBuilder_ == null) {
if (!other.additionalBindings_.isEmpty()) {
if (additionalBindings_.isEmpty()) {
additionalBindings_ = other.additionalBindings_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureAdditionalBindingsIsMutable();
additionalBindings_.addAll(other.additionalBindings_);
}
onChanged();
}
} else {
if (!other.additionalBindings_.isEmpty()) {
if (additionalBindingsBuilder_.isEmpty()) {
additionalBindingsBuilder_.dispose();
additionalBindingsBuilder_ = null;
additionalBindings_ = other.additionalBindings_;
bitField0_ = (bitField0_ & ~0x00000400);
additionalBindingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAdditionalBindingsFieldBuilder() : null;
} else {
additionalBindingsBuilder_.addAllMessages(other.additionalBindings_);
}
}
}
switch (other.getPatternCase()) {
case GET: {
patternCase_ = 1;
pattern_ = other.pattern_;
onChanged();
break;
}
case PUT: {
patternCase_ = 2;
pattern_ = other.pattern_;
onChanged();
break;
}
case POST: {
patternCase_ = 3;
pattern_ = other.pattern_;
onChanged();
break;
}
case DELETE: {
patternCase_ = 4;
pattern_ = other.pattern_;
onChanged();
break;
}
case PATCH: {
patternCase_ = 5;
pattern_ = other.pattern_;
onChanged();
break;
}
case PATTERN_NOT_SET: {
break;
}
}
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.api.HttpRoute parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.api.HttpRoute) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int patternCase_ = 0;
private java.lang.Object pattern_;
public PatternCase
getPatternCase() {
return PatternCase.forNumber(
patternCase_);
}
public Builder clearPattern() {
patternCase_ = 0;
pattern_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* optional string get = 1;
*/
public boolean hasGet() {
return patternCase_ == 1;
}
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* optional string get = 1;
*/
public java.lang.String getGet() {
java.lang.Object ref = "";
if (patternCase_ == 1) {
ref = pattern_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (patternCase_ == 1) {
if (bs.isValidUtf8()) {
pattern_ = s;
}
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* optional string get = 1;
*/
public com.google.protobuf.ByteString
getGetBytes() {
java.lang.Object ref = "";
if (patternCase_ == 1) {
ref = pattern_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (patternCase_ == 1) {
pattern_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* optional string get = 1;
*/
public Builder setGet(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
patternCase_ = 1;
pattern_ = value;
onChanged();
return this;
}
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* optional string get = 1;
*/
public Builder clearGet() {
if (patternCase_ == 1) {
patternCase_ = 0;
pattern_ = null;
onChanged();
}
return this;
}
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* optional string get = 1;
*/
public Builder setGetBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
patternCase_ = 1;
pattern_ = value;
onChanged();
return this;
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* optional string put = 2;
*/
public boolean hasPut() {
return patternCase_ == 2;
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* optional string put = 2;
*/
public java.lang.String getPut() {
java.lang.Object ref = "";
if (patternCase_ == 2) {
ref = pattern_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (patternCase_ == 2) {
if (bs.isValidUtf8()) {
pattern_ = s;
}
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* optional string put = 2;
*/
public com.google.protobuf.ByteString
getPutBytes() {
java.lang.Object ref = "";
if (patternCase_ == 2) {
ref = pattern_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (patternCase_ == 2) {
pattern_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* optional string put = 2;
*/
public Builder setPut(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
patternCase_ = 2;
pattern_ = value;
onChanged();
return this;
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* optional string put = 2;
*/
public Builder clearPut() {
if (patternCase_ == 2) {
patternCase_ = 0;
pattern_ = null;
onChanged();
}
return this;
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* optional string put = 2;
*/
public Builder setPutBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
patternCase_ = 2;
pattern_ = value;
onChanged();
return this;
}
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* optional string post = 3;
*/
public boolean hasPost() {
return patternCase_ == 3;
}
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* optional string post = 3;
*/
public java.lang.String getPost() {
java.lang.Object ref = "";
if (patternCase_ == 3) {
ref = pattern_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (patternCase_ == 3) {
if (bs.isValidUtf8()) {
pattern_ = s;
}
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* optional string post = 3;
*/
public com.google.protobuf.ByteString
getPostBytes() {
java.lang.Object ref = "";
if (patternCase_ == 3) {
ref = pattern_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (patternCase_ == 3) {
pattern_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* optional string post = 3;
*/
public Builder setPost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
patternCase_ = 3;
pattern_ = value;
onChanged();
return this;
}
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* optional string post = 3;
*/
public Builder clearPost() {
if (patternCase_ == 3) {
patternCase_ = 0;
pattern_ = null;
onChanged();
}
return this;
}
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* optional string post = 3;
*/
public Builder setPostBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
patternCase_ = 3;
pattern_ = value;
onChanged();
return this;
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* optional string delete = 4;
*/
public boolean hasDelete() {
return patternCase_ == 4;
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* optional string delete = 4;
*/
public java.lang.String getDelete() {
java.lang.Object ref = "";
if (patternCase_ == 4) {
ref = pattern_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (patternCase_ == 4) {
if (bs.isValidUtf8()) {
pattern_ = s;
}
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* optional string delete = 4;
*/
public com.google.protobuf.ByteString
getDeleteBytes() {
java.lang.Object ref = "";
if (patternCase_ == 4) {
ref = pattern_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (patternCase_ == 4) {
pattern_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* optional string delete = 4;
*/
public Builder setDelete(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
patternCase_ = 4;
pattern_ = value;
onChanged();
return this;
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* optional string delete = 4;
*/
public Builder clearDelete() {
if (patternCase_ == 4) {
patternCase_ = 0;
pattern_ = null;
onChanged();
}
return this;
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* optional string delete = 4;
*/
public Builder setDeleteBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
patternCase_ = 4;
pattern_ = value;
onChanged();
return this;
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* optional string patch = 5;
*/
public boolean hasPatch() {
return patternCase_ == 5;
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* optional string patch = 5;
*/
public java.lang.String getPatch() {
java.lang.Object ref = "";
if (patternCase_ == 5) {
ref = pattern_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (patternCase_ == 5) {
if (bs.isValidUtf8()) {
pattern_ = s;
}
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* optional string patch = 5;
*/
public com.google.protobuf.ByteString
getPatchBytes() {
java.lang.Object ref = "";
if (patternCase_ == 5) {
ref = pattern_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (patternCase_ == 5) {
pattern_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* optional string patch = 5;
*/
public Builder setPatch(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
patternCase_ = 5;
pattern_ = value;
onChanged();
return this;
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* optional string patch = 5;
*/
public Builder clearPatch() {
if (patternCase_ == 5) {
patternCase_ = 0;
pattern_ = null;
onChanged();
}
return this;
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* optional string patch = 5;
*/
public Builder setPatchBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
patternCase_ = 5;
pattern_ = value;
onChanged();
return this;
}
private boolean deprecated_ ;
/**
* optional bool deprecated = 6;
*/
public boolean hasDeprecated() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool deprecated = 6;
*/
public boolean getDeprecated() {
return deprecated_;
}
/**
* optional bool deprecated = 6;
*/
public Builder setDeprecated(boolean value) {
bitField0_ |= 0x00000020;
deprecated_ = value;
onChanged();
return this;
}
/**
* optional bool deprecated = 6;
*/
public Builder clearDeprecated() {
bitField0_ = (bitField0_ & ~0x00000020);
deprecated_ = false;
onChanged();
return this;
}
private java.lang.Object body_ = "";
/**
*
* Name of the field in the request message that maps to the request body
* The special value "*" indicates that the request message as a whole
* represents the body (excepting route params).
*
*
* optional string body = 7;
*/
public boolean hasBody() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Name of the field in the request message that maps to the request body
* The special value "*" indicates that the request message as a whole
* represents the body (excepting route params).
*
*
* optional string body = 7;
*/
public java.lang.String getBody() {
java.lang.Object ref = body_;
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()) {
body_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the field in the request message that maps to the request body
* The special value "*" indicates that the request message as a whole
* represents the body (excepting route params).
*
*
* optional string body = 7;
*/
public com.google.protobuf.ByteString
getBodyBytes() {
java.lang.Object ref = body_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
body_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the field in the request message that maps to the request body
* The special value "*" indicates that the request message as a whole
* represents the body (excepting route params).
*
*
* optional string body = 7;
*/
public Builder setBody(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
body_ = value;
onChanged();
return this;
}
/**
*
* Name of the field in the request message that maps to the request body
* The special value "*" indicates that the request message as a whole
* represents the body (excepting route params).
*
*
* optional string body = 7;
*/
public Builder clearBody() {
bitField0_ = (bitField0_ & ~0x00000040);
body_ = getDefaultInstance().getBody();
onChanged();
return this;
}
/**
*
* Name of the field in the request message that maps to the request body
* The special value "*" indicates that the request message as a whole
* represents the body (excepting route params).
*
*
* optional string body = 7;
*/
public Builder setBodyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
body_ = value;
onChanged();
return this;
}
private int maxBodySize_ ;
/**
* optional int32 maxBodySize = 8;
*/
public boolean hasMaxBodySize() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 maxBodySize = 8;
*/
public int getMaxBodySize() {
return maxBodySize_;
}
/**
* optional int32 maxBodySize = 8;
*/
public Builder setMaxBodySize(int value) {
bitField0_ |= 0x00000080;
maxBodySize_ = value;
onChanged();
return this;
}
/**
* optional int32 maxBodySize = 8;
*/
public Builder clearMaxBodySize() {
bitField0_ = (bitField0_ & ~0x00000080);
maxBodySize_ = 0;
onChanged();
return this;
}
private boolean offThread_ ;
/**
*
* Set true if the execution of the route is expected to take a long time
* (more than 0.5 seconds). It will be offloaded to a worker thread.
* Leave false if the route uses its own threading mechanism (most of the
* routes should do that).
*
*
* optional bool offThread = 9;
*/
public boolean hasOffThread() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Set true if the execution of the route is expected to take a long time
* (more than 0.5 seconds). It will be offloaded to a worker thread.
* Leave false if the route uses its own threading mechanism (most of the
* routes should do that).
*
*
* optional bool offThread = 9;
*/
public boolean getOffThread() {
return offThread_;
}
/**
*
* Set true if the execution of the route is expected to take a long time
* (more than 0.5 seconds). It will be offloaded to a worker thread.
* Leave false if the route uses its own threading mechanism (most of the
* routes should do that).
*
*
* optional bool offThread = 9;
*/
public Builder setOffThread(boolean value) {
bitField0_ |= 0x00000100;
offThread_ = value;
onChanged();
return this;
}
/**
*
* Set true if the execution of the route is expected to take a long time
* (more than 0.5 seconds). It will be offloaded to a worker thread.
* Leave false if the route uses its own threading mechanism (most of the
* routes should do that).
*
*
* optional bool offThread = 9;
*/
public Builder clearOffThread() {
bitField0_ = (bitField0_ & ~0x00000100);
offThread_ = false;
onChanged();
return this;
}
private boolean dataLoad_ ;
/**
*
* Data load routes expect to receive a large body piece by piece in
* HttpContent objects.
*
* If false or unset, a small default is used, sufficient for standard use.
*
*
* optional bool dataLoad = 10;
*/
public boolean hasDataLoad() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Data load routes expect to receive a large body piece by piece in
* HttpContent objects.
*
* If false or unset, a small default is used, sufficient for standard use.
*
*
* optional bool dataLoad = 10;
*/
public boolean getDataLoad() {
return dataLoad_;
}
/**
*
* Data load routes expect to receive a large body piece by piece in
* HttpContent objects.
*
* If false or unset, a small default is used, sufficient for standard use.
*
*
* optional bool dataLoad = 10;
*/
public Builder setDataLoad(boolean value) {
bitField0_ |= 0x00000200;
dataLoad_ = value;
onChanged();
return this;
}
/**
*
* Data load routes expect to receive a large body piece by piece in
* HttpContent objects.
*
* If false or unset, a small default is used, sufficient for standard use.
*
*
* optional bool dataLoad = 10;
*/
public Builder clearDataLoad() {
bitField0_ = (bitField0_ & ~0x00000200);
dataLoad_ = false;
onChanged();
return this;
}
private java.util.List additionalBindings_ =
java.util.Collections.emptyList();
private void ensureAdditionalBindingsIsMutable() {
if (!((bitField0_ & 0x00000400) != 0)) {
additionalBindings_ = new java.util.ArrayList(additionalBindings_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.api.HttpRoute, org.yamcs.api.HttpRoute.Builder, org.yamcs.api.HttpRouteOrBuilder> additionalBindingsBuilder_;
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public java.util.List getAdditionalBindingsList() {
if (additionalBindingsBuilder_ == null) {
return java.util.Collections.unmodifiableList(additionalBindings_);
} else {
return additionalBindingsBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public int getAdditionalBindingsCount() {
if (additionalBindingsBuilder_ == null) {
return additionalBindings_.size();
} else {
return additionalBindingsBuilder_.getCount();
}
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public org.yamcs.api.HttpRoute getAdditionalBindings(int index) {
if (additionalBindingsBuilder_ == null) {
return additionalBindings_.get(index);
} else {
return additionalBindingsBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public Builder setAdditionalBindings(
int index, org.yamcs.api.HttpRoute value) {
if (additionalBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalBindingsIsMutable();
additionalBindings_.set(index, value);
onChanged();
} else {
additionalBindingsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public Builder setAdditionalBindings(
int index, org.yamcs.api.HttpRoute.Builder builderForValue) {
if (additionalBindingsBuilder_ == null) {
ensureAdditionalBindingsIsMutable();
additionalBindings_.set(index, builderForValue.build());
onChanged();
} else {
additionalBindingsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public Builder addAdditionalBindings(org.yamcs.api.HttpRoute value) {
if (additionalBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalBindingsIsMutable();
additionalBindings_.add(value);
onChanged();
} else {
additionalBindingsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public Builder addAdditionalBindings(
int index, org.yamcs.api.HttpRoute value) {
if (additionalBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalBindingsIsMutable();
additionalBindings_.add(index, value);
onChanged();
} else {
additionalBindingsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public Builder addAdditionalBindings(
org.yamcs.api.HttpRoute.Builder builderForValue) {
if (additionalBindingsBuilder_ == null) {
ensureAdditionalBindingsIsMutable();
additionalBindings_.add(builderForValue.build());
onChanged();
} else {
additionalBindingsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public Builder addAdditionalBindings(
int index, org.yamcs.api.HttpRoute.Builder builderForValue) {
if (additionalBindingsBuilder_ == null) {
ensureAdditionalBindingsIsMutable();
additionalBindings_.add(index, builderForValue.build());
onChanged();
} else {
additionalBindingsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public Builder addAllAdditionalBindings(
java.lang.Iterable extends org.yamcs.api.HttpRoute> values) {
if (additionalBindingsBuilder_ == null) {
ensureAdditionalBindingsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additionalBindings_);
onChanged();
} else {
additionalBindingsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public Builder clearAdditionalBindings() {
if (additionalBindingsBuilder_ == null) {
additionalBindings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
additionalBindingsBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public Builder removeAdditionalBindings(int index) {
if (additionalBindingsBuilder_ == null) {
ensureAdditionalBindingsIsMutable();
additionalBindings_.remove(index);
onChanged();
} else {
additionalBindingsBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public org.yamcs.api.HttpRoute.Builder getAdditionalBindingsBuilder(
int index) {
return getAdditionalBindingsFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public org.yamcs.api.HttpRouteOrBuilder getAdditionalBindingsOrBuilder(
int index) {
if (additionalBindingsBuilder_ == null) {
return additionalBindings_.get(index); } else {
return additionalBindingsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public java.util.List extends org.yamcs.api.HttpRouteOrBuilder>
getAdditionalBindingsOrBuilderList() {
if (additionalBindingsBuilder_ != null) {
return additionalBindingsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(additionalBindings_);
}
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public org.yamcs.api.HttpRoute.Builder addAdditionalBindingsBuilder() {
return getAdditionalBindingsFieldBuilder().addBuilder(
org.yamcs.api.HttpRoute.getDefaultInstance());
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public org.yamcs.api.HttpRoute.Builder addAdditionalBindingsBuilder(
int index) {
return getAdditionalBindingsFieldBuilder().addBuilder(
index, org.yamcs.api.HttpRoute.getDefaultInstance());
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
public java.util.List
getAdditionalBindingsBuilderList() {
return getAdditionalBindingsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.api.HttpRoute, org.yamcs.api.HttpRoute.Builder, org.yamcs.api.HttpRouteOrBuilder>
getAdditionalBindingsFieldBuilder() {
if (additionalBindingsBuilder_ == null) {
additionalBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.api.HttpRoute, org.yamcs.api.HttpRoute.Builder, org.yamcs.api.HttpRouteOrBuilder>(
additionalBindings_,
((bitField0_ & 0x00000400) != 0),
getParentForChildren(),
isClean());
additionalBindings_ = null;
}
return additionalBindingsBuilder_;
}
@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.api.HttpRoute)
}
// @@protoc_insertion_point(class_scope:yamcs.api.HttpRoute)
private static final org.yamcs.api.HttpRoute DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.api.HttpRoute();
}
public static org.yamcs.api.HttpRoute getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HttpRoute parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HttpRoute(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.api.HttpRoute getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}