2 * Copyright 2011 Google Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 // Common utilities used by all channel related protos.
18 // This is also publicly visible to all channel implementors.
22 package com.google.protos.ipc.invalidation;
24 option optimize_for = LITE_RUNTIME;
28 option java_outer_classname = "NanoChannelCommon";
29 option java_package = "com.google.protos.ipc.invalidation";
33 message ChannelMessageEncoding {
34 // What kind of encoding is used for network_message
35 enum MessageEncoding {
37 PROTOBUF_BINARY_FORMAT = 1;
42 message NetworkEndpointId {
43 // Identifies which sender/receiver the gateway uses.
45 TEST = 1; // A delivery service for testing
47 // Low numbers reserved.
48 ANDROID = 113; // Android delivery service using c2dm / http.
49 LCS = 114; // Lightweight connection service () channel.
51 optional NetworkAddress network_address = 1;
52 optional bytes client_address = 2;
54 // Optional. When true, the client is considered offline but the
55 // client_address is maintained so that the client can potentially be reached.
56 // When false or undefined, the client is considered online.
57 optional bool is_offline = 3;