All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.android.emulator.control.PhoneResponse Maven / Gradle / Ivy

There is a newer version: 0.5.8
Show newest version
// 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.PhoneResponse}
 */
public  final class PhoneResponse extends
    com.google.protobuf.GeneratedMessageLite<
        PhoneResponse, PhoneResponse.Builder> implements
    // @@protoc_insertion_point(message_implements:android.emulation.control.PhoneResponse)
    PhoneResponseOrBuilder {
  private PhoneResponse() {
  }
  /**
   * Protobuf enum {@code android.emulation.control.PhoneResponse.Response}
   */
  public enum Response
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * OK = 0;
     */
    OK(0),
    /**
     * 
     * Enum out of range
     * 
* * BadOperation = 1; */ BadOperation(1), /** *
     * Mal-formed telephone number
     * 
* * BadNumber = 2; */ BadNumber(2), /** *
     * E.g., disconnect when no call is in progress
     * 
* * InvalidAction = 3; */ InvalidAction(3), /** *
     * Internal error
     * 
* * ActionFailed = 4; */ ActionFailed(4), /** *
     * Radio power off
     * 
* * RadioOff = 5; */ RadioOff(5), UNRECOGNIZED(-1), ; /** * OK = 0; */ public static final int OK_VALUE = 0; /** *
     * Enum out of range
     * 
* * BadOperation = 1; */ public static final int BadOperation_VALUE = 1; /** *
     * Mal-formed telephone number
     * 
* * BadNumber = 2; */ public static final int BadNumber_VALUE = 2; /** *
     * E.g., disconnect when no call is in progress
     * 
* * InvalidAction = 3; */ public static final int InvalidAction_VALUE = 3; /** *
     * Internal error
     * 
* * ActionFailed = 4; */ public static final int ActionFailed_VALUE = 4; /** *
     * Radio power off
     * 
* * RadioOff = 5; */ public static final int RadioOff_VALUE = 5; @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 Response valueOf(int value) { return forNumber(value); } public static Response forNumber(int value) { switch (value) { case 0: return OK; case 1: return BadOperation; case 2: return BadNumber; case 3: return InvalidAction; case 4: return ActionFailed; case 5: return RadioOff; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Response> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public Response findValueByNumber(int number) { return Response.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return ResponseVerifier.INSTANCE; } private static final class ResponseVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ResponseVerifier(); @java.lang.Override public boolean isInRange(int number) { return Response.forNumber(number) != null; } }; private final int value; private Response(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:android.emulation.control.PhoneResponse.Response) } public static final int RESPONSE_FIELD_NUMBER = 1; private int response_; /** * .android.emulation.control.PhoneResponse.Response response = 1; * @return The enum numeric value on the wire for response. */ @java.lang.Override public int getResponseValue() { return response_; } /** * .android.emulation.control.PhoneResponse.Response response = 1; * @return The response. */ @java.lang.Override public com.android.emulator.control.PhoneResponse.Response getResponse() { com.android.emulator.control.PhoneResponse.Response result = com.android.emulator.control.PhoneResponse.Response.forNumber(response_); return result == null ? com.android.emulator.control.PhoneResponse.Response.UNRECOGNIZED : result; } /** * .android.emulation.control.PhoneResponse.Response response = 1; * @param value The enum numeric value on the wire for response to set. */ private void setResponseValue(int value) { response_ = value; } /** * .android.emulation.control.PhoneResponse.Response response = 1; * @param value The response to set. */ private void setResponse(com.android.emulator.control.PhoneResponse.Response value) { response_ = value.getNumber(); } /** * .android.emulation.control.PhoneResponse.Response response = 1; */ private void clearResponse() { response_ = 0; } public static com.android.emulator.control.PhoneResponse 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.PhoneResponse 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.PhoneResponse 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.PhoneResponse 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.PhoneResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.PhoneResponse 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.PhoneResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.android.emulator.control.PhoneResponse 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.PhoneResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.android.emulator.control.PhoneResponse 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.PhoneResponse 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.PhoneResponse 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.PhoneResponse prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code android.emulation.control.PhoneResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.android.emulator.control.PhoneResponse, Builder> implements // @@protoc_insertion_point(builder_implements:android.emulation.control.PhoneResponse) com.android.emulator.control.PhoneResponseOrBuilder { // Construct using com.android.emulator.control.PhoneResponse.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .android.emulation.control.PhoneResponse.Response response = 1; * @return The enum numeric value on the wire for response. */ @java.lang.Override public int getResponseValue() { return instance.getResponseValue(); } /** * .android.emulation.control.PhoneResponse.Response response = 1; * @param value The response to set. * @return This builder for chaining. */ public Builder setResponseValue(int value) { copyOnWrite(); instance.setResponseValue(value); return this; } /** * .android.emulation.control.PhoneResponse.Response response = 1; * @return The response. */ @java.lang.Override public com.android.emulator.control.PhoneResponse.Response getResponse() { return instance.getResponse(); } /** * .android.emulation.control.PhoneResponse.Response response = 1; * @param value The enum numeric value on the wire for response to set. * @return This builder for chaining. */ public Builder setResponse(com.android.emulator.control.PhoneResponse.Response value) { copyOnWrite(); instance.setResponse(value); return this; } /** * .android.emulation.control.PhoneResponse.Response response = 1; * @return This builder for chaining. */ public Builder clearResponse() { copyOnWrite(); instance.clearResponse(); return this; } // @@protoc_insertion_point(builder_scope:android.emulation.control.PhoneResponse) } @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.PhoneResponse(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "response_", }; java.lang.String info = "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\f"; 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.PhoneResponse.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.PhoneResponse) private static final com.android.emulator.control.PhoneResponse DEFAULT_INSTANCE; static { PhoneResponse defaultInstance = new PhoneResponse(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( PhoneResponse.class, defaultInstance); } public static com.android.emulator.control.PhoneResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy