
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_ = "";
fieldMaskRoot_ = "";
additionalBindings_ = java.util.Collections.emptyList();
log_ = "";
label_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HttpRoute();
}
@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;
offloaded_ = input.readBool();
break;
}
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
fieldMaskRoot_ = bs;
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;
}
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
log_ = bs;
break;
}
case 106: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000800;
label_ = 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 {
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,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
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;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @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.
*
*
* string get = 1;
* @return Whether the get field is set.
*/
public boolean hasGet() {
return patternCase_ == 1;
}
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* string get = 1;
* @return The get.
*/
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.
*
*
* string get = 1;
* @return The bytes for get.
*/
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.
*
*
* string put = 2;
* @return Whether the put field is set.
*/
public boolean hasPut() {
return patternCase_ == 2;
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* string put = 2;
* @return The put.
*/
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.
*
*
* string put = 2;
* @return The bytes for put.
*/
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.
*
*
* string post = 3;
* @return Whether the post field is set.
*/
public boolean hasPost() {
return patternCase_ == 3;
}
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* string post = 3;
* @return The post.
*/
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.
*
*
* string post = 3;
* @return The bytes for post.
*/
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.
*
*
* string delete = 4;
* @return Whether the delete field is set.
*/
public boolean hasDelete() {
return patternCase_ == 4;
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* string delete = 4;
* @return The delete.
*/
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.
*
*
* string delete = 4;
* @return The bytes for delete.
*/
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.
*
*
* string patch = 5;
* @return Whether the patch field is set.
*/
public boolean hasPatch() {
return patternCase_ == 5;
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* string patch = 5;
* @return The patch.
*/
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.
*
*
* string patch = 5;
* @return The bytes for patch.
*/
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;
* @return Whether the deprecated field is set.
*/
@java.lang.Override
public boolean hasDeprecated() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool deprecated = 6;
* @return The deprecated.
*/
@java.lang.Override
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;
* @return Whether the body field is set.
*/
@java.lang.Override
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;
* @return The body.
*/
@java.lang.Override
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;
* @return The bytes for body.
*/
@java.lang.Override
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 MAX_BODY_SIZE_FIELD_NUMBER = 8;
private int maxBodySize_;
/**
* optional int32 max_body_size = 8;
* @return Whether the maxBodySize field is set.
*/
@java.lang.Override
public boolean hasMaxBodySize() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 max_body_size = 8;
* @return The maxBodySize.
*/
@java.lang.Override
public int getMaxBodySize() {
return maxBodySize_;
}
public static final int OFFLOADED_FIELD_NUMBER = 9;
private boolean offloaded_;
/**
*
* 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 offloaded = 9;
* @return Whether the offloaded field is set.
*/
@java.lang.Override
public boolean hasOffloaded() {
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 offloaded = 9;
* @return The offloaded.
*/
@java.lang.Override
public boolean getOffloaded() {
return offloaded_;
}
public static final int FIELD_MASK_ROOT_FIELD_NUMBER = 10;
private volatile java.lang.Object fieldMaskRoot_;
/**
*
* Name of the field in the response message where a user-specified field
* mask is applied to. If this indicates a repeated field, the field mask
* is applied to each of those messages.
* If unspecified, Yamcs will try to derive this itself.
*
*
* optional string field_mask_root = 10;
* @return Whether the fieldMaskRoot field is set.
*/
@java.lang.Override
public boolean hasFieldMaskRoot() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Name of the field in the response message where a user-specified field
* mask is applied to. If this indicates a repeated field, the field mask
* is applied to each of those messages.
* If unspecified, Yamcs will try to derive this itself.
*
*
* optional string field_mask_root = 10;
* @return The fieldMaskRoot.
*/
@java.lang.Override
public java.lang.String getFieldMaskRoot() {
java.lang.Object ref = fieldMaskRoot_;
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()) {
fieldMaskRoot_ = s;
}
return s;
}
}
/**
*
* Name of the field in the response message where a user-specified field
* mask is applied to. If this indicates a repeated field, the field mask
* is applied to each of those messages.
* If unspecified, Yamcs will try to derive this itself.
*
*
* optional string field_mask_root = 10;
* @return The bytes for fieldMaskRoot.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFieldMaskRootBytes() {
java.lang.Object ref = fieldMaskRoot_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldMaskRoot_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDITIONAL_BINDINGS_FIELD_NUMBER = 11;
private java.util.List additionalBindings_;
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
@java.lang.Override
public java.util.List getAdditionalBindingsList() {
return additionalBindings_;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
@java.lang.Override
public java.util.List extends org.yamcs.api.HttpRouteOrBuilder>
getAdditionalBindingsOrBuilderList() {
return additionalBindings_;
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
@java.lang.Override
public int getAdditionalBindingsCount() {
return additionalBindings_.size();
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
@java.lang.Override
public org.yamcs.api.HttpRoute getAdditionalBindings(int index) {
return additionalBindings_.get(index);
}
/**
* repeated .yamcs.api.HttpRoute additional_bindings = 11;
*/
@java.lang.Override
public org.yamcs.api.HttpRouteOrBuilder getAdditionalBindingsOrBuilder(
int index) {
return additionalBindings_.get(index);
}
public static final int LOG_FIELD_NUMBER = 12;
private volatile java.lang.Object log_;
/**
*
* Human-friendly log message format.
*
*
* optional string log = 12;
* @return Whether the log field is set.
*/
@java.lang.Override
public boolean hasLog() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Human-friendly log message format.
*
*
* optional string log = 12;
* @return The log.
*/
@java.lang.Override
public java.lang.String getLog() {
java.lang.Object ref = log_;
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()) {
log_ = s;
}
return s;
}
}
/**
*
* Human-friendly log message format.
*
*
* optional string log = 12;
* @return The bytes for log.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogBytes() {
java.lang.Object ref = log_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
log_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABEL_FIELD_NUMBER = 13;
private volatile java.lang.Object label_;
/**
*
* Optional method label. This is a hint to programs that process
* proto definitions (example: document generation), intended for
* when the camel-case method name does not give a good result.
*
*
* optional string label = 13;
* @return Whether the label field is set.
*/
@java.lang.Override
public boolean hasLabel() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Optional method label. This is a hint to programs that process
* proto definitions (example: document generation), intended for
* when the camel-case method name does not give a good result.
*
*
* optional string label = 13;
* @return The label.
*/
@java.lang.Override
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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()) {
label_ = s;
}
return s;
}
}
/**
*
* Optional method label. This is a hint to programs that process
* proto definitions (example: document generation), intended for
* when the camel-case method name does not give a good result.
*
*
* optional string label = 13;
* @return The bytes for label.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = 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 (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, offloaded_);
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, fieldMaskRoot_);
}
for (int i = 0; i < additionalBindings_.size(); i++) {
output.writeMessage(11, additionalBindings_.get(i));
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, log_);
}
if (((bitField0_ & 0x00000800) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, label_);
}
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, offloaded_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, fieldMaskRoot_);
}
for (int i = 0; i < additionalBindings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, additionalBindings_.get(i));
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, log_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, label_);
}
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 (hasOffloaded() != other.hasOffloaded()) return false;
if (hasOffloaded()) {
if (getOffloaded()
!= other.getOffloaded()) return false;
}
if (hasFieldMaskRoot() != other.hasFieldMaskRoot()) return false;
if (hasFieldMaskRoot()) {
if (!getFieldMaskRoot()
.equals(other.getFieldMaskRoot())) return false;
}
if (!getAdditionalBindingsList()
.equals(other.getAdditionalBindingsList())) return false;
if (hasLog() != other.hasLog()) return false;
if (hasLog()) {
if (!getLog()
.equals(other.getLog())) return false;
}
if (hasLabel() != other.hasLabel()) return false;
if (hasLabel()) {
if (!getLabel()
.equals(other.getLabel())) 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) + MAX_BODY_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getMaxBodySize();
}
if (hasOffloaded()) {
hash = (37 * hash) + OFFLOADED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOffloaded());
}
if (hasFieldMaskRoot()) {
hash = (37 * hash) + FIELD_MASK_ROOT_FIELD_NUMBER;
hash = (53 * hash) + getFieldMaskRoot().hashCode();
}
if (getAdditionalBindingsCount() > 0) {
hash = (37 * hash) + ADDITIONAL_BINDINGS_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalBindingsList().hashCode();
}
if (hasLog()) {
hash = (37 * hash) + LOG_FIELD_NUMBER;
hash = (53 * hash) + getLog().hashCode();
}
if (hasLabel()) {
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().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);
offloaded_ = false;
bitField0_ = (bitField0_ & ~0x00000100);
fieldMaskRoot_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
if (additionalBindingsBuilder_ == null) {
additionalBindings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
} else {
additionalBindingsBuilder_.clear();
}
log_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
label_ = "";
bitField0_ = (bitField0_ & ~0x00001000);
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.offloaded_ = offloaded_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.fieldMaskRoot_ = fieldMaskRoot_;
if (additionalBindingsBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0)) {
additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.additionalBindings_ = additionalBindings_;
} else {
result.additionalBindings_ = additionalBindingsBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) != 0)) {
to_bitField0_ |= 0x00000400;
}
result.log_ = log_;
if (((from_bitField0_ & 0x00001000) != 0)) {
to_bitField0_ |= 0x00000800;
}
result.label_ = label_;
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.hasOffloaded()) {
setOffloaded(other.getOffloaded());
}
if (other.hasFieldMaskRoot()) {
bitField0_ |= 0x00000200;
fieldMaskRoot_ = other.fieldMaskRoot_;
onChanged();
}
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_);
}
}
}
if (other.hasLog()) {
bitField0_ |= 0x00000800;
log_ = other.log_;
onChanged();
}
if (other.hasLabel()) {
bitField0_ |= 0x00001000;
label_ = other.label_;
onChanged();
}
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.
*
*
* string get = 1;
* @return Whether the get field is set.
*/
@java.lang.Override
public boolean hasGet() {
return patternCase_ == 1;
}
/**
*
* Maps to HTTP GET. Used for listing and getting information about
* resources.
*
*
* string get = 1;
* @return The get.
*/
@java.lang.Override
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.
*
*
* string get = 1;
* @return The bytes for get.
*/
@java.lang.Override
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.
*
*
* string get = 1;
* @param value The get to set.
* @return This builder for chaining.
*/
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.
*
*
* string get = 1;
* @return This builder for chaining.
*/
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.
*
*
* string get = 1;
* @param value The bytes for get to set.
* @return This builder for chaining.
*/
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.
*
*
* string put = 2;
* @return Whether the put field is set.
*/
@java.lang.Override
public boolean hasPut() {
return patternCase_ == 2;
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* string put = 2;
* @return The put.
*/
@java.lang.Override
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.
*
*
* string put = 2;
* @return The bytes for put.
*/
@java.lang.Override
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.
*
*
* string put = 2;
* @param value The put to set.
* @return This builder for chaining.
*/
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.
*
*
* string put = 2;
* @return This builder for chaining.
*/
public Builder clearPut() {
if (patternCase_ == 2) {
patternCase_ = 0;
pattern_ = null;
onChanged();
}
return this;
}
/**
*
* Maps to HTTP PUT. Used for replacing a resource.
*
*
* string put = 2;
* @param value The bytes for put to set.
* @return This builder for chaining.
*/
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.
*
*
* string post = 3;
* @return Whether the post field is set.
*/
@java.lang.Override
public boolean hasPost() {
return patternCase_ == 3;
}
/**
*
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
*
* string post = 3;
* @return The post.
*/
@java.lang.Override
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.
*
*
* string post = 3;
* @return The bytes for post.
*/
@java.lang.Override
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.
*
*
* string post = 3;
* @param value The post to set.
* @return This builder for chaining.
*/
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.
*
*
* string post = 3;
* @return This builder for chaining.
*/
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.
*
*
* string post = 3;
* @param value The bytes for post to set.
* @return This builder for chaining.
*/
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.
*
*
* string delete = 4;
* @return Whether the delete field is set.
*/
@java.lang.Override
public boolean hasDelete() {
return patternCase_ == 4;
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* string delete = 4;
* @return The delete.
*/
@java.lang.Override
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.
*
*
* string delete = 4;
* @return The bytes for delete.
*/
@java.lang.Override
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.
*
*
* string delete = 4;
* @param value The delete to set.
* @return This builder for chaining.
*/
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.
*
*
* string delete = 4;
* @return This builder for chaining.
*/
public Builder clearDelete() {
if (patternCase_ == 4) {
patternCase_ = 0;
pattern_ = null;
onChanged();
}
return this;
}
/**
*
* Maps to HTTP DELETE. Used for deleting a resource.
*
*
* string delete = 4;
* @param value The bytes for delete to set.
* @return This builder for chaining.
*/
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.
*
*
* string patch = 5;
* @return Whether the patch field is set.
*/
@java.lang.Override
public boolean hasPatch() {
return patternCase_ == 5;
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* string patch = 5;
* @return The patch.
*/
@java.lang.Override
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.
*
*
* string patch = 5;
* @return The bytes for patch.
*/
@java.lang.Override
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.
*
*
* string patch = 5;
* @param value The patch to set.
* @return This builder for chaining.
*/
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.
*
*
* string patch = 5;
* @return This builder for chaining.
*/
public Builder clearPatch() {
if (patternCase_ == 5) {
patternCase_ = 0;
pattern_ = null;
onChanged();
}
return this;
}
/**
*
* Maps to HTTP PATCH. Used for updating a resource.
*
*
* string patch = 5;
* @param value The bytes for patch to set.
* @return This builder for chaining.
*/
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;
* @return Whether the deprecated field is set.
*/
@java.lang.Override
public boolean hasDeprecated() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool deprecated = 6;
* @return The deprecated.
*/
@java.lang.Override
public boolean getDeprecated() {
return deprecated_;
}
/**
* optional bool deprecated = 6;
* @param value The deprecated to set.
* @return This builder for chaining.
*/
public Builder setDeprecated(boolean value) {
bitField0_ |= 0x00000020;
deprecated_ = value;
onChanged();
return this;
}
/**
* optional bool deprecated = 6;
* @return This builder for chaining.
*/
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;
* @return Whether the body field is set.
*/
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;
* @return The body.
*/
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;
* @return The bytes for body.
*/
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;
* @param value The body to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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;
* @param value The bytes for body to set.
* @return This builder for chaining.
*/
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 max_body_size = 8;
* @return Whether the maxBodySize field is set.
*/
@java.lang.Override
public boolean hasMaxBodySize() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 max_body_size = 8;
* @return The maxBodySize.
*/
@java.lang.Override
public int getMaxBodySize() {
return maxBodySize_;
}
/**
* optional int32 max_body_size = 8;
* @param value The maxBodySize to set.
* @return This builder for chaining.
*/
public Builder setMaxBodySize(int value) {
bitField0_ |= 0x00000080;
maxBodySize_ = value;
onChanged();
return this;
}
/**
* optional int32 max_body_size = 8;
* @return This builder for chaining.
*/
public Builder clearMaxBodySize() {
bitField0_ = (bitField0_ & ~0x00000080);
maxBodySize_ = 0;
onChanged();
return this;
}
private boolean offloaded_ ;
/**
*
* 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 offloaded = 9;
* @return Whether the offloaded field is set.
*/
@java.lang.Override
public boolean hasOffloaded() {
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 offloaded = 9;
* @return The offloaded.
*/
@java.lang.Override
public boolean getOffloaded() {
return offloaded_;
}
/**
*
* 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 offloaded = 9;
* @param value The offloaded to set.
* @return This builder for chaining.
*/
public Builder setOffloaded(boolean value) {
bitField0_ |= 0x00000100;
offloaded_ = 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 offloaded = 9;
* @return This builder for chaining.
*/
public Builder clearOffloaded() {
bitField0_ = (bitField0_ & ~0x00000100);
offloaded_ = false;
onChanged();
return this;
}
private java.lang.Object fieldMaskRoot_ = "";
/**
*
* Name of the field in the response message where a user-specified field
* mask is applied to. If this indicates a repeated field, the field mask
* is applied to each of those messages.
* If unspecified, Yamcs will try to derive this itself.
*
*
* optional string field_mask_root = 10;
* @return Whether the fieldMaskRoot field is set.
*/
public boolean hasFieldMaskRoot() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Name of the field in the response message where a user-specified field
* mask is applied to. If this indicates a repeated field, the field mask
* is applied to each of those messages.
* If unspecified, Yamcs will try to derive this itself.
*
*
* optional string field_mask_root = 10;
* @return The fieldMaskRoot.
*/
public java.lang.String getFieldMaskRoot() {
java.lang.Object ref = fieldMaskRoot_;
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()) {
fieldMaskRoot_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the field in the response message where a user-specified field
* mask is applied to. If this indicates a repeated field, the field mask
* is applied to each of those messages.
* If unspecified, Yamcs will try to derive this itself.
*
*
* optional string field_mask_root = 10;
* @return The bytes for fieldMaskRoot.
*/
public com.google.protobuf.ByteString
getFieldMaskRootBytes() {
java.lang.Object ref = fieldMaskRoot_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldMaskRoot_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the field in the response message where a user-specified field
* mask is applied to. If this indicates a repeated field, the field mask
* is applied to each of those messages.
* If unspecified, Yamcs will try to derive this itself.
*
*
* optional string field_mask_root = 10;
* @param value The fieldMaskRoot to set.
* @return This builder for chaining.
*/
public Builder setFieldMaskRoot(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
fieldMaskRoot_ = value;
onChanged();
return this;
}
/**
*
* Name of the field in the response message where a user-specified field
* mask is applied to. If this indicates a repeated field, the field mask
* is applied to each of those messages.
* If unspecified, Yamcs will try to derive this itself.
*
*
* optional string field_mask_root = 10;
* @return This builder for chaining.
*/
public Builder clearFieldMaskRoot() {
bitField0_ = (bitField0_ & ~0x00000200);
fieldMaskRoot_ = getDefaultInstance().getFieldMaskRoot();
onChanged();
return this;
}
/**
*
* Name of the field in the response message where a user-specified field
* mask is applied to. If this indicates a repeated field, the field mask
* is applied to each of those messages.
* If unspecified, Yamcs will try to derive this itself.
*
*
* optional string field_mask_root = 10;
* @param value The bytes for fieldMaskRoot to set.
* @return This builder for chaining.
*/
public Builder setFieldMaskRootBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
fieldMaskRoot_ = value;
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_;
}
private java.lang.Object log_ = "";
/**
*
* Human-friendly log message format.
*
*
* optional string log = 12;
* @return Whether the log field is set.
*/
public boolean hasLog() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Human-friendly log message format.
*
*
* optional string log = 12;
* @return The log.
*/
public java.lang.String getLog() {
java.lang.Object ref = log_;
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()) {
log_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Human-friendly log message format.
*
*
* optional string log = 12;
* @return The bytes for log.
*/
public com.google.protobuf.ByteString
getLogBytes() {
java.lang.Object ref = log_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
log_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Human-friendly log message format.
*
*
* optional string log = 12;
* @param value The log to set.
* @return This builder for chaining.
*/
public Builder setLog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
log_ = value;
onChanged();
return this;
}
/**
*
* Human-friendly log message format.
*
*
* optional string log = 12;
* @return This builder for chaining.
*/
public Builder clearLog() {
bitField0_ = (bitField0_ & ~0x00000800);
log_ = getDefaultInstance().getLog();
onChanged();
return this;
}
/**
*
* Human-friendly log message format.
*
*
* optional string log = 12;
* @param value The bytes for log to set.
* @return This builder for chaining.
*/
public Builder setLogBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
log_ = value;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
*
* Optional method label. This is a hint to programs that process
* proto definitions (example: document generation), intended for
* when the camel-case method name does not give a good result.
*
*
* optional string label = 13;
* @return Whether the label field is set.
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* Optional method label. This is a hint to programs that process
* proto definitions (example: document generation), intended for
* when the camel-case method name does not give a good result.
*
*
* optional string label = 13;
* @return The label.
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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()) {
label_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional method label. This is a hint to programs that process
* proto definitions (example: document generation), intended for
* when the camel-case method name does not give a good result.
*
*
* optional string label = 13;
* @return The bytes for label.
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional method label. This is a hint to programs that process
* proto definitions (example: document generation), intended for
* when the camel-case method name does not give a good result.
*
*
* optional string label = 13;
* @param value The label to set.
* @return This builder for chaining.
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
label_ = value;
onChanged();
return this;
}
/**
*
* Optional method label. This is a hint to programs that process
* proto definitions (example: document generation), intended for
* when the camel-case method name does not give a good result.
*
*
* optional string label = 13;
* @return This builder for chaining.
*/
public Builder clearLabel() {
bitField0_ = (bitField0_ & ~0x00001000);
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
*
* Optional method label. This is a hint to programs that process
* proto definitions (example: document generation), intended for
* when the camel-case method name does not give a good result.
*
*
* optional string label = 13;
* @param value The bytes for label to set.
* @return This builder for chaining.
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
label_ = 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.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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy