// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: webapi.proto
package com.geeksville.dapi;
public final class Webapi {
private Webapi() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code com.geeksville.dapi.AccessCode}
*
* <pre>
**
*The privacy level for missions (can be changed later through the web user interface)
*This code does not affect _storage_ of the flight in the corpus for offline viewing. That can be set with the
*StopMissionMsg.keepFlight field.
* </pre>
*/
public enum AccessCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>DEFAULT = 0;</code>
*
* <pre>
* Use whatever privacy level the user selected as their default (stored in the user account on the server)
* </pre>
*/
DEFAULT(0, 0),
/**
* <code>PRIVATE = 10;</code>
*
* <pre>
* Only the user can see this mission
* </pre>
*/
PRIVATE(1, 10),
/**
* <code>SHARED = 20;</code>
*
* <pre>
* Only others with the URL for this mission can see it, mission will not be publically listed
* </pre>
*/
SHARED(2, 20),
/**
* <code>RESEARCHER = 30;</code>
*
* <pre>
* Academic researchers will have access to this flight
* </pre>
*/
RESEARCHER(3, 30),
/**
* <code>PUBLIC = 40;</code>
*
* <pre>
* Anyone can see this flight
* </pre>
*/
PUBLIC(4, 40),
;
/**
* <code>DEFAULT = 0;</code>
*
* <pre>
* Use whatever privacy level the user selected as their default (stored in the user account on the server)
* </pre>
*/
public static final int DEFAULT_VALUE = 0;
/**
* <code>PRIVATE = 10;</code>
*
* <pre>
* Only the user can see this mission
* </pre>
*/
public static final int PRIVATE_VALUE = 10;
/**
* <code>SHARED = 20;</code>
*
* <pre>
* Only others with the URL for this mission can see it, mission will not be publically listed
* </pre>
*/
public static final int SHARED_VALUE = 20;
/**
* <code>RESEARCHER = 30;</code>
*
* <pre>
* Academic researchers will have access to this flight
* </pre>
*/
public static final int RESEARCHER_VALUE = 30;
/**
* <code>PUBLIC = 40;</code>
*
* <pre>
* Anyone can see this flight
* </pre>
*/
public static final int PUBLIC_VALUE = 40;
public final int getNumber() { return value; }
public static AccessCode valueOf(int value) {
switch (value) {
case 0: return DEFAULT;
case 10: return PRIVATE;
case 20: return SHARED;
case 30: return RESEARCHER;
case 40: return PUBLIC;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<AccessCode>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<AccessCode>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<AccessCode>() {
public AccessCode findValueByNumber(int number) {
return AccessCode.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.geeksville.dapi.Webapi.getDescriptor().getEnumTypes().get(0);
}
private static final AccessCode[] VALUES = values();
public static AccessCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private AccessCode(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.geeksville.dapi.AccessCode)
}
/**
* Protobuf enum {@code com.geeksville.dapi.LoginRequestCode}
*/
public enum LoginRequestCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>LOGIN = 0;</code>
*
* <pre>
* Please log me in
* </pre>
*/
LOGIN(0, 0),
/**
* <code>CREATE = 1;</code>
*
* <pre>
* Please attempt to create a new user (and log me in)
* </pre>
*/
CREATE(1, 1),
/**
* <code>CHECK_USERNAME = 2;</code>
*
* <pre>
* Just check if the username is available (return OK or NAME_UNAVAILABLE)
* </pre>
*/
CHECK_USERNAME(2, 2),
;
/**
* <code>LOGIN = 0;</code>
*
* <pre>
* Please log me in
* </pre>
*/
public static final int LOGIN_VALUE = 0;
/**
* <code>CREATE = 1;</code>
*
* <pre>
* Please attempt to create a new user (and log me in)
* </pre>
*/
public static final int CREATE_VALUE = 1;
/**
* <code>CHECK_USERNAME = 2;</code>
*
* <pre>
* Just check if the username is available (return OK or NAME_UNAVAILABLE)
* </pre>
*/
public static final int CHECK_USERNAME_VALUE = 2;
public final int getNumber() { return value; }
public static LoginRequestCode valueOf(int value) {
switch (value) {
case 0: return LOGIN;
case 1: return CREATE;
case 2: return CHECK_USERNAME;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<LoginRequestCode>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<LoginRequestCode>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<LoginRequestCode>() {
public LoginRequestCode findValueByNumber(int number) {
return LoginRequestCode.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.geeksville.dapi.Webapi.getDescriptor().getEnumTypes().get(1);
}
private static final LoginRequestCode[] VALUES = values();
public static LoginRequestCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private LoginRequestCode(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.geeksville.dapi.LoginRequestCode)
}
public interface LoginMsgOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .com.geeksville.dapi.LoginRequestCode code = 1;
/**
* <code>required .com.geeksville.dapi.LoginRequestCode code = 1;</code>
*/
boolean hasCode();
/**
* <code>required .com.geeksville.dapi.LoginRequestCode code = 1;</code>
*/
com.geeksville.dapi.Webapi.LoginRequestCode getCode();
// required string username =