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

com.android.emulator.control.ImageTransport 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;

/**
 * 
 * An ImageTransport allows for specifying a side channel for
 * delivering image frames versus using the standard bytes array that is
 * returned with the gRPC request.
 * 
* * Protobuf type {@code android.emulation.control.ImageTransport} */ public final class ImageTransport extends com.google.protobuf.GeneratedMessageLite< ImageTransport, ImageTransport.Builder> implements // @@protoc_insertion_point(message_implements:android.emulation.control.ImageTransport) ImageTransportOrBuilder { private ImageTransport() { handle_ = ""; } /** * Protobuf enum {@code android.emulation.control.ImageTransport.TransportChannel} */ public enum TransportChannel implements com.google.protobuf.Internal.EnumLite { /** *
     * Return full frames over the gRPC transport
     * 
* * TRANSPORT_CHANNEL_UNSPECIFIED = 0; */ TRANSPORT_CHANNEL_UNSPECIFIED(0), /** *
     * Write images to the a file/shared memory handle.
     * 
* * MMAP = 1; */ MMAP(1), UNRECOGNIZED(-1), ; /** *
     * Return full frames over the gRPC transport
     * 
* * TRANSPORT_CHANNEL_UNSPECIFIED = 0; */ public static final int TRANSPORT_CHANNEL_UNSPECIFIED_VALUE = 0; /** *
     * Write images to the a file/shared memory handle.
     * 
* * MMAP = 1; */ public static final int MMAP_VALUE = 1; @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 TransportChannel valueOf(int value) { return forNumber(value); } public static TransportChannel forNumber(int value) { switch (value) { case 0: return TRANSPORT_CHANNEL_UNSPECIFIED; case 1: return MMAP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TransportChannel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public TransportChannel findValueByNumber(int number) { return TransportChannel.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return TransportChannelVerifier.INSTANCE; } private static final class TransportChannelVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new TransportChannelVerifier(); @java.lang.Override public boolean isInRange(int number) { return TransportChannel.forNumber(number) != null; } }; private final int value; private TransportChannel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:android.emulation.control.ImageTransport.TransportChannel) } public static final int CHANNEL_FIELD_NUMBER = 1; private int channel_; /** *
   * The desired transport channel used for delivering image frames. Only
   * relevant when streaming screenshots.
   * 
* * .android.emulation.control.ImageTransport.TransportChannel channel = 1; * @return The enum numeric value on the wire for channel. */ @java.lang.Override public int getChannelValue() { return channel_; } /** *
   * The desired transport channel used for delivering image frames. Only
   * relevant when streaming screenshots.
   * 
* * .android.emulation.control.ImageTransport.TransportChannel channel = 1; * @return The channel. */ @java.lang.Override public com.android.emulator.control.ImageTransport.TransportChannel getChannel() { com.android.emulator.control.ImageTransport.TransportChannel result = com.android.emulator.control.ImageTransport.TransportChannel.forNumber(channel_); return result == null ? com.android.emulator.control.ImageTransport.TransportChannel.UNRECOGNIZED : result; } /** *
   * The desired transport channel used for delivering image frames. Only
   * relevant when streaming screenshots.
   * 
* * .android.emulation.control.ImageTransport.TransportChannel channel = 1; * @param value The enum numeric value on the wire for channel to set. */ private void setChannelValue(int value) { channel_ = value; } /** *
   * The desired transport channel used for delivering image frames. Only
   * relevant when streaming screenshots.
   * 
* * .android.emulation.control.ImageTransport.TransportChannel channel = 1; * @param value The channel to set. */ private void setChannel(com.android.emulator.control.ImageTransport.TransportChannel value) { channel_ = value.getNumber(); } /** *
   * The desired transport channel used for delivering image frames. Only
   * relevant when streaming screenshots.
   * 
* * .android.emulation.control.ImageTransport.TransportChannel channel = 1; */ private void clearChannel() { channel_ = 0; } public static final int HANDLE_FIELD_NUMBER = 2; private java.lang.String handle_; /** *
   * Handle used for writing image frames if transport is mmap. The client sets
   * and owns this handle. It can be either a shm region, or a mmap. A mmap
   * should be a url that starts with `file:///`
   * Note: the mmap can result in tearing.
   * 
* * string handle = 2; * @return The handle. */ @java.lang.Override public java.lang.String getHandle() { return handle_; } /** *
   * Handle used for writing image frames if transport is mmap. The client sets
   * and owns this handle. It can be either a shm region, or a mmap. A mmap
   * should be a url that starts with `file:///`
   * Note: the mmap can result in tearing.
   * 
* * string handle = 2; * @return The bytes for handle. */ @java.lang.Override public com.google.protobuf.ByteString getHandleBytes() { return com.google.protobuf.ByteString.copyFromUtf8(handle_); } /** *
   * Handle used for writing image frames if transport is mmap. The client sets
   * and owns this handle. It can be either a shm region, or a mmap. A mmap
   * should be a url that starts with `file:///`
   * Note: the mmap can result in tearing.
   * 
* * string handle = 2; * @param value The handle to set. */ private void setHandle( java.lang.String value) { java.lang.Class valueClass = value.getClass(); handle_ = value; } /** *
   * Handle used for writing image frames if transport is mmap. The client sets
   * and owns this handle. It can be either a shm region, or a mmap. A mmap
   * should be a url that starts with `file:///`
   * Note: the mmap can result in tearing.
   * 
* * string handle = 2; */ private void clearHandle() { handle_ = getDefaultInstance().getHandle(); } /** *
   * Handle used for writing image frames if transport is mmap. The client sets
   * and owns this handle. It can be either a shm region, or a mmap. A mmap
   * should be a url that starts with `file:///`
   * Note: the mmap can result in tearing.
   * 
* * string handle = 2; * @param value The bytes for handle to set. */ private void setHandleBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); handle_ = value.toStringUtf8(); } public static com.android.emulator.control.ImageTransport 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.ImageTransport 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.ImageTransport 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.ImageTransport 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.ImageTransport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.ImageTransport 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.ImageTransport parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.android.emulator.control.ImageTransport 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.ImageTransport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.android.emulator.control.ImageTransport 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.ImageTransport 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.ImageTransport 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.ImageTransport prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   * An ImageTransport allows for specifying a side channel for
   * delivering image frames versus using the standard bytes array that is
   * returned with the gRPC request.
   * 
* * Protobuf type {@code android.emulation.control.ImageTransport} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.android.emulator.control.ImageTransport, Builder> implements // @@protoc_insertion_point(builder_implements:android.emulation.control.ImageTransport) com.android.emulator.control.ImageTransportOrBuilder { // Construct using com.android.emulator.control.ImageTransport.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     * The desired transport channel used for delivering image frames. Only
     * relevant when streaming screenshots.
     * 
* * .android.emulation.control.ImageTransport.TransportChannel channel = 1; * @return The enum numeric value on the wire for channel. */ @java.lang.Override public int getChannelValue() { return instance.getChannelValue(); } /** *
     * The desired transport channel used for delivering image frames. Only
     * relevant when streaming screenshots.
     * 
* * .android.emulation.control.ImageTransport.TransportChannel channel = 1; * @param value The channel to set. * @return This builder for chaining. */ public Builder setChannelValue(int value) { copyOnWrite(); instance.setChannelValue(value); return this; } /** *
     * The desired transport channel used for delivering image frames. Only
     * relevant when streaming screenshots.
     * 
* * .android.emulation.control.ImageTransport.TransportChannel channel = 1; * @return The channel. */ @java.lang.Override public com.android.emulator.control.ImageTransport.TransportChannel getChannel() { return instance.getChannel(); } /** *
     * The desired transport channel used for delivering image frames. Only
     * relevant when streaming screenshots.
     * 
* * .android.emulation.control.ImageTransport.TransportChannel channel = 1; * @param value The enum numeric value on the wire for channel to set. * @return This builder for chaining. */ public Builder setChannel(com.android.emulator.control.ImageTransport.TransportChannel value) { copyOnWrite(); instance.setChannel(value); return this; } /** *
     * The desired transport channel used for delivering image frames. Only
     * relevant when streaming screenshots.
     * 
* * .android.emulation.control.ImageTransport.TransportChannel channel = 1; * @return This builder for chaining. */ public Builder clearChannel() { copyOnWrite(); instance.clearChannel(); return this; } /** *
     * Handle used for writing image frames if transport is mmap. The client sets
     * and owns this handle. It can be either a shm region, or a mmap. A mmap
     * should be a url that starts with `file:///`
     * Note: the mmap can result in tearing.
     * 
* * string handle = 2; * @return The handle. */ @java.lang.Override public java.lang.String getHandle() { return instance.getHandle(); } /** *
     * Handle used for writing image frames if transport is mmap. The client sets
     * and owns this handle. It can be either a shm region, or a mmap. A mmap
     * should be a url that starts with `file:///`
     * Note: the mmap can result in tearing.
     * 
* * string handle = 2; * @return The bytes for handle. */ @java.lang.Override public com.google.protobuf.ByteString getHandleBytes() { return instance.getHandleBytes(); } /** *
     * Handle used for writing image frames if transport is mmap. The client sets
     * and owns this handle. It can be either a shm region, or a mmap. A mmap
     * should be a url that starts with `file:///`
     * Note: the mmap can result in tearing.
     * 
* * string handle = 2; * @param value The handle to set. * @return This builder for chaining. */ public Builder setHandle( java.lang.String value) { copyOnWrite(); instance.setHandle(value); return this; } /** *
     * Handle used for writing image frames if transport is mmap. The client sets
     * and owns this handle. It can be either a shm region, or a mmap. A mmap
     * should be a url that starts with `file:///`
     * Note: the mmap can result in tearing.
     * 
* * string handle = 2; * @return This builder for chaining. */ public Builder clearHandle() { copyOnWrite(); instance.clearHandle(); return this; } /** *
     * Handle used for writing image frames if transport is mmap. The client sets
     * and owns this handle. It can be either a shm region, or a mmap. A mmap
     * should be a url that starts with `file:///`
     * Note: the mmap can result in tearing.
     * 
* * string handle = 2; * @param value The bytes for handle to set. * @return This builder for chaining. */ public Builder setHandleBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setHandleBytes(value); return this; } // @@protoc_insertion_point(builder_scope:android.emulation.control.ImageTransport) } @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.ImageTransport(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "channel_", "handle_", }; 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.ImageTransport.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.ImageTransport) private static final com.android.emulator.control.ImageTransport DEFAULT_INSTANCE; static { ImageTransport defaultInstance = new ImageTransport(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ImageTransport.class, defaultInstance); } public static com.android.emulator.control.ImageTransport 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