com.android.emulator.control.PhoneCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adam Show documentation
Show all versions of adam Show documentation
Android Debug Bridge helper
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: emulator_controller.proto
// Protobuf Java Version: 3.25.0
package com.android.emulator.control;
/**
* Protobuf type {@code android.emulation.control.PhoneCall}
*/
public final class PhoneCall extends
com.google.protobuf.GeneratedMessageLite<
PhoneCall, PhoneCall.Builder> implements
// @@protoc_insertion_point(message_implements:android.emulation.control.PhoneCall)
PhoneCallOrBuilder {
private PhoneCall() {
number_ = "";
}
/**
* Protobuf enum {@code android.emulation.control.PhoneCall.Operation}
*/
public enum Operation
implements com.google.protobuf.Internal.EnumLite {
/**
* InitCall = 0;
*/
InitCall(0),
/**
* AcceptCall = 1;
*/
AcceptCall(1),
/**
* RejectCallExplicit = 2;
*/
RejectCallExplicit(2),
/**
* RejectCallBusy = 3;
*/
RejectCallBusy(3),
/**
* DisconnectCall = 4;
*/
DisconnectCall(4),
/**
* PlaceCallOnHold = 5;
*/
PlaceCallOnHold(5),
/**
* TakeCallOffHold = 6;
*/
TakeCallOffHold(6),
UNRECOGNIZED(-1),
;
/**
* InitCall = 0;
*/
public static final int InitCall_VALUE = 0;
/**
* AcceptCall = 1;
*/
public static final int AcceptCall_VALUE = 1;
/**
* RejectCallExplicit = 2;
*/
public static final int RejectCallExplicit_VALUE = 2;
/**
* RejectCallBusy = 3;
*/
public static final int RejectCallBusy_VALUE = 3;
/**
* DisconnectCall = 4;
*/
public static final int DisconnectCall_VALUE = 4;
/**
* PlaceCallOnHold = 5;
*/
public static final int PlaceCallOnHold_VALUE = 5;
/**
* TakeCallOffHold = 6;
*/
public static final int TakeCallOffHold_VALUE = 6;
@java.lang.Override
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return 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 Operation valueOf(int value) {
return forNumber(value);
}
public static Operation forNumber(int value) {
switch (value) {
case 0: return InitCall;
case 1: return AcceptCall;
case 2: return RejectCallExplicit;
case 3: return RejectCallBusy;
case 4: return DisconnectCall;
case 5: return PlaceCallOnHold;
case 6: return TakeCallOffHold;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Operation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public Operation findValueByNumber(int number) {
return Operation.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return OperationVerifier.INSTANCE;
}
private static final class OperationVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new OperationVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return Operation.forNumber(number) != null;
}
};
private final int value;
private Operation(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:android.emulation.control.PhoneCall.Operation)
}
public static final int OPERATION_FIELD_NUMBER = 1;
private int operation_;
/**
* .android.emulation.control.PhoneCall.Operation operation = 1;
* @return The enum numeric value on the wire for operation.
*/
@java.lang.Override
public int getOperationValue() {
return operation_;
}
/**
* .android.emulation.control.PhoneCall.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.android.emulator.control.PhoneCall.Operation getOperation() {
com.android.emulator.control.PhoneCall.Operation result = com.android.emulator.control.PhoneCall.Operation.forNumber(operation_);
return result == null ? com.android.emulator.control.PhoneCall.Operation.UNRECOGNIZED : result;
}
/**
* .android.emulation.control.PhoneCall.Operation operation = 1;
* @param value The enum numeric value on the wire for operation to set.
*/
private void setOperationValue(int value) {
operation_ = value;
}
/**
* .android.emulation.control.PhoneCall.Operation operation = 1;
* @param value The operation to set.
*/
private void setOperation(com.android.emulator.control.PhoneCall.Operation value) {
operation_ = value.getNumber();
}
/**
* .android.emulation.control.PhoneCall.Operation operation = 1;
*/
private void clearOperation() {
operation_ = 0;
}
public static final int NUMBER_FIELD_NUMBER = 2;
private java.lang.String number_;
/**
* string number = 2;
* @return The number.
*/
@java.lang.Override
public java.lang.String getNumber() {
return number_;
}
/**
* string number = 2;
* @return The bytes for number.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNumberBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(number_);
}
/**
* string number = 2;
* @param value The number to set.
*/
private void setNumber(
java.lang.String value) {
java.lang.Class valueClass = value.getClass();
number_ = value;
}
/**
* string number = 2;
*/
private void clearNumber() {
number_ = getDefaultInstance().getNumber();
}
/**
* string number = 2;
* @param value The bytes for number to set.
*/
private void setNumberBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
number_ = value.toStringUtf8();
}
public static com.android.emulator.control.PhoneCall parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.android.emulator.control.PhoneCall parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.android.emulator.control.PhoneCall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.android.emulator.control.PhoneCall parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.android.emulator.control.PhoneCall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.android.emulator.control.PhoneCall parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.android.emulator.control.PhoneCall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.android.emulator.control.PhoneCall parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.android.emulator.control.PhoneCall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.android.emulator.control.PhoneCall parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.android.emulator.control.PhoneCall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.android.emulator.control.PhoneCall parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.android.emulator.control.PhoneCall prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code android.emulation.control.PhoneCall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.android.emulator.control.PhoneCall, Builder> implements
// @@protoc_insertion_point(builder_implements:android.emulation.control.PhoneCall)
com.android.emulator.control.PhoneCallOrBuilder {
// Construct using com.android.emulator.control.PhoneCall.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .android.emulation.control.PhoneCall.Operation operation = 1;
* @return The enum numeric value on the wire for operation.
*/
@java.lang.Override
public int getOperationValue() {
return instance.getOperationValue();
}
/**
* .android.emulation.control.PhoneCall.Operation operation = 1;
* @param value The operation to set.
* @return This builder for chaining.
*/
public Builder setOperationValue(int value) {
copyOnWrite();
instance.setOperationValue(value);
return this;
}
/**
* .android.emulation.control.PhoneCall.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.android.emulator.control.PhoneCall.Operation getOperation() {
return instance.getOperation();
}
/**
* .android.emulation.control.PhoneCall.Operation operation = 1;
* @param value The enum numeric value on the wire for operation to set.
* @return This builder for chaining.
*/
public Builder setOperation(com.android.emulator.control.PhoneCall.Operation value) {
copyOnWrite();
instance.setOperation(value);
return this;
}
/**
* .android.emulation.control.PhoneCall.Operation operation = 1;
* @return This builder for chaining.
*/
public Builder clearOperation() {
copyOnWrite();
instance.clearOperation();
return this;
}
/**
* string number = 2;
* @return The number.
*/
@java.lang.Override
public java.lang.String getNumber() {
return instance.getNumber();
}
/**
* string number = 2;
* @return The bytes for number.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNumberBytes() {
return instance.getNumberBytes();
}
/**
* string number = 2;
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(
java.lang.String value) {
copyOnWrite();
instance.setNumber(value);
return this;
}
/**
* string number = 2;
* @return This builder for chaining.
*/
public Builder clearNumber() {
copyOnWrite();
instance.clearNumber();
return this;
}
/**
* string number = 2;
* @param value The bytes for number to set.
* @return This builder for chaining.
*/
public Builder setNumberBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNumberBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:android.emulation.control.PhoneCall)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.android.emulator.control.PhoneCall();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"operation_",
"number_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\f\u0002\u0208" +
"";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.android.emulator.control.PhoneCall.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:android.emulation.control.PhoneCall)
private static final com.android.emulator.control.PhoneCall DEFAULT_INSTANCE;
static {
PhoneCall defaultInstance = new PhoneCall();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
PhoneCall.class, defaultInstance);
}
public static com.android.emulator.control.PhoneCall getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}