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

main.java.pbx.Model Maven / Gradle / Ivy

There is a newer version: 5.120.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: pbx/model.proto

// Protobuf Java Version: 3.25.3
package pbx;

public final class Model {
  private Model() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  /**
   * 
   * Authentication level
   * 
* * Protobuf enum {@code pbx.AuthLevel} */ public enum AuthLevel implements com.google.protobuf.Internal.EnumLite { /** * NONE = 0; */ NONE(0), /** * ANON = 10; */ ANON(10), /** * AUTH = 20; */ AUTH(20), /** * ROOT = 30; */ ROOT(30), UNRECOGNIZED(-1), ; /** * NONE = 0; */ public static final int NONE_VALUE = 0; /** * ANON = 10; */ public static final int ANON_VALUE = 10; /** * AUTH = 20; */ public static final int AUTH_VALUE = 20; /** * ROOT = 30; */ public static final int ROOT_VALUE = 30; @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 AuthLevel valueOf(int value) { return forNumber(value); } public static AuthLevel forNumber(int value) { switch (value) { case 0: return NONE; case 10: return ANON; case 20: return AUTH; case 30: return ROOT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AuthLevel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public AuthLevel findValueByNumber(int number) { return AuthLevel.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return AuthLevelVerifier.INSTANCE; } private static final class AuthLevelVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new AuthLevelVerifier(); @java.lang.Override public boolean isInRange(int number) { return AuthLevel.forNumber(number) != null; } }; private final int value; private AuthLevel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:pbx.AuthLevel) } /** * Protobuf enum {@code pbx.InfoNote} */ public enum InfoNote implements com.google.protobuf.Internal.EnumLite { /** *
     * Invalid value. The name must be globally unique.
     * 
* * X1 = 0; */ X1(0), /** * READ = 1; */ READ(1), /** * RECV = 2; */ RECV(2), /** * KP = 3; */ KP(3), /** * CALL = 4; */ CALL(4), /** * BYPASS = 5; */ BYPASS(5), /** * REACTION = 6; */ REACTION(6), UNRECOGNIZED(-1), ; /** *
     * Invalid value. The name must be globally unique.
     * 
* * X1 = 0; */ public static final int X1_VALUE = 0; /** * READ = 1; */ public static final int READ_VALUE = 1; /** * RECV = 2; */ public static final int RECV_VALUE = 2; /** * KP = 3; */ public static final int KP_VALUE = 3; /** * CALL = 4; */ public static final int CALL_VALUE = 4; /** * BYPASS = 5; */ public static final int BYPASS_VALUE = 5; /** * REACTION = 6; */ public static final int REACTION_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 InfoNote valueOf(int value) { return forNumber(value); } public static InfoNote forNumber(int value) { switch (value) { case 0: return X1; case 1: return READ; case 2: return RECV; case 3: return KP; case 4: return CALL; case 5: return BYPASS; case 6: return REACTION; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< InfoNote> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public InfoNote findValueByNumber(int number) { return InfoNote.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return InfoNoteVerifier.INSTANCE; } private static final class InfoNoteVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new InfoNoteVerifier(); @java.lang.Override public boolean isInRange(int number) { return InfoNote.forNumber(number) != null; } }; private final int value; private InfoNote(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:pbx.InfoNote) } /** * Protobuf enum {@code pbx.CallEvent} */ public enum CallEvent implements com.google.protobuf.Internal.EnumLite { /** *
     * Invalid value. The name must be globally unique.
     * 
* * X2 = 0; */ X2(0), /** * ACCEPT = 1; */ ACCEPT(1), /** * ANSWER = 2; */ ANSWER(2), /** * HANG_UP = 3; */ HANG_UP(3), /** * ICE_CANDIDATE = 4; */ ICE_CANDIDATE(4), /** * INVITE = 5; */ INVITE(5), /** * OFFER = 6; */ OFFER(6), /** * RINGING = 7; */ RINGING(7), UNRECOGNIZED(-1), ; /** *
     * Invalid value. The name must be globally unique.
     * 
* * X2 = 0; */ public static final int X2_VALUE = 0; /** * ACCEPT = 1; */ public static final int ACCEPT_VALUE = 1; /** * ANSWER = 2; */ public static final int ANSWER_VALUE = 2; /** * HANG_UP = 3; */ public static final int HANG_UP_VALUE = 3; /** * ICE_CANDIDATE = 4; */ public static final int ICE_CANDIDATE_VALUE = 4; /** * INVITE = 5; */ public static final int INVITE_VALUE = 5; /** * OFFER = 6; */ public static final int OFFER_VALUE = 6; /** * RINGING = 7; */ public static final int RINGING_VALUE = 7; @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 CallEvent valueOf(int value) { return forNumber(value); } public static CallEvent forNumber(int value) { switch (value) { case 0: return X2; case 1: return ACCEPT; case 2: return ANSWER; case 3: return HANG_UP; case 4: return ICE_CANDIDATE; case 5: return INVITE; case 6: return OFFER; case 7: return RINGING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CallEvent> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public CallEvent findValueByNumber(int number) { return CallEvent.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return CallEventVerifier.INSTANCE; } private static final class CallEventVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new CallEventVerifier(); @java.lang.Override public boolean isInRange(int number) { return CallEvent.forNumber(number) != null; } }; private final int value; private CallEvent(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:pbx.CallEvent) } /** *
   * Plugin response codes
   * 
* * Protobuf enum {@code pbx.RespCode} */ public enum RespCode implements com.google.protobuf.Internal.EnumLite { /** *
     * Instruct Tinode server to continue with default processing of the client request.
     * 
* * CONTINUE = 0; */ CONTINUE(0), /** *
     * Drop the request as if the client did not send it
     * 
* * DROP = 1; */ DROP(1), /** *
     * Send the the provided response to the client.
     * 
* * RESPOND = 2; */ RESPOND(2), /** *
     * Replace client's original request with the provided request then continue with
     * processing.
     * 
* * REPLACE = 3; */ REPLACE(3), UNRECOGNIZED(-1), ; /** *
     * Instruct Tinode server to continue with default processing of the client request.
     * 
* * CONTINUE = 0; */ public static final int CONTINUE_VALUE = 0; /** *
     * Drop the request as if the client did not send it
     * 
* * DROP = 1; */ public static final int DROP_VALUE = 1; /** *
     * Send the the provided response to the client.
     * 
* * RESPOND = 2; */ public static final int RESPOND_VALUE = 2; /** *
     * Replace client's original request with the provided request then continue with
     * processing.
     * 
* * REPLACE = 3; */ public static final int REPLACE_VALUE = 3; @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 RespCode valueOf(int value) { return forNumber(value); } public static RespCode forNumber(int value) { switch (value) { case 0: return CONTINUE; case 1: return DROP; case 2: return RESPOND; case 3: return REPLACE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< RespCode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public RespCode findValueByNumber(int number) { return RespCode.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return RespCodeVerifier.INSTANCE; } private static final class RespCodeVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new RespCodeVerifier(); @java.lang.Override public boolean isInRange(int number) { return RespCode.forNumber(number) != null; } }; private final int value; private RespCode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:pbx.RespCode) } /** * Protobuf enum {@code pbx.Crud} */ public enum Crud implements com.google.protobuf.Internal.EnumLite { /** * CREATE = 0; */ CREATE(0), /** * UPDATE = 1; */ UPDATE(1), /** * DELETE = 2; */ DELETE(2), UNRECOGNIZED(-1), ; /** * CREATE = 0; */ public static final int CREATE_VALUE = 0; /** * UPDATE = 1; */ public static final int UPDATE_VALUE = 1; /** * DELETE = 2; */ public static final int DELETE_VALUE = 2; @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 Crud valueOf(int value) { return forNumber(value); } public static Crud forNumber(int value) { switch (value) { case 0: return CREATE; case 1: return UPDATE; case 2: return DELETE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Crud> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public Crud findValueByNumber(int number) { return Crud.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return CrudVerifier.INSTANCE; } private static final class CrudVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new CrudVerifier(); @java.lang.Override public boolean isInRange(int number) { return Crud.forNumber(number) != null; } }; private final int value; private Crud(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:pbx.Crud) } public interface UnusedOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.Unused) com.google.protobuf.MessageLiteOrBuilder { } /** *
   * Dummy placeholder message.
   * 
* * Protobuf type {@code pbx.Unused} */ public static final class Unused extends com.google.protobuf.GeneratedMessageLite< Unused, Unused.Builder> implements // @@protoc_insertion_point(message_implements:pbx.Unused) UnusedOrBuilder { private Unused() { } public static pbx.Model.Unused parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.Unused 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 pbx.Model.Unused parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.Unused 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 pbx.Model.Unused parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.Unused 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 pbx.Model.Unused parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.Unused 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 pbx.Model.Unused parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.Unused parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.Unused parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.Unused 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(pbx.Model.Unused prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Dummy placeholder message.
     * 
* * Protobuf type {@code pbx.Unused} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.Unused, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.Unused) pbx.Model.UnusedOrBuilder { // Construct using pbx.Model.Unused.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } // @@protoc_insertion_point(builder_scope:pbx.Unused) } @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 pbx.Model.Unused(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = null;java.lang.String info = "\u0000\u0000"; 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 (pbx.Model.Unused.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:pbx.Unused) private static final pbx.Model.Unused DEFAULT_INSTANCE; static { Unused defaultInstance = new Unused(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( Unused.class, defaultInstance); } public static pbx.Model.Unused getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface DefaultAcsModeOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.DefaultAcsMode) com.google.protobuf.MessageLiteOrBuilder { /** * optional string auth = 1 [json_name = "auth"]; * @return Whether the auth field is set. */ boolean hasAuth(); /** * optional string auth = 1 [json_name = "auth"]; * @return The auth. */ java.lang.String getAuth(); /** * optional string auth = 1 [json_name = "auth"]; * @return The bytes for auth. */ com.google.protobuf.ByteString getAuthBytes(); /** * optional string anon = 2 [json_name = "anon"]; * @return Whether the anon field is set. */ boolean hasAnon(); /** * optional string anon = 2 [json_name = "anon"]; * @return The anon. */ java.lang.String getAnon(); /** * optional string anon = 2 [json_name = "anon"]; * @return The bytes for anon. */ com.google.protobuf.ByteString getAnonBytes(); } /** *
   * Topic default access mode
   * 
* * Protobuf type {@code pbx.DefaultAcsMode} */ public static final class DefaultAcsMode extends com.google.protobuf.GeneratedMessageLite< DefaultAcsMode, DefaultAcsMode.Builder> implements // @@protoc_insertion_point(message_implements:pbx.DefaultAcsMode) DefaultAcsModeOrBuilder { private DefaultAcsMode() { auth_ = ""; anon_ = ""; } private int bitField0_; public static final int AUTH_FIELD_NUMBER = 1; private java.lang.String auth_; /** * optional string auth = 1 [json_name = "auth"]; * @return Whether the auth field is set. */ @java.lang.Override public boolean hasAuth() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string auth = 1 [json_name = "auth"]; * @return The auth. */ @java.lang.Override public java.lang.String getAuth() { return auth_; } /** * optional string auth = 1 [json_name = "auth"]; * @return The bytes for auth. */ @java.lang.Override public com.google.protobuf.ByteString getAuthBytes() { return com.google.protobuf.ByteString.copyFromUtf8(auth_); } /** * optional string auth = 1 [json_name = "auth"]; * @param value The auth to set. */ private void setAuth( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; auth_ = value; } /** * optional string auth = 1 [json_name = "auth"]; */ private void clearAuth() { bitField0_ = (bitField0_ & ~0x00000001); auth_ = getDefaultInstance().getAuth(); } /** * optional string auth = 1 [json_name = "auth"]; * @param value The bytes for auth to set. */ private void setAuthBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); auth_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int ANON_FIELD_NUMBER = 2; private java.lang.String anon_; /** * optional string anon = 2 [json_name = "anon"]; * @return Whether the anon field is set. */ @java.lang.Override public boolean hasAnon() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string anon = 2 [json_name = "anon"]; * @return The anon. */ @java.lang.Override public java.lang.String getAnon() { return anon_; } /** * optional string anon = 2 [json_name = "anon"]; * @return The bytes for anon. */ @java.lang.Override public com.google.protobuf.ByteString getAnonBytes() { return com.google.protobuf.ByteString.copyFromUtf8(anon_); } /** * optional string anon = 2 [json_name = "anon"]; * @param value The anon to set. */ private void setAnon( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000002; anon_ = value; } /** * optional string anon = 2 [json_name = "anon"]; */ private void clearAnon() { bitField0_ = (bitField0_ & ~0x00000002); anon_ = getDefaultInstance().getAnon(); } /** * optional string anon = 2 [json_name = "anon"]; * @param value The bytes for anon to set. */ private void setAnonBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); anon_ = value.toStringUtf8(); bitField0_ |= 0x00000002; } public static pbx.Model.DefaultAcsMode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.DefaultAcsMode 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 pbx.Model.DefaultAcsMode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.DefaultAcsMode 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 pbx.Model.DefaultAcsMode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.DefaultAcsMode 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 pbx.Model.DefaultAcsMode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.DefaultAcsMode 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 pbx.Model.DefaultAcsMode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.DefaultAcsMode parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.DefaultAcsMode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.DefaultAcsMode 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(pbx.Model.DefaultAcsMode prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Topic default access mode
     * 
* * Protobuf type {@code pbx.DefaultAcsMode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.DefaultAcsMode, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.DefaultAcsMode) pbx.Model.DefaultAcsModeOrBuilder { // Construct using pbx.Model.DefaultAcsMode.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional string auth = 1 [json_name = "auth"]; * @return Whether the auth field is set. */ @java.lang.Override public boolean hasAuth() { return instance.hasAuth(); } /** * optional string auth = 1 [json_name = "auth"]; * @return The auth. */ @java.lang.Override public java.lang.String getAuth() { return instance.getAuth(); } /** * optional string auth = 1 [json_name = "auth"]; * @return The bytes for auth. */ @java.lang.Override public com.google.protobuf.ByteString getAuthBytes() { return instance.getAuthBytes(); } /** * optional string auth = 1 [json_name = "auth"]; * @param value The auth to set. * @return This builder for chaining. */ public Builder setAuth( java.lang.String value) { copyOnWrite(); instance.setAuth(value); return this; } /** * optional string auth = 1 [json_name = "auth"]; * @return This builder for chaining. */ public Builder clearAuth() { copyOnWrite(); instance.clearAuth(); return this; } /** * optional string auth = 1 [json_name = "auth"]; * @param value The bytes for auth to set. * @return This builder for chaining. */ public Builder setAuthBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setAuthBytes(value); return this; } /** * optional string anon = 2 [json_name = "anon"]; * @return Whether the anon field is set. */ @java.lang.Override public boolean hasAnon() { return instance.hasAnon(); } /** * optional string anon = 2 [json_name = "anon"]; * @return The anon. */ @java.lang.Override public java.lang.String getAnon() { return instance.getAnon(); } /** * optional string anon = 2 [json_name = "anon"]; * @return The bytes for anon. */ @java.lang.Override public com.google.protobuf.ByteString getAnonBytes() { return instance.getAnonBytes(); } /** * optional string anon = 2 [json_name = "anon"]; * @param value The anon to set. * @return This builder for chaining. */ public Builder setAnon( java.lang.String value) { copyOnWrite(); instance.setAnon(value); return this; } /** * optional string anon = 2 [json_name = "anon"]; * @return This builder for chaining. */ public Builder clearAnon() { copyOnWrite(); instance.clearAnon(); return this; } /** * optional string anon = 2 [json_name = "anon"]; * @param value The bytes for anon to set. * @return This builder for chaining. */ public Builder setAnonBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setAnonBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.DefaultAcsMode) } @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 pbx.Model.DefaultAcsMode(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "auth_", "anon_", }; java.lang.String info = "\u0000\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u1208\u0000\u0002" + "\u1208\u0001"; 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 (pbx.Model.DefaultAcsMode.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:pbx.DefaultAcsMode) private static final pbx.Model.DefaultAcsMode DEFAULT_INSTANCE; static { DefaultAcsMode defaultInstance = new DefaultAcsMode(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( DefaultAcsMode.class, defaultInstance); } public static pbx.Model.DefaultAcsMode getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface AccessModeOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.AccessMode) com.google.protobuf.MessageLiteOrBuilder { /** *
     * Access mode requested by the user
     * 
* * string want = 1 [json_name = "want"]; * @return The want. */ java.lang.String getWant(); /** *
     * Access mode requested by the user
     * 
* * string want = 1 [json_name = "want"]; * @return The bytes for want. */ com.google.protobuf.ByteString getWantBytes(); /** *
     * Access mode granted to the user by the admin
     * 
* * string given = 2 [json_name = "given"]; * @return The given. */ java.lang.String getGiven(); /** *
     * Access mode granted to the user by the admin
     * 
* * string given = 2 [json_name = "given"]; * @return The bytes for given. */ com.google.protobuf.ByteString getGivenBytes(); } /** *
   * Actual access mode
   * 
* * Protobuf type {@code pbx.AccessMode} */ public static final class AccessMode extends com.google.protobuf.GeneratedMessageLite< AccessMode, AccessMode.Builder> implements // @@protoc_insertion_point(message_implements:pbx.AccessMode) AccessModeOrBuilder { private AccessMode() { want_ = ""; given_ = ""; } public static final int WANT_FIELD_NUMBER = 1; private java.lang.String want_; /** *
     * Access mode requested by the user
     * 
* * string want = 1 [json_name = "want"]; * @return The want. */ @java.lang.Override public java.lang.String getWant() { return want_; } /** *
     * Access mode requested by the user
     * 
* * string want = 1 [json_name = "want"]; * @return The bytes for want. */ @java.lang.Override public com.google.protobuf.ByteString getWantBytes() { return com.google.protobuf.ByteString.copyFromUtf8(want_); } /** *
     * Access mode requested by the user
     * 
* * string want = 1 [json_name = "want"]; * @param value The want to set. */ private void setWant( java.lang.String value) { java.lang.Class valueClass = value.getClass(); want_ = value; } /** *
     * Access mode requested by the user
     * 
* * string want = 1 [json_name = "want"]; */ private void clearWant() { want_ = getDefaultInstance().getWant(); } /** *
     * Access mode requested by the user
     * 
* * string want = 1 [json_name = "want"]; * @param value The bytes for want to set. */ private void setWantBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); want_ = value.toStringUtf8(); } public static final int GIVEN_FIELD_NUMBER = 2; private java.lang.String given_; /** *
     * Access mode granted to the user by the admin
     * 
* * string given = 2 [json_name = "given"]; * @return The given. */ @java.lang.Override public java.lang.String getGiven() { return given_; } /** *
     * Access mode granted to the user by the admin
     * 
* * string given = 2 [json_name = "given"]; * @return The bytes for given. */ @java.lang.Override public com.google.protobuf.ByteString getGivenBytes() { return com.google.protobuf.ByteString.copyFromUtf8(given_); } /** *
     * Access mode granted to the user by the admin
     * 
* * string given = 2 [json_name = "given"]; * @param value The given to set. */ private void setGiven( java.lang.String value) { java.lang.Class valueClass = value.getClass(); given_ = value; } /** *
     * Access mode granted to the user by the admin
     * 
* * string given = 2 [json_name = "given"]; */ private void clearGiven() { given_ = getDefaultInstance().getGiven(); } /** *
     * Access mode granted to the user by the admin
     * 
* * string given = 2 [json_name = "given"]; * @param value The bytes for given to set. */ private void setGivenBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); given_ = value.toStringUtf8(); } public static pbx.Model.AccessMode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.AccessMode 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 pbx.Model.AccessMode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.AccessMode 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 pbx.Model.AccessMode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.AccessMode 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 pbx.Model.AccessMode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.AccessMode 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 pbx.Model.AccessMode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.AccessMode parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.AccessMode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.AccessMode 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(pbx.Model.AccessMode prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Actual access mode
     * 
* * Protobuf type {@code pbx.AccessMode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.AccessMode, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.AccessMode) pbx.Model.AccessModeOrBuilder { // Construct using pbx.Model.AccessMode.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * Access mode requested by the user
       * 
* * string want = 1 [json_name = "want"]; * @return The want. */ @java.lang.Override public java.lang.String getWant() { return instance.getWant(); } /** *
       * Access mode requested by the user
       * 
* * string want = 1 [json_name = "want"]; * @return The bytes for want. */ @java.lang.Override public com.google.protobuf.ByteString getWantBytes() { return instance.getWantBytes(); } /** *
       * Access mode requested by the user
       * 
* * string want = 1 [json_name = "want"]; * @param value The want to set. * @return This builder for chaining. */ public Builder setWant( java.lang.String value) { copyOnWrite(); instance.setWant(value); return this; } /** *
       * Access mode requested by the user
       * 
* * string want = 1 [json_name = "want"]; * @return This builder for chaining. */ public Builder clearWant() { copyOnWrite(); instance.clearWant(); return this; } /** *
       * Access mode requested by the user
       * 
* * string want = 1 [json_name = "want"]; * @param value The bytes for want to set. * @return This builder for chaining. */ public Builder setWantBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setWantBytes(value); return this; } /** *
       * Access mode granted to the user by the admin
       * 
* * string given = 2 [json_name = "given"]; * @return The given. */ @java.lang.Override public java.lang.String getGiven() { return instance.getGiven(); } /** *
       * Access mode granted to the user by the admin
       * 
* * string given = 2 [json_name = "given"]; * @return The bytes for given. */ @java.lang.Override public com.google.protobuf.ByteString getGivenBytes() { return instance.getGivenBytes(); } /** *
       * Access mode granted to the user by the admin
       * 
* * string given = 2 [json_name = "given"]; * @param value The given to set. * @return This builder for chaining. */ public Builder setGiven( java.lang.String value) { copyOnWrite(); instance.setGiven(value); return this; } /** *
       * Access mode granted to the user by the admin
       * 
* * string given = 2 [json_name = "given"]; * @return This builder for chaining. */ public Builder clearGiven() { copyOnWrite(); instance.clearGiven(); return this; } /** *
       * Access mode granted to the user by the admin
       * 
* * string given = 2 [json_name = "given"]; * @param value The bytes for given to set. * @return This builder for chaining. */ public Builder setGivenBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setGivenBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.AccessMode) } @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 pbx.Model.AccessMode(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "want_", "given_", }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\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 (pbx.Model.AccessMode.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:pbx.AccessMode) private static final pbx.Model.AccessMode DEFAULT_INSTANCE; static { AccessMode defaultInstance = new AccessMode(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( AccessMode.class, defaultInstance); } public static pbx.Model.AccessMode getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface SetSubOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.SetSub) com.google.protobuf.MessageLiteOrBuilder { /** *
     * User affected by this request. Default (empty): current user
     * 
* * optional string user_id = 1 [json_name = "userId"]; * @return Whether the userId field is set. */ boolean hasUserId(); /** *
     * User affected by this request. Default (empty): current user
     * 
* * optional string user_id = 1 [json_name = "userId"]; * @return The userId. */ java.lang.String getUserId(); /** *
     * User affected by this request. Default (empty): current user
     * 
* * optional string user_id = 1 [json_name = "userId"]; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** *
     * Access mode change, either Given or Want depending on context
     * 
* * optional string mode = 2 [json_name = "mode"]; * @return Whether the mode field is set. */ boolean hasMode(); /** *
     * Access mode change, either Given or Want depending on context
     * 
* * optional string mode = 2 [json_name = "mode"]; * @return The mode. */ java.lang.String getMode(); /** *
     * Access mode change, either Given or Want depending on context
     * 
* * optional string mode = 2 [json_name = "mode"]; * @return The bytes for mode. */ com.google.protobuf.ByteString getModeBytes(); } /** *
   * SetSub: payload in set.sub request to update current subscription or invite another user, {sub.what} == "sub"
   * 
* * Protobuf type {@code pbx.SetSub} */ public static final class SetSub extends com.google.protobuf.GeneratedMessageLite< SetSub, SetSub.Builder> implements // @@protoc_insertion_point(message_implements:pbx.SetSub) SetSubOrBuilder { private SetSub() { userId_ = ""; mode_ = ""; } private int bitField0_; public static final int USER_ID_FIELD_NUMBER = 1; private java.lang.String userId_; /** *
     * User affected by this request. Default (empty): current user
     * 
* * optional string user_id = 1 [json_name = "userId"]; * @return Whether the userId field is set. */ @java.lang.Override public boolean hasUserId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * User affected by this request. Default (empty): current user
     * 
* * optional string user_id = 1 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return userId_; } /** *
     * User affected by this request. Default (empty): current user
     * 
* * optional string user_id = 1 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userId_); } /** *
     * User affected by this request. Default (empty): current user
     * 
* * optional string user_id = 1 [json_name = "userId"]; * @param value The userId to set. */ private void setUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; userId_ = value; } /** *
     * User affected by this request. Default (empty): current user
     * 
* * optional string user_id = 1 [json_name = "userId"]; */ private void clearUserId() { bitField0_ = (bitField0_ & ~0x00000001); userId_ = getDefaultInstance().getUserId(); } /** *
     * User affected by this request. Default (empty): current user
     * 
* * optional string user_id = 1 [json_name = "userId"]; * @param value The bytes for userId to set. */ private void setUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userId_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int MODE_FIELD_NUMBER = 2; private java.lang.String mode_; /** *
     * Access mode change, either Given or Want depending on context
     * 
* * optional string mode = 2 [json_name = "mode"]; * @return Whether the mode field is set. */ @java.lang.Override public boolean hasMode() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Access mode change, either Given or Want depending on context
     * 
* * optional string mode = 2 [json_name = "mode"]; * @return The mode. */ @java.lang.Override public java.lang.String getMode() { return mode_; } /** *
     * Access mode change, either Given or Want depending on context
     * 
* * optional string mode = 2 [json_name = "mode"]; * @return The bytes for mode. */ @java.lang.Override public com.google.protobuf.ByteString getModeBytes() { return com.google.protobuf.ByteString.copyFromUtf8(mode_); } /** *
     * Access mode change, either Given or Want depending on context
     * 
* * optional string mode = 2 [json_name = "mode"]; * @param value The mode to set. */ private void setMode( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000002; mode_ = value; } /** *
     * Access mode change, either Given or Want depending on context
     * 
* * optional string mode = 2 [json_name = "mode"]; */ private void clearMode() { bitField0_ = (bitField0_ & ~0x00000002); mode_ = getDefaultInstance().getMode(); } /** *
     * Access mode change, either Given or Want depending on context
     * 
* * optional string mode = 2 [json_name = "mode"]; * @param value The bytes for mode to set. */ private void setModeBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); mode_ = value.toStringUtf8(); bitField0_ |= 0x00000002; } public static pbx.Model.SetSub parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SetSub 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 pbx.Model.SetSub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SetSub 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 pbx.Model.SetSub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SetSub 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 pbx.Model.SetSub parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SetSub 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 pbx.Model.SetSub parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.SetSub parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.SetSub parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SetSub 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(pbx.Model.SetSub prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * SetSub: payload in set.sub request to update current subscription or invite another user, {sub.what} == "sub"
     * 
* * Protobuf type {@code pbx.SetSub} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.SetSub, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.SetSub) pbx.Model.SetSubOrBuilder { // Construct using pbx.Model.SetSub.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * User affected by this request. Default (empty): current user
       * 
* * optional string user_id = 1 [json_name = "userId"]; * @return Whether the userId field is set. */ @java.lang.Override public boolean hasUserId() { return instance.hasUserId(); } /** *
       * User affected by this request. Default (empty): current user
       * 
* * optional string user_id = 1 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return instance.getUserId(); } /** *
       * User affected by this request. Default (empty): current user
       * 
* * optional string user_id = 1 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return instance.getUserIdBytes(); } /** *
       * User affected by this request. Default (empty): current user
       * 
* * optional string user_id = 1 [json_name = "userId"]; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { copyOnWrite(); instance.setUserId(value); return this; } /** *
       * User affected by this request. Default (empty): current user
       * 
* * optional string user_id = 1 [json_name = "userId"]; * @return This builder for chaining. */ public Builder clearUserId() { copyOnWrite(); instance.clearUserId(); return this; } /** *
       * User affected by this request. Default (empty): current user
       * 
* * optional string user_id = 1 [json_name = "userId"]; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserIdBytes(value); return this; } /** *
       * Access mode change, either Given or Want depending on context
       * 
* * optional string mode = 2 [json_name = "mode"]; * @return Whether the mode field is set. */ @java.lang.Override public boolean hasMode() { return instance.hasMode(); } /** *
       * Access mode change, either Given or Want depending on context
       * 
* * optional string mode = 2 [json_name = "mode"]; * @return The mode. */ @java.lang.Override public java.lang.String getMode() { return instance.getMode(); } /** *
       * Access mode change, either Given or Want depending on context
       * 
* * optional string mode = 2 [json_name = "mode"]; * @return The bytes for mode. */ @java.lang.Override public com.google.protobuf.ByteString getModeBytes() { return instance.getModeBytes(); } /** *
       * Access mode change, either Given or Want depending on context
       * 
* * optional string mode = 2 [json_name = "mode"]; * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode( java.lang.String value) { copyOnWrite(); instance.setMode(value); return this; } /** *
       * Access mode change, either Given or Want depending on context
       * 
* * optional string mode = 2 [json_name = "mode"]; * @return This builder for chaining. */ public Builder clearMode() { copyOnWrite(); instance.clearMode(); return this; } /** *
       * Access mode change, either Given or Want depending on context
       * 
* * optional string mode = 2 [json_name = "mode"]; * @param value The bytes for mode to set. * @return This builder for chaining. */ public Builder setModeBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setModeBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.SetSub) } @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 pbx.Model.SetSub(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "userId_", "mode_", }; java.lang.String info = "\u0000\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u1208\u0000\u0002" + "\u1208\u0001"; 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 (pbx.Model.SetSub.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:pbx.SetSub) private static final pbx.Model.SetSub DEFAULT_INSTANCE; static { SetSub defaultInstance = new SetSub(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SetSub.class, defaultInstance); } public static pbx.Model.SetSub getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientCredOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientCred) com.google.protobuf.MessageLiteOrBuilder { /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @return The method. */ java.lang.String getMethod(); /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @return The value. */ java.lang.String getValue(); /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); /** *
     * Verification response
     * 
* * string response = 3 [json_name = "response"]; * @return The response. */ java.lang.String getResponse(); /** *
     * Verification response
     * 
* * string response = 3 [json_name = "response"]; * @return The bytes for response. */ com.google.protobuf.ByteString getResponseBytes(); /** *
     * Request parameters, such as preferences or country code.
     * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ int getParamsCount(); /** *
     * Request parameters, such as preferences or country code.
     * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ boolean containsParams( java.lang.String key); /** * Use {@link #getParamsMap()} instead. */ @java.lang.Deprecated java.util.Map getParams(); /** *
     * Request parameters, such as preferences or country code.
     * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ java.util.Map getParamsMap(); /** *
     * Request parameters, such as preferences or country code.
     * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ /* nullable */ com.google.protobuf.ByteString getParamsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue); /** *
     * Request parameters, such as preferences or country code.
     * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ com.google.protobuf.ByteString getParamsOrThrow( java.lang.String key); } /** *
   * Credentials such as email or phone number
   * 
* * Protobuf type {@code pbx.ClientCred} */ public static final class ClientCred extends com.google.protobuf.GeneratedMessageLite< ClientCred, ClientCred.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientCred) ClientCredOrBuilder { private ClientCred() { method_ = ""; value_ = ""; response_ = ""; } public static final int METHOD_FIELD_NUMBER = 1; private java.lang.String method_; /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @return The method. */ @java.lang.Override public java.lang.String getMethod() { return method_; } /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @return The bytes for method. */ @java.lang.Override public com.google.protobuf.ByteString getMethodBytes() { return com.google.protobuf.ByteString.copyFromUtf8(method_); } /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @param value The method to set. */ private void setMethod( java.lang.String value) { java.lang.Class valueClass = value.getClass(); method_ = value; } /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; */ private void clearMethod() { method_ = getDefaultInstance().getMethod(); } /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @param value The bytes for method to set. */ private void setMethodBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); method_ = value.toStringUtf8(); } public static final int VALUE_FIELD_NUMBER = 2; private java.lang.String value_; /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @return The value. */ @java.lang.Override public java.lang.String getValue() { return value_; } /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { return com.google.protobuf.ByteString.copyFromUtf8(value_); } /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @param value The value to set. */ private void setValue( java.lang.String value) { java.lang.Class valueClass = value.getClass(); value_ = value; } /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; */ private void clearValue() { value_ = getDefaultInstance().getValue(); } /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @param value The bytes for value to set. */ private void setValueBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); value_ = value.toStringUtf8(); } public static final int RESPONSE_FIELD_NUMBER = 3; private java.lang.String response_; /** *
     * Verification response
     * 
* * string response = 3 [json_name = "response"]; * @return The response. */ @java.lang.Override public java.lang.String getResponse() { return response_; } /** *
     * Verification response
     * 
* * string response = 3 [json_name = "response"]; * @return The bytes for response. */ @java.lang.Override public com.google.protobuf.ByteString getResponseBytes() { return com.google.protobuf.ByteString.copyFromUtf8(response_); } /** *
     * Verification response
     * 
* * string response = 3 [json_name = "response"]; * @param value The response to set. */ private void setResponse( java.lang.String value) { java.lang.Class valueClass = value.getClass(); response_ = value; } /** *
     * Verification response
     * 
* * string response = 3 [json_name = "response"]; */ private void clearResponse() { response_ = getDefaultInstance().getResponse(); } /** *
     * Verification response
     * 
* * string response = 3 [json_name = "response"]; * @param value The bytes for response to set. */ private void setResponseBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); response_ = value.toStringUtf8(); } public static final int PARAMS_FIELD_NUMBER = 4; private static final class ParamsDefaultEntryHolder { static final com.google.protobuf.MapEntryLite< java.lang.String, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntryLite .newDefaultInstance( com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } private com.google.protobuf.MapFieldLite< java.lang.String, com.google.protobuf.ByteString> params_ = com.google.protobuf.MapFieldLite.emptyMapField(); private com.google.protobuf.MapFieldLite internalGetParams() { return params_; } private com.google.protobuf.MapFieldLite internalGetMutableParams() { if (!params_.isMutable()) { params_ = params_.mutableCopy(); } return params_; } @java.lang.Override public int getParamsCount() { return internalGetParams().size(); } /** *
     * Request parameters, such as preferences or country code.
     * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ @java.lang.Override public boolean containsParams( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return internalGetParams().containsKey(key); } /** * Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** *
     * Request parameters, such as preferences or country code.
     * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ @java.lang.Override public java.util.Map getParamsMap() { return java.util.Collections.unmodifiableMap( internalGetParams()); } /** *
     * Request parameters, such as preferences or country code.
     * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getParamsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetParams(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Request parameters, such as preferences or country code.
     * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ @java.lang.Override public com.google.protobuf.ByteString getParamsOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetParams(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** *
     * Request parameters, such as preferences or country code.
     * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ private java.util.Map getMutableParamsMap() { return internalGetMutableParams(); } public static pbx.Model.ClientCred parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientCred 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 pbx.Model.ClientCred parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientCred 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 pbx.Model.ClientCred parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientCred 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 pbx.Model.ClientCred parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientCred 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 pbx.Model.ClientCred parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientCred parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientCred parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientCred 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(pbx.Model.ClientCred prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Credentials such as email or phone number
     * 
* * Protobuf type {@code pbx.ClientCred} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientCred, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientCred) pbx.Model.ClientCredOrBuilder { // Construct using pbx.Model.ClientCred.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * Credential type, i.e. `email` or `tel`.
       * 
* * string method = 1 [json_name = "method"]; * @return The method. */ @java.lang.Override public java.lang.String getMethod() { return instance.getMethod(); } /** *
       * Credential type, i.e. `email` or `tel`.
       * 
* * string method = 1 [json_name = "method"]; * @return The bytes for method. */ @java.lang.Override public com.google.protobuf.ByteString getMethodBytes() { return instance.getMethodBytes(); } /** *
       * Credential type, i.e. `email` or `tel`.
       * 
* * string method = 1 [json_name = "method"]; * @param value The method to set. * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { copyOnWrite(); instance.setMethod(value); return this; } /** *
       * Credential type, i.e. `email` or `tel`.
       * 
* * string method = 1 [json_name = "method"]; * @return This builder for chaining. */ public Builder clearMethod() { copyOnWrite(); instance.clearMethod(); return this; } /** *
       * Credential type, i.e. `email` or `tel`.
       * 
* * string method = 1 [json_name = "method"]; * @param value The bytes for method to set. * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setMethodBytes(value); return this; } /** *
       * Value to verify, i.e. `user@example.com` or `+18003287448`
       * 
* * string value = 2 [json_name = "value"]; * @return The value. */ @java.lang.Override public java.lang.String getValue() { return instance.getValue(); } /** *
       * Value to verify, i.e. `user@example.com` or `+18003287448`
       * 
* * string value = 2 [json_name = "value"]; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { return instance.getValueBytes(); } /** *
       * Value to verify, i.e. `user@example.com` or `+18003287448`
       * 
* * string value = 2 [json_name = "value"]; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { copyOnWrite(); instance.setValue(value); return this; } /** *
       * Value to verify, i.e. `user@example.com` or `+18003287448`
       * 
* * string value = 2 [json_name = "value"]; * @return This builder for chaining. */ public Builder clearValue() { copyOnWrite(); instance.clearValue(); return this; } /** *
       * Value to verify, i.e. `user@example.com` or `+18003287448`
       * 
* * string value = 2 [json_name = "value"]; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setValueBytes(value); return this; } /** *
       * Verification response
       * 
* * string response = 3 [json_name = "response"]; * @return The response. */ @java.lang.Override public java.lang.String getResponse() { return instance.getResponse(); } /** *
       * Verification response
       * 
* * string response = 3 [json_name = "response"]; * @return The bytes for response. */ @java.lang.Override public com.google.protobuf.ByteString getResponseBytes() { return instance.getResponseBytes(); } /** *
       * Verification response
       * 
* * string response = 3 [json_name = "response"]; * @param value The response to set. * @return This builder for chaining. */ public Builder setResponse( java.lang.String value) { copyOnWrite(); instance.setResponse(value); return this; } /** *
       * Verification response
       * 
* * string response = 3 [json_name = "response"]; * @return This builder for chaining. */ public Builder clearResponse() { copyOnWrite(); instance.clearResponse(); return this; } /** *
       * Verification response
       * 
* * string response = 3 [json_name = "response"]; * @param value The bytes for response to set. * @return This builder for chaining. */ public Builder setResponseBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setResponseBytes(value); return this; } @java.lang.Override public int getParamsCount() { return instance.getParamsMap().size(); } /** *
       * Request parameters, such as preferences or country code.
       * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ @java.lang.Override public boolean containsParams( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return instance.getParamsMap().containsKey(key); } public Builder clearParams() { copyOnWrite(); instance.getMutableParamsMap().clear(); return this; } /** *
       * Request parameters, such as preferences or country code.
       * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ public Builder removeParams( java.lang.String key) { java.lang.Class keyClass = key.getClass(); copyOnWrite(); instance.getMutableParamsMap().remove(key); return this; } /** * Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** *
       * Request parameters, such as preferences or country code.
       * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ @java.lang.Override public java.util.Map getParamsMap() { return java.util.Collections.unmodifiableMap( instance.getParamsMap()); } /** *
       * Request parameters, such as preferences or country code.
       * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getParamsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getParamsMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Request parameters, such as preferences or country code.
       * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ @java.lang.Override public com.google.protobuf.ByteString getParamsOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getParamsMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** *
       * Request parameters, such as preferences or country code.
       * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ public Builder putParams( java.lang.String key, com.google.protobuf.ByteString value) { java.lang.Class keyClass = key.getClass(); java.lang.Class valueClass = value.getClass(); copyOnWrite(); instance.getMutableParamsMap().put(key, value); return this; } /** *
       * Request parameters, such as preferences or country code.
       * 
* * map<string, bytes> params = 4 [json_name = "params"]; */ public Builder putAllParams( java.util.Map values) { copyOnWrite(); instance.getMutableParamsMap().putAll(values); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientCred) } @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 pbx.Model.ClientCred(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "method_", "value_", "response_", "params_", ParamsDefaultEntryHolder.defaultEntry, }; java.lang.String info = "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0001\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\u0208\u00042"; 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 (pbx.Model.ClientCred.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:pbx.ClientCred) private static final pbx.Model.ClientCred DEFAULT_INSTANCE; static { ClientCred defaultInstance = new ClientCred(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientCred.class, defaultInstance); } public static pbx.Model.ClientCred getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface SetDescOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.SetDesc) com.google.protobuf.MessageLiteOrBuilder { /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; * @return Whether the defaultAcs field is set. */ boolean hasDefaultAcs(); /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; * @return The defaultAcs. */ pbx.Model.DefaultAcsMode getDefaultAcs(); /** * optional bytes public = 2 [json_name = "public"]; * @return Whether the public field is set. */ boolean hasPublic(); /** * optional bytes public = 2 [json_name = "public"]; * @return The public. */ com.google.protobuf.ByteString getPublic(); /** * optional bytes private = 3 [json_name = "private"]; * @return Whether the private field is set. */ boolean hasPrivate(); /** * optional bytes private = 3 [json_name = "private"]; * @return The private. */ com.google.protobuf.ByteString getPrivate(); /** * optional bytes trusted = 4 [json_name = "trusted"]; * @return Whether the trusted field is set. */ boolean hasTrusted(); /** * optional bytes trusted = 4 [json_name = "trusted"]; * @return The trusted. */ com.google.protobuf.ByteString getTrusted(); } /** *
   * SetDesc: C2S in set.what == "desc" and sub.init message
   * 
* * Protobuf type {@code pbx.SetDesc} */ public static final class SetDesc extends com.google.protobuf.GeneratedMessageLite< SetDesc, SetDesc.Builder> implements // @@protoc_insertion_point(message_implements:pbx.SetDesc) SetDescOrBuilder { private SetDesc() { public_ = com.google.protobuf.ByteString.EMPTY; private_ = com.google.protobuf.ByteString.EMPTY; trusted_ = com.google.protobuf.ByteString.EMPTY; } private int bitField0_; public static final int DEFAULT_ACS_FIELD_NUMBER = 1; private pbx.Model.DefaultAcsMode defaultAcs_; /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ @java.lang.Override public boolean hasDefaultAcs() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ @java.lang.Override public pbx.Model.DefaultAcsMode getDefaultAcs() { return defaultAcs_ == null ? pbx.Model.DefaultAcsMode.getDefaultInstance() : defaultAcs_; } /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ private void setDefaultAcs(pbx.Model.DefaultAcsMode value) { value.getClass(); defaultAcs_ = value; bitField0_ |= 0x00000001; } /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeDefaultAcs(pbx.Model.DefaultAcsMode value) { value.getClass(); if (defaultAcs_ != null && defaultAcs_ != pbx.Model.DefaultAcsMode.getDefaultInstance()) { defaultAcs_ = pbx.Model.DefaultAcsMode.newBuilder(defaultAcs_).mergeFrom(value).buildPartial(); } else { defaultAcs_ = value; } bitField0_ |= 0x00000001; } /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ private void clearDefaultAcs() { defaultAcs_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int PUBLIC_FIELD_NUMBER = 2; private com.google.protobuf.ByteString public_; /** * optional bytes public = 2 [json_name = "public"]; * @return Whether the public field is set. */ @java.lang.Override public boolean hasPublic() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes public = 2 [json_name = "public"]; * @return The public. */ @java.lang.Override public com.google.protobuf.ByteString getPublic() { return public_; } /** * optional bytes public = 2 [json_name = "public"]; * @param value The public to set. */ private void setPublic(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000002; public_ = value; } /** * optional bytes public = 2 [json_name = "public"]; */ private void clearPublic() { bitField0_ = (bitField0_ & ~0x00000002); public_ = getDefaultInstance().getPublic(); } public static final int PRIVATE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString private_; /** * optional bytes private = 3 [json_name = "private"]; * @return Whether the private field is set. */ @java.lang.Override public boolean hasPrivate() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bytes private = 3 [json_name = "private"]; * @return The private. */ @java.lang.Override public com.google.protobuf.ByteString getPrivate() { return private_; } /** * optional bytes private = 3 [json_name = "private"]; * @param value The private to set. */ private void setPrivate(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000004; private_ = value; } /** * optional bytes private = 3 [json_name = "private"]; */ private void clearPrivate() { bitField0_ = (bitField0_ & ~0x00000004); private_ = getDefaultInstance().getPrivate(); } public static final int TRUSTED_FIELD_NUMBER = 4; private com.google.protobuf.ByteString trusted_; /** * optional bytes trusted = 4 [json_name = "trusted"]; * @return Whether the trusted field is set. */ @java.lang.Override public boolean hasTrusted() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bytes trusted = 4 [json_name = "trusted"]; * @return The trusted. */ @java.lang.Override public com.google.protobuf.ByteString getTrusted() { return trusted_; } /** * optional bytes trusted = 4 [json_name = "trusted"]; * @param value The trusted to set. */ private void setTrusted(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000008; trusted_ = value; } /** * optional bytes trusted = 4 [json_name = "trusted"]; */ private void clearTrusted() { bitField0_ = (bitField0_ & ~0x00000008); trusted_ = getDefaultInstance().getTrusted(); } public static pbx.Model.SetDesc parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SetDesc 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 pbx.Model.SetDesc parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SetDesc 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 pbx.Model.SetDesc parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SetDesc 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 pbx.Model.SetDesc parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SetDesc 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 pbx.Model.SetDesc parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.SetDesc parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.SetDesc parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SetDesc 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(pbx.Model.SetDesc prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * SetDesc: C2S in set.what == "desc" and sub.init message
     * 
* * Protobuf type {@code pbx.SetDesc} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.SetDesc, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.SetDesc) pbx.Model.SetDescOrBuilder { // Construct using pbx.Model.SetDesc.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ @java.lang.Override public boolean hasDefaultAcs() { return instance.hasDefaultAcs(); } /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ @java.lang.Override public pbx.Model.DefaultAcsMode getDefaultAcs() { return instance.getDefaultAcs(); } /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ public Builder setDefaultAcs(pbx.Model.DefaultAcsMode value) { copyOnWrite(); instance.setDefaultAcs(value); return this; } /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ public Builder setDefaultAcs( pbx.Model.DefaultAcsMode.Builder builderForValue) { copyOnWrite(); instance.setDefaultAcs(builderForValue.build()); return this; } /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ public Builder mergeDefaultAcs(pbx.Model.DefaultAcsMode value) { copyOnWrite(); instance.mergeDefaultAcs(value); return this; } /** * optional .pbx.DefaultAcsMode default_acs = 1 [json_name = "defaultAcs"]; */ public Builder clearDefaultAcs() { copyOnWrite(); instance.clearDefaultAcs(); return this; } /** * optional bytes public = 2 [json_name = "public"]; * @return Whether the public field is set. */ @java.lang.Override public boolean hasPublic() { return instance.hasPublic(); } /** * optional bytes public = 2 [json_name = "public"]; * @return The public. */ @java.lang.Override public com.google.protobuf.ByteString getPublic() { return instance.getPublic(); } /** * optional bytes public = 2 [json_name = "public"]; * @param value The public to set. * @return This builder for chaining. */ public Builder setPublic(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPublic(value); return this; } /** * optional bytes public = 2 [json_name = "public"]; * @return This builder for chaining. */ public Builder clearPublic() { copyOnWrite(); instance.clearPublic(); return this; } /** * optional bytes private = 3 [json_name = "private"]; * @return Whether the private field is set. */ @java.lang.Override public boolean hasPrivate() { return instance.hasPrivate(); } /** * optional bytes private = 3 [json_name = "private"]; * @return The private. */ @java.lang.Override public com.google.protobuf.ByteString getPrivate() { return instance.getPrivate(); } /** * optional bytes private = 3 [json_name = "private"]; * @param value The private to set. * @return This builder for chaining. */ public Builder setPrivate(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPrivate(value); return this; } /** * optional bytes private = 3 [json_name = "private"]; * @return This builder for chaining. */ public Builder clearPrivate() { copyOnWrite(); instance.clearPrivate(); return this; } /** * optional bytes trusted = 4 [json_name = "trusted"]; * @return Whether the trusted field is set. */ @java.lang.Override public boolean hasTrusted() { return instance.hasTrusted(); } /** * optional bytes trusted = 4 [json_name = "trusted"]; * @return The trusted. */ @java.lang.Override public com.google.protobuf.ByteString getTrusted() { return instance.getTrusted(); } /** * optional bytes trusted = 4 [json_name = "trusted"]; * @param value The trusted to set. * @return This builder for chaining. */ public Builder setTrusted(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTrusted(value); return this; } /** * optional bytes trusted = 4 [json_name = "trusted"]; * @return This builder for chaining. */ public Builder clearTrusted() { copyOnWrite(); instance.clearTrusted(); return this; } // @@protoc_insertion_point(builder_scope:pbx.SetDesc) } @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 pbx.Model.SetDesc(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "defaultAcs_", "public_", "private_", "trusted_", }; java.lang.String info = "\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u1009\u0000\u0002" + "\u100a\u0001\u0003\u100a\u0002\u0004\u100a\u0003"; 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 (pbx.Model.SetDesc.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:pbx.SetDesc) private static final pbx.Model.SetDesc DEFAULT_INSTANCE; static { SetDesc defaultInstance = new SetDesc(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SetDesc.class, defaultInstance); } public static pbx.Model.SetDesc getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface GetOptsOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.GetOpts) com.google.protobuf.MessageLiteOrBuilder { /** *
     * Timestamp in milliseconds since epoch 01/01/1970
     * 
* * int64 if_modified_since = 1 [json_name = "ifModifiedSince"]; * @return The ifModifiedSince. */ long getIfModifiedSince(); /** *
     * Limit search to this user ID
     * 
* * string user = 2 [json_name = "user"]; * @return The user. */ java.lang.String getUser(); /** *
     * Limit search to this user ID
     * 
* * string user = 2 [json_name = "user"]; * @return The bytes for user. */ com.google.protobuf.ByteString getUserBytes(); /** *
     * Limit search results to one topic;
     * 
* * string topic = 3 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** *
     * Limit search results to one topic;
     * 
* * string topic = 3 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** *
     * Load messages with seq id equal or greater than this
     * 
* * int32 since_id = 4 [json_name = "sinceId"]; * @return The sinceId. */ int getSinceId(); /** *
     * Load messages with seq id lower than this
     * 
* * int32 before_id = 5 [json_name = "beforeId"]; * @return The beforeId. */ int getBeforeId(); /** *
     * Maximum number of results to return
     * 
* * int32 limit = 6 [json_name = "limit"]; * @return The limit. */ int getLimit(); /** *
     * Order: asc, desc
     * 
* * string order = 7 [json_name = "order"]; * @return The order. */ java.lang.String getOrder(); /** *
     * Order: asc, desc
     * 
* * string order = 7 [json_name = "order"]; * @return The bytes for order. */ com.google.protobuf.ByteString getOrderBytes(); /** * int64 last_created_at = 8 [json_name = "lastCreatedAt"]; * @return The lastCreatedAt. */ long getLastCreatedAt(); } /** * Protobuf type {@code pbx.GetOpts} */ public static final class GetOpts extends com.google.protobuf.GeneratedMessageLite< GetOpts, GetOpts.Builder> implements // @@protoc_insertion_point(message_implements:pbx.GetOpts) GetOptsOrBuilder { private GetOpts() { user_ = ""; topic_ = ""; order_ = ""; } public static final int IF_MODIFIED_SINCE_FIELD_NUMBER = 1; private long ifModifiedSince_; /** *
     * Timestamp in milliseconds since epoch 01/01/1970
     * 
* * int64 if_modified_since = 1 [json_name = "ifModifiedSince"]; * @return The ifModifiedSince. */ @java.lang.Override public long getIfModifiedSince() { return ifModifiedSince_; } /** *
     * Timestamp in milliseconds since epoch 01/01/1970
     * 
* * int64 if_modified_since = 1 [json_name = "ifModifiedSince"]; * @param value The ifModifiedSince to set. */ private void setIfModifiedSince(long value) { ifModifiedSince_ = value; } /** *
     * Timestamp in milliseconds since epoch 01/01/1970
     * 
* * int64 if_modified_since = 1 [json_name = "ifModifiedSince"]; */ private void clearIfModifiedSince() { ifModifiedSince_ = 0L; } public static final int USER_FIELD_NUMBER = 2; private java.lang.String user_; /** *
     * Limit search to this user ID
     * 
* * string user = 2 [json_name = "user"]; * @return The user. */ @java.lang.Override public java.lang.String getUser() { return user_; } /** *
     * Limit search to this user ID
     * 
* * string user = 2 [json_name = "user"]; * @return The bytes for user. */ @java.lang.Override public com.google.protobuf.ByteString getUserBytes() { return com.google.protobuf.ByteString.copyFromUtf8(user_); } /** *
     * Limit search to this user ID
     * 
* * string user = 2 [json_name = "user"]; * @param value The user to set. */ private void setUser( java.lang.String value) { java.lang.Class valueClass = value.getClass(); user_ = value; } /** *
     * Limit search to this user ID
     * 
* * string user = 2 [json_name = "user"]; */ private void clearUser() { user_ = getDefaultInstance().getUser(); } /** *
     * Limit search to this user ID
     * 
* * string user = 2 [json_name = "user"]; * @param value The bytes for user to set. */ private void setUserBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); user_ = value.toStringUtf8(); } public static final int TOPIC_FIELD_NUMBER = 3; private java.lang.String topic_; /** *
     * Limit search results to one topic;
     * 
* * string topic = 3 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** *
     * Limit search results to one topic;
     * 
* * string topic = 3 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** *
     * Limit search results to one topic;
     * 
* * string topic = 3 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** *
     * Limit search results to one topic;
     * 
* * string topic = 3 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** *
     * Limit search results to one topic;
     * 
* * string topic = 3 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int SINCE_ID_FIELD_NUMBER = 4; private int sinceId_; /** *
     * Load messages with seq id equal or greater than this
     * 
* * int32 since_id = 4 [json_name = "sinceId"]; * @return The sinceId. */ @java.lang.Override public int getSinceId() { return sinceId_; } /** *
     * Load messages with seq id equal or greater than this
     * 
* * int32 since_id = 4 [json_name = "sinceId"]; * @param value The sinceId to set. */ private void setSinceId(int value) { sinceId_ = value; } /** *
     * Load messages with seq id equal or greater than this
     * 
* * int32 since_id = 4 [json_name = "sinceId"]; */ private void clearSinceId() { sinceId_ = 0; } public static final int BEFORE_ID_FIELD_NUMBER = 5; private int beforeId_; /** *
     * Load messages with seq id lower than this
     * 
* * int32 before_id = 5 [json_name = "beforeId"]; * @return The beforeId. */ @java.lang.Override public int getBeforeId() { return beforeId_; } /** *
     * Load messages with seq id lower than this
     * 
* * int32 before_id = 5 [json_name = "beforeId"]; * @param value The beforeId to set. */ private void setBeforeId(int value) { beforeId_ = value; } /** *
     * Load messages with seq id lower than this
     * 
* * int32 before_id = 5 [json_name = "beforeId"]; */ private void clearBeforeId() { beforeId_ = 0; } public static final int LIMIT_FIELD_NUMBER = 6; private int limit_; /** *
     * Maximum number of results to return
     * 
* * int32 limit = 6 [json_name = "limit"]; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } /** *
     * Maximum number of results to return
     * 
* * int32 limit = 6 [json_name = "limit"]; * @param value The limit to set. */ private void setLimit(int value) { limit_ = value; } /** *
     * Maximum number of results to return
     * 
* * int32 limit = 6 [json_name = "limit"]; */ private void clearLimit() { limit_ = 0; } public static final int ORDER_FIELD_NUMBER = 7; private java.lang.String order_; /** *
     * Order: asc, desc
     * 
* * string order = 7 [json_name = "order"]; * @return The order. */ @java.lang.Override public java.lang.String getOrder() { return order_; } /** *
     * Order: asc, desc
     * 
* * string order = 7 [json_name = "order"]; * @return The bytes for order. */ @java.lang.Override public com.google.protobuf.ByteString getOrderBytes() { return com.google.protobuf.ByteString.copyFromUtf8(order_); } /** *
     * Order: asc, desc
     * 
* * string order = 7 [json_name = "order"]; * @param value The order to set. */ private void setOrder( java.lang.String value) { java.lang.Class valueClass = value.getClass(); order_ = value; } /** *
     * Order: asc, desc
     * 
* * string order = 7 [json_name = "order"]; */ private void clearOrder() { order_ = getDefaultInstance().getOrder(); } /** *
     * Order: asc, desc
     * 
* * string order = 7 [json_name = "order"]; * @param value The bytes for order to set. */ private void setOrderBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); order_ = value.toStringUtf8(); } public static final int LAST_CREATED_AT_FIELD_NUMBER = 8; private long lastCreatedAt_; /** * int64 last_created_at = 8 [json_name = "lastCreatedAt"]; * @return The lastCreatedAt. */ @java.lang.Override public long getLastCreatedAt() { return lastCreatedAt_; } /** * int64 last_created_at = 8 [json_name = "lastCreatedAt"]; * @param value The lastCreatedAt to set. */ private void setLastCreatedAt(long value) { lastCreatedAt_ = value; } /** * int64 last_created_at = 8 [json_name = "lastCreatedAt"]; */ private void clearLastCreatedAt() { lastCreatedAt_ = 0L; } public static pbx.Model.GetOpts parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.GetOpts 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 pbx.Model.GetOpts parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.GetOpts 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 pbx.Model.GetOpts parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.GetOpts 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 pbx.Model.GetOpts parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.GetOpts 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 pbx.Model.GetOpts parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.GetOpts parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.GetOpts parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.GetOpts 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(pbx.Model.GetOpts prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.GetOpts} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.GetOpts, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.GetOpts) pbx.Model.GetOptsOrBuilder { // Construct using pbx.Model.GetOpts.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * Timestamp in milliseconds since epoch 01/01/1970
       * 
* * int64 if_modified_since = 1 [json_name = "ifModifiedSince"]; * @return The ifModifiedSince. */ @java.lang.Override public long getIfModifiedSince() { return instance.getIfModifiedSince(); } /** *
       * Timestamp in milliseconds since epoch 01/01/1970
       * 
* * int64 if_modified_since = 1 [json_name = "ifModifiedSince"]; * @param value The ifModifiedSince to set. * @return This builder for chaining. */ public Builder setIfModifiedSince(long value) { copyOnWrite(); instance.setIfModifiedSince(value); return this; } /** *
       * Timestamp in milliseconds since epoch 01/01/1970
       * 
* * int64 if_modified_since = 1 [json_name = "ifModifiedSince"]; * @return This builder for chaining. */ public Builder clearIfModifiedSince() { copyOnWrite(); instance.clearIfModifiedSince(); return this; } /** *
       * Limit search to this user ID
       * 
* * string user = 2 [json_name = "user"]; * @return The user. */ @java.lang.Override public java.lang.String getUser() { return instance.getUser(); } /** *
       * Limit search to this user ID
       * 
* * string user = 2 [json_name = "user"]; * @return The bytes for user. */ @java.lang.Override public com.google.protobuf.ByteString getUserBytes() { return instance.getUserBytes(); } /** *
       * Limit search to this user ID
       * 
* * string user = 2 [json_name = "user"]; * @param value The user to set. * @return This builder for chaining. */ public Builder setUser( java.lang.String value) { copyOnWrite(); instance.setUser(value); return this; } /** *
       * Limit search to this user ID
       * 
* * string user = 2 [json_name = "user"]; * @return This builder for chaining. */ public Builder clearUser() { copyOnWrite(); instance.clearUser(); return this; } /** *
       * Limit search to this user ID
       * 
* * string user = 2 [json_name = "user"]; * @param value The bytes for user to set. * @return This builder for chaining. */ public Builder setUserBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserBytes(value); return this; } /** *
       * Limit search results to one topic;
       * 
* * string topic = 3 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** *
       * Limit search results to one topic;
       * 
* * string topic = 3 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** *
       * Limit search results to one topic;
       * 
* * string topic = 3 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** *
       * Limit search results to one topic;
       * 
* * string topic = 3 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** *
       * Limit search results to one topic;
       * 
* * string topic = 3 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** *
       * Load messages with seq id equal or greater than this
       * 
* * int32 since_id = 4 [json_name = "sinceId"]; * @return The sinceId. */ @java.lang.Override public int getSinceId() { return instance.getSinceId(); } /** *
       * Load messages with seq id equal or greater than this
       * 
* * int32 since_id = 4 [json_name = "sinceId"]; * @param value The sinceId to set. * @return This builder for chaining. */ public Builder setSinceId(int value) { copyOnWrite(); instance.setSinceId(value); return this; } /** *
       * Load messages with seq id equal or greater than this
       * 
* * int32 since_id = 4 [json_name = "sinceId"]; * @return This builder for chaining. */ public Builder clearSinceId() { copyOnWrite(); instance.clearSinceId(); return this; } /** *
       * Load messages with seq id lower than this
       * 
* * int32 before_id = 5 [json_name = "beforeId"]; * @return The beforeId. */ @java.lang.Override public int getBeforeId() { return instance.getBeforeId(); } /** *
       * Load messages with seq id lower than this
       * 
* * int32 before_id = 5 [json_name = "beforeId"]; * @param value The beforeId to set. * @return This builder for chaining. */ public Builder setBeforeId(int value) { copyOnWrite(); instance.setBeforeId(value); return this; } /** *
       * Load messages with seq id lower than this
       * 
* * int32 before_id = 5 [json_name = "beforeId"]; * @return This builder for chaining. */ public Builder clearBeforeId() { copyOnWrite(); instance.clearBeforeId(); return this; } /** *
       * Maximum number of results to return
       * 
* * int32 limit = 6 [json_name = "limit"]; * @return The limit. */ @java.lang.Override public int getLimit() { return instance.getLimit(); } /** *
       * Maximum number of results to return
       * 
* * int32 limit = 6 [json_name = "limit"]; * @param value The limit to set. * @return This builder for chaining. */ public Builder setLimit(int value) { copyOnWrite(); instance.setLimit(value); return this; } /** *
       * Maximum number of results to return
       * 
* * int32 limit = 6 [json_name = "limit"]; * @return This builder for chaining. */ public Builder clearLimit() { copyOnWrite(); instance.clearLimit(); return this; } /** *
       * Order: asc, desc
       * 
* * string order = 7 [json_name = "order"]; * @return The order. */ @java.lang.Override public java.lang.String getOrder() { return instance.getOrder(); } /** *
       * Order: asc, desc
       * 
* * string order = 7 [json_name = "order"]; * @return The bytes for order. */ @java.lang.Override public com.google.protobuf.ByteString getOrderBytes() { return instance.getOrderBytes(); } /** *
       * Order: asc, desc
       * 
* * string order = 7 [json_name = "order"]; * @param value The order to set. * @return This builder for chaining. */ public Builder setOrder( java.lang.String value) { copyOnWrite(); instance.setOrder(value); return this; } /** *
       * Order: asc, desc
       * 
* * string order = 7 [json_name = "order"]; * @return This builder for chaining. */ public Builder clearOrder() { copyOnWrite(); instance.clearOrder(); return this; } /** *
       * Order: asc, desc
       * 
* * string order = 7 [json_name = "order"]; * @param value The bytes for order to set. * @return This builder for chaining. */ public Builder setOrderBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setOrderBytes(value); return this; } /** * int64 last_created_at = 8 [json_name = "lastCreatedAt"]; * @return The lastCreatedAt. */ @java.lang.Override public long getLastCreatedAt() { return instance.getLastCreatedAt(); } /** * int64 last_created_at = 8 [json_name = "lastCreatedAt"]; * @param value The lastCreatedAt to set. * @return This builder for chaining. */ public Builder setLastCreatedAt(long value) { copyOnWrite(); instance.setLastCreatedAt(value); return this; } /** * int64 last_created_at = 8 [json_name = "lastCreatedAt"]; * @return This builder for chaining. */ public Builder clearLastCreatedAt() { copyOnWrite(); instance.clearLastCreatedAt(); return this; } // @@protoc_insertion_point(builder_scope:pbx.GetOpts) } @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 pbx.Model.GetOpts(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "ifModifiedSince_", "user_", "topic_", "sinceId_", "beforeId_", "limit_", "order_", "lastCreatedAt_", }; java.lang.String info = "\u0000\b\u0000\u0000\u0001\b\b\u0000\u0000\u0000\u0001\u0002\u0002\u0208\u0003\u0208" + "\u0004\u0004\u0005\u0004\u0006\u0004\u0007\u0208\b\u0002"; 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 (pbx.Model.GetOpts.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:pbx.GetOpts) private static final pbx.Model.GetOpts DEFAULT_INSTANCE; static { GetOpts defaultInstance = new GetOpts(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( GetOpts.class, defaultInstance); } public static pbx.Model.GetOpts getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface GetQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.GetQuery) com.google.protobuf.MessageLiteOrBuilder { /** * string what = 1 [json_name = "what"]; * @return The what. */ java.lang.String getWhat(); /** * string what = 1 [json_name = "what"]; * @return The bytes for what. */ com.google.protobuf.ByteString getWhatBytes(); /** *
     * Parameters of "desc" request
     * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; * @return Whether the desc field is set. */ boolean hasDesc(); /** *
     * Parameters of "desc" request
     * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; * @return The desc. */ pbx.Model.GetOpts getDesc(); /** *
     * Parameters of "sub" request
     * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; * @return Whether the sub field is set. */ boolean hasSub(); /** *
     * Parameters of "sub" request
     * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; * @return The sub. */ pbx.Model.GetOpts getSub(); /** *
     * Parameters of "data" request
     * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; * @return Whether the data field is set. */ boolean hasData(); /** *
     * Parameters of "data" request
     * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; * @return The data. */ pbx.Model.GetOpts getData(); } /** * Protobuf type {@code pbx.GetQuery} */ public static final class GetQuery extends com.google.protobuf.GeneratedMessageLite< GetQuery, GetQuery.Builder> implements // @@protoc_insertion_point(message_implements:pbx.GetQuery) GetQueryOrBuilder { private GetQuery() { what_ = ""; } private int bitField0_; public static final int WHAT_FIELD_NUMBER = 1; private java.lang.String what_; /** * string what = 1 [json_name = "what"]; * @return The what. */ @java.lang.Override public java.lang.String getWhat() { return what_; } /** * string what = 1 [json_name = "what"]; * @return The bytes for what. */ @java.lang.Override public com.google.protobuf.ByteString getWhatBytes() { return com.google.protobuf.ByteString.copyFromUtf8(what_); } /** * string what = 1 [json_name = "what"]; * @param value The what to set. */ private void setWhat( java.lang.String value) { java.lang.Class valueClass = value.getClass(); what_ = value; } /** * string what = 1 [json_name = "what"]; */ private void clearWhat() { what_ = getDefaultInstance().getWhat(); } /** * string what = 1 [json_name = "what"]; * @param value The bytes for what to set. */ private void setWhatBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); what_ = value.toStringUtf8(); } public static final int DESC_FIELD_NUMBER = 2; private pbx.Model.GetOpts desc_; /** *
     * Parameters of "desc" request
     * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ @java.lang.Override public boolean hasDesc() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Parameters of "desc" request
     * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ @java.lang.Override public pbx.Model.GetOpts getDesc() { return desc_ == null ? pbx.Model.GetOpts.getDefaultInstance() : desc_; } /** *
     * Parameters of "desc" request
     * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ private void setDesc(pbx.Model.GetOpts value) { value.getClass(); desc_ = value; bitField0_ |= 0x00000001; } /** *
     * Parameters of "desc" request
     * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeDesc(pbx.Model.GetOpts value) { value.getClass(); if (desc_ != null && desc_ != pbx.Model.GetOpts.getDefaultInstance()) { desc_ = pbx.Model.GetOpts.newBuilder(desc_).mergeFrom(value).buildPartial(); } else { desc_ = value; } bitField0_ |= 0x00000001; } /** *
     * Parameters of "desc" request
     * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ private void clearDesc() { desc_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int SUB_FIELD_NUMBER = 3; private pbx.Model.GetOpts sub_; /** *
     * Parameters of "sub" request
     * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ @java.lang.Override public boolean hasSub() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Parameters of "sub" request
     * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ @java.lang.Override public pbx.Model.GetOpts getSub() { return sub_ == null ? pbx.Model.GetOpts.getDefaultInstance() : sub_; } /** *
     * Parameters of "sub" request
     * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ private void setSub(pbx.Model.GetOpts value) { value.getClass(); sub_ = value; bitField0_ |= 0x00000002; } /** *
     * Parameters of "sub" request
     * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeSub(pbx.Model.GetOpts value) { value.getClass(); if (sub_ != null && sub_ != pbx.Model.GetOpts.getDefaultInstance()) { sub_ = pbx.Model.GetOpts.newBuilder(sub_).mergeFrom(value).buildPartial(); } else { sub_ = value; } bitField0_ |= 0x00000002; } /** *
     * Parameters of "sub" request
     * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ private void clearSub() { sub_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static final int DATA_FIELD_NUMBER = 4; private pbx.Model.GetOpts data_; /** *
     * Parameters of "data" request
     * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ @java.lang.Override public boolean hasData() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Parameters of "data" request
     * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ @java.lang.Override public pbx.Model.GetOpts getData() { return data_ == null ? pbx.Model.GetOpts.getDefaultInstance() : data_; } /** *
     * Parameters of "data" request
     * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ private void setData(pbx.Model.GetOpts value) { value.getClass(); data_ = value; bitField0_ |= 0x00000004; } /** *
     * Parameters of "data" request
     * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeData(pbx.Model.GetOpts value) { value.getClass(); if (data_ != null && data_ != pbx.Model.GetOpts.getDefaultInstance()) { data_ = pbx.Model.GetOpts.newBuilder(data_).mergeFrom(value).buildPartial(); } else { data_ = value; } bitField0_ |= 0x00000004; } /** *
     * Parameters of "data" request
     * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ private void clearData() { data_ = null; bitField0_ = (bitField0_ & ~0x00000004); } public static pbx.Model.GetQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.GetQuery 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 pbx.Model.GetQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.GetQuery 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 pbx.Model.GetQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.GetQuery 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 pbx.Model.GetQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.GetQuery 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 pbx.Model.GetQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.GetQuery parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.GetQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.GetQuery 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(pbx.Model.GetQuery prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.GetQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.GetQuery, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.GetQuery) pbx.Model.GetQueryOrBuilder { // Construct using pbx.Model.GetQuery.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string what = 1 [json_name = "what"]; * @return The what. */ @java.lang.Override public java.lang.String getWhat() { return instance.getWhat(); } /** * string what = 1 [json_name = "what"]; * @return The bytes for what. */ @java.lang.Override public com.google.protobuf.ByteString getWhatBytes() { return instance.getWhatBytes(); } /** * string what = 1 [json_name = "what"]; * @param value The what to set. * @return This builder for chaining. */ public Builder setWhat( java.lang.String value) { copyOnWrite(); instance.setWhat(value); return this; } /** * string what = 1 [json_name = "what"]; * @return This builder for chaining. */ public Builder clearWhat() { copyOnWrite(); instance.clearWhat(); return this; } /** * string what = 1 [json_name = "what"]; * @param value The bytes for what to set. * @return This builder for chaining. */ public Builder setWhatBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setWhatBytes(value); return this; } /** *
       * Parameters of "desc" request
       * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ @java.lang.Override public boolean hasDesc() { return instance.hasDesc(); } /** *
       * Parameters of "desc" request
       * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ @java.lang.Override public pbx.Model.GetOpts getDesc() { return instance.getDesc(); } /** *
       * Parameters of "desc" request
       * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ public Builder setDesc(pbx.Model.GetOpts value) { copyOnWrite(); instance.setDesc(value); return this; } /** *
       * Parameters of "desc" request
       * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ public Builder setDesc( pbx.Model.GetOpts.Builder builderForValue) { copyOnWrite(); instance.setDesc(builderForValue.build()); return this; } /** *
       * Parameters of "desc" request
       * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ public Builder mergeDesc(pbx.Model.GetOpts value) { copyOnWrite(); instance.mergeDesc(value); return this; } /** *
       * Parameters of "desc" request
       * 
* * optional .pbx.GetOpts desc = 2 [json_name = "desc"]; */ public Builder clearDesc() { copyOnWrite(); instance.clearDesc(); return this; } /** *
       * Parameters of "sub" request
       * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ @java.lang.Override public boolean hasSub() { return instance.hasSub(); } /** *
       * Parameters of "sub" request
       * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ @java.lang.Override public pbx.Model.GetOpts getSub() { return instance.getSub(); } /** *
       * Parameters of "sub" request
       * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ public Builder setSub(pbx.Model.GetOpts value) { copyOnWrite(); instance.setSub(value); return this; } /** *
       * Parameters of "sub" request
       * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ public Builder setSub( pbx.Model.GetOpts.Builder builderForValue) { copyOnWrite(); instance.setSub(builderForValue.build()); return this; } /** *
       * Parameters of "sub" request
       * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ public Builder mergeSub(pbx.Model.GetOpts value) { copyOnWrite(); instance.mergeSub(value); return this; } /** *
       * Parameters of "sub" request
       * 
* * optional .pbx.GetOpts sub = 3 [json_name = "sub"]; */ public Builder clearSub() { copyOnWrite(); instance.clearSub(); return this; } /** *
       * Parameters of "data" request
       * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ @java.lang.Override public boolean hasData() { return instance.hasData(); } /** *
       * Parameters of "data" request
       * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ @java.lang.Override public pbx.Model.GetOpts getData() { return instance.getData(); } /** *
       * Parameters of "data" request
       * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ public Builder setData(pbx.Model.GetOpts value) { copyOnWrite(); instance.setData(value); return this; } /** *
       * Parameters of "data" request
       * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ public Builder setData( pbx.Model.GetOpts.Builder builderForValue) { copyOnWrite(); instance.setData(builderForValue.build()); return this; } /** *
       * Parameters of "data" request
       * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ public Builder mergeData(pbx.Model.GetOpts value) { copyOnWrite(); instance.mergeData(value); return this; } /** *
       * Parameters of "data" request
       * 
* * optional .pbx.GetOpts data = 4 [json_name = "data"]; */ public Builder clearData() { copyOnWrite(); instance.clearData(); return this; } // @@protoc_insertion_point(builder_scope:pbx.GetQuery) } @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 pbx.Model.GetQuery(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "what_", "desc_", "sub_", "data_", }; java.lang.String info = "\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0208\u0002\u1009" + "\u0000\u0003\u1009\u0001\u0004\u1009\u0002"; 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 (pbx.Model.GetQuery.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:pbx.GetQuery) private static final pbx.Model.GetQuery DEFAULT_INSTANCE; static { GetQuery defaultInstance = new GetQuery(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( GetQuery.class, defaultInstance); } public static pbx.Model.GetQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface SetQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.SetQuery) com.google.protobuf.MessageLiteOrBuilder { /** *
     * Topic metadata, new topic & new subscriptions only
     * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; * @return Whether the desc field is set. */ boolean hasDesc(); /** *
     * Topic metadata, new topic & new subscriptions only
     * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; * @return The desc. */ pbx.Model.SetDesc getDesc(); /** *
     * Subscription parameters
     * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; * @return Whether the sub field is set. */ boolean hasSub(); /** *
     * Subscription parameters
     * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; * @return The sub. */ pbx.Model.SetSub getSub(); /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @return A list containing the tags. */ java.util.List getTagsList(); /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @return The count of tags. */ int getTagsCount(); /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** *
     * Credential being updated.
     * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; * @return Whether the cred field is set. */ boolean hasCred(); /** *
     * Credential being updated.
     * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; * @return The cred. */ pbx.Model.ClientCred getCred(); } /** * Protobuf type {@code pbx.SetQuery} */ public static final class SetQuery extends com.google.protobuf.GeneratedMessageLite< SetQuery, SetQuery.Builder> implements // @@protoc_insertion_point(message_implements:pbx.SetQuery) SetQueryOrBuilder { private SetQuery() { tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } private int bitField0_; public static final int DESC_FIELD_NUMBER = 1; private pbx.Model.SetDesc desc_; /** *
     * Topic metadata, new topic & new subscriptions only
     * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ @java.lang.Override public boolean hasDesc() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Topic metadata, new topic & new subscriptions only
     * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ @java.lang.Override public pbx.Model.SetDesc getDesc() { return desc_ == null ? pbx.Model.SetDesc.getDefaultInstance() : desc_; } /** *
     * Topic metadata, new topic & new subscriptions only
     * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ private void setDesc(pbx.Model.SetDesc value) { value.getClass(); desc_ = value; bitField0_ |= 0x00000001; } /** *
     * Topic metadata, new topic & new subscriptions only
     * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeDesc(pbx.Model.SetDesc value) { value.getClass(); if (desc_ != null && desc_ != pbx.Model.SetDesc.getDefaultInstance()) { desc_ = pbx.Model.SetDesc.newBuilder(desc_).mergeFrom(value).buildPartial(); } else { desc_ = value; } bitField0_ |= 0x00000001; } /** *
     * Topic metadata, new topic & new subscriptions only
     * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ private void clearDesc() { desc_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int SUB_FIELD_NUMBER = 2; private pbx.Model.SetSub sub_; /** *
     * Subscription parameters
     * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ @java.lang.Override public boolean hasSub() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Subscription parameters
     * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ @java.lang.Override public pbx.Model.SetSub getSub() { return sub_ == null ? pbx.Model.SetSub.getDefaultInstance() : sub_; } /** *
     * Subscription parameters
     * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ private void setSub(pbx.Model.SetSub value) { value.getClass(); sub_ = value; bitField0_ |= 0x00000002; } /** *
     * Subscription parameters
     * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeSub(pbx.Model.SetSub value) { value.getClass(); if (sub_ != null && sub_ != pbx.Model.SetSub.getDefaultInstance()) { sub_ = pbx.Model.SetSub.newBuilder(sub_).mergeFrom(value).buildPartial(); } else { sub_ = value; } bitField0_ |= 0x00000002; } /** *
     * Subscription parameters
     * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ private void clearSub() { sub_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static final int TAGS_FIELD_NUMBER = 3; private com.google.protobuf.Internal.ProtobufList tags_; /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @return A list containing the tags. */ @java.lang.Override public java.util.List getTagsList() { return tags_; } /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @return The count of tags. */ @java.lang.Override public int getTagsCount() { return tags_.size(); } /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ @java.lang.Override public java.lang.String getTags(int index) { return tags_.get(index); } /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getTagsBytes(int index) { return com.google.protobuf.ByteString.copyFromUtf8( tags_.get(index)); } private void ensureTagsIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = tags_; if (!tmp.isModifiable()) { tags_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @param index The index to set the value at. * @param value The tags to set. */ private void setTags( int index, java.lang.String value) { java.lang.Class valueClass = value.getClass(); ensureTagsIsMutable(); tags_.set(index, value); } /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @param value The tags to add. */ private void addTags( java.lang.String value) { java.lang.Class valueClass = value.getClass(); ensureTagsIsMutable(); tags_.add(value); } /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @param values The tags to add. */ private void addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, tags_); } /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; */ private void clearTags() { tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } /** *
     * Indexable tags
     * 
* * repeated string tags = 3 [json_name = "tags"]; * @param value The bytes of the tags to add. */ private void addTagsBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value.toStringUtf8()); } public static final int CRED_FIELD_NUMBER = 4; private pbx.Model.ClientCred cred_; /** *
     * Credential being updated.
     * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.Override public boolean hasCred() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Credential being updated.
     * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.Override public pbx.Model.ClientCred getCred() { return cred_ == null ? pbx.Model.ClientCred.getDefaultInstance() : cred_; } /** *
     * Credential being updated.
     * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ private void setCred(pbx.Model.ClientCred value) { value.getClass(); cred_ = value; bitField0_ |= 0x00000004; } /** *
     * Credential being updated.
     * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeCred(pbx.Model.ClientCred value) { value.getClass(); if (cred_ != null && cred_ != pbx.Model.ClientCred.getDefaultInstance()) { cred_ = pbx.Model.ClientCred.newBuilder(cred_).mergeFrom(value).buildPartial(); } else { cred_ = value; } bitField0_ |= 0x00000004; } /** *
     * Credential being updated.
     * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ private void clearCred() { cred_ = null; bitField0_ = (bitField0_ & ~0x00000004); } public static pbx.Model.SetQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SetQuery 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 pbx.Model.SetQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SetQuery 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 pbx.Model.SetQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SetQuery 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 pbx.Model.SetQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SetQuery 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 pbx.Model.SetQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.SetQuery parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.SetQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SetQuery 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(pbx.Model.SetQuery prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.SetQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.SetQuery, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.SetQuery) pbx.Model.SetQueryOrBuilder { // Construct using pbx.Model.SetQuery.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * Topic metadata, new topic & new subscriptions only
       * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ @java.lang.Override public boolean hasDesc() { return instance.hasDesc(); } /** *
       * Topic metadata, new topic & new subscriptions only
       * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ @java.lang.Override public pbx.Model.SetDesc getDesc() { return instance.getDesc(); } /** *
       * Topic metadata, new topic & new subscriptions only
       * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ public Builder setDesc(pbx.Model.SetDesc value) { copyOnWrite(); instance.setDesc(value); return this; } /** *
       * Topic metadata, new topic & new subscriptions only
       * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ public Builder setDesc( pbx.Model.SetDesc.Builder builderForValue) { copyOnWrite(); instance.setDesc(builderForValue.build()); return this; } /** *
       * Topic metadata, new topic & new subscriptions only
       * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ public Builder mergeDesc(pbx.Model.SetDesc value) { copyOnWrite(); instance.mergeDesc(value); return this; } /** *
       * Topic metadata, new topic & new subscriptions only
       * 
* * optional .pbx.SetDesc desc = 1 [json_name = "desc"]; */ public Builder clearDesc() { copyOnWrite(); instance.clearDesc(); return this; } /** *
       * Subscription parameters
       * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ @java.lang.Override public boolean hasSub() { return instance.hasSub(); } /** *
       * Subscription parameters
       * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ @java.lang.Override public pbx.Model.SetSub getSub() { return instance.getSub(); } /** *
       * Subscription parameters
       * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ public Builder setSub(pbx.Model.SetSub value) { copyOnWrite(); instance.setSub(value); return this; } /** *
       * Subscription parameters
       * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ public Builder setSub( pbx.Model.SetSub.Builder builderForValue) { copyOnWrite(); instance.setSub(builderForValue.build()); return this; } /** *
       * Subscription parameters
       * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ public Builder mergeSub(pbx.Model.SetSub value) { copyOnWrite(); instance.mergeSub(value); return this; } /** *
       * Subscription parameters
       * 
* * optional .pbx.SetSub sub = 2 [json_name = "sub"]; */ public Builder clearSub() { copyOnWrite(); instance.clearSub(); return this; } /** *
       * Indexable tags
       * 
* * repeated string tags = 3 [json_name = "tags"]; * @return A list containing the tags. */ @java.lang.Override public java.util.List getTagsList() { return java.util.Collections.unmodifiableList( instance.getTagsList()); } /** *
       * Indexable tags
       * 
* * repeated string tags = 3 [json_name = "tags"]; * @return The count of tags. */ @java.lang.Override public int getTagsCount() { return instance.getTagsCount(); } /** *
       * Indexable tags
       * 
* * repeated string tags = 3 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ @java.lang.Override public java.lang.String getTags(int index) { return instance.getTags(index); } /** *
       * Indexable tags
       * 
* * repeated string tags = 3 [json_name = "tags"]; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getTagsBytes(int index) { return instance.getTagsBytes(index); } /** *
       * Indexable tags
       * 
* * repeated string tags = 3 [json_name = "tags"]; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { copyOnWrite(); instance.setTags(index, value); return this; } /** *
       * Indexable tags
       * 
* * repeated string tags = 3 [json_name = "tags"]; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { copyOnWrite(); instance.addTags(value); return this; } /** *
       * Indexable tags
       * 
* * repeated string tags = 3 [json_name = "tags"]; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { copyOnWrite(); instance.addAllTags(values); return this; } /** *
       * Indexable tags
       * 
* * repeated string tags = 3 [json_name = "tags"]; * @return This builder for chaining. */ public Builder clearTags() { copyOnWrite(); instance.clearTags(); return this; } /** *
       * Indexable tags
       * 
* * repeated string tags = 3 [json_name = "tags"]; * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.addTagsBytes(value); return this; } /** *
       * Credential being updated.
       * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.Override public boolean hasCred() { return instance.hasCred(); } /** *
       * Credential being updated.
       * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.Override public pbx.Model.ClientCred getCred() { return instance.getCred(); } /** *
       * Credential being updated.
       * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder setCred(pbx.Model.ClientCred value) { copyOnWrite(); instance.setCred(value); return this; } /** *
       * Credential being updated.
       * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder setCred( pbx.Model.ClientCred.Builder builderForValue) { copyOnWrite(); instance.setCred(builderForValue.build()); return this; } /** *
       * Credential being updated.
       * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder mergeCred(pbx.Model.ClientCred value) { copyOnWrite(); instance.mergeCred(value); return this; } /** *
       * Credential being updated.
       * 
* * optional .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder clearCred() { copyOnWrite(); instance.clearCred(); return this; } // @@protoc_insertion_point(builder_scope:pbx.SetQuery) } @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 pbx.Model.SetQuery(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "desc_", "sub_", "tags_", "cred_", }; java.lang.String info = "\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0001\u0000\u0001\u1009\u0000\u0002" + "\u1009\u0001\u0003\u021a\u0004\u1009\u0002"; 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 (pbx.Model.SetQuery.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:pbx.SetQuery) private static final pbx.Model.SetQuery DEFAULT_INSTANCE; static { SetQuery defaultInstance = new SetQuery(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SetQuery.class, defaultInstance); } public static pbx.Model.SetQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface SeqRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.SeqRange) com.google.protobuf.MessageLiteOrBuilder { /** * int32 low = 1 [json_name = "low"]; * @return The low. */ int getLow(); /** * int32 hi = 2 [json_name = "hi"]; * @return The hi. */ int getHi(); } /** * Protobuf type {@code pbx.SeqRange} */ public static final class SeqRange extends com.google.protobuf.GeneratedMessageLite< SeqRange, SeqRange.Builder> implements // @@protoc_insertion_point(message_implements:pbx.SeqRange) SeqRangeOrBuilder { private SeqRange() { } public static final int LOW_FIELD_NUMBER = 1; private int low_; /** * int32 low = 1 [json_name = "low"]; * @return The low. */ @java.lang.Override public int getLow() { return low_; } /** * int32 low = 1 [json_name = "low"]; * @param value The low to set. */ private void setLow(int value) { low_ = value; } /** * int32 low = 1 [json_name = "low"]; */ private void clearLow() { low_ = 0; } public static final int HI_FIELD_NUMBER = 2; private int hi_; /** * int32 hi = 2 [json_name = "hi"]; * @return The hi. */ @java.lang.Override public int getHi() { return hi_; } /** * int32 hi = 2 [json_name = "hi"]; * @param value The hi to set. */ private void setHi(int value) { hi_ = value; } /** * int32 hi = 2 [json_name = "hi"]; */ private void clearHi() { hi_ = 0; } public static pbx.Model.SeqRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SeqRange 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 pbx.Model.SeqRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SeqRange 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 pbx.Model.SeqRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SeqRange 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 pbx.Model.SeqRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SeqRange 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 pbx.Model.SeqRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.SeqRange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.SeqRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SeqRange 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(pbx.Model.SeqRange prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.SeqRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.SeqRange, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.SeqRange) pbx.Model.SeqRangeOrBuilder { // Construct using pbx.Model.SeqRange.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * int32 low = 1 [json_name = "low"]; * @return The low. */ @java.lang.Override public int getLow() { return instance.getLow(); } /** * int32 low = 1 [json_name = "low"]; * @param value The low to set. * @return This builder for chaining. */ public Builder setLow(int value) { copyOnWrite(); instance.setLow(value); return this; } /** * int32 low = 1 [json_name = "low"]; * @return This builder for chaining. */ public Builder clearLow() { copyOnWrite(); instance.clearLow(); return this; } /** * int32 hi = 2 [json_name = "hi"]; * @return The hi. */ @java.lang.Override public int getHi() { return instance.getHi(); } /** * int32 hi = 2 [json_name = "hi"]; * @param value The hi to set. * @return This builder for chaining. */ public Builder setHi(int value) { copyOnWrite(); instance.setHi(value); return this; } /** * int32 hi = 2 [json_name = "hi"]; * @return This builder for chaining. */ public Builder clearHi() { copyOnWrite(); instance.clearHi(); return this; } // @@protoc_insertion_point(builder_scope:pbx.SeqRange) } @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 pbx.Model.SeqRange(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "low_", "hi_", }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0004\u0002\u0004" + ""; 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 (pbx.Model.SeqRange.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:pbx.SeqRange) private static final pbx.Model.SeqRange DEFAULT_INSTANCE; static { SeqRange defaultInstance = new SeqRange(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SeqRange.class, defaultInstance); } public static pbx.Model.SeqRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientHiOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientHi) com.google.protobuf.MessageLiteOrBuilder { /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ boolean hasId(); /** * optional string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * optional string user_agent = 2 [json_name = "userAgent"]; * @return Whether the userAgent field is set. */ boolean hasUserAgent(); /** * optional string user_agent = 2 [json_name = "userAgent"]; * @return The userAgent. */ java.lang.String getUserAgent(); /** * optional string user_agent = 2 [json_name = "userAgent"]; * @return The bytes for userAgent. */ com.google.protobuf.ByteString getUserAgentBytes(); /** * string ver = 3 [json_name = "ver"]; * @return The ver. */ java.lang.String getVer(); /** * string ver = 3 [json_name = "ver"]; * @return The bytes for ver. */ com.google.protobuf.ByteString getVerBytes(); /** * optional string device_id = 4 [json_name = "deviceId"]; * @return Whether the deviceId field is set. */ boolean hasDeviceId(); /** * optional string device_id = 4 [json_name = "deviceId"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** * optional string device_id = 4 [json_name = "deviceId"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** * optional string lang = 5 [json_name = "lang"]; * @return Whether the lang field is set. */ boolean hasLang(); /** * optional string lang = 5 [json_name = "lang"]; * @return The lang. */ java.lang.String getLang(); /** * optional string lang = 5 [json_name = "lang"]; * @return The bytes for lang. */ com.google.protobuf.ByteString getLangBytes(); /** * optional string platform = 6 [json_name = "platform"]; * @return Whether the platform field is set. */ boolean hasPlatform(); /** * optional string platform = 6 [json_name = "platform"]; * @return The platform. */ java.lang.String getPlatform(); /** * optional string platform = 6 [json_name = "platform"]; * @return The bytes for platform. */ com.google.protobuf.ByteString getPlatformBytes(); /** * optional bool background = 7 [json_name = "background"]; * @return Whether the background field is set. */ boolean hasBackground(); /** * optional bool background = 7 [json_name = "background"]; * @return The background. */ boolean getBackground(); } /** *
   * Client handshake
   * 
* * Protobuf type {@code pbx.ClientHi} */ public static final class ClientHi extends com.google.protobuf.GeneratedMessageLite< ClientHi, ClientHi.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientHi) ClientHiOrBuilder { private ClientHi() { id_ = ""; userAgent_ = ""; ver_ = ""; deviceId_ = ""; lang_ = ""; platform_ = ""; } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; id_ = value; } /** * optional string id = 1 [json_name = "id"]; */ private void clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int USER_AGENT_FIELD_NUMBER = 2; private java.lang.String userAgent_; /** * optional string user_agent = 2 [json_name = "userAgent"]; * @return Whether the userAgent field is set. */ @java.lang.Override public boolean hasUserAgent() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string user_agent = 2 [json_name = "userAgent"]; * @return The userAgent. */ @java.lang.Override public java.lang.String getUserAgent() { return userAgent_; } /** * optional string user_agent = 2 [json_name = "userAgent"]; * @return The bytes for userAgent. */ @java.lang.Override public com.google.protobuf.ByteString getUserAgentBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userAgent_); } /** * optional string user_agent = 2 [json_name = "userAgent"]; * @param value The userAgent to set. */ private void setUserAgent( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000002; userAgent_ = value; } /** * optional string user_agent = 2 [json_name = "userAgent"]; */ private void clearUserAgent() { bitField0_ = (bitField0_ & ~0x00000002); userAgent_ = getDefaultInstance().getUserAgent(); } /** * optional string user_agent = 2 [json_name = "userAgent"]; * @param value The bytes for userAgent to set. */ private void setUserAgentBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userAgent_ = value.toStringUtf8(); bitField0_ |= 0x00000002; } public static final int VER_FIELD_NUMBER = 3; private java.lang.String ver_; /** * string ver = 3 [json_name = "ver"]; * @return The ver. */ @java.lang.Override public java.lang.String getVer() { return ver_; } /** * string ver = 3 [json_name = "ver"]; * @return The bytes for ver. */ @java.lang.Override public com.google.protobuf.ByteString getVerBytes() { return com.google.protobuf.ByteString.copyFromUtf8(ver_); } /** * string ver = 3 [json_name = "ver"]; * @param value The ver to set. */ private void setVer( java.lang.String value) { java.lang.Class valueClass = value.getClass(); ver_ = value; } /** * string ver = 3 [json_name = "ver"]; */ private void clearVer() { ver_ = getDefaultInstance().getVer(); } /** * string ver = 3 [json_name = "ver"]; * @param value The bytes for ver to set. */ private void setVerBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ver_ = value.toStringUtf8(); } public static final int DEVICE_ID_FIELD_NUMBER = 4; private java.lang.String deviceId_; /** * optional string device_id = 4 [json_name = "deviceId"]; * @return Whether the deviceId field is set. */ @java.lang.Override public boolean hasDeviceId() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string device_id = 4 [json_name = "deviceId"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { return deviceId_; } /** * optional string device_id = 4 [json_name = "deviceId"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(deviceId_); } /** * optional string device_id = 4 [json_name = "deviceId"]; * @param value The deviceId to set. */ private void setDeviceId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000004; deviceId_ = value; } /** * optional string device_id = 4 [json_name = "deviceId"]; */ private void clearDeviceId() { bitField0_ = (bitField0_ & ~0x00000004); deviceId_ = getDefaultInstance().getDeviceId(); } /** * optional string device_id = 4 [json_name = "deviceId"]; * @param value The bytes for deviceId to set. */ private void setDeviceIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); deviceId_ = value.toStringUtf8(); bitField0_ |= 0x00000004; } public static final int LANG_FIELD_NUMBER = 5; private java.lang.String lang_; /** * optional string lang = 5 [json_name = "lang"]; * @return Whether the lang field is set. */ @java.lang.Override public boolean hasLang() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string lang = 5 [json_name = "lang"]; * @return The lang. */ @java.lang.Override public java.lang.String getLang() { return lang_; } /** * optional string lang = 5 [json_name = "lang"]; * @return The bytes for lang. */ @java.lang.Override public com.google.protobuf.ByteString getLangBytes() { return com.google.protobuf.ByteString.copyFromUtf8(lang_); } /** * optional string lang = 5 [json_name = "lang"]; * @param value The lang to set. */ private void setLang( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000008; lang_ = value; } /** * optional string lang = 5 [json_name = "lang"]; */ private void clearLang() { bitField0_ = (bitField0_ & ~0x00000008); lang_ = getDefaultInstance().getLang(); } /** * optional string lang = 5 [json_name = "lang"]; * @param value The bytes for lang to set. */ private void setLangBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); lang_ = value.toStringUtf8(); bitField0_ |= 0x00000008; } public static final int PLATFORM_FIELD_NUMBER = 6; private java.lang.String platform_; /** * optional string platform = 6 [json_name = "platform"]; * @return Whether the platform field is set. */ @java.lang.Override public boolean hasPlatform() { return ((bitField0_ & 0x00000010) != 0); } /** * optional string platform = 6 [json_name = "platform"]; * @return The platform. */ @java.lang.Override public java.lang.String getPlatform() { return platform_; } /** * optional string platform = 6 [json_name = "platform"]; * @return The bytes for platform. */ @java.lang.Override public com.google.protobuf.ByteString getPlatformBytes() { return com.google.protobuf.ByteString.copyFromUtf8(platform_); } /** * optional string platform = 6 [json_name = "platform"]; * @param value The platform to set. */ private void setPlatform( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000010; platform_ = value; } /** * optional string platform = 6 [json_name = "platform"]; */ private void clearPlatform() { bitField0_ = (bitField0_ & ~0x00000010); platform_ = getDefaultInstance().getPlatform(); } /** * optional string platform = 6 [json_name = "platform"]; * @param value The bytes for platform to set. */ private void setPlatformBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); platform_ = value.toStringUtf8(); bitField0_ |= 0x00000010; } public static final int BACKGROUND_FIELD_NUMBER = 7; private boolean background_; /** * optional bool background = 7 [json_name = "background"]; * @return Whether the background field is set. */ @java.lang.Override public boolean hasBackground() { return ((bitField0_ & 0x00000020) != 0); } /** * optional bool background = 7 [json_name = "background"]; * @return The background. */ @java.lang.Override public boolean getBackground() { return background_; } /** * optional bool background = 7 [json_name = "background"]; * @param value The background to set. */ private void setBackground(boolean value) { bitField0_ |= 0x00000020; background_ = value; } /** * optional bool background = 7 [json_name = "background"]; */ private void clearBackground() { bitField0_ = (bitField0_ & ~0x00000020); background_ = false; } public static pbx.Model.ClientHi parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientHi 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 pbx.Model.ClientHi parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientHi 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 pbx.Model.ClientHi parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientHi 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 pbx.Model.ClientHi parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientHi 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 pbx.Model.ClientHi parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientHi parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientHi parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientHi 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(pbx.Model.ClientHi prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Client handshake
     * 
* * Protobuf type {@code pbx.ClientHi} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientHi, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientHi) pbx.Model.ClientHiOrBuilder { // Construct using pbx.Model.ClientHi.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return instance.hasId(); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * optional string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** * optional string user_agent = 2 [json_name = "userAgent"]; * @return Whether the userAgent field is set. */ @java.lang.Override public boolean hasUserAgent() { return instance.hasUserAgent(); } /** * optional string user_agent = 2 [json_name = "userAgent"]; * @return The userAgent. */ @java.lang.Override public java.lang.String getUserAgent() { return instance.getUserAgent(); } /** * optional string user_agent = 2 [json_name = "userAgent"]; * @return The bytes for userAgent. */ @java.lang.Override public com.google.protobuf.ByteString getUserAgentBytes() { return instance.getUserAgentBytes(); } /** * optional string user_agent = 2 [json_name = "userAgent"]; * @param value The userAgent to set. * @return This builder for chaining. */ public Builder setUserAgent( java.lang.String value) { copyOnWrite(); instance.setUserAgent(value); return this; } /** * optional string user_agent = 2 [json_name = "userAgent"]; * @return This builder for chaining. */ public Builder clearUserAgent() { copyOnWrite(); instance.clearUserAgent(); return this; } /** * optional string user_agent = 2 [json_name = "userAgent"]; * @param value The bytes for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserAgentBytes(value); return this; } /** * string ver = 3 [json_name = "ver"]; * @return The ver. */ @java.lang.Override public java.lang.String getVer() { return instance.getVer(); } /** * string ver = 3 [json_name = "ver"]; * @return The bytes for ver. */ @java.lang.Override public com.google.protobuf.ByteString getVerBytes() { return instance.getVerBytes(); } /** * string ver = 3 [json_name = "ver"]; * @param value The ver to set. * @return This builder for chaining. */ public Builder setVer( java.lang.String value) { copyOnWrite(); instance.setVer(value); return this; } /** * string ver = 3 [json_name = "ver"]; * @return This builder for chaining. */ public Builder clearVer() { copyOnWrite(); instance.clearVer(); return this; } /** * string ver = 3 [json_name = "ver"]; * @param value The bytes for ver to set. * @return This builder for chaining. */ public Builder setVerBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setVerBytes(value); return this; } /** * optional string device_id = 4 [json_name = "deviceId"]; * @return Whether the deviceId field is set. */ @java.lang.Override public boolean hasDeviceId() { return instance.hasDeviceId(); } /** * optional string device_id = 4 [json_name = "deviceId"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { return instance.getDeviceId(); } /** * optional string device_id = 4 [json_name = "deviceId"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { return instance.getDeviceIdBytes(); } /** * optional string device_id = 4 [json_name = "deviceId"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { copyOnWrite(); instance.setDeviceId(value); return this; } /** * optional string device_id = 4 [json_name = "deviceId"]; * @return This builder for chaining. */ public Builder clearDeviceId() { copyOnWrite(); instance.clearDeviceId(); return this; } /** * optional string device_id = 4 [json_name = "deviceId"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setDeviceIdBytes(value); return this; } /** * optional string lang = 5 [json_name = "lang"]; * @return Whether the lang field is set. */ @java.lang.Override public boolean hasLang() { return instance.hasLang(); } /** * optional string lang = 5 [json_name = "lang"]; * @return The lang. */ @java.lang.Override public java.lang.String getLang() { return instance.getLang(); } /** * optional string lang = 5 [json_name = "lang"]; * @return The bytes for lang. */ @java.lang.Override public com.google.protobuf.ByteString getLangBytes() { return instance.getLangBytes(); } /** * optional string lang = 5 [json_name = "lang"]; * @param value The lang to set. * @return This builder for chaining. */ public Builder setLang( java.lang.String value) { copyOnWrite(); instance.setLang(value); return this; } /** * optional string lang = 5 [json_name = "lang"]; * @return This builder for chaining. */ public Builder clearLang() { copyOnWrite(); instance.clearLang(); return this; } /** * optional string lang = 5 [json_name = "lang"]; * @param value The bytes for lang to set. * @return This builder for chaining. */ public Builder setLangBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setLangBytes(value); return this; } /** * optional string platform = 6 [json_name = "platform"]; * @return Whether the platform field is set. */ @java.lang.Override public boolean hasPlatform() { return instance.hasPlatform(); } /** * optional string platform = 6 [json_name = "platform"]; * @return The platform. */ @java.lang.Override public java.lang.String getPlatform() { return instance.getPlatform(); } /** * optional string platform = 6 [json_name = "platform"]; * @return The bytes for platform. */ @java.lang.Override public com.google.protobuf.ByteString getPlatformBytes() { return instance.getPlatformBytes(); } /** * optional string platform = 6 [json_name = "platform"]; * @param value The platform to set. * @return This builder for chaining. */ public Builder setPlatform( java.lang.String value) { copyOnWrite(); instance.setPlatform(value); return this; } /** * optional string platform = 6 [json_name = "platform"]; * @return This builder for chaining. */ public Builder clearPlatform() { copyOnWrite(); instance.clearPlatform(); return this; } /** * optional string platform = 6 [json_name = "platform"]; * @param value The bytes for platform to set. * @return This builder for chaining. */ public Builder setPlatformBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPlatformBytes(value); return this; } /** * optional bool background = 7 [json_name = "background"]; * @return Whether the background field is set. */ @java.lang.Override public boolean hasBackground() { return instance.hasBackground(); } /** * optional bool background = 7 [json_name = "background"]; * @return The background. */ @java.lang.Override public boolean getBackground() { return instance.getBackground(); } /** * optional bool background = 7 [json_name = "background"]; * @param value The background to set. * @return This builder for chaining. */ public Builder setBackground(boolean value) { copyOnWrite(); instance.setBackground(value); return this; } /** * optional bool background = 7 [json_name = "background"]; * @return This builder for chaining. */ public Builder clearBackground() { copyOnWrite(); instance.clearBackground(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientHi) } @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 pbx.Model.ClientHi(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "id_", "userAgent_", "ver_", "deviceId_", "lang_", "platform_", "background_", }; java.lang.String info = "\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u1208\u0000\u0002" + "\u1208\u0001\u0003\u0208\u0004\u1208\u0002\u0005\u1208\u0003\u0006\u1208\u0004\u0007" + "\u1007\u0005"; 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 (pbx.Model.ClientHi.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:pbx.ClientHi) private static final pbx.Model.ClientHi DEFAULT_INSTANCE; static { ClientHi defaultInstance = new ClientHi(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientHi.class, defaultInstance); } public static pbx.Model.ClientHi getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientAccOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientAcc) com.google.protobuf.MessageLiteOrBuilder { /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ boolean hasId(); /** * optional string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * User being created or updated
     * 
* * string user_id = 2 [json_name = "userId"]; * @return The userId. */ java.lang.String getUserId(); /** *
     * User being created or updated
     * 
* * string user_id = 2 [json_name = "userId"]; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** *
     * The initial authentication scheme the account can use
     * 
* * optional string scheme = 3 [json_name = "scheme"]; * @return Whether the scheme field is set. */ boolean hasScheme(); /** *
     * The initial authentication scheme the account can use
     * 
* * optional string scheme = 3 [json_name = "scheme"]; * @return The scheme. */ java.lang.String getScheme(); /** *
     * The initial authentication scheme the account can use
     * 
* * optional string scheme = 3 [json_name = "scheme"]; * @return The bytes for scheme. */ com.google.protobuf.ByteString getSchemeBytes(); /** *
     * Shared secret
     * 
* * optional bytes secret = 4 [json_name = "secret"]; * @return Whether the secret field is set. */ boolean hasSecret(); /** *
     * Shared secret
     * 
* * optional bytes secret = 4 [json_name = "secret"]; * @return The secret. */ com.google.protobuf.ByteString getSecret(); /** *
     * Authenticate session with the newly created account
     * 
* * optional bool login = 5 [json_name = "login"]; * @return Whether the login field is set. */ boolean hasLogin(); /** *
     * Authenticate session with the newly created account
     * 
* * optional bool login = 5 [json_name = "login"]; * @return The login. */ boolean getLogin(); /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @return A list containing the tags. */ java.util.List getTagsList(); /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @return The count of tags. */ int getTagsCount(); /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** *
     * User initialization data when creating a new user, otherwise ignored
     * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; * @return Whether the desc field is set. */ boolean hasDesc(); /** *
     * User initialization data when creating a new user, otherwise ignored
     * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; * @return The desc. */ pbx.Model.SetDesc getDesc(); /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ java.util.List getCredList(); /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ pbx.Model.ClientCred getCred(int index); /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ int getCredCount(); /** *
     * Authentication token used for resetting a password.
     * 
* * optional bytes token = 9 [json_name = "token"]; * @return Whether the token field is set. */ boolean hasToken(); /** *
     * Authentication token used for resetting a password.
     * 
* * optional bytes token = 9 [json_name = "token"]; * @return The token. */ com.google.protobuf.ByteString getToken(); /** *
     * Account state: normal ("ok"), suspended
     * 
* * optional string state = 10 [json_name = "state"]; * @return Whether the state field is set. */ boolean hasState(); /** *
     * Account state: normal ("ok"), suspended
     * 
* * optional string state = 10 [json_name = "state"]; * @return The state. */ java.lang.String getState(); /** *
     * Account state: normal ("ok"), suspended
     * 
* * optional string state = 10 [json_name = "state"]; * @return The bytes for state. */ com.google.protobuf.ByteString getStateBytes(); } /** *
   * User creation message {acc}
   * 
* * Protobuf type {@code pbx.ClientAcc} */ public static final class ClientAcc extends com.google.protobuf.GeneratedMessageLite< ClientAcc, ClientAcc.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientAcc) ClientAccOrBuilder { private ClientAcc() { id_ = ""; userId_ = ""; scheme_ = ""; secret_ = com.google.protobuf.ByteString.EMPTY; tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); cred_ = emptyProtobufList(); token_ = com.google.protobuf.ByteString.EMPTY; state_ = ""; } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; id_ = value; } /** * optional string id = 1 [json_name = "id"]; */ private void clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int USER_ID_FIELD_NUMBER = 2; private java.lang.String userId_; /** *
     * User being created or updated
     * 
* * string user_id = 2 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return userId_; } /** *
     * User being created or updated
     * 
* * string user_id = 2 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userId_); } /** *
     * User being created or updated
     * 
* * string user_id = 2 [json_name = "userId"]; * @param value The userId to set. */ private void setUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); userId_ = value; } /** *
     * User being created or updated
     * 
* * string user_id = 2 [json_name = "userId"]; */ private void clearUserId() { userId_ = getDefaultInstance().getUserId(); } /** *
     * User being created or updated
     * 
* * string user_id = 2 [json_name = "userId"]; * @param value The bytes for userId to set. */ private void setUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userId_ = value.toStringUtf8(); } public static final int SCHEME_FIELD_NUMBER = 3; private java.lang.String scheme_; /** *
     * The initial authentication scheme the account can use
     * 
* * optional string scheme = 3 [json_name = "scheme"]; * @return Whether the scheme field is set. */ @java.lang.Override public boolean hasScheme() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The initial authentication scheme the account can use
     * 
* * optional string scheme = 3 [json_name = "scheme"]; * @return The scheme. */ @java.lang.Override public java.lang.String getScheme() { return scheme_; } /** *
     * The initial authentication scheme the account can use
     * 
* * optional string scheme = 3 [json_name = "scheme"]; * @return The bytes for scheme. */ @java.lang.Override public com.google.protobuf.ByteString getSchemeBytes() { return com.google.protobuf.ByteString.copyFromUtf8(scheme_); } /** *
     * The initial authentication scheme the account can use
     * 
* * optional string scheme = 3 [json_name = "scheme"]; * @param value The scheme to set. */ private void setScheme( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000002; scheme_ = value; } /** *
     * The initial authentication scheme the account can use
     * 
* * optional string scheme = 3 [json_name = "scheme"]; */ private void clearScheme() { bitField0_ = (bitField0_ & ~0x00000002); scheme_ = getDefaultInstance().getScheme(); } /** *
     * The initial authentication scheme the account can use
     * 
* * optional string scheme = 3 [json_name = "scheme"]; * @param value The bytes for scheme to set. */ private void setSchemeBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); scheme_ = value.toStringUtf8(); bitField0_ |= 0x00000002; } public static final int SECRET_FIELD_NUMBER = 4; private com.google.protobuf.ByteString secret_; /** *
     * Shared secret
     * 
* * optional bytes secret = 4 [json_name = "secret"]; * @return Whether the secret field is set. */ @java.lang.Override public boolean hasSecret() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Shared secret
     * 
* * optional bytes secret = 4 [json_name = "secret"]; * @return The secret. */ @java.lang.Override public com.google.protobuf.ByteString getSecret() { return secret_; } /** *
     * Shared secret
     * 
* * optional bytes secret = 4 [json_name = "secret"]; * @param value The secret to set. */ private void setSecret(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000004; secret_ = value; } /** *
     * Shared secret
     * 
* * optional bytes secret = 4 [json_name = "secret"]; */ private void clearSecret() { bitField0_ = (bitField0_ & ~0x00000004); secret_ = getDefaultInstance().getSecret(); } public static final int LOGIN_FIELD_NUMBER = 5; private boolean login_; /** *
     * Authenticate session with the newly created account
     * 
* * optional bool login = 5 [json_name = "login"]; * @return Whether the login field is set. */ @java.lang.Override public boolean hasLogin() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Authenticate session with the newly created account
     * 
* * optional bool login = 5 [json_name = "login"]; * @return The login. */ @java.lang.Override public boolean getLogin() { return login_; } /** *
     * Authenticate session with the newly created account
     * 
* * optional bool login = 5 [json_name = "login"]; * @param value The login to set. */ private void setLogin(boolean value) { bitField0_ |= 0x00000008; login_ = value; } /** *
     * Authenticate session with the newly created account
     * 
* * optional bool login = 5 [json_name = "login"]; */ private void clearLogin() { bitField0_ = (bitField0_ & ~0x00000008); login_ = false; } public static final int TAGS_FIELD_NUMBER = 6; private com.google.protobuf.Internal.ProtobufList tags_; /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @return A list containing the tags. */ @java.lang.Override public java.util.List getTagsList() { return tags_; } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @return The count of tags. */ @java.lang.Override public int getTagsCount() { return tags_.size(); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ @java.lang.Override public java.lang.String getTags(int index) { return tags_.get(index); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getTagsBytes(int index) { return com.google.protobuf.ByteString.copyFromUtf8( tags_.get(index)); } private void ensureTagsIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = tags_; if (!tmp.isModifiable()) { tags_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @param index The index to set the value at. * @param value The tags to set. */ private void setTags( int index, java.lang.String value) { java.lang.Class valueClass = value.getClass(); ensureTagsIsMutable(); tags_.set(index, value); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @param value The tags to add. */ private void addTags( java.lang.String value) { java.lang.Class valueClass = value.getClass(); ensureTagsIsMutable(); tags_.add(value); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @param values The tags to add. */ private void addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, tags_); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; */ private void clearTags() { tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 6 [json_name = "tags"]; * @param value The bytes of the tags to add. */ private void addTagsBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value.toStringUtf8()); } public static final int DESC_FIELD_NUMBER = 7; private pbx.Model.SetDesc desc_; /** *
     * User initialization data when creating a new user, otherwise ignored
     * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ @java.lang.Override public boolean hasDesc() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * User initialization data when creating a new user, otherwise ignored
     * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ @java.lang.Override public pbx.Model.SetDesc getDesc() { return desc_ == null ? pbx.Model.SetDesc.getDefaultInstance() : desc_; } /** *
     * User initialization data when creating a new user, otherwise ignored
     * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ private void setDesc(pbx.Model.SetDesc value) { value.getClass(); desc_ = value; bitField0_ |= 0x00000010; } /** *
     * User initialization data when creating a new user, otherwise ignored
     * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeDesc(pbx.Model.SetDesc value) { value.getClass(); if (desc_ != null && desc_ != pbx.Model.SetDesc.getDefaultInstance()) { desc_ = pbx.Model.SetDesc.newBuilder(desc_).mergeFrom(value).buildPartial(); } else { desc_ = value; } bitField0_ |= 0x00000010; } /** *
     * User initialization data when creating a new user, otherwise ignored
     * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ private void clearDesc() { desc_ = null; bitField0_ = (bitField0_ & ~0x00000010); } public static final int CRED_FIELD_NUMBER = 8; private com.google.protobuf.Internal.ProtobufList cred_; /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ @java.lang.Override public java.util.List getCredList() { return cred_; } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public java.util.List getCredOrBuilderList() { return cred_; } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ @java.lang.Override public int getCredCount() { return cred_.size(); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ @java.lang.Override public pbx.Model.ClientCred getCred(int index) { return cred_.get(index); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public pbx.Model.ClientCredOrBuilder getCredOrBuilder( int index) { return cred_.get(index); } private void ensureCredIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = cred_; if (!tmp.isModifiable()) { cred_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ private void setCred( int index, pbx.Model.ClientCred value) { value.getClass(); ensureCredIsMutable(); cred_.set(index, value); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ private void addCred(pbx.Model.ClientCred value) { value.getClass(); ensureCredIsMutable(); cred_.add(value); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ private void addCred( int index, pbx.Model.ClientCred value) { value.getClass(); ensureCredIsMutable(); cred_.add(index, value); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ private void addAllCred( java.lang.Iterable values) { ensureCredIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, cred_); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ private void clearCred() { cred_ = emptyProtobufList(); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ private void removeCred(int index) { ensureCredIsMutable(); cred_.remove(index); } public static final int TOKEN_FIELD_NUMBER = 9; private com.google.protobuf.ByteString token_; /** *
     * Authentication token used for resetting a password.
     * 
* * optional bytes token = 9 [json_name = "token"]; * @return Whether the token field is set. */ @java.lang.Override public boolean hasToken() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Authentication token used for resetting a password.
     * 
* * optional bytes token = 9 [json_name = "token"]; * @return The token. */ @java.lang.Override public com.google.protobuf.ByteString getToken() { return token_; } /** *
     * Authentication token used for resetting a password.
     * 
* * optional bytes token = 9 [json_name = "token"]; * @param value The token to set. */ private void setToken(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000020; token_ = value; } /** *
     * Authentication token used for resetting a password.
     * 
* * optional bytes token = 9 [json_name = "token"]; */ private void clearToken() { bitField0_ = (bitField0_ & ~0x00000020); token_ = getDefaultInstance().getToken(); } public static final int STATE_FIELD_NUMBER = 10; private java.lang.String state_; /** *
     * Account state: normal ("ok"), suspended
     * 
* * optional string state = 10 [json_name = "state"]; * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Account state: normal ("ok"), suspended
     * 
* * optional string state = 10 [json_name = "state"]; * @return The state. */ @java.lang.Override public java.lang.String getState() { return state_; } /** *
     * Account state: normal ("ok"), suspended
     * 
* * optional string state = 10 [json_name = "state"]; * @return The bytes for state. */ @java.lang.Override public com.google.protobuf.ByteString getStateBytes() { return com.google.protobuf.ByteString.copyFromUtf8(state_); } /** *
     * Account state: normal ("ok"), suspended
     * 
* * optional string state = 10 [json_name = "state"]; * @param value The state to set. */ private void setState( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000040; state_ = value; } /** *
     * Account state: normal ("ok"), suspended
     * 
* * optional string state = 10 [json_name = "state"]; */ private void clearState() { bitField0_ = (bitField0_ & ~0x00000040); state_ = getDefaultInstance().getState(); } /** *
     * Account state: normal ("ok"), suspended
     * 
* * optional string state = 10 [json_name = "state"]; * @param value The bytes for state to set. */ private void setStateBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); state_ = value.toStringUtf8(); bitField0_ |= 0x00000040; } public static pbx.Model.ClientAcc parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientAcc 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 pbx.Model.ClientAcc parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientAcc 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 pbx.Model.ClientAcc parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientAcc 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 pbx.Model.ClientAcc parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientAcc 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 pbx.Model.ClientAcc parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientAcc parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientAcc parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientAcc 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(pbx.Model.ClientAcc prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * User creation message {acc}
     * 
* * Protobuf type {@code pbx.ClientAcc} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientAcc, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientAcc) pbx.Model.ClientAccOrBuilder { // Construct using pbx.Model.ClientAcc.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return instance.hasId(); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * optional string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** *
       * User being created or updated
       * 
* * string user_id = 2 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return instance.getUserId(); } /** *
       * User being created or updated
       * 
* * string user_id = 2 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return instance.getUserIdBytes(); } /** *
       * User being created or updated
       * 
* * string user_id = 2 [json_name = "userId"]; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { copyOnWrite(); instance.setUserId(value); return this; } /** *
       * User being created or updated
       * 
* * string user_id = 2 [json_name = "userId"]; * @return This builder for chaining. */ public Builder clearUserId() { copyOnWrite(); instance.clearUserId(); return this; } /** *
       * User being created or updated
       * 
* * string user_id = 2 [json_name = "userId"]; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserIdBytes(value); return this; } /** *
       * The initial authentication scheme the account can use
       * 
* * optional string scheme = 3 [json_name = "scheme"]; * @return Whether the scheme field is set. */ @java.lang.Override public boolean hasScheme() { return instance.hasScheme(); } /** *
       * The initial authentication scheme the account can use
       * 
* * optional string scheme = 3 [json_name = "scheme"]; * @return The scheme. */ @java.lang.Override public java.lang.String getScheme() { return instance.getScheme(); } /** *
       * The initial authentication scheme the account can use
       * 
* * optional string scheme = 3 [json_name = "scheme"]; * @return The bytes for scheme. */ @java.lang.Override public com.google.protobuf.ByteString getSchemeBytes() { return instance.getSchemeBytes(); } /** *
       * The initial authentication scheme the account can use
       * 
* * optional string scheme = 3 [json_name = "scheme"]; * @param value The scheme to set. * @return This builder for chaining. */ public Builder setScheme( java.lang.String value) { copyOnWrite(); instance.setScheme(value); return this; } /** *
       * The initial authentication scheme the account can use
       * 
* * optional string scheme = 3 [json_name = "scheme"]; * @return This builder for chaining. */ public Builder clearScheme() { copyOnWrite(); instance.clearScheme(); return this; } /** *
       * The initial authentication scheme the account can use
       * 
* * optional string scheme = 3 [json_name = "scheme"]; * @param value The bytes for scheme to set. * @return This builder for chaining. */ public Builder setSchemeBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSchemeBytes(value); return this; } /** *
       * Shared secret
       * 
* * optional bytes secret = 4 [json_name = "secret"]; * @return Whether the secret field is set. */ @java.lang.Override public boolean hasSecret() { return instance.hasSecret(); } /** *
       * Shared secret
       * 
* * optional bytes secret = 4 [json_name = "secret"]; * @return The secret. */ @java.lang.Override public com.google.protobuf.ByteString getSecret() { return instance.getSecret(); } /** *
       * Shared secret
       * 
* * optional bytes secret = 4 [json_name = "secret"]; * @param value The secret to set. * @return This builder for chaining. */ public Builder setSecret(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSecret(value); return this; } /** *
       * Shared secret
       * 
* * optional bytes secret = 4 [json_name = "secret"]; * @return This builder for chaining. */ public Builder clearSecret() { copyOnWrite(); instance.clearSecret(); return this; } /** *
       * Authenticate session with the newly created account
       * 
* * optional bool login = 5 [json_name = "login"]; * @return Whether the login field is set. */ @java.lang.Override public boolean hasLogin() { return instance.hasLogin(); } /** *
       * Authenticate session with the newly created account
       * 
* * optional bool login = 5 [json_name = "login"]; * @return The login. */ @java.lang.Override public boolean getLogin() { return instance.getLogin(); } /** *
       * Authenticate session with the newly created account
       * 
* * optional bool login = 5 [json_name = "login"]; * @param value The login to set. * @return This builder for chaining. */ public Builder setLogin(boolean value) { copyOnWrite(); instance.setLogin(value); return this; } /** *
       * Authenticate session with the newly created account
       * 
* * optional bool login = 5 [json_name = "login"]; * @return This builder for chaining. */ public Builder clearLogin() { copyOnWrite(); instance.clearLogin(); return this; } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 6 [json_name = "tags"]; * @return A list containing the tags. */ @java.lang.Override public java.util.List getTagsList() { return java.util.Collections.unmodifiableList( instance.getTagsList()); } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 6 [json_name = "tags"]; * @return The count of tags. */ @java.lang.Override public int getTagsCount() { return instance.getTagsCount(); } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ @java.lang.Override public java.lang.String getTags(int index) { return instance.getTags(index); } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getTagsBytes(int index) { return instance.getTagsBytes(index); } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 6 [json_name = "tags"]; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { copyOnWrite(); instance.setTags(index, value); return this; } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 6 [json_name = "tags"]; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { copyOnWrite(); instance.addTags(value); return this; } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 6 [json_name = "tags"]; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { copyOnWrite(); instance.addAllTags(values); return this; } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 6 [json_name = "tags"]; * @return This builder for chaining. */ public Builder clearTags() { copyOnWrite(); instance.clearTags(); return this; } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 6 [json_name = "tags"]; * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.addTagsBytes(value); return this; } /** *
       * User initialization data when creating a new user, otherwise ignored
       * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ @java.lang.Override public boolean hasDesc() { return instance.hasDesc(); } /** *
       * User initialization data when creating a new user, otherwise ignored
       * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ @java.lang.Override public pbx.Model.SetDesc getDesc() { return instance.getDesc(); } /** *
       * User initialization data when creating a new user, otherwise ignored
       * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ public Builder setDesc(pbx.Model.SetDesc value) { copyOnWrite(); instance.setDesc(value); return this; } /** *
       * User initialization data when creating a new user, otherwise ignored
       * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ public Builder setDesc( pbx.Model.SetDesc.Builder builderForValue) { copyOnWrite(); instance.setDesc(builderForValue.build()); return this; } /** *
       * User initialization data when creating a new user, otherwise ignored
       * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ public Builder mergeDesc(pbx.Model.SetDesc value) { copyOnWrite(); instance.mergeDesc(value); return this; } /** *
       * User initialization data when creating a new user, otherwise ignored
       * 
* * optional .pbx.SetDesc desc = 7 [json_name = "desc"]; */ public Builder clearDesc() { copyOnWrite(); instance.clearDesc(); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ @java.lang.Override public java.util.List getCredList() { return java.util.Collections.unmodifiableList( instance.getCredList()); } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ @java.lang.Override public int getCredCount() { return instance.getCredCount(); }/** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ @java.lang.Override public pbx.Model.ClientCred getCred(int index) { return instance.getCred(index); } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public Builder setCred( int index, pbx.Model.ClientCred value) { copyOnWrite(); instance.setCred(index, value); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public Builder setCred( int index, pbx.Model.ClientCred.Builder builderForValue) { copyOnWrite(); instance.setCred(index, builderForValue.build()); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public Builder addCred(pbx.Model.ClientCred value) { copyOnWrite(); instance.addCred(value); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public Builder addCred( int index, pbx.Model.ClientCred value) { copyOnWrite(); instance.addCred(index, value); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public Builder addCred( pbx.Model.ClientCred.Builder builderForValue) { copyOnWrite(); instance.addCred(builderForValue.build()); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public Builder addCred( int index, pbx.Model.ClientCred.Builder builderForValue) { copyOnWrite(); instance.addCred(index, builderForValue.build()); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public Builder addAllCred( java.lang.Iterable values) { copyOnWrite(); instance.addAllCred(values); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public Builder clearCred() { copyOnWrite(); instance.clearCred(); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 8 [json_name = "cred"]; */ public Builder removeCred(int index) { copyOnWrite(); instance.removeCred(index); return this; } /** *
       * Authentication token used for resetting a password.
       * 
* * optional bytes token = 9 [json_name = "token"]; * @return Whether the token field is set. */ @java.lang.Override public boolean hasToken() { return instance.hasToken(); } /** *
       * Authentication token used for resetting a password.
       * 
* * optional bytes token = 9 [json_name = "token"]; * @return The token. */ @java.lang.Override public com.google.protobuf.ByteString getToken() { return instance.getToken(); } /** *
       * Authentication token used for resetting a password.
       * 
* * optional bytes token = 9 [json_name = "token"]; * @param value The token to set. * @return This builder for chaining. */ public Builder setToken(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setToken(value); return this; } /** *
       * Authentication token used for resetting a password.
       * 
* * optional bytes token = 9 [json_name = "token"]; * @return This builder for chaining. */ public Builder clearToken() { copyOnWrite(); instance.clearToken(); return this; } /** *
       * Account state: normal ("ok"), suspended
       * 
* * optional string state = 10 [json_name = "state"]; * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return instance.hasState(); } /** *
       * Account state: normal ("ok"), suspended
       * 
* * optional string state = 10 [json_name = "state"]; * @return The state. */ @java.lang.Override public java.lang.String getState() { return instance.getState(); } /** *
       * Account state: normal ("ok"), suspended
       * 
* * optional string state = 10 [json_name = "state"]; * @return The bytes for state. */ @java.lang.Override public com.google.protobuf.ByteString getStateBytes() { return instance.getStateBytes(); } /** *
       * Account state: normal ("ok"), suspended
       * 
* * optional string state = 10 [json_name = "state"]; * @param value The state to set. * @return This builder for chaining. */ public Builder setState( java.lang.String value) { copyOnWrite(); instance.setState(value); return this; } /** *
       * Account state: normal ("ok"), suspended
       * 
* * optional string state = 10 [json_name = "state"]; * @return This builder for chaining. */ public Builder clearState() { copyOnWrite(); instance.clearState(); return this; } /** *
       * Account state: normal ("ok"), suspended
       * 
* * optional string state = 10 [json_name = "state"]; * @param value The bytes for state to set. * @return This builder for chaining. */ public Builder setStateBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setStateBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientAcc) } @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 pbx.Model.ClientAcc(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "id_", "userId_", "scheme_", "secret_", "login_", "tags_", "desc_", "cred_", pbx.Model.ClientCred.class, "token_", "state_", }; java.lang.String info = "\u0000\n\u0000\u0001\u0001\n\n\u0000\u0002\u0000\u0001\u1208\u0000\u0002\u0208\u0003" + "\u1208\u0001\u0004\u100a\u0002\u0005\u1007\u0003\u0006\u021a\u0007\u1009\u0004\b" + "\u001b\t\u100a\u0005\n\u1208\u0006"; 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 (pbx.Model.ClientAcc.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:pbx.ClientAcc) private static final pbx.Model.ClientAcc DEFAULT_INSTANCE; static { ClientAcc defaultInstance = new ClientAcc(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientAcc.class, defaultInstance); } public static pbx.Model.ClientAcc getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientLoginOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientLogin) com.google.protobuf.MessageLiteOrBuilder { /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ boolean hasId(); /** * optional string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Authentication scheme
     * 
* * string scheme = 2 [json_name = "scheme"]; * @return The scheme. */ java.lang.String getScheme(); /** *
     * Authentication scheme
     * 
* * string scheme = 2 [json_name = "scheme"]; * @return The bytes for scheme. */ com.google.protobuf.ByteString getSchemeBytes(); /** *
     * Shared secret
     * 
* * bytes secret = 3 [json_name = "secret"]; * @return The secret. */ com.google.protobuf.ByteString getSecret(); /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ java.util.List getCredList(); /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ pbx.Model.ClientCred getCred(int index); /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ int getCredCount(); /** *
     * Organization sdk key
     * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @return Whether the sdkKey field is set. */ boolean hasSdkKey(); /** *
     * Organization sdk key
     * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @return The sdkKey. */ java.lang.String getSdkKey(); /** *
     * Organization sdk key
     * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @return The bytes for sdkKey. */ com.google.protobuf.ByteString getSdkKeyBytes(); } /** *
   * Login {login} message
   * 
* * Protobuf type {@code pbx.ClientLogin} */ public static final class ClientLogin extends com.google.protobuf.GeneratedMessageLite< ClientLogin, ClientLogin.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientLogin) ClientLoginOrBuilder { private ClientLogin() { id_ = ""; scheme_ = ""; secret_ = com.google.protobuf.ByteString.EMPTY; cred_ = emptyProtobufList(); sdkKey_ = ""; } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; id_ = value; } /** * optional string id = 1 [json_name = "id"]; */ private void clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int SCHEME_FIELD_NUMBER = 2; private java.lang.String scheme_; /** *
     * Authentication scheme
     * 
* * string scheme = 2 [json_name = "scheme"]; * @return The scheme. */ @java.lang.Override public java.lang.String getScheme() { return scheme_; } /** *
     * Authentication scheme
     * 
* * string scheme = 2 [json_name = "scheme"]; * @return The bytes for scheme. */ @java.lang.Override public com.google.protobuf.ByteString getSchemeBytes() { return com.google.protobuf.ByteString.copyFromUtf8(scheme_); } /** *
     * Authentication scheme
     * 
* * string scheme = 2 [json_name = "scheme"]; * @param value The scheme to set. */ private void setScheme( java.lang.String value) { java.lang.Class valueClass = value.getClass(); scheme_ = value; } /** *
     * Authentication scheme
     * 
* * string scheme = 2 [json_name = "scheme"]; */ private void clearScheme() { scheme_ = getDefaultInstance().getScheme(); } /** *
     * Authentication scheme
     * 
* * string scheme = 2 [json_name = "scheme"]; * @param value The bytes for scheme to set. */ private void setSchemeBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); scheme_ = value.toStringUtf8(); } public static final int SECRET_FIELD_NUMBER = 3; private com.google.protobuf.ByteString secret_; /** *
     * Shared secret
     * 
* * bytes secret = 3 [json_name = "secret"]; * @return The secret. */ @java.lang.Override public com.google.protobuf.ByteString getSecret() { return secret_; } /** *
     * Shared secret
     * 
* * bytes secret = 3 [json_name = "secret"]; * @param value The secret to set. */ private void setSecret(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); secret_ = value; } /** *
     * Shared secret
     * 
* * bytes secret = 3 [json_name = "secret"]; */ private void clearSecret() { secret_ = getDefaultInstance().getSecret(); } public static final int CRED_FIELD_NUMBER = 4; private com.google.protobuf.Internal.ProtobufList cred_; /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.Override public java.util.List getCredList() { return cred_; } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public java.util.List getCredOrBuilderList() { return cred_; } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.Override public int getCredCount() { return cred_.size(); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.Override public pbx.Model.ClientCred getCred(int index) { return cred_.get(index); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public pbx.Model.ClientCredOrBuilder getCredOrBuilder( int index) { return cred_.get(index); } private void ensureCredIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = cred_; if (!tmp.isModifiable()) { cred_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ private void setCred( int index, pbx.Model.ClientCred value) { value.getClass(); ensureCredIsMutable(); cred_.set(index, value); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ private void addCred(pbx.Model.ClientCred value) { value.getClass(); ensureCredIsMutable(); cred_.add(value); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ private void addCred( int index, pbx.Model.ClientCred value) { value.getClass(); ensureCredIsMutable(); cred_.add(index, value); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ private void addAllCred( java.lang.Iterable values) { ensureCredIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, cred_); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ private void clearCred() { cred_ = emptyProtobufList(); } /** *
     * Credentials for verification.
     * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ private void removeCred(int index) { ensureCredIsMutable(); cred_.remove(index); } public static final int SDK_KEY_FIELD_NUMBER = 5; private java.lang.String sdkKey_; /** *
     * Organization sdk key
     * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @return Whether the sdkKey field is set. */ @java.lang.Override public boolean hasSdkKey() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Organization sdk key
     * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @return The sdkKey. */ @java.lang.Override public java.lang.String getSdkKey() { return sdkKey_; } /** *
     * Organization sdk key
     * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @return The bytes for sdkKey. */ @java.lang.Override public com.google.protobuf.ByteString getSdkKeyBytes() { return com.google.protobuf.ByteString.copyFromUtf8(sdkKey_); } /** *
     * Organization sdk key
     * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @param value The sdkKey to set. */ private void setSdkKey( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000002; sdkKey_ = value; } /** *
     * Organization sdk key
     * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; */ private void clearSdkKey() { bitField0_ = (bitField0_ & ~0x00000002); sdkKey_ = getDefaultInstance().getSdkKey(); } /** *
     * Organization sdk key
     * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @param value The bytes for sdkKey to set. */ private void setSdkKeyBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); sdkKey_ = value.toStringUtf8(); bitField0_ |= 0x00000002; } public static pbx.Model.ClientLogin parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientLogin 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 pbx.Model.ClientLogin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientLogin 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 pbx.Model.ClientLogin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientLogin 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 pbx.Model.ClientLogin parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientLogin 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 pbx.Model.ClientLogin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientLogin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientLogin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientLogin 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(pbx.Model.ClientLogin prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Login {login} message
     * 
* * Protobuf type {@code pbx.ClientLogin} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientLogin, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientLogin) pbx.Model.ClientLoginOrBuilder { // Construct using pbx.Model.ClientLogin.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return instance.hasId(); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * optional string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** *
       * Authentication scheme
       * 
* * string scheme = 2 [json_name = "scheme"]; * @return The scheme. */ @java.lang.Override public java.lang.String getScheme() { return instance.getScheme(); } /** *
       * Authentication scheme
       * 
* * string scheme = 2 [json_name = "scheme"]; * @return The bytes for scheme. */ @java.lang.Override public com.google.protobuf.ByteString getSchemeBytes() { return instance.getSchemeBytes(); } /** *
       * Authentication scheme
       * 
* * string scheme = 2 [json_name = "scheme"]; * @param value The scheme to set. * @return This builder for chaining. */ public Builder setScheme( java.lang.String value) { copyOnWrite(); instance.setScheme(value); return this; } /** *
       * Authentication scheme
       * 
* * string scheme = 2 [json_name = "scheme"]; * @return This builder for chaining. */ public Builder clearScheme() { copyOnWrite(); instance.clearScheme(); return this; } /** *
       * Authentication scheme
       * 
* * string scheme = 2 [json_name = "scheme"]; * @param value The bytes for scheme to set. * @return This builder for chaining. */ public Builder setSchemeBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSchemeBytes(value); return this; } /** *
       * Shared secret
       * 
* * bytes secret = 3 [json_name = "secret"]; * @return The secret. */ @java.lang.Override public com.google.protobuf.ByteString getSecret() { return instance.getSecret(); } /** *
       * Shared secret
       * 
* * bytes secret = 3 [json_name = "secret"]; * @param value The secret to set. * @return This builder for chaining. */ public Builder setSecret(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSecret(value); return this; } /** *
       * Shared secret
       * 
* * bytes secret = 3 [json_name = "secret"]; * @return This builder for chaining. */ public Builder clearSecret() { copyOnWrite(); instance.clearSecret(); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.Override public java.util.List getCredList() { return java.util.Collections.unmodifiableList( instance.getCredList()); } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.Override public int getCredCount() { return instance.getCredCount(); }/** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ @java.lang.Override public pbx.Model.ClientCred getCred(int index) { return instance.getCred(index); } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder setCred( int index, pbx.Model.ClientCred value) { copyOnWrite(); instance.setCred(index, value); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder setCred( int index, pbx.Model.ClientCred.Builder builderForValue) { copyOnWrite(); instance.setCred(index, builderForValue.build()); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder addCred(pbx.Model.ClientCred value) { copyOnWrite(); instance.addCred(value); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder addCred( int index, pbx.Model.ClientCred value) { copyOnWrite(); instance.addCred(index, value); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder addCred( pbx.Model.ClientCred.Builder builderForValue) { copyOnWrite(); instance.addCred(builderForValue.build()); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder addCred( int index, pbx.Model.ClientCred.Builder builderForValue) { copyOnWrite(); instance.addCred(index, builderForValue.build()); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder addAllCred( java.lang.Iterable values) { copyOnWrite(); instance.addAllCred(values); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder clearCred() { copyOnWrite(); instance.clearCred(); return this; } /** *
       * Credentials for verification.
       * 
* * repeated .pbx.ClientCred cred = 4 [json_name = "cred"]; */ public Builder removeCred(int index) { copyOnWrite(); instance.removeCred(index); return this; } /** *
       * Organization sdk key
       * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @return Whether the sdkKey field is set. */ @java.lang.Override public boolean hasSdkKey() { return instance.hasSdkKey(); } /** *
       * Organization sdk key
       * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @return The sdkKey. */ @java.lang.Override public java.lang.String getSdkKey() { return instance.getSdkKey(); } /** *
       * Organization sdk key
       * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @return The bytes for sdkKey. */ @java.lang.Override public com.google.protobuf.ByteString getSdkKeyBytes() { return instance.getSdkKeyBytes(); } /** *
       * Organization sdk key
       * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @param value The sdkKey to set. * @return This builder for chaining. */ public Builder setSdkKey( java.lang.String value) { copyOnWrite(); instance.setSdkKey(value); return this; } /** *
       * Organization sdk key
       * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @return This builder for chaining. */ public Builder clearSdkKey() { copyOnWrite(); instance.clearSdkKey(); return this; } /** *
       * Organization sdk key
       * 
* * optional string sdk_key = 5 [json_name = "sdkKey"]; * @param value The bytes for sdkKey to set. * @return This builder for chaining. */ public Builder setSdkKeyBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSdkKeyBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientLogin) } @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 pbx.Model.ClientLogin(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "id_", "scheme_", "secret_", "cred_", pbx.Model.ClientCred.class, "sdkKey_", }; java.lang.String info = "\u0000\u0005\u0000\u0001\u0001\u0005\u0005\u0000\u0001\u0000\u0001\u1208\u0000\u0002" + "\u0208\u0003\n\u0004\u001b\u0005\u1208\u0001"; 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 (pbx.Model.ClientLogin.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:pbx.ClientLogin) private static final pbx.Model.ClientLogin DEFAULT_INSTANCE; static { ClientLogin defaultInstance = new ClientLogin(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientLogin.class, defaultInstance); } public static pbx.Model.ClientLogin getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientSubOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientSub) com.google.protobuf.MessageLiteOrBuilder { /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ boolean hasId(); /** * optional string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** *
     * mirrors {set}
     * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; * @return Whether the setQuery field is set. */ boolean hasSetQuery(); /** *
     * mirrors {set}
     * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; * @return The setQuery. */ pbx.Model.SetQuery getSetQuery(); /** *
     * mirrors {get}
     * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; * @return Whether the getQuery field is set. */ boolean hasGetQuery(); /** *
     * mirrors {get}
     * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; * @return The getQuery. */ pbx.Model.GetQuery getGetQuery(); } /** *
   * Subscription request {sub} message
   * 
* * Protobuf type {@code pbx.ClientSub} */ public static final class ClientSub extends com.google.protobuf.GeneratedMessageLite< ClientSub, ClientSub.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientSub) ClientSubOrBuilder { private ClientSub() { id_ = ""; topic_ = ""; } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; id_ = value; } /** * optional string id = 1 [json_name = "id"]; */ private void clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int TOPIC_FIELD_NUMBER = 2; private java.lang.String topic_; /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 2 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int SET_QUERY_FIELD_NUMBER = 3; private pbx.Model.SetQuery setQuery_; /** *
     * mirrors {set}
     * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ @java.lang.Override public boolean hasSetQuery() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * mirrors {set}
     * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ @java.lang.Override public pbx.Model.SetQuery getSetQuery() { return setQuery_ == null ? pbx.Model.SetQuery.getDefaultInstance() : setQuery_; } /** *
     * mirrors {set}
     * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ private void setSetQuery(pbx.Model.SetQuery value) { value.getClass(); setQuery_ = value; bitField0_ |= 0x00000002; } /** *
     * mirrors {set}
     * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeSetQuery(pbx.Model.SetQuery value) { value.getClass(); if (setQuery_ != null && setQuery_ != pbx.Model.SetQuery.getDefaultInstance()) { setQuery_ = pbx.Model.SetQuery.newBuilder(setQuery_).mergeFrom(value).buildPartial(); } else { setQuery_ = value; } bitField0_ |= 0x00000002; } /** *
     * mirrors {set}
     * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ private void clearSetQuery() { setQuery_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static final int GET_QUERY_FIELD_NUMBER = 4; private pbx.Model.GetQuery getQuery_; /** *
     * mirrors {get}
     * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ @java.lang.Override public boolean hasGetQuery() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * mirrors {get}
     * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ @java.lang.Override public pbx.Model.GetQuery getGetQuery() { return getQuery_ == null ? pbx.Model.GetQuery.getDefaultInstance() : getQuery_; } /** *
     * mirrors {get}
     * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ private void setGetQuery(pbx.Model.GetQuery value) { value.getClass(); getQuery_ = value; bitField0_ |= 0x00000004; } /** *
     * mirrors {get}
     * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeGetQuery(pbx.Model.GetQuery value) { value.getClass(); if (getQuery_ != null && getQuery_ != pbx.Model.GetQuery.getDefaultInstance()) { getQuery_ = pbx.Model.GetQuery.newBuilder(getQuery_).mergeFrom(value).buildPartial(); } else { getQuery_ = value; } bitField0_ |= 0x00000004; } /** *
     * mirrors {get}
     * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ private void clearGetQuery() { getQuery_ = null; bitField0_ = (bitField0_ & ~0x00000004); } public static pbx.Model.ClientSub parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientSub 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 pbx.Model.ClientSub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientSub 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 pbx.Model.ClientSub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientSub 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 pbx.Model.ClientSub parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientSub 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 pbx.Model.ClientSub parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientSub parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientSub parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientSub 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(pbx.Model.ClientSub prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Subscription request {sub} message
     * 
* * Protobuf type {@code pbx.ClientSub} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientSub, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientSub) pbx.Model.ClientSubOrBuilder { // Construct using pbx.Model.ClientSub.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return instance.hasId(); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * optional string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** *
       * mirrors {set}
       * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ @java.lang.Override public boolean hasSetQuery() { return instance.hasSetQuery(); } /** *
       * mirrors {set}
       * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ @java.lang.Override public pbx.Model.SetQuery getSetQuery() { return instance.getSetQuery(); } /** *
       * mirrors {set}
       * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ public Builder setSetQuery(pbx.Model.SetQuery value) { copyOnWrite(); instance.setSetQuery(value); return this; } /** *
       * mirrors {set}
       * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ public Builder setSetQuery( pbx.Model.SetQuery.Builder builderForValue) { copyOnWrite(); instance.setSetQuery(builderForValue.build()); return this; } /** *
       * mirrors {set}
       * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ public Builder mergeSetQuery(pbx.Model.SetQuery value) { copyOnWrite(); instance.mergeSetQuery(value); return this; } /** *
       * mirrors {set}
       * 
* * optional .pbx.SetQuery set_query = 3 [json_name = "setQuery"]; */ public Builder clearSetQuery() { copyOnWrite(); instance.clearSetQuery(); return this; } /** *
       * mirrors {get}
       * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ @java.lang.Override public boolean hasGetQuery() { return instance.hasGetQuery(); } /** *
       * mirrors {get}
       * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ @java.lang.Override public pbx.Model.GetQuery getGetQuery() { return instance.getGetQuery(); } /** *
       * mirrors {get}
       * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ public Builder setGetQuery(pbx.Model.GetQuery value) { copyOnWrite(); instance.setGetQuery(value); return this; } /** *
       * mirrors {get}
       * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ public Builder setGetQuery( pbx.Model.GetQuery.Builder builderForValue) { copyOnWrite(); instance.setGetQuery(builderForValue.build()); return this; } /** *
       * mirrors {get}
       * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ public Builder mergeGetQuery(pbx.Model.GetQuery value) { copyOnWrite(); instance.mergeGetQuery(value); return this; } /** *
       * mirrors {get}
       * 
* * optional .pbx.GetQuery get_query = 4 [json_name = "getQuery"]; */ public Builder clearGetQuery() { copyOnWrite(); instance.clearGetQuery(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientSub) } @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 pbx.Model.ClientSub(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "id_", "topic_", "setQuery_", "getQuery_", }; java.lang.String info = "\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u1208\u0000\u0002" + "\u0208\u0003\u1009\u0001\u0004\u1009\u0002"; 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 (pbx.Model.ClientSub.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:pbx.ClientSub) private static final pbx.Model.ClientSub DEFAULT_INSTANCE; static { ClientSub defaultInstance = new ClientSub(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientSub.class, defaultInstance); } public static pbx.Model.ClientSub getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientLeaveOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientLeave) com.google.protobuf.MessageLiteOrBuilder { /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ boolean hasId(); /** * optional string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * optional bool unsub = 3 [json_name = "unsub"]; * @return Whether the unsub field is set. */ boolean hasUnsub(); /** * optional bool unsub = 3 [json_name = "unsub"]; * @return The unsub. */ boolean getUnsub(); } /** *
   * Unsubscribe {leave} request message
   * 
* * Protobuf type {@code pbx.ClientLeave} */ public static final class ClientLeave extends com.google.protobuf.GeneratedMessageLite< ClientLeave, ClientLeave.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientLeave) ClientLeaveOrBuilder { private ClientLeave() { id_ = ""; topic_ = ""; } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; id_ = value; } /** * optional string id = 1 [json_name = "id"]; */ private void clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int TOPIC_FIELD_NUMBER = 2; private java.lang.String topic_; /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 2 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int UNSUB_FIELD_NUMBER = 3; private boolean unsub_; /** * optional bool unsub = 3 [json_name = "unsub"]; * @return Whether the unsub field is set. */ @java.lang.Override public boolean hasUnsub() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool unsub = 3 [json_name = "unsub"]; * @return The unsub. */ @java.lang.Override public boolean getUnsub() { return unsub_; } /** * optional bool unsub = 3 [json_name = "unsub"]; * @param value The unsub to set. */ private void setUnsub(boolean value) { bitField0_ |= 0x00000002; unsub_ = value; } /** * optional bool unsub = 3 [json_name = "unsub"]; */ private void clearUnsub() { bitField0_ = (bitField0_ & ~0x00000002); unsub_ = false; } public static pbx.Model.ClientLeave parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientLeave 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 pbx.Model.ClientLeave parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientLeave 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 pbx.Model.ClientLeave parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientLeave 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 pbx.Model.ClientLeave parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientLeave 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 pbx.Model.ClientLeave parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientLeave parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientLeave parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientLeave 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(pbx.Model.ClientLeave prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Unsubscribe {leave} request message
     * 
* * Protobuf type {@code pbx.ClientLeave} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientLeave, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientLeave) pbx.Model.ClientLeaveOrBuilder { // Construct using pbx.Model.ClientLeave.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return instance.hasId(); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * optional string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * optional bool unsub = 3 [json_name = "unsub"]; * @return Whether the unsub field is set. */ @java.lang.Override public boolean hasUnsub() { return instance.hasUnsub(); } /** * optional bool unsub = 3 [json_name = "unsub"]; * @return The unsub. */ @java.lang.Override public boolean getUnsub() { return instance.getUnsub(); } /** * optional bool unsub = 3 [json_name = "unsub"]; * @param value The unsub to set. * @return This builder for chaining. */ public Builder setUnsub(boolean value) { copyOnWrite(); instance.setUnsub(value); return this; } /** * optional bool unsub = 3 [json_name = "unsub"]; * @return This builder for chaining. */ public Builder clearUnsub() { copyOnWrite(); instance.clearUnsub(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientLeave) } @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 pbx.Model.ClientLeave(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "id_", "topic_", "unsub_", }; java.lang.String info = "\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u1208\u0000\u0002" + "\u0208\u0003\u1007\u0001"; 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 (pbx.Model.ClientLeave.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:pbx.ClientLeave) private static final pbx.Model.ClientLeave DEFAULT_INSTANCE; static { ClientLeave defaultInstance = new ClientLeave(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientLeave.class, defaultInstance); } public static pbx.Model.ClientLeave getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientPubOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientPub) com.google.protobuf.MessageLiteOrBuilder { /** * string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * bool no_echo = 3 [json_name = "noEcho"]; * @return The noEcho. */ boolean getNoEcho(); /** * map<string, bytes> head = 4 [json_name = "head"]; */ int getHeadCount(); /** * map<string, bytes> head = 4 [json_name = "head"]; */ boolean containsHead( java.lang.String key); /** * Use {@link #getHeadMap()} instead. */ @java.lang.Deprecated java.util.Map getHead(); /** * map<string, bytes> head = 4 [json_name = "head"]; */ java.util.Map getHeadMap(); /** * map<string, bytes> head = 4 [json_name = "head"]; */ /* nullable */ com.google.protobuf.ByteString getHeadOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue); /** * map<string, bytes> head = 4 [json_name = "head"]; */ com.google.protobuf.ByteString getHeadOrThrow( java.lang.String key); /** * bytes content = 5 [json_name = "content"]; * @return The content. */ com.google.protobuf.ByteString getContent(); } /** *
   * ClientPub is client's request to publish data to topic subscribers {pub}
   * 
* * Protobuf type {@code pbx.ClientPub} */ public static final class ClientPub extends com.google.protobuf.GeneratedMessageLite< ClientPub, ClientPub.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientPub) ClientPubOrBuilder { private ClientPub() { id_ = ""; topic_ = ""; content_ = com.google.protobuf.ByteString.EMPTY; } public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); id_ = value; } /** * string id = 1 [json_name = "id"]; */ private void clearId() { id_ = getDefaultInstance().getId(); } /** * string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); } public static final int TOPIC_FIELD_NUMBER = 2; private java.lang.String topic_; /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 2 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int NO_ECHO_FIELD_NUMBER = 3; private boolean noEcho_; /** * bool no_echo = 3 [json_name = "noEcho"]; * @return The noEcho. */ @java.lang.Override public boolean getNoEcho() { return noEcho_; } /** * bool no_echo = 3 [json_name = "noEcho"]; * @param value The noEcho to set. */ private void setNoEcho(boolean value) { noEcho_ = value; } /** * bool no_echo = 3 [json_name = "noEcho"]; */ private void clearNoEcho() { noEcho_ = false; } public static final int HEAD_FIELD_NUMBER = 4; private static final class HeadDefaultEntryHolder { static final com.google.protobuf.MapEntryLite< java.lang.String, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntryLite .newDefaultInstance( com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } private com.google.protobuf.MapFieldLite< java.lang.String, com.google.protobuf.ByteString> head_ = com.google.protobuf.MapFieldLite.emptyMapField(); private com.google.protobuf.MapFieldLite internalGetHead() { return head_; } private com.google.protobuf.MapFieldLite internalGetMutableHead() { if (!head_.isMutable()) { head_ = head_.mutableCopy(); } return head_; } @java.lang.Override public int getHeadCount() { return internalGetHead().size(); } /** * map<string, bytes> head = 4 [json_name = "head"]; */ @java.lang.Override public boolean containsHead( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return internalGetHead().containsKey(key); } /** * Use {@link #getHeadMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHead() { return getHeadMap(); } /** * map<string, bytes> head = 4 [json_name = "head"]; */ @java.lang.Override public java.util.Map getHeadMap() { return java.util.Collections.unmodifiableMap( internalGetHead()); } /** * map<string, bytes> head = 4 [json_name = "head"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getHeadOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetHead(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bytes> head = 4 [json_name = "head"]; */ @java.lang.Override public com.google.protobuf.ByteString getHeadOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetHead(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** * map<string, bytes> head = 4 [json_name = "head"]; */ private java.util.Map getMutableHeadMap() { return internalGetMutableHead(); } public static final int CONTENT_FIELD_NUMBER = 5; private com.google.protobuf.ByteString content_; /** * bytes content = 5 [json_name = "content"]; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } /** * bytes content = 5 [json_name = "content"]; * @param value The content to set. */ private void setContent(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); content_ = value; } /** * bytes content = 5 [json_name = "content"]; */ private void clearContent() { content_ = getDefaultInstance().getContent(); } public static pbx.Model.ClientPub parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientPub 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 pbx.Model.ClientPub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientPub 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 pbx.Model.ClientPub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientPub 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 pbx.Model.ClientPub parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientPub 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 pbx.Model.ClientPub parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientPub parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientPub parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientPub 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(pbx.Model.ClientPub prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * ClientPub is client's request to publish data to topic subscribers {pub}
     * 
* * Protobuf type {@code pbx.ClientPub} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientPub, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientPub) pbx.Model.ClientPubOrBuilder { // Construct using pbx.Model.ClientPub.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * bool no_echo = 3 [json_name = "noEcho"]; * @return The noEcho. */ @java.lang.Override public boolean getNoEcho() { return instance.getNoEcho(); } /** * bool no_echo = 3 [json_name = "noEcho"]; * @param value The noEcho to set. * @return This builder for chaining. */ public Builder setNoEcho(boolean value) { copyOnWrite(); instance.setNoEcho(value); return this; } /** * bool no_echo = 3 [json_name = "noEcho"]; * @return This builder for chaining. */ public Builder clearNoEcho() { copyOnWrite(); instance.clearNoEcho(); return this; } @java.lang.Override public int getHeadCount() { return instance.getHeadMap().size(); } /** * map<string, bytes> head = 4 [json_name = "head"]; */ @java.lang.Override public boolean containsHead( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return instance.getHeadMap().containsKey(key); } public Builder clearHead() { copyOnWrite(); instance.getMutableHeadMap().clear(); return this; } /** * map<string, bytes> head = 4 [json_name = "head"]; */ public Builder removeHead( java.lang.String key) { java.lang.Class keyClass = key.getClass(); copyOnWrite(); instance.getMutableHeadMap().remove(key); return this; } /** * Use {@link #getHeadMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHead() { return getHeadMap(); } /** * map<string, bytes> head = 4 [json_name = "head"]; */ @java.lang.Override public java.util.Map getHeadMap() { return java.util.Collections.unmodifiableMap( instance.getHeadMap()); } /** * map<string, bytes> head = 4 [json_name = "head"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getHeadOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getHeadMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bytes> head = 4 [json_name = "head"]; */ @java.lang.Override public com.google.protobuf.ByteString getHeadOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getHeadMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** * map<string, bytes> head = 4 [json_name = "head"]; */ public Builder putHead( java.lang.String key, com.google.protobuf.ByteString value) { java.lang.Class keyClass = key.getClass(); java.lang.Class valueClass = value.getClass(); copyOnWrite(); instance.getMutableHeadMap().put(key, value); return this; } /** * map<string, bytes> head = 4 [json_name = "head"]; */ public Builder putAllHead( java.util.Map values) { copyOnWrite(); instance.getMutableHeadMap().putAll(values); return this; } /** * bytes content = 5 [json_name = "content"]; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return instance.getContent(); } /** * bytes content = 5 [json_name = "content"]; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setContent(value); return this; } /** * bytes content = 5 [json_name = "content"]; * @return This builder for chaining. */ public Builder clearContent() { copyOnWrite(); instance.clearContent(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientPub) } @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 pbx.Model.ClientPub(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "id_", "topic_", "noEcho_", "head_", HeadDefaultEntryHolder.defaultEntry, "content_", }; java.lang.String info = "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0001\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\u0007\u00042\u0005\n"; 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 (pbx.Model.ClientPub.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:pbx.ClientPub) private static final pbx.Model.ClientPub DEFAULT_INSTANCE; static { ClientPub defaultInstance = new ClientPub(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientPub.class, defaultInstance); } public static pbx.Model.ClientPub getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientGetOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientGet) com.google.protobuf.MessageLiteOrBuilder { /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ boolean hasId(); /** * optional string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * .pbx.GetQuery query = 3 [json_name = "query"]; * @return Whether the query field is set. */ boolean hasQuery(); /** * .pbx.GetQuery query = 3 [json_name = "query"]; * @return The query. */ pbx.Model.GetQuery getQuery(); } /** *
   * Query topic state {get}
   * 
* * Protobuf type {@code pbx.ClientGet} */ public static final class ClientGet extends com.google.protobuf.GeneratedMessageLite< ClientGet, ClientGet.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientGet) ClientGetOrBuilder { private ClientGet() { id_ = ""; topic_ = ""; } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; id_ = value; } /** * optional string id = 1 [json_name = "id"]; */ private void clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int TOPIC_FIELD_NUMBER = 2; private java.lang.String topic_; /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 2 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int QUERY_FIELD_NUMBER = 3; private pbx.Model.GetQuery query_; /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ @java.lang.Override public boolean hasQuery() { return ((bitField0_ & 0x00000002) != 0); } /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ @java.lang.Override public pbx.Model.GetQuery getQuery() { return query_ == null ? pbx.Model.GetQuery.getDefaultInstance() : query_; } /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ private void setQuery(pbx.Model.GetQuery value) { value.getClass(); query_ = value; bitField0_ |= 0x00000002; } /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeQuery(pbx.Model.GetQuery value) { value.getClass(); if (query_ != null && query_ != pbx.Model.GetQuery.getDefaultInstance()) { query_ = pbx.Model.GetQuery.newBuilder(query_).mergeFrom(value).buildPartial(); } else { query_ = value; } bitField0_ |= 0x00000002; } /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ private void clearQuery() { query_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static pbx.Model.ClientGet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientGet 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 pbx.Model.ClientGet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientGet 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 pbx.Model.ClientGet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientGet 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 pbx.Model.ClientGet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientGet 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 pbx.Model.ClientGet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientGet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientGet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientGet 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(pbx.Model.ClientGet prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Query topic state {get}
     * 
* * Protobuf type {@code pbx.ClientGet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientGet, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientGet) pbx.Model.ClientGetOrBuilder { // Construct using pbx.Model.ClientGet.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return instance.hasId(); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * optional string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ @java.lang.Override public boolean hasQuery() { return instance.hasQuery(); } /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ @java.lang.Override public pbx.Model.GetQuery getQuery() { return instance.getQuery(); } /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ public Builder setQuery(pbx.Model.GetQuery value) { copyOnWrite(); instance.setQuery(value); return this; } /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ public Builder setQuery( pbx.Model.GetQuery.Builder builderForValue) { copyOnWrite(); instance.setQuery(builderForValue.build()); return this; } /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ public Builder mergeQuery(pbx.Model.GetQuery value) { copyOnWrite(); instance.mergeQuery(value); return this; } /** * .pbx.GetQuery query = 3 [json_name = "query"]; */ public Builder clearQuery() { copyOnWrite(); instance.clearQuery(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientGet) } @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 pbx.Model.ClientGet(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "id_", "topic_", "query_", }; java.lang.String info = "\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u1208\u0000\u0002" + "\u0208\u0003\u1009\u0001"; 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 (pbx.Model.ClientGet.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:pbx.ClientGet) private static final pbx.Model.ClientGet DEFAULT_INSTANCE; static { ClientGet defaultInstance = new ClientGet(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientGet.class, defaultInstance); } public static pbx.Model.ClientGet getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientSetOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientSet) com.google.protobuf.MessageLiteOrBuilder { /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ boolean hasId(); /** * optional string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * .pbx.SetQuery query = 3 [json_name = "query"]; * @return Whether the query field is set. */ boolean hasQuery(); /** * .pbx.SetQuery query = 3 [json_name = "query"]; * @return The query. */ pbx.Model.SetQuery getQuery(); } /** *
   * Update topic state {set}
   * 
* * Protobuf type {@code pbx.ClientSet} */ public static final class ClientSet extends com.google.protobuf.GeneratedMessageLite< ClientSet, ClientSet.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientSet) ClientSetOrBuilder { private ClientSet() { id_ = ""; topic_ = ""; } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; id_ = value; } /** * optional string id = 1 [json_name = "id"]; */ private void clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int TOPIC_FIELD_NUMBER = 2; private java.lang.String topic_; /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 2 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int QUERY_FIELD_NUMBER = 3; private pbx.Model.SetQuery query_; /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ @java.lang.Override public boolean hasQuery() { return ((bitField0_ & 0x00000002) != 0); } /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ @java.lang.Override public pbx.Model.SetQuery getQuery() { return query_ == null ? pbx.Model.SetQuery.getDefaultInstance() : query_; } /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ private void setQuery(pbx.Model.SetQuery value) { value.getClass(); query_ = value; bitField0_ |= 0x00000002; } /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeQuery(pbx.Model.SetQuery value) { value.getClass(); if (query_ != null && query_ != pbx.Model.SetQuery.getDefaultInstance()) { query_ = pbx.Model.SetQuery.newBuilder(query_).mergeFrom(value).buildPartial(); } else { query_ = value; } bitField0_ |= 0x00000002; } /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ private void clearQuery() { query_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static pbx.Model.ClientSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientSet 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 pbx.Model.ClientSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientSet 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 pbx.Model.ClientSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientSet 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 pbx.Model.ClientSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientSet 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 pbx.Model.ClientSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientSet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientSet 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(pbx.Model.ClientSet prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Update topic state {set}
     * 
* * Protobuf type {@code pbx.ClientSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientSet, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientSet) pbx.Model.ClientSetOrBuilder { // Construct using pbx.Model.ClientSet.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return instance.hasId(); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * optional string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ @java.lang.Override public boolean hasQuery() { return instance.hasQuery(); } /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ @java.lang.Override public pbx.Model.SetQuery getQuery() { return instance.getQuery(); } /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ public Builder setQuery(pbx.Model.SetQuery value) { copyOnWrite(); instance.setQuery(value); return this; } /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ public Builder setQuery( pbx.Model.SetQuery.Builder builderForValue) { copyOnWrite(); instance.setQuery(builderForValue.build()); return this; } /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ public Builder mergeQuery(pbx.Model.SetQuery value) { copyOnWrite(); instance.mergeQuery(value); return this; } /** * .pbx.SetQuery query = 3 [json_name = "query"]; */ public Builder clearQuery() { copyOnWrite(); instance.clearQuery(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientSet) } @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 pbx.Model.ClientSet(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "id_", "topic_", "query_", }; java.lang.String info = "\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u1208\u0000\u0002" + "\u0208\u0003\u1009\u0001"; 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 (pbx.Model.ClientSet.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:pbx.ClientSet) private static final pbx.Model.ClientSet DEFAULT_INSTANCE; static { ClientSet defaultInstance = new ClientSet(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientSet.class, defaultInstance); } public static pbx.Model.ClientSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientDelOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientDel) com.google.protobuf.MessageLiteOrBuilder { /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ boolean hasId(); /** * optional string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ int getWhatValue(); /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @return The what. */ pbx.Model.ClientDel.What getWhat(); /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ java.util.List getDelSeqList(); /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ pbx.Model.SeqRange getDelSeq(int index); /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ int getDelSeqCount(); /** *
     * User ID of the subscription to delete
     * 
* * optional string user_id = 5 [json_name = "userId"]; * @return Whether the userId field is set. */ boolean hasUserId(); /** *
     * User ID of the subscription to delete
     * 
* * optional string user_id = 5 [json_name = "userId"]; * @return The userId. */ java.lang.String getUserId(); /** *
     * User ID of the subscription to delete
     * 
* * optional string user_id = 5 [json_name = "userId"]; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** *
     * Credential to delete.
     * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; * @return Whether the cred field is set. */ boolean hasCred(); /** *
     * Credential to delete.
     * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; * @return The cred. */ pbx.Model.ClientCred getCred(); /** *
     * Request to hard-delete messages for all users, if such option is available.
     * 
* * optional bool hard = 7 [json_name = "hard"]; * @return Whether the hard field is set. */ boolean hasHard(); /** *
     * Request to hard-delete messages for all users, if such option is available.
     * 
* * optional bool hard = 7 [json_name = "hard"]; * @return The hard. */ boolean getHard(); } /** *
   * ClientDel delete messages or topic
   * 
* * Protobuf type {@code pbx.ClientDel} */ public static final class ClientDel extends com.google.protobuf.GeneratedMessageLite< ClientDel, ClientDel.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientDel) ClientDelOrBuilder { private ClientDel() { id_ = ""; topic_ = ""; delSeq_ = emptyProtobufList(); userId_ = ""; } /** *
     * What to delete, either "msg" to delete messages (default) or "topic" to delete the topic or "sub"
     * to delete a subscription to topic.
     * 
* * Protobuf enum {@code pbx.ClientDel.What} */ public enum What implements com.google.protobuf.Internal.EnumLite { /** *
       * Invalid value. The name must be globally unique.
       * 
* * X0 = 0; */ X0(0), /** * MSG = 1; */ MSG(1), /** * TOPIC = 2; */ TOPIC(2), /** * SUB = 3; */ SUB(3), /** * USER = 4; */ USER(4), /** * CRED = 5; */ CRED(5), UNRECOGNIZED(-1), ; /** *
       * Invalid value. The name must be globally unique.
       * 
* * X0 = 0; */ public static final int X0_VALUE = 0; /** * MSG = 1; */ public static final int MSG_VALUE = 1; /** * TOPIC = 2; */ public static final int TOPIC_VALUE = 2; /** * SUB = 3; */ public static final int SUB_VALUE = 3; /** * USER = 4; */ public static final int USER_VALUE = 4; /** * CRED = 5; */ public static final int CRED_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 What valueOf(int value) { return forNumber(value); } public static What forNumber(int value) { switch (value) { case 0: return X0; case 1: return MSG; case 2: return TOPIC; case 3: return SUB; case 4: return USER; case 5: return CRED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< What> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public What findValueByNumber(int number) { return What.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return WhatVerifier.INSTANCE; } private static final class WhatVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new WhatVerifier(); @java.lang.Override public boolean isInRange(int number) { return What.forNumber(number) != null; } }; private final int value; private What(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:pbx.ClientDel.What) } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; id_ = value; } /** * optional string id = 1 [json_name = "id"]; */ private void clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int TOPIC_FIELD_NUMBER = 2; private java.lang.String topic_; /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 2 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int WHAT_FIELD_NUMBER = 3; private int what_; /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ @java.lang.Override public int getWhatValue() { return what_; } /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @return The what. */ @java.lang.Override public pbx.Model.ClientDel.What getWhat() { pbx.Model.ClientDel.What result = pbx.Model.ClientDel.What.forNumber(what_); return result == null ? pbx.Model.ClientDel.What.UNRECOGNIZED : result; } /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @param value The enum numeric value on the wire for what to set. */ private void setWhatValue(int value) { what_ = value; } /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @param value The what to set. */ private void setWhat(pbx.Model.ClientDel.What value) { what_ = value.getNumber(); } /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; */ private void clearWhat() { what_ = 0; } public static final int DEL_SEQ_FIELD_NUMBER = 4; private com.google.protobuf.Internal.ProtobufList delSeq_; /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ @java.lang.Override public java.util.List getDelSeqList() { return delSeq_; } /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public java.util.List getDelSeqOrBuilderList() { return delSeq_; } /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ @java.lang.Override public int getDelSeqCount() { return delSeq_.size(); } /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ @java.lang.Override public pbx.Model.SeqRange getDelSeq(int index) { return delSeq_.get(index); } /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public pbx.Model.SeqRangeOrBuilder getDelSeqOrBuilder( int index) { return delSeq_.get(index); } private void ensureDelSeqIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = delSeq_; if (!tmp.isModifiable()) { delSeq_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ private void setDelSeq( int index, pbx.Model.SeqRange value) { value.getClass(); ensureDelSeqIsMutable(); delSeq_.set(index, value); } /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ private void addDelSeq(pbx.Model.SeqRange value) { value.getClass(); ensureDelSeqIsMutable(); delSeq_.add(value); } /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ private void addDelSeq( int index, pbx.Model.SeqRange value) { value.getClass(); ensureDelSeqIsMutable(); delSeq_.add(index, value); } /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ private void addAllDelSeq( java.lang.Iterable values) { ensureDelSeqIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, delSeq_); } /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ private void clearDelSeq() { delSeq_ = emptyProtobufList(); } /** *
     * Delete messages by id or range of ids
     * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ private void removeDelSeq(int index) { ensureDelSeqIsMutable(); delSeq_.remove(index); } public static final int USER_ID_FIELD_NUMBER = 5; private java.lang.String userId_; /** *
     * User ID of the subscription to delete
     * 
* * optional string user_id = 5 [json_name = "userId"]; * @return Whether the userId field is set. */ @java.lang.Override public boolean hasUserId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * User ID of the subscription to delete
     * 
* * optional string user_id = 5 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return userId_; } /** *
     * User ID of the subscription to delete
     * 
* * optional string user_id = 5 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userId_); } /** *
     * User ID of the subscription to delete
     * 
* * optional string user_id = 5 [json_name = "userId"]; * @param value The userId to set. */ private void setUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000002; userId_ = value; } /** *
     * User ID of the subscription to delete
     * 
* * optional string user_id = 5 [json_name = "userId"]; */ private void clearUserId() { bitField0_ = (bitField0_ & ~0x00000002); userId_ = getDefaultInstance().getUserId(); } /** *
     * User ID of the subscription to delete
     * 
* * optional string user_id = 5 [json_name = "userId"]; * @param value The bytes for userId to set. */ private void setUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userId_ = value.toStringUtf8(); bitField0_ |= 0x00000002; } public static final int CRED_FIELD_NUMBER = 6; private pbx.Model.ClientCred cred_; /** *
     * Credential to delete.
     * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ @java.lang.Override public boolean hasCred() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Credential to delete.
     * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ @java.lang.Override public pbx.Model.ClientCred getCred() { return cred_ == null ? pbx.Model.ClientCred.getDefaultInstance() : cred_; } /** *
     * Credential to delete.
     * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ private void setCred(pbx.Model.ClientCred value) { value.getClass(); cred_ = value; bitField0_ |= 0x00000004; } /** *
     * Credential to delete.
     * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeCred(pbx.Model.ClientCred value) { value.getClass(); if (cred_ != null && cred_ != pbx.Model.ClientCred.getDefaultInstance()) { cred_ = pbx.Model.ClientCred.newBuilder(cred_).mergeFrom(value).buildPartial(); } else { cred_ = value; } bitField0_ |= 0x00000004; } /** *
     * Credential to delete.
     * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ private void clearCred() { cred_ = null; bitField0_ = (bitField0_ & ~0x00000004); } public static final int HARD_FIELD_NUMBER = 7; private boolean hard_; /** *
     * Request to hard-delete messages for all users, if such option is available.
     * 
* * optional bool hard = 7 [json_name = "hard"]; * @return Whether the hard field is set. */ @java.lang.Override public boolean hasHard() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Request to hard-delete messages for all users, if such option is available.
     * 
* * optional bool hard = 7 [json_name = "hard"]; * @return The hard. */ @java.lang.Override public boolean getHard() { return hard_; } /** *
     * Request to hard-delete messages for all users, if such option is available.
     * 
* * optional bool hard = 7 [json_name = "hard"]; * @param value The hard to set. */ private void setHard(boolean value) { bitField0_ |= 0x00000008; hard_ = value; } /** *
     * Request to hard-delete messages for all users, if such option is available.
     * 
* * optional bool hard = 7 [json_name = "hard"]; */ private void clearHard() { bitField0_ = (bitField0_ & ~0x00000008); hard_ = false; } public static pbx.Model.ClientDel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientDel 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 pbx.Model.ClientDel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientDel 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 pbx.Model.ClientDel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientDel 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 pbx.Model.ClientDel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientDel 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 pbx.Model.ClientDel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientDel parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientDel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientDel 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(pbx.Model.ClientDel prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * ClientDel delete messages or topic
     * 
* * Protobuf type {@code pbx.ClientDel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientDel, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientDel) pbx.Model.ClientDelOrBuilder { // Construct using pbx.Model.ClientDel.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional string id = 1 [json_name = "id"]; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return instance.hasId(); } /** * optional string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * optional string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * optional string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * optional string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * optional string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ @java.lang.Override public int getWhatValue() { return instance.getWhatValue(); } /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @param value The what to set. * @return This builder for chaining. */ public Builder setWhatValue(int value) { copyOnWrite(); instance.setWhatValue(value); return this; } /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @return The what. */ @java.lang.Override public pbx.Model.ClientDel.What getWhat() { return instance.getWhat(); } /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @param value The enum numeric value on the wire for what to set. * @return This builder for chaining. */ public Builder setWhat(pbx.Model.ClientDel.What value) { copyOnWrite(); instance.setWhat(value); return this; } /** * .pbx.ClientDel.What what = 3 [json_name = "what"]; * @return This builder for chaining. */ public Builder clearWhat() { copyOnWrite(); instance.clearWhat(); return this; } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ @java.lang.Override public java.util.List getDelSeqList() { return java.util.Collections.unmodifiableList( instance.getDelSeqList()); } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ @java.lang.Override public int getDelSeqCount() { return instance.getDelSeqCount(); }/** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ @java.lang.Override public pbx.Model.SeqRange getDelSeq(int index) { return instance.getDelSeq(index); } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public Builder setDelSeq( int index, pbx.Model.SeqRange value) { copyOnWrite(); instance.setDelSeq(index, value); return this; } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public Builder setDelSeq( int index, pbx.Model.SeqRange.Builder builderForValue) { copyOnWrite(); instance.setDelSeq(index, builderForValue.build()); return this; } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public Builder addDelSeq(pbx.Model.SeqRange value) { copyOnWrite(); instance.addDelSeq(value); return this; } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public Builder addDelSeq( int index, pbx.Model.SeqRange value) { copyOnWrite(); instance.addDelSeq(index, value); return this; } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public Builder addDelSeq( pbx.Model.SeqRange.Builder builderForValue) { copyOnWrite(); instance.addDelSeq(builderForValue.build()); return this; } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public Builder addDelSeq( int index, pbx.Model.SeqRange.Builder builderForValue) { copyOnWrite(); instance.addDelSeq(index, builderForValue.build()); return this; } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public Builder addAllDelSeq( java.lang.Iterable values) { copyOnWrite(); instance.addAllDelSeq(values); return this; } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public Builder clearDelSeq() { copyOnWrite(); instance.clearDelSeq(); return this; } /** *
       * Delete messages by id or range of ids
       * 
* * repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"]; */ public Builder removeDelSeq(int index) { copyOnWrite(); instance.removeDelSeq(index); return this; } /** *
       * User ID of the subscription to delete
       * 
* * optional string user_id = 5 [json_name = "userId"]; * @return Whether the userId field is set. */ @java.lang.Override public boolean hasUserId() { return instance.hasUserId(); } /** *
       * User ID of the subscription to delete
       * 
* * optional string user_id = 5 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return instance.getUserId(); } /** *
       * User ID of the subscription to delete
       * 
* * optional string user_id = 5 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return instance.getUserIdBytes(); } /** *
       * User ID of the subscription to delete
       * 
* * optional string user_id = 5 [json_name = "userId"]; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { copyOnWrite(); instance.setUserId(value); return this; } /** *
       * User ID of the subscription to delete
       * 
* * optional string user_id = 5 [json_name = "userId"]; * @return This builder for chaining. */ public Builder clearUserId() { copyOnWrite(); instance.clearUserId(); return this; } /** *
       * User ID of the subscription to delete
       * 
* * optional string user_id = 5 [json_name = "userId"]; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserIdBytes(value); return this; } /** *
       * Credential to delete.
       * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ @java.lang.Override public boolean hasCred() { return instance.hasCred(); } /** *
       * Credential to delete.
       * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ @java.lang.Override public pbx.Model.ClientCred getCred() { return instance.getCred(); } /** *
       * Credential to delete.
       * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ public Builder setCred(pbx.Model.ClientCred value) { copyOnWrite(); instance.setCred(value); return this; } /** *
       * Credential to delete.
       * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ public Builder setCred( pbx.Model.ClientCred.Builder builderForValue) { copyOnWrite(); instance.setCred(builderForValue.build()); return this; } /** *
       * Credential to delete.
       * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ public Builder mergeCred(pbx.Model.ClientCred value) { copyOnWrite(); instance.mergeCred(value); return this; } /** *
       * Credential to delete.
       * 
* * optional .pbx.ClientCred cred = 6 [json_name = "cred"]; */ public Builder clearCred() { copyOnWrite(); instance.clearCred(); return this; } /** *
       * Request to hard-delete messages for all users, if such option is available.
       * 
* * optional bool hard = 7 [json_name = "hard"]; * @return Whether the hard field is set. */ @java.lang.Override public boolean hasHard() { return instance.hasHard(); } /** *
       * Request to hard-delete messages for all users, if such option is available.
       * 
* * optional bool hard = 7 [json_name = "hard"]; * @return The hard. */ @java.lang.Override public boolean getHard() { return instance.getHard(); } /** *
       * Request to hard-delete messages for all users, if such option is available.
       * 
* * optional bool hard = 7 [json_name = "hard"]; * @param value The hard to set. * @return This builder for chaining. */ public Builder setHard(boolean value) { copyOnWrite(); instance.setHard(value); return this; } /** *
       * Request to hard-delete messages for all users, if such option is available.
       * 
* * optional bool hard = 7 [json_name = "hard"]; * @return This builder for chaining. */ public Builder clearHard() { copyOnWrite(); instance.clearHard(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientDel) } @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 pbx.Model.ClientDel(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "id_", "topic_", "what_", "delSeq_", pbx.Model.SeqRange.class, "userId_", "cred_", "hard_", }; java.lang.String info = "\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0001\u0000\u0001\u1208\u0000\u0002" + "\u0208\u0003\f\u0004\u001b\u0005\u1208\u0001\u0006\u1009\u0002\u0007\u1007\u0003" + ""; 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 (pbx.Model.ClientDel.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:pbx.ClientDel) private static final pbx.Model.ClientDel DEFAULT_INSTANCE; static { ClientDel defaultInstance = new ClientDel(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientDel.class, defaultInstance); } public static pbx.Model.ClientDel getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientNoteOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientNote) com.google.protobuf.MessageLiteOrBuilder { /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** *
     * what is being reported: "recv" - message received, "read" - message read,
     * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
     * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ int getWhatValue(); /** *
     * what is being reported: "recv" - message received, "read" - message read,
     * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
     * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @return The what. */ pbx.Model.InfoNote getWhat(); /** *
     * Server-issued message ID being reported
     * 
* * optional int32 seq_id = 3 [json_name = "seqId"]; * @return Whether the seqId field is set. */ boolean hasSeqId(); /** *
     * Server-issued message ID being reported
     * 
* * optional int32 seq_id = 3 [json_name = "seqId"]; * @return The seqId. */ int getSeqId(); /** * optional bytes content = 4 [json_name = "content"]; * @return Whether the content field is set. */ boolean hasContent(); /** * optional bytes content = 4 [json_name = "content"]; * @return The content. */ com.google.protobuf.ByteString getContent(); /** *
     * Client's count of unread messages to report back to the server. Used in push notifications on iOS.
     * 
* * optional int32 unread = 5 [json_name = "unread"]; * @return Whether the unread field is set. */ boolean hasUnread(); /** *
     * Client's count of unread messages to report back to the server. Used in push notifications on iOS.
     * 
* * optional int32 unread = 5 [json_name = "unread"]; * @return The unread. */ int getUnread(); /** *
     * Call event.
     * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @return Whether the event field is set. */ boolean hasEvent(); /** *
     * Call event.
     * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @return The enum numeric value on the wire for event. */ int getEventValue(); /** *
     * Call event.
     * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @return The event. */ pbx.Model.CallEvent getEvent(); /** *
     * Arbitrary json payload (used in video calls).
     * 
* * optional bytes payload = 7 [json_name = "payload"]; * @return Whether the payload field is set. */ boolean hasPayload(); /** *
     * Arbitrary json payload (used in video calls).
     * 
* * optional bytes payload = 7 [json_name = "payload"]; * @return The payload. */ com.google.protobuf.ByteString getPayload(); } /** *
   * ClientNote is a client-generated notification for topic subscribers
   * 
* * Protobuf type {@code pbx.ClientNote} */ public static final class ClientNote extends com.google.protobuf.GeneratedMessageLite< ClientNote, ClientNote.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientNote) ClientNoteOrBuilder { private ClientNote() { topic_ = ""; content_ = com.google.protobuf.ByteString.EMPTY; payload_ = com.google.protobuf.ByteString.EMPTY; } private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; private java.lang.String topic_; /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 1 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 1 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 1 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int WHAT_FIELD_NUMBER = 2; private int what_; /** *
     * what is being reported: "recv" - message received, "read" - message read,
     * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
     * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ @java.lang.Override public int getWhatValue() { return what_; } /** *
     * what is being reported: "recv" - message received, "read" - message read,
     * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
     * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @return The what. */ @java.lang.Override public pbx.Model.InfoNote getWhat() { pbx.Model.InfoNote result = pbx.Model.InfoNote.forNumber(what_); return result == null ? pbx.Model.InfoNote.UNRECOGNIZED : result; } /** *
     * what is being reported: "recv" - message received, "read" - message read,
     * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
     * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @param value The enum numeric value on the wire for what to set. */ private void setWhatValue(int value) { what_ = value; } /** *
     * what is being reported: "recv" - message received, "read" - message read,
     * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
     * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @param value The what to set. */ private void setWhat(pbx.Model.InfoNote value) { what_ = value.getNumber(); } /** *
     * what is being reported: "recv" - message received, "read" - message read,
     * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
     * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; */ private void clearWhat() { what_ = 0; } public static final int SEQ_ID_FIELD_NUMBER = 3; private int seqId_; /** *
     * Server-issued message ID being reported
     * 
* * optional int32 seq_id = 3 [json_name = "seqId"]; * @return Whether the seqId field is set. */ @java.lang.Override public boolean hasSeqId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Server-issued message ID being reported
     * 
* * optional int32 seq_id = 3 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return seqId_; } /** *
     * Server-issued message ID being reported
     * 
* * optional int32 seq_id = 3 [json_name = "seqId"]; * @param value The seqId to set. */ private void setSeqId(int value) { bitField0_ |= 0x00000001; seqId_ = value; } /** *
     * Server-issued message ID being reported
     * 
* * optional int32 seq_id = 3 [json_name = "seqId"]; */ private void clearSeqId() { bitField0_ = (bitField0_ & ~0x00000001); seqId_ = 0; } public static final int CONTENT_FIELD_NUMBER = 4; private com.google.protobuf.ByteString content_; /** * optional bytes content = 4 [json_name = "content"]; * @return Whether the content field is set. */ @java.lang.Override public boolean hasContent() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes content = 4 [json_name = "content"]; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } /** * optional bytes content = 4 [json_name = "content"]; * @param value The content to set. */ private void setContent(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000002; content_ = value; } /** * optional bytes content = 4 [json_name = "content"]; */ private void clearContent() { bitField0_ = (bitField0_ & ~0x00000002); content_ = getDefaultInstance().getContent(); } public static final int UNREAD_FIELD_NUMBER = 5; private int unread_; /** *
     * Client's count of unread messages to report back to the server. Used in push notifications on iOS.
     * 
* * optional int32 unread = 5 [json_name = "unread"]; * @return Whether the unread field is set. */ @java.lang.Override public boolean hasUnread() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Client's count of unread messages to report back to the server. Used in push notifications on iOS.
     * 
* * optional int32 unread = 5 [json_name = "unread"]; * @return The unread. */ @java.lang.Override public int getUnread() { return unread_; } /** *
     * Client's count of unread messages to report back to the server. Used in push notifications on iOS.
     * 
* * optional int32 unread = 5 [json_name = "unread"]; * @param value The unread to set. */ private void setUnread(int value) { bitField0_ |= 0x00000004; unread_ = value; } /** *
     * Client's count of unread messages to report back to the server. Used in push notifications on iOS.
     * 
* * optional int32 unread = 5 [json_name = "unread"]; */ private void clearUnread() { bitField0_ = (bitField0_ & ~0x00000004); unread_ = 0; } public static final int EVENT_FIELD_NUMBER = 6; private int event_; /** *
     * Call event.
     * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @return Whether the event field is set. */ @java.lang.Override public boolean hasEvent() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Call event.
     * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @return The enum numeric value on the wire for event. */ @java.lang.Override public int getEventValue() { return event_; } /** *
     * Call event.
     * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @return The event. */ @java.lang.Override public pbx.Model.CallEvent getEvent() { pbx.Model.CallEvent result = pbx.Model.CallEvent.forNumber(event_); return result == null ? pbx.Model.CallEvent.UNRECOGNIZED : result; } /** *
     * Call event.
     * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @param value The enum numeric value on the wire for event to set. */ private void setEventValue(int value) { bitField0_ |= 0x00000008; event_ = value; } /** *
     * Call event.
     * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @param value The event to set. */ private void setEvent(pbx.Model.CallEvent value) { event_ = value.getNumber(); bitField0_ |= 0x00000008; } /** *
     * Call event.
     * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; */ private void clearEvent() { bitField0_ = (bitField0_ & ~0x00000008); event_ = 0; } public static final int PAYLOAD_FIELD_NUMBER = 7; private com.google.protobuf.ByteString payload_; /** *
     * Arbitrary json payload (used in video calls).
     * 
* * optional bytes payload = 7 [json_name = "payload"]; * @return Whether the payload field is set. */ @java.lang.Override public boolean hasPayload() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Arbitrary json payload (used in video calls).
     * 
* * optional bytes payload = 7 [json_name = "payload"]; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
     * Arbitrary json payload (used in video calls).
     * 
* * optional bytes payload = 7 [json_name = "payload"]; * @param value The payload to set. */ private void setPayload(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000010; payload_ = value; } /** *
     * Arbitrary json payload (used in video calls).
     * 
* * optional bytes payload = 7 [json_name = "payload"]; */ private void clearPayload() { bitField0_ = (bitField0_ & ~0x00000010); payload_ = getDefaultInstance().getPayload(); } public static pbx.Model.ClientNote parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientNote 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 pbx.Model.ClientNote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientNote 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 pbx.Model.ClientNote parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientNote 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 pbx.Model.ClientNote parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientNote 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 pbx.Model.ClientNote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientNote parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientNote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientNote 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(pbx.Model.ClientNote prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * ClientNote is a client-generated notification for topic subscribers
     * 
* * Protobuf type {@code pbx.ClientNote} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientNote, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientNote) pbx.Model.ClientNoteOrBuilder { // Construct using pbx.Model.ClientNote.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 1 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 1 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 1 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** *
       * what is being reported: "recv" - message received, "read" - message read,
       * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
       * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ @java.lang.Override public int getWhatValue() { return instance.getWhatValue(); } /** *
       * what is being reported: "recv" - message received, "read" - message read,
       * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
       * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @param value The what to set. * @return This builder for chaining. */ public Builder setWhatValue(int value) { copyOnWrite(); instance.setWhatValue(value); return this; } /** *
       * what is being reported: "recv" - message received, "read" - message read,
       * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
       * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @return The what. */ @java.lang.Override public pbx.Model.InfoNote getWhat() { return instance.getWhat(); } /** *
       * what is being reported: "recv" - message received, "read" - message read,
       * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
       * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @param value The enum numeric value on the wire for what to set. * @return This builder for chaining. */ public Builder setWhat(pbx.Model.InfoNote value) { copyOnWrite(); instance.setWhat(value); return this; } /** *
       * what is being reported: "recv" - message received, "read" - message read,
       * "kp" - typing notification, "call" - voice/video call, "bypass" - bypass msg to subs
       * 
* * .pbx.InfoNote what = 2 [json_name = "what"]; * @return This builder for chaining. */ public Builder clearWhat() { copyOnWrite(); instance.clearWhat(); return this; } /** *
       * Server-issued message ID being reported
       * 
* * optional int32 seq_id = 3 [json_name = "seqId"]; * @return Whether the seqId field is set. */ @java.lang.Override public boolean hasSeqId() { return instance.hasSeqId(); } /** *
       * Server-issued message ID being reported
       * 
* * optional int32 seq_id = 3 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return instance.getSeqId(); } /** *
       * Server-issued message ID being reported
       * 
* * optional int32 seq_id = 3 [json_name = "seqId"]; * @param value The seqId to set. * @return This builder for chaining. */ public Builder setSeqId(int value) { copyOnWrite(); instance.setSeqId(value); return this; } /** *
       * Server-issued message ID being reported
       * 
* * optional int32 seq_id = 3 [json_name = "seqId"]; * @return This builder for chaining. */ public Builder clearSeqId() { copyOnWrite(); instance.clearSeqId(); return this; } /** * optional bytes content = 4 [json_name = "content"]; * @return Whether the content field is set. */ @java.lang.Override public boolean hasContent() { return instance.hasContent(); } /** * optional bytes content = 4 [json_name = "content"]; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return instance.getContent(); } /** * optional bytes content = 4 [json_name = "content"]; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setContent(value); return this; } /** * optional bytes content = 4 [json_name = "content"]; * @return This builder for chaining. */ public Builder clearContent() { copyOnWrite(); instance.clearContent(); return this; } /** *
       * Client's count of unread messages to report back to the server. Used in push notifications on iOS.
       * 
* * optional int32 unread = 5 [json_name = "unread"]; * @return Whether the unread field is set. */ @java.lang.Override public boolean hasUnread() { return instance.hasUnread(); } /** *
       * Client's count of unread messages to report back to the server. Used in push notifications on iOS.
       * 
* * optional int32 unread = 5 [json_name = "unread"]; * @return The unread. */ @java.lang.Override public int getUnread() { return instance.getUnread(); } /** *
       * Client's count of unread messages to report back to the server. Used in push notifications on iOS.
       * 
* * optional int32 unread = 5 [json_name = "unread"]; * @param value The unread to set. * @return This builder for chaining. */ public Builder setUnread(int value) { copyOnWrite(); instance.setUnread(value); return this; } /** *
       * Client's count of unread messages to report back to the server. Used in push notifications on iOS.
       * 
* * optional int32 unread = 5 [json_name = "unread"]; * @return This builder for chaining. */ public Builder clearUnread() { copyOnWrite(); instance.clearUnread(); return this; } /** *
       * Call event.
       * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @return Whether the event field is set. */ @java.lang.Override public boolean hasEvent() { return instance.hasEvent(); } /** *
       * Call event.
       * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @return The enum numeric value on the wire for event. */ @java.lang.Override public int getEventValue() { return instance.getEventValue(); } /** *
       * Call event.
       * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @param value The event to set. * @return This builder for chaining. */ public Builder setEventValue(int value) { copyOnWrite(); instance.setEventValue(value); return this; } /** *
       * Call event.
       * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @return The event. */ @java.lang.Override public pbx.Model.CallEvent getEvent() { return instance.getEvent(); } /** *
       * Call event.
       * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @param value The enum numeric value on the wire for event to set. * @return This builder for chaining. */ public Builder setEvent(pbx.Model.CallEvent value) { copyOnWrite(); instance.setEvent(value); return this; } /** *
       * Call event.
       * 
* * optional .pbx.CallEvent event = 6 [json_name = "event"]; * @return This builder for chaining. */ public Builder clearEvent() { copyOnWrite(); instance.clearEvent(); return this; } /** *
       * Arbitrary json payload (used in video calls).
       * 
* * optional bytes payload = 7 [json_name = "payload"]; * @return Whether the payload field is set. */ @java.lang.Override public boolean hasPayload() { return instance.hasPayload(); } /** *
       * Arbitrary json payload (used in video calls).
       * 
* * optional bytes payload = 7 [json_name = "payload"]; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return instance.getPayload(); } /** *
       * Arbitrary json payload (used in video calls).
       * 
* * optional bytes payload = 7 [json_name = "payload"]; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPayload(value); return this; } /** *
       * Arbitrary json payload (used in video calls).
       * 
* * optional bytes payload = 7 [json_name = "payload"]; * @return This builder for chaining. */ public Builder clearPayload() { copyOnWrite(); instance.clearPayload(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientNote) } @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 pbx.Model.ClientNote(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "topic_", "what_", "seqId_", "content_", "unread_", "event_", "payload_", }; java.lang.String info = "\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0208\u0002\f" + "\u0003\u1004\u0000\u0004\u100a\u0001\u0005\u1004\u0002\u0006\u100c\u0003\u0007\u100a" + "\u0004"; 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 (pbx.Model.ClientNote.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:pbx.ClientNote) private static final pbx.Model.ClientNote DEFAULT_INSTANCE; static { ClientNote defaultInstance = new ClientNote(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientNote.class, defaultInstance); } public static pbx.Model.ClientNote getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientExtraOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientExtra) com.google.protobuf.MessageLiteOrBuilder { /** * repeated string attachments = 1 [json_name = "attachments"]; * @return A list containing the attachments. */ java.util.List getAttachmentsList(); /** * repeated string attachments = 1 [json_name = "attachments"]; * @return The count of attachments. */ int getAttachmentsCount(); /** * repeated string attachments = 1 [json_name = "attachments"]; * @param index The index of the element to return. * @return The attachments at the given index. */ java.lang.String getAttachments(int index); /** * repeated string attachments = 1 [json_name = "attachments"]; * @param index The index of the element to return. * @return The attachments at the given index. */ com.google.protobuf.ByteString getAttachmentsBytes(int index); /** *
     * Root user may send messages on behalf of other users.
     * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @return The onBehalfOf. */ java.lang.String getOnBehalfOf(); /** *
     * Root user may send messages on behalf of other users.
     * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @return The bytes for onBehalfOf. */ com.google.protobuf.ByteString getOnBehalfOfBytes(); /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The enum numeric value on the wire for authLevel. */ int getAuthLevelValue(); /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The authLevel. */ pbx.Model.AuthLevel getAuthLevel(); } /** * Protobuf type {@code pbx.ClientExtra} */ public static final class ClientExtra extends com.google.protobuf.GeneratedMessageLite< ClientExtra, ClientExtra.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientExtra) ClientExtraOrBuilder { private ClientExtra() { attachments_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); onBehalfOf_ = ""; } public static final int ATTACHMENTS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.ProtobufList attachments_; /** * repeated string attachments = 1 [json_name = "attachments"]; * @return A list containing the attachments. */ @java.lang.Override public java.util.List getAttachmentsList() { return attachments_; } /** * repeated string attachments = 1 [json_name = "attachments"]; * @return The count of attachments. */ @java.lang.Override public int getAttachmentsCount() { return attachments_.size(); } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param index The index of the element to return. * @return The attachments at the given index. */ @java.lang.Override public java.lang.String getAttachments(int index) { return attachments_.get(index); } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param index The index of the value to return. * @return The bytes of the attachments at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getAttachmentsBytes(int index) { return com.google.protobuf.ByteString.copyFromUtf8( attachments_.get(index)); } private void ensureAttachmentsIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = attachments_; if (!tmp.isModifiable()) { attachments_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param index The index to set the value at. * @param value The attachments to set. */ private void setAttachments( int index, java.lang.String value) { java.lang.Class valueClass = value.getClass(); ensureAttachmentsIsMutable(); attachments_.set(index, value); } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param value The attachments to add. */ private void addAttachments( java.lang.String value) { java.lang.Class valueClass = value.getClass(); ensureAttachmentsIsMutable(); attachments_.add(value); } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param values The attachments to add. */ private void addAllAttachments( java.lang.Iterable values) { ensureAttachmentsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, attachments_); } /** * repeated string attachments = 1 [json_name = "attachments"]; */ private void clearAttachments() { attachments_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param value The bytes of the attachments to add. */ private void addAttachmentsBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAttachmentsIsMutable(); attachments_.add(value.toStringUtf8()); } public static final int ON_BEHALF_OF_FIELD_NUMBER = 2; private java.lang.String onBehalfOf_; /** *
     * Root user may send messages on behalf of other users.
     * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @return The onBehalfOf. */ @java.lang.Override public java.lang.String getOnBehalfOf() { return onBehalfOf_; } /** *
     * Root user may send messages on behalf of other users.
     * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @return The bytes for onBehalfOf. */ @java.lang.Override public com.google.protobuf.ByteString getOnBehalfOfBytes() { return com.google.protobuf.ByteString.copyFromUtf8(onBehalfOf_); } /** *
     * Root user may send messages on behalf of other users.
     * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @param value The onBehalfOf to set. */ private void setOnBehalfOf( java.lang.String value) { java.lang.Class valueClass = value.getClass(); onBehalfOf_ = value; } /** *
     * Root user may send messages on behalf of other users.
     * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; */ private void clearOnBehalfOf() { onBehalfOf_ = getDefaultInstance().getOnBehalfOf(); } /** *
     * Root user may send messages on behalf of other users.
     * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @param value The bytes for onBehalfOf to set. */ private void setOnBehalfOfBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); onBehalfOf_ = value.toStringUtf8(); } public static final int AUTH_LEVEL_FIELD_NUMBER = 3; private int authLevel_; /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The enum numeric value on the wire for authLevel. */ @java.lang.Override public int getAuthLevelValue() { return authLevel_; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The authLevel. */ @java.lang.Override public pbx.Model.AuthLevel getAuthLevel() { pbx.Model.AuthLevel result = pbx.Model.AuthLevel.forNumber(authLevel_); return result == null ? pbx.Model.AuthLevel.UNRECOGNIZED : result; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @param value The enum numeric value on the wire for authLevel to set. */ private void setAuthLevelValue(int value) { authLevel_ = value; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @param value The authLevel to set. */ private void setAuthLevel(pbx.Model.AuthLevel value) { authLevel_ = value.getNumber(); } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; */ private void clearAuthLevel() { authLevel_ = 0; } public static pbx.Model.ClientExtra parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientExtra 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 pbx.Model.ClientExtra parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientExtra 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 pbx.Model.ClientExtra parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientExtra 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 pbx.Model.ClientExtra parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientExtra 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 pbx.Model.ClientExtra parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientExtra parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientExtra parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientExtra 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(pbx.Model.ClientExtra prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.ClientExtra} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientExtra, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientExtra) pbx.Model.ClientExtraOrBuilder { // Construct using pbx.Model.ClientExtra.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * repeated string attachments = 1 [json_name = "attachments"]; * @return A list containing the attachments. */ @java.lang.Override public java.util.List getAttachmentsList() { return java.util.Collections.unmodifiableList( instance.getAttachmentsList()); } /** * repeated string attachments = 1 [json_name = "attachments"]; * @return The count of attachments. */ @java.lang.Override public int getAttachmentsCount() { return instance.getAttachmentsCount(); } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param index The index of the element to return. * @return The attachments at the given index. */ @java.lang.Override public java.lang.String getAttachments(int index) { return instance.getAttachments(index); } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param index The index of the value to return. * @return The bytes of the attachments at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getAttachmentsBytes(int index) { return instance.getAttachmentsBytes(index); } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param index The index to set the value at. * @param value The attachments to set. * @return This builder for chaining. */ public Builder setAttachments( int index, java.lang.String value) { copyOnWrite(); instance.setAttachments(index, value); return this; } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param value The attachments to add. * @return This builder for chaining. */ public Builder addAttachments( java.lang.String value) { copyOnWrite(); instance.addAttachments(value); return this; } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param values The attachments to add. * @return This builder for chaining. */ public Builder addAllAttachments( java.lang.Iterable values) { copyOnWrite(); instance.addAllAttachments(values); return this; } /** * repeated string attachments = 1 [json_name = "attachments"]; * @return This builder for chaining. */ public Builder clearAttachments() { copyOnWrite(); instance.clearAttachments(); return this; } /** * repeated string attachments = 1 [json_name = "attachments"]; * @param value The bytes of the attachments to add. * @return This builder for chaining. */ public Builder addAttachmentsBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.addAttachmentsBytes(value); return this; } /** *
       * Root user may send messages on behalf of other users.
       * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @return The onBehalfOf. */ @java.lang.Override public java.lang.String getOnBehalfOf() { return instance.getOnBehalfOf(); } /** *
       * Root user may send messages on behalf of other users.
       * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @return The bytes for onBehalfOf. */ @java.lang.Override public com.google.protobuf.ByteString getOnBehalfOfBytes() { return instance.getOnBehalfOfBytes(); } /** *
       * Root user may send messages on behalf of other users.
       * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @param value The onBehalfOf to set. * @return This builder for chaining. */ public Builder setOnBehalfOf( java.lang.String value) { copyOnWrite(); instance.setOnBehalfOf(value); return this; } /** *
       * Root user may send messages on behalf of other users.
       * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @return This builder for chaining. */ public Builder clearOnBehalfOf() { copyOnWrite(); instance.clearOnBehalfOf(); return this; } /** *
       * Root user may send messages on behalf of other users.
       * 
* * string on_behalf_of = 2 [json_name = "onBehalfOf"]; * @param value The bytes for onBehalfOf to set. * @return This builder for chaining. */ public Builder setOnBehalfOfBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setOnBehalfOfBytes(value); return this; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The enum numeric value on the wire for authLevel. */ @java.lang.Override public int getAuthLevelValue() { return instance.getAuthLevelValue(); } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @param value The authLevel to set. * @return This builder for chaining. */ public Builder setAuthLevelValue(int value) { copyOnWrite(); instance.setAuthLevelValue(value); return this; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The authLevel. */ @java.lang.Override public pbx.Model.AuthLevel getAuthLevel() { return instance.getAuthLevel(); } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @param value The enum numeric value on the wire for authLevel to set. * @return This builder for chaining. */ public Builder setAuthLevel(pbx.Model.AuthLevel value) { copyOnWrite(); instance.setAuthLevel(value); return this; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return This builder for chaining. */ public Builder clearAuthLevel() { copyOnWrite(); instance.clearAuthLevel(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientExtra) } @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 pbx.Model.ClientExtra(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "attachments_", "onBehalfOf_", "authLevel_", }; java.lang.String info = "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0001\u0000\u0001\u021a\u0002\u0208" + "\u0003\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 (pbx.Model.ClientExtra.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:pbx.ClientExtra) private static final pbx.Model.ClientExtra DEFAULT_INSTANCE; static { ClientExtra defaultInstance = new ClientExtra(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientExtra.class, defaultInstance); } public static pbx.Model.ClientExtra getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientMsgOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientMsg) com.google.protobuf.MessageLiteOrBuilder { /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; * @return Whether the hi field is set. */ boolean hasHi(); /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; * @return The hi. */ pbx.Model.ClientHi getHi(); /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; * @return Whether the acc field is set. */ boolean hasAcc(); /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; * @return The acc. */ pbx.Model.ClientAcc getAcc(); /** * .pbx.ClientLogin login = 3 [json_name = "login"]; * @return Whether the login field is set. */ boolean hasLogin(); /** * .pbx.ClientLogin login = 3 [json_name = "login"]; * @return The login. */ pbx.Model.ClientLogin getLogin(); /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; * @return Whether the sub field is set. */ boolean hasSub(); /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; * @return The sub. */ pbx.Model.ClientSub getSub(); /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; * @return Whether the leave field is set. */ boolean hasLeave(); /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; * @return The leave. */ pbx.Model.ClientLeave getLeave(); /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; * @return Whether the pub field is set. */ boolean hasPub(); /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; * @return The pub. */ pbx.Model.ClientPub getPub(); /** * .pbx.ClientGet get = 7 [json_name = "get"]; * @return Whether the get field is set. */ boolean hasGet(); /** * .pbx.ClientGet get = 7 [json_name = "get"]; * @return The get. */ pbx.Model.ClientGet getGet(); /** * .pbx.ClientSet set = 8 [json_name = "set"]; * @return Whether the set field is set. */ boolean hasSet(); /** * .pbx.ClientSet set = 8 [json_name = "set"]; * @return The set. */ pbx.Model.ClientSet getSet(); /** * .pbx.ClientDel del = 9 [json_name = "del"]; * @return Whether the del field is set. */ boolean hasDel(); /** * .pbx.ClientDel del = 9 [json_name = "del"]; * @return The del. */ pbx.Model.ClientDel getDel(); /** * .pbx.ClientNote note = 10 [json_name = "note"]; * @return Whether the note field is set. */ boolean hasNote(); /** * .pbx.ClientNote note = 10 [json_name = "note"]; * @return The note. */ pbx.Model.ClientNote getNote(); /** *
     * Additional message parameters.
     * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; * @return Whether the extra field is set. */ boolean hasExtra(); /** *
     * Additional message parameters.
     * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; * @return The extra. */ pbx.Model.ClientExtra getExtra(); public pbx.Model.ClientMsg.MessageCase getMessageCase(); } /** * Protobuf type {@code pbx.ClientMsg} */ public static final class ClientMsg extends com.google.protobuf.GeneratedMessageLite< ClientMsg, ClientMsg.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientMsg) ClientMsgOrBuilder { private ClientMsg() { } private int bitField0_; private int messageCase_ = 0; private java.lang.Object message_; public enum MessageCase { HI(1), ACC(2), LOGIN(3), SUB(4), LEAVE(5), PUB(6), GET(7), SET(8), DEL(9), NOTE(10), MESSAGE_NOT_SET(0); private final int value; private MessageCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MessageCase valueOf(int value) { return forNumber(value); } public static MessageCase forNumber(int value) { switch (value) { case 1: return HI; case 2: return ACC; case 3: return LOGIN; case 4: return SUB; case 5: return LEAVE; case 6: return PUB; case 7: return GET; case 8: return SET; case 9: return DEL; case 10: return NOTE; case 0: return MESSAGE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; @java.lang.Override public MessageCase getMessageCase() { return MessageCase.forNumber( messageCase_); } private void clearMessage() { messageCase_ = 0; message_ = null; } public static final int HI_FIELD_NUMBER = 1; /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ @java.lang.Override public boolean hasHi() { return messageCase_ == 1; } /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ @java.lang.Override public pbx.Model.ClientHi getHi() { if (messageCase_ == 1) { return (pbx.Model.ClientHi) message_; } return pbx.Model.ClientHi.getDefaultInstance(); } /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ private void setHi(pbx.Model.ClientHi value) { value.getClass(); message_ = value; messageCase_ = 1; } /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ private void mergeHi(pbx.Model.ClientHi value) { value.getClass(); if (messageCase_ == 1 && message_ != pbx.Model.ClientHi.getDefaultInstance()) { message_ = pbx.Model.ClientHi.newBuilder((pbx.Model.ClientHi) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 1; } /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ private void clearHi() { if (messageCase_ == 1) { messageCase_ = 0; message_ = null; } } public static final int ACC_FIELD_NUMBER = 2; /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ @java.lang.Override public boolean hasAcc() { return messageCase_ == 2; } /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ @java.lang.Override public pbx.Model.ClientAcc getAcc() { if (messageCase_ == 2) { return (pbx.Model.ClientAcc) message_; } return pbx.Model.ClientAcc.getDefaultInstance(); } /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ private void setAcc(pbx.Model.ClientAcc value) { value.getClass(); message_ = value; messageCase_ = 2; } /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ private void mergeAcc(pbx.Model.ClientAcc value) { value.getClass(); if (messageCase_ == 2 && message_ != pbx.Model.ClientAcc.getDefaultInstance()) { message_ = pbx.Model.ClientAcc.newBuilder((pbx.Model.ClientAcc) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 2; } /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ private void clearAcc() { if (messageCase_ == 2) { messageCase_ = 0; message_ = null; } } public static final int LOGIN_FIELD_NUMBER = 3; /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ @java.lang.Override public boolean hasLogin() { return messageCase_ == 3; } /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ @java.lang.Override public pbx.Model.ClientLogin getLogin() { if (messageCase_ == 3) { return (pbx.Model.ClientLogin) message_; } return pbx.Model.ClientLogin.getDefaultInstance(); } /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ private void setLogin(pbx.Model.ClientLogin value) { value.getClass(); message_ = value; messageCase_ = 3; } /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ private void mergeLogin(pbx.Model.ClientLogin value) { value.getClass(); if (messageCase_ == 3 && message_ != pbx.Model.ClientLogin.getDefaultInstance()) { message_ = pbx.Model.ClientLogin.newBuilder((pbx.Model.ClientLogin) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 3; } /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ private void clearLogin() { if (messageCase_ == 3) { messageCase_ = 0; message_ = null; } } public static final int SUB_FIELD_NUMBER = 4; /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ @java.lang.Override public boolean hasSub() { return messageCase_ == 4; } /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ @java.lang.Override public pbx.Model.ClientSub getSub() { if (messageCase_ == 4) { return (pbx.Model.ClientSub) message_; } return pbx.Model.ClientSub.getDefaultInstance(); } /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ private void setSub(pbx.Model.ClientSub value) { value.getClass(); message_ = value; messageCase_ = 4; } /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ private void mergeSub(pbx.Model.ClientSub value) { value.getClass(); if (messageCase_ == 4 && message_ != pbx.Model.ClientSub.getDefaultInstance()) { message_ = pbx.Model.ClientSub.newBuilder((pbx.Model.ClientSub) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 4; } /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ private void clearSub() { if (messageCase_ == 4) { messageCase_ = 0; message_ = null; } } public static final int LEAVE_FIELD_NUMBER = 5; /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ @java.lang.Override public boolean hasLeave() { return messageCase_ == 5; } /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ @java.lang.Override public pbx.Model.ClientLeave getLeave() { if (messageCase_ == 5) { return (pbx.Model.ClientLeave) message_; } return pbx.Model.ClientLeave.getDefaultInstance(); } /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ private void setLeave(pbx.Model.ClientLeave value) { value.getClass(); message_ = value; messageCase_ = 5; } /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ private void mergeLeave(pbx.Model.ClientLeave value) { value.getClass(); if (messageCase_ == 5 && message_ != pbx.Model.ClientLeave.getDefaultInstance()) { message_ = pbx.Model.ClientLeave.newBuilder((pbx.Model.ClientLeave) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 5; } /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ private void clearLeave() { if (messageCase_ == 5) { messageCase_ = 0; message_ = null; } } public static final int PUB_FIELD_NUMBER = 6; /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ @java.lang.Override public boolean hasPub() { return messageCase_ == 6; } /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ @java.lang.Override public pbx.Model.ClientPub getPub() { if (messageCase_ == 6) { return (pbx.Model.ClientPub) message_; } return pbx.Model.ClientPub.getDefaultInstance(); } /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ private void setPub(pbx.Model.ClientPub value) { value.getClass(); message_ = value; messageCase_ = 6; } /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ private void mergePub(pbx.Model.ClientPub value) { value.getClass(); if (messageCase_ == 6 && message_ != pbx.Model.ClientPub.getDefaultInstance()) { message_ = pbx.Model.ClientPub.newBuilder((pbx.Model.ClientPub) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 6; } /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ private void clearPub() { if (messageCase_ == 6) { messageCase_ = 0; message_ = null; } } public static final int GET_FIELD_NUMBER = 7; /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ @java.lang.Override public boolean hasGet() { return messageCase_ == 7; } /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ @java.lang.Override public pbx.Model.ClientGet getGet() { if (messageCase_ == 7) { return (pbx.Model.ClientGet) message_; } return pbx.Model.ClientGet.getDefaultInstance(); } /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ private void setGet(pbx.Model.ClientGet value) { value.getClass(); message_ = value; messageCase_ = 7; } /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ private void mergeGet(pbx.Model.ClientGet value) { value.getClass(); if (messageCase_ == 7 && message_ != pbx.Model.ClientGet.getDefaultInstance()) { message_ = pbx.Model.ClientGet.newBuilder((pbx.Model.ClientGet) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 7; } /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ private void clearGet() { if (messageCase_ == 7) { messageCase_ = 0; message_ = null; } } public static final int SET_FIELD_NUMBER = 8; /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ @java.lang.Override public boolean hasSet() { return messageCase_ == 8; } /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ @java.lang.Override public pbx.Model.ClientSet getSet() { if (messageCase_ == 8) { return (pbx.Model.ClientSet) message_; } return pbx.Model.ClientSet.getDefaultInstance(); } /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ private void setSet(pbx.Model.ClientSet value) { value.getClass(); message_ = value; messageCase_ = 8; } /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ private void mergeSet(pbx.Model.ClientSet value) { value.getClass(); if (messageCase_ == 8 && message_ != pbx.Model.ClientSet.getDefaultInstance()) { message_ = pbx.Model.ClientSet.newBuilder((pbx.Model.ClientSet) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 8; } /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ private void clearSet() { if (messageCase_ == 8) { messageCase_ = 0; message_ = null; } } public static final int DEL_FIELD_NUMBER = 9; /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ @java.lang.Override public boolean hasDel() { return messageCase_ == 9; } /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ @java.lang.Override public pbx.Model.ClientDel getDel() { if (messageCase_ == 9) { return (pbx.Model.ClientDel) message_; } return pbx.Model.ClientDel.getDefaultInstance(); } /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ private void setDel(pbx.Model.ClientDel value) { value.getClass(); message_ = value; messageCase_ = 9; } /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ private void mergeDel(pbx.Model.ClientDel value) { value.getClass(); if (messageCase_ == 9 && message_ != pbx.Model.ClientDel.getDefaultInstance()) { message_ = pbx.Model.ClientDel.newBuilder((pbx.Model.ClientDel) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 9; } /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ private void clearDel() { if (messageCase_ == 9) { messageCase_ = 0; message_ = null; } } public static final int NOTE_FIELD_NUMBER = 10; /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ @java.lang.Override public boolean hasNote() { return messageCase_ == 10; } /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ @java.lang.Override public pbx.Model.ClientNote getNote() { if (messageCase_ == 10) { return (pbx.Model.ClientNote) message_; } return pbx.Model.ClientNote.getDefaultInstance(); } /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ private void setNote(pbx.Model.ClientNote value) { value.getClass(); message_ = value; messageCase_ = 10; } /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ private void mergeNote(pbx.Model.ClientNote value) { value.getClass(); if (messageCase_ == 10 && message_ != pbx.Model.ClientNote.getDefaultInstance()) { message_ = pbx.Model.ClientNote.newBuilder((pbx.Model.ClientNote) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 10; } /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ private void clearNote() { if (messageCase_ == 10) { messageCase_ = 0; message_ = null; } } public static final int EXTRA_FIELD_NUMBER = 13; private pbx.Model.ClientExtra extra_; /** *
     * Additional message parameters.
     * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ @java.lang.Override public boolean hasExtra() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Additional message parameters.
     * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ @java.lang.Override public pbx.Model.ClientExtra getExtra() { return extra_ == null ? pbx.Model.ClientExtra.getDefaultInstance() : extra_; } /** *
     * Additional message parameters.
     * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ private void setExtra(pbx.Model.ClientExtra value) { value.getClass(); extra_ = value; bitField0_ |= 0x00000001; } /** *
     * Additional message parameters.
     * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeExtra(pbx.Model.ClientExtra value) { value.getClass(); if (extra_ != null && extra_ != pbx.Model.ClientExtra.getDefaultInstance()) { extra_ = pbx.Model.ClientExtra.newBuilder(extra_).mergeFrom(value).buildPartial(); } else { extra_ = value; } bitField0_ |= 0x00000001; } /** *
     * Additional message parameters.
     * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ private void clearExtra() { extra_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static pbx.Model.ClientMsg parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientMsg 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 pbx.Model.ClientMsg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientMsg 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 pbx.Model.ClientMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientMsg 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 pbx.Model.ClientMsg parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientMsg 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 pbx.Model.ClientMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientMsg parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientMsg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientMsg 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(pbx.Model.ClientMsg prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.ClientMsg} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientMsg, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientMsg) pbx.Model.ClientMsgOrBuilder { // Construct using pbx.Model.ClientMsg.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @java.lang.Override public MessageCase getMessageCase() { return instance.getMessageCase(); } public Builder clearMessage() { copyOnWrite(); instance.clearMessage(); return this; } /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ @java.lang.Override public boolean hasHi() { return instance.hasHi(); } /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ @java.lang.Override public pbx.Model.ClientHi getHi() { return instance.getHi(); } /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ public Builder setHi(pbx.Model.ClientHi value) { copyOnWrite(); instance.setHi(value); return this; } /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ public Builder setHi( pbx.Model.ClientHi.Builder builderForValue) { copyOnWrite(); instance.setHi(builderForValue.build()); return this; } /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ public Builder mergeHi(pbx.Model.ClientHi value) { copyOnWrite(); instance.mergeHi(value); return this; } /** * .pbx.ClientHi hi = 1 [json_name = "hi"]; */ public Builder clearHi() { copyOnWrite(); instance.clearHi(); return this; } /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ @java.lang.Override public boolean hasAcc() { return instance.hasAcc(); } /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ @java.lang.Override public pbx.Model.ClientAcc getAcc() { return instance.getAcc(); } /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ public Builder setAcc(pbx.Model.ClientAcc value) { copyOnWrite(); instance.setAcc(value); return this; } /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ public Builder setAcc( pbx.Model.ClientAcc.Builder builderForValue) { copyOnWrite(); instance.setAcc(builderForValue.build()); return this; } /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ public Builder mergeAcc(pbx.Model.ClientAcc value) { copyOnWrite(); instance.mergeAcc(value); return this; } /** * .pbx.ClientAcc acc = 2 [json_name = "acc"]; */ public Builder clearAcc() { copyOnWrite(); instance.clearAcc(); return this; } /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ @java.lang.Override public boolean hasLogin() { return instance.hasLogin(); } /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ @java.lang.Override public pbx.Model.ClientLogin getLogin() { return instance.getLogin(); } /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ public Builder setLogin(pbx.Model.ClientLogin value) { copyOnWrite(); instance.setLogin(value); return this; } /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ public Builder setLogin( pbx.Model.ClientLogin.Builder builderForValue) { copyOnWrite(); instance.setLogin(builderForValue.build()); return this; } /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ public Builder mergeLogin(pbx.Model.ClientLogin value) { copyOnWrite(); instance.mergeLogin(value); return this; } /** * .pbx.ClientLogin login = 3 [json_name = "login"]; */ public Builder clearLogin() { copyOnWrite(); instance.clearLogin(); return this; } /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ @java.lang.Override public boolean hasSub() { return instance.hasSub(); } /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ @java.lang.Override public pbx.Model.ClientSub getSub() { return instance.getSub(); } /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ public Builder setSub(pbx.Model.ClientSub value) { copyOnWrite(); instance.setSub(value); return this; } /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ public Builder setSub( pbx.Model.ClientSub.Builder builderForValue) { copyOnWrite(); instance.setSub(builderForValue.build()); return this; } /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ public Builder mergeSub(pbx.Model.ClientSub value) { copyOnWrite(); instance.mergeSub(value); return this; } /** * .pbx.ClientSub sub = 4 [json_name = "sub"]; */ public Builder clearSub() { copyOnWrite(); instance.clearSub(); return this; } /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ @java.lang.Override public boolean hasLeave() { return instance.hasLeave(); } /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ @java.lang.Override public pbx.Model.ClientLeave getLeave() { return instance.getLeave(); } /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ public Builder setLeave(pbx.Model.ClientLeave value) { copyOnWrite(); instance.setLeave(value); return this; } /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ public Builder setLeave( pbx.Model.ClientLeave.Builder builderForValue) { copyOnWrite(); instance.setLeave(builderForValue.build()); return this; } /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ public Builder mergeLeave(pbx.Model.ClientLeave value) { copyOnWrite(); instance.mergeLeave(value); return this; } /** * .pbx.ClientLeave leave = 5 [json_name = "leave"]; */ public Builder clearLeave() { copyOnWrite(); instance.clearLeave(); return this; } /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ @java.lang.Override public boolean hasPub() { return instance.hasPub(); } /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ @java.lang.Override public pbx.Model.ClientPub getPub() { return instance.getPub(); } /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ public Builder setPub(pbx.Model.ClientPub value) { copyOnWrite(); instance.setPub(value); return this; } /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ public Builder setPub( pbx.Model.ClientPub.Builder builderForValue) { copyOnWrite(); instance.setPub(builderForValue.build()); return this; } /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ public Builder mergePub(pbx.Model.ClientPub value) { copyOnWrite(); instance.mergePub(value); return this; } /** * .pbx.ClientPub pub = 6 [json_name = "pub"]; */ public Builder clearPub() { copyOnWrite(); instance.clearPub(); return this; } /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ @java.lang.Override public boolean hasGet() { return instance.hasGet(); } /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ @java.lang.Override public pbx.Model.ClientGet getGet() { return instance.getGet(); } /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ public Builder setGet(pbx.Model.ClientGet value) { copyOnWrite(); instance.setGet(value); return this; } /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ public Builder setGet( pbx.Model.ClientGet.Builder builderForValue) { copyOnWrite(); instance.setGet(builderForValue.build()); return this; } /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ public Builder mergeGet(pbx.Model.ClientGet value) { copyOnWrite(); instance.mergeGet(value); return this; } /** * .pbx.ClientGet get = 7 [json_name = "get"]; */ public Builder clearGet() { copyOnWrite(); instance.clearGet(); return this; } /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ @java.lang.Override public boolean hasSet() { return instance.hasSet(); } /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ @java.lang.Override public pbx.Model.ClientSet getSet() { return instance.getSet(); } /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ public Builder setSet(pbx.Model.ClientSet value) { copyOnWrite(); instance.setSet(value); return this; } /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ public Builder setSet( pbx.Model.ClientSet.Builder builderForValue) { copyOnWrite(); instance.setSet(builderForValue.build()); return this; } /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ public Builder mergeSet(pbx.Model.ClientSet value) { copyOnWrite(); instance.mergeSet(value); return this; } /** * .pbx.ClientSet set = 8 [json_name = "set"]; */ public Builder clearSet() { copyOnWrite(); instance.clearSet(); return this; } /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ @java.lang.Override public boolean hasDel() { return instance.hasDel(); } /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ @java.lang.Override public pbx.Model.ClientDel getDel() { return instance.getDel(); } /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ public Builder setDel(pbx.Model.ClientDel value) { copyOnWrite(); instance.setDel(value); return this; } /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ public Builder setDel( pbx.Model.ClientDel.Builder builderForValue) { copyOnWrite(); instance.setDel(builderForValue.build()); return this; } /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ public Builder mergeDel(pbx.Model.ClientDel value) { copyOnWrite(); instance.mergeDel(value); return this; } /** * .pbx.ClientDel del = 9 [json_name = "del"]; */ public Builder clearDel() { copyOnWrite(); instance.clearDel(); return this; } /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ @java.lang.Override public boolean hasNote() { return instance.hasNote(); } /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ @java.lang.Override public pbx.Model.ClientNote getNote() { return instance.getNote(); } /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ public Builder setNote(pbx.Model.ClientNote value) { copyOnWrite(); instance.setNote(value); return this; } /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ public Builder setNote( pbx.Model.ClientNote.Builder builderForValue) { copyOnWrite(); instance.setNote(builderForValue.build()); return this; } /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ public Builder mergeNote(pbx.Model.ClientNote value) { copyOnWrite(); instance.mergeNote(value); return this; } /** * .pbx.ClientNote note = 10 [json_name = "note"]; */ public Builder clearNote() { copyOnWrite(); instance.clearNote(); return this; } /** *
       * Additional message parameters.
       * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ @java.lang.Override public boolean hasExtra() { return instance.hasExtra(); } /** *
       * Additional message parameters.
       * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ @java.lang.Override public pbx.Model.ClientExtra getExtra() { return instance.getExtra(); } /** *
       * Additional message parameters.
       * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ public Builder setExtra(pbx.Model.ClientExtra value) { copyOnWrite(); instance.setExtra(value); return this; } /** *
       * Additional message parameters.
       * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ public Builder setExtra( pbx.Model.ClientExtra.Builder builderForValue) { copyOnWrite(); instance.setExtra(builderForValue.build()); return this; } /** *
       * Additional message parameters.
       * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ public Builder mergeExtra(pbx.Model.ClientExtra value) { copyOnWrite(); instance.mergeExtra(value); return this; } /** *
       * Additional message parameters.
       * 
* * .pbx.ClientExtra extra = 13 [json_name = "extra"]; */ public Builder clearExtra() { copyOnWrite(); instance.clearExtra(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientMsg) } @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 pbx.Model.ClientMsg(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "message_", "messageCase_", "bitField0_", pbx.Model.ClientHi.class, pbx.Model.ClientAcc.class, pbx.Model.ClientLogin.class, pbx.Model.ClientSub.class, pbx.Model.ClientLeave.class, pbx.Model.ClientPub.class, pbx.Model.ClientGet.class, pbx.Model.ClientSet.class, pbx.Model.ClientDel.class, pbx.Model.ClientNote.class, "extra_", }; java.lang.String info = "\u0000\u000b\u0001\u0001\u0001\r\u000b\u0000\u0000\u0000\u0001<\u0000\u0002<\u0000" + "\u0003<\u0000\u0004<\u0000\u0005<\u0000\u0006<\u0000\u0007<\u0000\b<\u0000\t<\u0000" + "\n<\u0000\r\u1009\u0000"; 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 (pbx.Model.ClientMsg.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:pbx.ClientMsg) private static final pbx.Model.ClientMsg DEFAULT_INSTANCE; static { ClientMsg defaultInstance = new ClientMsg(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientMsg.class, defaultInstance); } public static pbx.Model.ClientMsg getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ServerCredOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ServerCred) com.google.protobuf.MessageLiteOrBuilder { /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @return The method. */ java.lang.String getMethod(); /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @return The value. */ java.lang.String getValue(); /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); /** *
     * Indicator that the credential is validated
     * 
* * bool done = 3 [json_name = "done"]; * @return The done. */ boolean getDone(); } /** *
   * Credentials
   * 
* * Protobuf type {@code pbx.ServerCred} */ public static final class ServerCred extends com.google.protobuf.GeneratedMessageLite< ServerCred, ServerCred.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ServerCred) ServerCredOrBuilder { private ServerCred() { method_ = ""; value_ = ""; } public static final int METHOD_FIELD_NUMBER = 1; private java.lang.String method_; /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @return The method. */ @java.lang.Override public java.lang.String getMethod() { return method_; } /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @return The bytes for method. */ @java.lang.Override public com.google.protobuf.ByteString getMethodBytes() { return com.google.protobuf.ByteString.copyFromUtf8(method_); } /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @param value The method to set. */ private void setMethod( java.lang.String value) { java.lang.Class valueClass = value.getClass(); method_ = value; } /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; */ private void clearMethod() { method_ = getDefaultInstance().getMethod(); } /** *
     * Credential type, i.e. `email` or `tel`.
     * 
* * string method = 1 [json_name = "method"]; * @param value The bytes for method to set. */ private void setMethodBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); method_ = value.toStringUtf8(); } public static final int VALUE_FIELD_NUMBER = 2; private java.lang.String value_; /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @return The value. */ @java.lang.Override public java.lang.String getValue() { return value_; } /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { return com.google.protobuf.ByteString.copyFromUtf8(value_); } /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @param value The value to set. */ private void setValue( java.lang.String value) { java.lang.Class valueClass = value.getClass(); value_ = value; } /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; */ private void clearValue() { value_ = getDefaultInstance().getValue(); } /** *
     * Value to verify, i.e. `user@example.com` or `+18003287448`
     * 
* * string value = 2 [json_name = "value"]; * @param value The bytes for value to set. */ private void setValueBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); value_ = value.toStringUtf8(); } public static final int DONE_FIELD_NUMBER = 3; private boolean done_; /** *
     * Indicator that the credential is validated
     * 
* * bool done = 3 [json_name = "done"]; * @return The done. */ @java.lang.Override public boolean getDone() { return done_; } /** *
     * Indicator that the credential is validated
     * 
* * bool done = 3 [json_name = "done"]; * @param value The done to set. */ private void setDone(boolean value) { done_ = value; } /** *
     * Indicator that the credential is validated
     * 
* * bool done = 3 [json_name = "done"]; */ private void clearDone() { done_ = false; } public static pbx.Model.ServerCred parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerCred 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 pbx.Model.ServerCred parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerCred 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 pbx.Model.ServerCred parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerCred 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 pbx.Model.ServerCred parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerCred 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 pbx.Model.ServerCred parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ServerCred parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ServerCred parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerCred 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(pbx.Model.ServerCred prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Credentials
     * 
* * Protobuf type {@code pbx.ServerCred} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ServerCred, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ServerCred) pbx.Model.ServerCredOrBuilder { // Construct using pbx.Model.ServerCred.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * Credential type, i.e. `email` or `tel`.
       * 
* * string method = 1 [json_name = "method"]; * @return The method. */ @java.lang.Override public java.lang.String getMethod() { return instance.getMethod(); } /** *
       * Credential type, i.e. `email` or `tel`.
       * 
* * string method = 1 [json_name = "method"]; * @return The bytes for method. */ @java.lang.Override public com.google.protobuf.ByteString getMethodBytes() { return instance.getMethodBytes(); } /** *
       * Credential type, i.e. `email` or `tel`.
       * 
* * string method = 1 [json_name = "method"]; * @param value The method to set. * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { copyOnWrite(); instance.setMethod(value); return this; } /** *
       * Credential type, i.e. `email` or `tel`.
       * 
* * string method = 1 [json_name = "method"]; * @return This builder for chaining. */ public Builder clearMethod() { copyOnWrite(); instance.clearMethod(); return this; } /** *
       * Credential type, i.e. `email` or `tel`.
       * 
* * string method = 1 [json_name = "method"]; * @param value The bytes for method to set. * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setMethodBytes(value); return this; } /** *
       * Value to verify, i.e. `user@example.com` or `+18003287448`
       * 
* * string value = 2 [json_name = "value"]; * @return The value. */ @java.lang.Override public java.lang.String getValue() { return instance.getValue(); } /** *
       * Value to verify, i.e. `user@example.com` or `+18003287448`
       * 
* * string value = 2 [json_name = "value"]; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { return instance.getValueBytes(); } /** *
       * Value to verify, i.e. `user@example.com` or `+18003287448`
       * 
* * string value = 2 [json_name = "value"]; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { copyOnWrite(); instance.setValue(value); return this; } /** *
       * Value to verify, i.e. `user@example.com` or `+18003287448`
       * 
* * string value = 2 [json_name = "value"]; * @return This builder for chaining. */ public Builder clearValue() { copyOnWrite(); instance.clearValue(); return this; } /** *
       * Value to verify, i.e. `user@example.com` or `+18003287448`
       * 
* * string value = 2 [json_name = "value"]; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setValueBytes(value); return this; } /** *
       * Indicator that the credential is validated
       * 
* * bool done = 3 [json_name = "done"]; * @return The done. */ @java.lang.Override public boolean getDone() { return instance.getDone(); } /** *
       * Indicator that the credential is validated
       * 
* * bool done = 3 [json_name = "done"]; * @param value The done to set. * @return This builder for chaining. */ public Builder setDone(boolean value) { copyOnWrite(); instance.setDone(value); return this; } /** *
       * Indicator that the credential is validated
       * 
* * bool done = 3 [json_name = "done"]; * @return This builder for chaining. */ public Builder clearDone() { copyOnWrite(); instance.clearDone(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ServerCred) } @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 pbx.Model.ServerCred(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "method_", "value_", "done_", }; java.lang.String info = "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\u0007"; 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 (pbx.Model.ServerCred.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:pbx.ServerCred) private static final pbx.Model.ServerCred DEFAULT_INSTANCE; static { ServerCred defaultInstance = new ServerCred(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ServerCred.class, defaultInstance); } public static pbx.Model.ServerCred getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface TopicDescOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.TopicDesc) com.google.protobuf.MessageLiteOrBuilder { /** * int64 created_at = 1 [json_name = "createdAt"]; * @return The createdAt. */ long getCreatedAt(); /** * int64 updated_at = 2 [json_name = "updatedAt"]; * @return The updatedAt. */ long getUpdatedAt(); /** * int64 touched_at = 3 [json_name = "touchedAt"]; * @return The touchedAt. */ long getTouchedAt(); /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; * @return Whether the defacs field is set. */ boolean hasDefacs(); /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; * @return The defacs. */ pbx.Model.DefaultAcsMode getDefacs(); /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; * @return Whether the acs field is set. */ boolean hasAcs(); /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; * @return The acs. */ pbx.Model.AccessMode getAcs(); /** * int32 seq_id = 6 [json_name = "seqId"]; * @return The seqId. */ int getSeqId(); /** * int32 read_id = 7 [json_name = "readId"]; * @return The readId. */ int getReadId(); /** * int32 recv_id = 8 [json_name = "recvId"]; * @return The recvId. */ int getRecvId(); /** * int32 del_id = 9 [json_name = "delId"]; * @return The delId. */ int getDelId(); /** * bytes public = 10 [json_name = "public"]; * @return The public. */ com.google.protobuf.ByteString getPublic(); /** * bytes private = 11 [json_name = "private"]; * @return The private. */ com.google.protobuf.ByteString getPrivate(); /** * string state = 12 [json_name = "state"]; * @return The state. */ java.lang.String getState(); /** * string state = 12 [json_name = "state"]; * @return The bytes for state. */ com.google.protobuf.ByteString getStateBytes(); /** * int64 state_at = 13 [json_name = "stateAt"]; * @return The stateAt. */ long getStateAt(); /** * bytes trusted = 14 [json_name = "trusted"]; * @return The trusted. */ com.google.protobuf.ByteString getTrusted(); /** *
     * 17!
     * 
* * bool is_chan = 17 [json_name = "isChan"]; * @return The isChan. */ boolean getIsChan(); /** *
     * P2P only: other user's last online timestamp & user agent
     * 
* * int64 last_seen_time = 15 [json_name = "lastSeenTime"]; * @return The lastSeenTime. */ long getLastSeenTime(); /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @return The lastSeenUserAgent. */ java.lang.String getLastSeenUserAgent(); /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @return The bytes for lastSeenUserAgent. */ com.google.protobuf.ByteString getLastSeenUserAgentBytes(); /** *
     * owner user id; custom field
     * 
* * string owner = 1000 [json_name = "owner"]; * @return The owner. */ java.lang.String getOwner(); /** *
     * owner user id; custom field
     * 
* * string owner = 1000 [json_name = "owner"]; * @return The bytes for owner. */ com.google.protobuf.ByteString getOwnerBytes(); } /** *
   * Topic description, S2C in Meta message
   * 
* * Protobuf type {@code pbx.TopicDesc} */ public static final class TopicDesc extends com.google.protobuf.GeneratedMessageLite< TopicDesc, TopicDesc.Builder> implements // @@protoc_insertion_point(message_implements:pbx.TopicDesc) TopicDescOrBuilder { private TopicDesc() { public_ = com.google.protobuf.ByteString.EMPTY; private_ = com.google.protobuf.ByteString.EMPTY; state_ = ""; trusted_ = com.google.protobuf.ByteString.EMPTY; lastSeenUserAgent_ = ""; owner_ = ""; } private int bitField0_; public static final int CREATED_AT_FIELD_NUMBER = 1; private long createdAt_; /** * int64 created_at = 1 [json_name = "createdAt"]; * @return The createdAt. */ @java.lang.Override public long getCreatedAt() { return createdAt_; } /** * int64 created_at = 1 [json_name = "createdAt"]; * @param value The createdAt to set. */ private void setCreatedAt(long value) { createdAt_ = value; } /** * int64 created_at = 1 [json_name = "createdAt"]; */ private void clearCreatedAt() { createdAt_ = 0L; } public static final int UPDATED_AT_FIELD_NUMBER = 2; private long updatedAt_; /** * int64 updated_at = 2 [json_name = "updatedAt"]; * @return The updatedAt. */ @java.lang.Override public long getUpdatedAt() { return updatedAt_; } /** * int64 updated_at = 2 [json_name = "updatedAt"]; * @param value The updatedAt to set. */ private void setUpdatedAt(long value) { updatedAt_ = value; } /** * int64 updated_at = 2 [json_name = "updatedAt"]; */ private void clearUpdatedAt() { updatedAt_ = 0L; } public static final int TOUCHED_AT_FIELD_NUMBER = 3; private long touchedAt_; /** * int64 touched_at = 3 [json_name = "touchedAt"]; * @return The touchedAt. */ @java.lang.Override public long getTouchedAt() { return touchedAt_; } /** * int64 touched_at = 3 [json_name = "touchedAt"]; * @param value The touchedAt to set. */ private void setTouchedAt(long value) { touchedAt_ = value; } /** * int64 touched_at = 3 [json_name = "touchedAt"]; */ private void clearTouchedAt() { touchedAt_ = 0L; } public static final int DEFACS_FIELD_NUMBER = 4; private pbx.Model.DefaultAcsMode defacs_; /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ @java.lang.Override public boolean hasDefacs() { return ((bitField0_ & 0x00000001) != 0); } /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ @java.lang.Override public pbx.Model.DefaultAcsMode getDefacs() { return defacs_ == null ? pbx.Model.DefaultAcsMode.getDefaultInstance() : defacs_; } /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ private void setDefacs(pbx.Model.DefaultAcsMode value) { value.getClass(); defacs_ = value; bitField0_ |= 0x00000001; } /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeDefacs(pbx.Model.DefaultAcsMode value) { value.getClass(); if (defacs_ != null && defacs_ != pbx.Model.DefaultAcsMode.getDefaultInstance()) { defacs_ = pbx.Model.DefaultAcsMode.newBuilder(defacs_).mergeFrom(value).buildPartial(); } else { defacs_ = value; } bitField0_ |= 0x00000001; } /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ private void clearDefacs() { defacs_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int ACS_FIELD_NUMBER = 5; private pbx.Model.AccessMode acs_; /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ @java.lang.Override public boolean hasAcs() { return ((bitField0_ & 0x00000002) != 0); } /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ @java.lang.Override public pbx.Model.AccessMode getAcs() { return acs_ == null ? pbx.Model.AccessMode.getDefaultInstance() : acs_; } /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ private void setAcs(pbx.Model.AccessMode value) { value.getClass(); acs_ = value; bitField0_ |= 0x00000002; } /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeAcs(pbx.Model.AccessMode value) { value.getClass(); if (acs_ != null && acs_ != pbx.Model.AccessMode.getDefaultInstance()) { acs_ = pbx.Model.AccessMode.newBuilder(acs_).mergeFrom(value).buildPartial(); } else { acs_ = value; } bitField0_ |= 0x00000002; } /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ private void clearAcs() { acs_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static final int SEQ_ID_FIELD_NUMBER = 6; private int seqId_; /** * int32 seq_id = 6 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return seqId_; } /** * int32 seq_id = 6 [json_name = "seqId"]; * @param value The seqId to set. */ private void setSeqId(int value) { seqId_ = value; } /** * int32 seq_id = 6 [json_name = "seqId"]; */ private void clearSeqId() { seqId_ = 0; } public static final int READ_ID_FIELD_NUMBER = 7; private int readId_; /** * int32 read_id = 7 [json_name = "readId"]; * @return The readId. */ @java.lang.Override public int getReadId() { return readId_; } /** * int32 read_id = 7 [json_name = "readId"]; * @param value The readId to set. */ private void setReadId(int value) { readId_ = value; } /** * int32 read_id = 7 [json_name = "readId"]; */ private void clearReadId() { readId_ = 0; } public static final int RECV_ID_FIELD_NUMBER = 8; private int recvId_; /** * int32 recv_id = 8 [json_name = "recvId"]; * @return The recvId. */ @java.lang.Override public int getRecvId() { return recvId_; } /** * int32 recv_id = 8 [json_name = "recvId"]; * @param value The recvId to set. */ private void setRecvId(int value) { recvId_ = value; } /** * int32 recv_id = 8 [json_name = "recvId"]; */ private void clearRecvId() { recvId_ = 0; } public static final int DEL_ID_FIELD_NUMBER = 9; private int delId_; /** * int32 del_id = 9 [json_name = "delId"]; * @return The delId. */ @java.lang.Override public int getDelId() { return delId_; } /** * int32 del_id = 9 [json_name = "delId"]; * @param value The delId to set. */ private void setDelId(int value) { delId_ = value; } /** * int32 del_id = 9 [json_name = "delId"]; */ private void clearDelId() { delId_ = 0; } public static final int PUBLIC_FIELD_NUMBER = 10; private com.google.protobuf.ByteString public_; /** * bytes public = 10 [json_name = "public"]; * @return The public. */ @java.lang.Override public com.google.protobuf.ByteString getPublic() { return public_; } /** * bytes public = 10 [json_name = "public"]; * @param value The public to set. */ private void setPublic(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); public_ = value; } /** * bytes public = 10 [json_name = "public"]; */ private void clearPublic() { public_ = getDefaultInstance().getPublic(); } public static final int PRIVATE_FIELD_NUMBER = 11; private com.google.protobuf.ByteString private_; /** * bytes private = 11 [json_name = "private"]; * @return The private. */ @java.lang.Override public com.google.protobuf.ByteString getPrivate() { return private_; } /** * bytes private = 11 [json_name = "private"]; * @param value The private to set. */ private void setPrivate(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); private_ = value; } /** * bytes private = 11 [json_name = "private"]; */ private void clearPrivate() { private_ = getDefaultInstance().getPrivate(); } public static final int STATE_FIELD_NUMBER = 12; private java.lang.String state_; /** * string state = 12 [json_name = "state"]; * @return The state. */ @java.lang.Override public java.lang.String getState() { return state_; } /** * string state = 12 [json_name = "state"]; * @return The bytes for state. */ @java.lang.Override public com.google.protobuf.ByteString getStateBytes() { return com.google.protobuf.ByteString.copyFromUtf8(state_); } /** * string state = 12 [json_name = "state"]; * @param value The state to set. */ private void setState( java.lang.String value) { java.lang.Class valueClass = value.getClass(); state_ = value; } /** * string state = 12 [json_name = "state"]; */ private void clearState() { state_ = getDefaultInstance().getState(); } /** * string state = 12 [json_name = "state"]; * @param value The bytes for state to set. */ private void setStateBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); state_ = value.toStringUtf8(); } public static final int STATE_AT_FIELD_NUMBER = 13; private long stateAt_; /** * int64 state_at = 13 [json_name = "stateAt"]; * @return The stateAt. */ @java.lang.Override public long getStateAt() { return stateAt_; } /** * int64 state_at = 13 [json_name = "stateAt"]; * @param value The stateAt to set. */ private void setStateAt(long value) { stateAt_ = value; } /** * int64 state_at = 13 [json_name = "stateAt"]; */ private void clearStateAt() { stateAt_ = 0L; } public static final int TRUSTED_FIELD_NUMBER = 14; private com.google.protobuf.ByteString trusted_; /** * bytes trusted = 14 [json_name = "trusted"]; * @return The trusted. */ @java.lang.Override public com.google.protobuf.ByteString getTrusted() { return trusted_; } /** * bytes trusted = 14 [json_name = "trusted"]; * @param value The trusted to set. */ private void setTrusted(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); trusted_ = value; } /** * bytes trusted = 14 [json_name = "trusted"]; */ private void clearTrusted() { trusted_ = getDefaultInstance().getTrusted(); } public static final int IS_CHAN_FIELD_NUMBER = 17; private boolean isChan_; /** *
     * 17!
     * 
* * bool is_chan = 17 [json_name = "isChan"]; * @return The isChan. */ @java.lang.Override public boolean getIsChan() { return isChan_; } /** *
     * 17!
     * 
* * bool is_chan = 17 [json_name = "isChan"]; * @param value The isChan to set. */ private void setIsChan(boolean value) { isChan_ = value; } /** *
     * 17!
     * 
* * bool is_chan = 17 [json_name = "isChan"]; */ private void clearIsChan() { isChan_ = false; } public static final int LAST_SEEN_TIME_FIELD_NUMBER = 15; private long lastSeenTime_; /** *
     * P2P only: other user's last online timestamp & user agent
     * 
* * int64 last_seen_time = 15 [json_name = "lastSeenTime"]; * @return The lastSeenTime. */ @java.lang.Override public long getLastSeenTime() { return lastSeenTime_; } /** *
     * P2P only: other user's last online timestamp & user agent
     * 
* * int64 last_seen_time = 15 [json_name = "lastSeenTime"]; * @param value The lastSeenTime to set. */ private void setLastSeenTime(long value) { lastSeenTime_ = value; } /** *
     * P2P only: other user's last online timestamp & user agent
     * 
* * int64 last_seen_time = 15 [json_name = "lastSeenTime"]; */ private void clearLastSeenTime() { lastSeenTime_ = 0L; } public static final int LAST_SEEN_USER_AGENT_FIELD_NUMBER = 16; private java.lang.String lastSeenUserAgent_; /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @return The lastSeenUserAgent. */ @java.lang.Override public java.lang.String getLastSeenUserAgent() { return lastSeenUserAgent_; } /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @return The bytes for lastSeenUserAgent. */ @java.lang.Override public com.google.protobuf.ByteString getLastSeenUserAgentBytes() { return com.google.protobuf.ByteString.copyFromUtf8(lastSeenUserAgent_); } /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @param value The lastSeenUserAgent to set. */ private void setLastSeenUserAgent( java.lang.String value) { java.lang.Class valueClass = value.getClass(); lastSeenUserAgent_ = value; } /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; */ private void clearLastSeenUserAgent() { lastSeenUserAgent_ = getDefaultInstance().getLastSeenUserAgent(); } /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @param value The bytes for lastSeenUserAgent to set. */ private void setLastSeenUserAgentBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); lastSeenUserAgent_ = value.toStringUtf8(); } public static final int OWNER_FIELD_NUMBER = 1000; private java.lang.String owner_; /** *
     * owner user id; custom field
     * 
* * string owner = 1000 [json_name = "owner"]; * @return The owner. */ @java.lang.Override public java.lang.String getOwner() { return owner_; } /** *
     * owner user id; custom field
     * 
* * string owner = 1000 [json_name = "owner"]; * @return The bytes for owner. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerBytes() { return com.google.protobuf.ByteString.copyFromUtf8(owner_); } /** *
     * owner user id; custom field
     * 
* * string owner = 1000 [json_name = "owner"]; * @param value The owner to set. */ private void setOwner( java.lang.String value) { java.lang.Class valueClass = value.getClass(); owner_ = value; } /** *
     * owner user id; custom field
     * 
* * string owner = 1000 [json_name = "owner"]; */ private void clearOwner() { owner_ = getDefaultInstance().getOwner(); } /** *
     * owner user id; custom field
     * 
* * string owner = 1000 [json_name = "owner"]; * @param value The bytes for owner to set. */ private void setOwnerBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); owner_ = value.toStringUtf8(); } public static pbx.Model.TopicDesc parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.TopicDesc 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 pbx.Model.TopicDesc parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.TopicDesc 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 pbx.Model.TopicDesc parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.TopicDesc 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 pbx.Model.TopicDesc parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.TopicDesc 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 pbx.Model.TopicDesc parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.TopicDesc parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.TopicDesc parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.TopicDesc 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(pbx.Model.TopicDesc prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Topic description, S2C in Meta message
     * 
* * Protobuf type {@code pbx.TopicDesc} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.TopicDesc, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.TopicDesc) pbx.Model.TopicDescOrBuilder { // Construct using pbx.Model.TopicDesc.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * int64 created_at = 1 [json_name = "createdAt"]; * @return The createdAt. */ @java.lang.Override public long getCreatedAt() { return instance.getCreatedAt(); } /** * int64 created_at = 1 [json_name = "createdAt"]; * @param value The createdAt to set. * @return This builder for chaining. */ public Builder setCreatedAt(long value) { copyOnWrite(); instance.setCreatedAt(value); return this; } /** * int64 created_at = 1 [json_name = "createdAt"]; * @return This builder for chaining. */ public Builder clearCreatedAt() { copyOnWrite(); instance.clearCreatedAt(); return this; } /** * int64 updated_at = 2 [json_name = "updatedAt"]; * @return The updatedAt. */ @java.lang.Override public long getUpdatedAt() { return instance.getUpdatedAt(); } /** * int64 updated_at = 2 [json_name = "updatedAt"]; * @param value The updatedAt to set. * @return This builder for chaining. */ public Builder setUpdatedAt(long value) { copyOnWrite(); instance.setUpdatedAt(value); return this; } /** * int64 updated_at = 2 [json_name = "updatedAt"]; * @return This builder for chaining. */ public Builder clearUpdatedAt() { copyOnWrite(); instance.clearUpdatedAt(); return this; } /** * int64 touched_at = 3 [json_name = "touchedAt"]; * @return The touchedAt. */ @java.lang.Override public long getTouchedAt() { return instance.getTouchedAt(); } /** * int64 touched_at = 3 [json_name = "touchedAt"]; * @param value The touchedAt to set. * @return This builder for chaining. */ public Builder setTouchedAt(long value) { copyOnWrite(); instance.setTouchedAt(value); return this; } /** * int64 touched_at = 3 [json_name = "touchedAt"]; * @return This builder for chaining. */ public Builder clearTouchedAt() { copyOnWrite(); instance.clearTouchedAt(); return this; } /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ @java.lang.Override public boolean hasDefacs() { return instance.hasDefacs(); } /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ @java.lang.Override public pbx.Model.DefaultAcsMode getDefacs() { return instance.getDefacs(); } /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ public Builder setDefacs(pbx.Model.DefaultAcsMode value) { copyOnWrite(); instance.setDefacs(value); return this; } /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ public Builder setDefacs( pbx.Model.DefaultAcsMode.Builder builderForValue) { copyOnWrite(); instance.setDefacs(builderForValue.build()); return this; } /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ public Builder mergeDefacs(pbx.Model.DefaultAcsMode value) { copyOnWrite(); instance.mergeDefacs(value); return this; } /** * .pbx.DefaultAcsMode defacs = 4 [json_name = "defacs"]; */ public Builder clearDefacs() { copyOnWrite(); instance.clearDefacs(); return this; } /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ @java.lang.Override public boolean hasAcs() { return instance.hasAcs(); } /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ @java.lang.Override public pbx.Model.AccessMode getAcs() { return instance.getAcs(); } /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ public Builder setAcs(pbx.Model.AccessMode value) { copyOnWrite(); instance.setAcs(value); return this; } /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ public Builder setAcs( pbx.Model.AccessMode.Builder builderForValue) { copyOnWrite(); instance.setAcs(builderForValue.build()); return this; } /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ public Builder mergeAcs(pbx.Model.AccessMode value) { copyOnWrite(); instance.mergeAcs(value); return this; } /** * .pbx.AccessMode acs = 5 [json_name = "acs"]; */ public Builder clearAcs() { copyOnWrite(); instance.clearAcs(); return this; } /** * int32 seq_id = 6 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return instance.getSeqId(); } /** * int32 seq_id = 6 [json_name = "seqId"]; * @param value The seqId to set. * @return This builder for chaining. */ public Builder setSeqId(int value) { copyOnWrite(); instance.setSeqId(value); return this; } /** * int32 seq_id = 6 [json_name = "seqId"]; * @return This builder for chaining. */ public Builder clearSeqId() { copyOnWrite(); instance.clearSeqId(); return this; } /** * int32 read_id = 7 [json_name = "readId"]; * @return The readId. */ @java.lang.Override public int getReadId() { return instance.getReadId(); } /** * int32 read_id = 7 [json_name = "readId"]; * @param value The readId to set. * @return This builder for chaining. */ public Builder setReadId(int value) { copyOnWrite(); instance.setReadId(value); return this; } /** * int32 read_id = 7 [json_name = "readId"]; * @return This builder for chaining. */ public Builder clearReadId() { copyOnWrite(); instance.clearReadId(); return this; } /** * int32 recv_id = 8 [json_name = "recvId"]; * @return The recvId. */ @java.lang.Override public int getRecvId() { return instance.getRecvId(); } /** * int32 recv_id = 8 [json_name = "recvId"]; * @param value The recvId to set. * @return This builder for chaining. */ public Builder setRecvId(int value) { copyOnWrite(); instance.setRecvId(value); return this; } /** * int32 recv_id = 8 [json_name = "recvId"]; * @return This builder for chaining. */ public Builder clearRecvId() { copyOnWrite(); instance.clearRecvId(); return this; } /** * int32 del_id = 9 [json_name = "delId"]; * @return The delId. */ @java.lang.Override public int getDelId() { return instance.getDelId(); } /** * int32 del_id = 9 [json_name = "delId"]; * @param value The delId to set. * @return This builder for chaining. */ public Builder setDelId(int value) { copyOnWrite(); instance.setDelId(value); return this; } /** * int32 del_id = 9 [json_name = "delId"]; * @return This builder for chaining. */ public Builder clearDelId() { copyOnWrite(); instance.clearDelId(); return this; } /** * bytes public = 10 [json_name = "public"]; * @return The public. */ @java.lang.Override public com.google.protobuf.ByteString getPublic() { return instance.getPublic(); } /** * bytes public = 10 [json_name = "public"]; * @param value The public to set. * @return This builder for chaining. */ public Builder setPublic(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPublic(value); return this; } /** * bytes public = 10 [json_name = "public"]; * @return This builder for chaining. */ public Builder clearPublic() { copyOnWrite(); instance.clearPublic(); return this; } /** * bytes private = 11 [json_name = "private"]; * @return The private. */ @java.lang.Override public com.google.protobuf.ByteString getPrivate() { return instance.getPrivate(); } /** * bytes private = 11 [json_name = "private"]; * @param value The private to set. * @return This builder for chaining. */ public Builder setPrivate(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPrivate(value); return this; } /** * bytes private = 11 [json_name = "private"]; * @return This builder for chaining. */ public Builder clearPrivate() { copyOnWrite(); instance.clearPrivate(); return this; } /** * string state = 12 [json_name = "state"]; * @return The state. */ @java.lang.Override public java.lang.String getState() { return instance.getState(); } /** * string state = 12 [json_name = "state"]; * @return The bytes for state. */ @java.lang.Override public com.google.protobuf.ByteString getStateBytes() { return instance.getStateBytes(); } /** * string state = 12 [json_name = "state"]; * @param value The state to set. * @return This builder for chaining. */ public Builder setState( java.lang.String value) { copyOnWrite(); instance.setState(value); return this; } /** * string state = 12 [json_name = "state"]; * @return This builder for chaining. */ public Builder clearState() { copyOnWrite(); instance.clearState(); return this; } /** * string state = 12 [json_name = "state"]; * @param value The bytes for state to set. * @return This builder for chaining. */ public Builder setStateBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setStateBytes(value); return this; } /** * int64 state_at = 13 [json_name = "stateAt"]; * @return The stateAt. */ @java.lang.Override public long getStateAt() { return instance.getStateAt(); } /** * int64 state_at = 13 [json_name = "stateAt"]; * @param value The stateAt to set. * @return This builder for chaining. */ public Builder setStateAt(long value) { copyOnWrite(); instance.setStateAt(value); return this; } /** * int64 state_at = 13 [json_name = "stateAt"]; * @return This builder for chaining. */ public Builder clearStateAt() { copyOnWrite(); instance.clearStateAt(); return this; } /** * bytes trusted = 14 [json_name = "trusted"]; * @return The trusted. */ @java.lang.Override public com.google.protobuf.ByteString getTrusted() { return instance.getTrusted(); } /** * bytes trusted = 14 [json_name = "trusted"]; * @param value The trusted to set. * @return This builder for chaining. */ public Builder setTrusted(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTrusted(value); return this; } /** * bytes trusted = 14 [json_name = "trusted"]; * @return This builder for chaining. */ public Builder clearTrusted() { copyOnWrite(); instance.clearTrusted(); return this; } /** *
       * 17!
       * 
* * bool is_chan = 17 [json_name = "isChan"]; * @return The isChan. */ @java.lang.Override public boolean getIsChan() { return instance.getIsChan(); } /** *
       * 17!
       * 
* * bool is_chan = 17 [json_name = "isChan"]; * @param value The isChan to set. * @return This builder for chaining. */ public Builder setIsChan(boolean value) { copyOnWrite(); instance.setIsChan(value); return this; } /** *
       * 17!
       * 
* * bool is_chan = 17 [json_name = "isChan"]; * @return This builder for chaining. */ public Builder clearIsChan() { copyOnWrite(); instance.clearIsChan(); return this; } /** *
       * P2P only: other user's last online timestamp & user agent
       * 
* * int64 last_seen_time = 15 [json_name = "lastSeenTime"]; * @return The lastSeenTime. */ @java.lang.Override public long getLastSeenTime() { return instance.getLastSeenTime(); } /** *
       * P2P only: other user's last online timestamp & user agent
       * 
* * int64 last_seen_time = 15 [json_name = "lastSeenTime"]; * @param value The lastSeenTime to set. * @return This builder for chaining. */ public Builder setLastSeenTime(long value) { copyOnWrite(); instance.setLastSeenTime(value); return this; } /** *
       * P2P only: other user's last online timestamp & user agent
       * 
* * int64 last_seen_time = 15 [json_name = "lastSeenTime"]; * @return This builder for chaining. */ public Builder clearLastSeenTime() { copyOnWrite(); instance.clearLastSeenTime(); return this; } /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @return The lastSeenUserAgent. */ @java.lang.Override public java.lang.String getLastSeenUserAgent() { return instance.getLastSeenUserAgent(); } /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @return The bytes for lastSeenUserAgent. */ @java.lang.Override public com.google.protobuf.ByteString getLastSeenUserAgentBytes() { return instance.getLastSeenUserAgentBytes(); } /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @param value The lastSeenUserAgent to set. * @return This builder for chaining. */ public Builder setLastSeenUserAgent( java.lang.String value) { copyOnWrite(); instance.setLastSeenUserAgent(value); return this; } /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @return This builder for chaining. */ public Builder clearLastSeenUserAgent() { copyOnWrite(); instance.clearLastSeenUserAgent(); return this; } /** * string last_seen_user_agent = 16 [json_name = "lastSeenUserAgent"]; * @param value The bytes for lastSeenUserAgent to set. * @return This builder for chaining. */ public Builder setLastSeenUserAgentBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setLastSeenUserAgentBytes(value); return this; } /** *
       * owner user id; custom field
       * 
* * string owner = 1000 [json_name = "owner"]; * @return The owner. */ @java.lang.Override public java.lang.String getOwner() { return instance.getOwner(); } /** *
       * owner user id; custom field
       * 
* * string owner = 1000 [json_name = "owner"]; * @return The bytes for owner. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerBytes() { return instance.getOwnerBytes(); } /** *
       * owner user id; custom field
       * 
* * string owner = 1000 [json_name = "owner"]; * @param value The owner to set. * @return This builder for chaining. */ public Builder setOwner( java.lang.String value) { copyOnWrite(); instance.setOwner(value); return this; } /** *
       * owner user id; custom field
       * 
* * string owner = 1000 [json_name = "owner"]; * @return This builder for chaining. */ public Builder clearOwner() { copyOnWrite(); instance.clearOwner(); return this; } /** *
       * owner user id; custom field
       * 
* * string owner = 1000 [json_name = "owner"]; * @param value The bytes for owner to set. * @return This builder for chaining. */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setOwnerBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.TopicDesc) } @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 pbx.Model.TopicDesc(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "createdAt_", "updatedAt_", "touchedAt_", "defacs_", "acs_", "seqId_", "readId_", "recvId_", "delId_", "public_", "private_", "state_", "stateAt_", "trusted_", "lastSeenTime_", "lastSeenUserAgent_", "isChan_", "owner_", }; java.lang.String info = "\u0000\u0012\u0000\u0001\u0001\u03e8\u0012\u0000\u0000\u0000\u0001\u0002\u0002\u0002" + "\u0003\u0002\u0004\u1009\u0000\u0005\u1009\u0001\u0006\u0004\u0007\u0004\b\u0004" + "\t\u0004\n\n\u000b\n\f\u0208\r\u0002\u000e\n\u000f\u0002\u0010\u0208\u0011\u0007" + "\u03e8\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 (pbx.Model.TopicDesc.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:pbx.TopicDesc) private static final pbx.Model.TopicDesc DEFAULT_INSTANCE; static { TopicDesc defaultInstance = new TopicDesc(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( TopicDesc.class, defaultInstance); } public static pbx.Model.TopicDesc getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface TopicSubOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.TopicSub) com.google.protobuf.MessageLiteOrBuilder { /** * int64 updated_at = 1 [json_name = "updatedAt"]; * @return The updatedAt. */ long getUpdatedAt(); /** * int64 deleted_at = 2 [json_name = "deletedAt"]; * @return The deletedAt. */ long getDeletedAt(); /** * int64 created_at = 17 [json_name = "createdAt"]; * @return The createdAt. */ long getCreatedAt(); /** * bool online = 3 [json_name = "online"]; * @return The online. */ boolean getOnline(); /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; * @return Whether the acs field is set. */ boolean hasAcs(); /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; * @return The acs. */ pbx.Model.AccessMode getAcs(); /** * int32 read_id = 5 [json_name = "readId"]; * @return The readId. */ int getReadId(); /** * int32 recv_id = 6 [json_name = "recvId"]; * @return The recvId. */ int getRecvId(); /** * bytes public = 7 [json_name = "public"]; * @return The public. */ com.google.protobuf.ByteString getPublic(); /** *
     * 16!
     * 
* * bytes trusted = 16 [json_name = "trusted"]; * @return The trusted. */ com.google.protobuf.ByteString getTrusted(); /** * bytes private = 8 [json_name = "private"]; * @return The private. */ com.google.protobuf.ByteString getPrivate(); /** *
     * Uid of the subscribed user
     * 
* * string user_id = 9 [json_name = "userId"]; * @return The userId. */ java.lang.String getUserId(); /** *
     * Uid of the subscribed user
     * 
* * string user_id = 9 [json_name = "userId"]; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** *
     * Topic name of this subscription
     * 
* * string topic = 10 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** *
     * Topic name of this subscription
     * 
* * string topic = 10 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * int64 touched_at = 11 [json_name = "touchedAt"]; * @return The touchedAt. */ long getTouchedAt(); /** *
     * ID of the last {data} message in a topic
     * 
* * int32 seq_id = 12 [json_name = "seqId"]; * @return The seqId. */ int getSeqId(); /** *
     * Messages are deleted up to this ID
     * 
* * int32 del_id = 13 [json_name = "delId"]; * @return The delId. */ int getDelId(); /** *
     * Other user's last online timestamp & user agent
     * 
* * int64 last_seen_time = 14 [json_name = "lastSeenTime"]; * @return The lastSeenTime. */ long getLastSeenTime(); /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @return The lastSeenUserAgent. */ java.lang.String getLastSeenUserAgent(); /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @return The bytes for lastSeenUserAgent. */ com.google.protobuf.ByteString getLastSeenUserAgentBytes(); } /** *
   * MsgTopicSub: topic subscription details, sent in Meta message
   * 
* * Protobuf type {@code pbx.TopicSub} */ public static final class TopicSub extends com.google.protobuf.GeneratedMessageLite< TopicSub, TopicSub.Builder> implements // @@protoc_insertion_point(message_implements:pbx.TopicSub) TopicSubOrBuilder { private TopicSub() { public_ = com.google.protobuf.ByteString.EMPTY; trusted_ = com.google.protobuf.ByteString.EMPTY; private_ = com.google.protobuf.ByteString.EMPTY; userId_ = ""; topic_ = ""; lastSeenUserAgent_ = ""; } private int bitField0_; public static final int UPDATED_AT_FIELD_NUMBER = 1; private long updatedAt_; /** * int64 updated_at = 1 [json_name = "updatedAt"]; * @return The updatedAt. */ @java.lang.Override public long getUpdatedAt() { return updatedAt_; } /** * int64 updated_at = 1 [json_name = "updatedAt"]; * @param value The updatedAt to set. */ private void setUpdatedAt(long value) { updatedAt_ = value; } /** * int64 updated_at = 1 [json_name = "updatedAt"]; */ private void clearUpdatedAt() { updatedAt_ = 0L; } public static final int DELETED_AT_FIELD_NUMBER = 2; private long deletedAt_; /** * int64 deleted_at = 2 [json_name = "deletedAt"]; * @return The deletedAt. */ @java.lang.Override public long getDeletedAt() { return deletedAt_; } /** * int64 deleted_at = 2 [json_name = "deletedAt"]; * @param value The deletedAt to set. */ private void setDeletedAt(long value) { deletedAt_ = value; } /** * int64 deleted_at = 2 [json_name = "deletedAt"]; */ private void clearDeletedAt() { deletedAt_ = 0L; } public static final int CREATED_AT_FIELD_NUMBER = 17; private long createdAt_; /** * int64 created_at = 17 [json_name = "createdAt"]; * @return The createdAt. */ @java.lang.Override public long getCreatedAt() { return createdAt_; } /** * int64 created_at = 17 [json_name = "createdAt"]; * @param value The createdAt to set. */ private void setCreatedAt(long value) { createdAt_ = value; } /** * int64 created_at = 17 [json_name = "createdAt"]; */ private void clearCreatedAt() { createdAt_ = 0L; } public static final int ONLINE_FIELD_NUMBER = 3; private boolean online_; /** * bool online = 3 [json_name = "online"]; * @return The online. */ @java.lang.Override public boolean getOnline() { return online_; } /** * bool online = 3 [json_name = "online"]; * @param value The online to set. */ private void setOnline(boolean value) { online_ = value; } /** * bool online = 3 [json_name = "online"]; */ private void clearOnline() { online_ = false; } public static final int ACS_FIELD_NUMBER = 4; private pbx.Model.AccessMode acs_; /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ @java.lang.Override public boolean hasAcs() { return ((bitField0_ & 0x00000001) != 0); } /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ @java.lang.Override public pbx.Model.AccessMode getAcs() { return acs_ == null ? pbx.Model.AccessMode.getDefaultInstance() : acs_; } /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ private void setAcs(pbx.Model.AccessMode value) { value.getClass(); acs_ = value; bitField0_ |= 0x00000001; } /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeAcs(pbx.Model.AccessMode value) { value.getClass(); if (acs_ != null && acs_ != pbx.Model.AccessMode.getDefaultInstance()) { acs_ = pbx.Model.AccessMode.newBuilder(acs_).mergeFrom(value).buildPartial(); } else { acs_ = value; } bitField0_ |= 0x00000001; } /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ private void clearAcs() { acs_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int READ_ID_FIELD_NUMBER = 5; private int readId_; /** * int32 read_id = 5 [json_name = "readId"]; * @return The readId. */ @java.lang.Override public int getReadId() { return readId_; } /** * int32 read_id = 5 [json_name = "readId"]; * @param value The readId to set. */ private void setReadId(int value) { readId_ = value; } /** * int32 read_id = 5 [json_name = "readId"]; */ private void clearReadId() { readId_ = 0; } public static final int RECV_ID_FIELD_NUMBER = 6; private int recvId_; /** * int32 recv_id = 6 [json_name = "recvId"]; * @return The recvId. */ @java.lang.Override public int getRecvId() { return recvId_; } /** * int32 recv_id = 6 [json_name = "recvId"]; * @param value The recvId to set. */ private void setRecvId(int value) { recvId_ = value; } /** * int32 recv_id = 6 [json_name = "recvId"]; */ private void clearRecvId() { recvId_ = 0; } public static final int PUBLIC_FIELD_NUMBER = 7; private com.google.protobuf.ByteString public_; /** * bytes public = 7 [json_name = "public"]; * @return The public. */ @java.lang.Override public com.google.protobuf.ByteString getPublic() { return public_; } /** * bytes public = 7 [json_name = "public"]; * @param value The public to set. */ private void setPublic(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); public_ = value; } /** * bytes public = 7 [json_name = "public"]; */ private void clearPublic() { public_ = getDefaultInstance().getPublic(); } public static final int TRUSTED_FIELD_NUMBER = 16; private com.google.protobuf.ByteString trusted_; /** *
     * 16!
     * 
* * bytes trusted = 16 [json_name = "trusted"]; * @return The trusted. */ @java.lang.Override public com.google.protobuf.ByteString getTrusted() { return trusted_; } /** *
     * 16!
     * 
* * bytes trusted = 16 [json_name = "trusted"]; * @param value The trusted to set. */ private void setTrusted(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); trusted_ = value; } /** *
     * 16!
     * 
* * bytes trusted = 16 [json_name = "trusted"]; */ private void clearTrusted() { trusted_ = getDefaultInstance().getTrusted(); } public static final int PRIVATE_FIELD_NUMBER = 8; private com.google.protobuf.ByteString private_; /** * bytes private = 8 [json_name = "private"]; * @return The private. */ @java.lang.Override public com.google.protobuf.ByteString getPrivate() { return private_; } /** * bytes private = 8 [json_name = "private"]; * @param value The private to set. */ private void setPrivate(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); private_ = value; } /** * bytes private = 8 [json_name = "private"]; */ private void clearPrivate() { private_ = getDefaultInstance().getPrivate(); } public static final int USER_ID_FIELD_NUMBER = 9; private java.lang.String userId_; /** *
     * Uid of the subscribed user
     * 
* * string user_id = 9 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return userId_; } /** *
     * Uid of the subscribed user
     * 
* * string user_id = 9 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userId_); } /** *
     * Uid of the subscribed user
     * 
* * string user_id = 9 [json_name = "userId"]; * @param value The userId to set. */ private void setUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); userId_ = value; } /** *
     * Uid of the subscribed user
     * 
* * string user_id = 9 [json_name = "userId"]; */ private void clearUserId() { userId_ = getDefaultInstance().getUserId(); } /** *
     * Uid of the subscribed user
     * 
* * string user_id = 9 [json_name = "userId"]; * @param value The bytes for userId to set. */ private void setUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userId_ = value.toStringUtf8(); } public static final int TOPIC_FIELD_NUMBER = 10; private java.lang.String topic_; /** *
     * Topic name of this subscription
     * 
* * string topic = 10 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** *
     * Topic name of this subscription
     * 
* * string topic = 10 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** *
     * Topic name of this subscription
     * 
* * string topic = 10 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** *
     * Topic name of this subscription
     * 
* * string topic = 10 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** *
     * Topic name of this subscription
     * 
* * string topic = 10 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int TOUCHED_AT_FIELD_NUMBER = 11; private long touchedAt_; /** * int64 touched_at = 11 [json_name = "touchedAt"]; * @return The touchedAt. */ @java.lang.Override public long getTouchedAt() { return touchedAt_; } /** * int64 touched_at = 11 [json_name = "touchedAt"]; * @param value The touchedAt to set. */ private void setTouchedAt(long value) { touchedAt_ = value; } /** * int64 touched_at = 11 [json_name = "touchedAt"]; */ private void clearTouchedAt() { touchedAt_ = 0L; } public static final int SEQ_ID_FIELD_NUMBER = 12; private int seqId_; /** *
     * ID of the last {data} message in a topic
     * 
* * int32 seq_id = 12 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return seqId_; } /** *
     * ID of the last {data} message in a topic
     * 
* * int32 seq_id = 12 [json_name = "seqId"]; * @param value The seqId to set. */ private void setSeqId(int value) { seqId_ = value; } /** *
     * ID of the last {data} message in a topic
     * 
* * int32 seq_id = 12 [json_name = "seqId"]; */ private void clearSeqId() { seqId_ = 0; } public static final int DEL_ID_FIELD_NUMBER = 13; private int delId_; /** *
     * Messages are deleted up to this ID
     * 
* * int32 del_id = 13 [json_name = "delId"]; * @return The delId. */ @java.lang.Override public int getDelId() { return delId_; } /** *
     * Messages are deleted up to this ID
     * 
* * int32 del_id = 13 [json_name = "delId"]; * @param value The delId to set. */ private void setDelId(int value) { delId_ = value; } /** *
     * Messages are deleted up to this ID
     * 
* * int32 del_id = 13 [json_name = "delId"]; */ private void clearDelId() { delId_ = 0; } public static final int LAST_SEEN_TIME_FIELD_NUMBER = 14; private long lastSeenTime_; /** *
     * Other user's last online timestamp & user agent
     * 
* * int64 last_seen_time = 14 [json_name = "lastSeenTime"]; * @return The lastSeenTime. */ @java.lang.Override public long getLastSeenTime() { return lastSeenTime_; } /** *
     * Other user's last online timestamp & user agent
     * 
* * int64 last_seen_time = 14 [json_name = "lastSeenTime"]; * @param value The lastSeenTime to set. */ private void setLastSeenTime(long value) { lastSeenTime_ = value; } /** *
     * Other user's last online timestamp & user agent
     * 
* * int64 last_seen_time = 14 [json_name = "lastSeenTime"]; */ private void clearLastSeenTime() { lastSeenTime_ = 0L; } public static final int LAST_SEEN_USER_AGENT_FIELD_NUMBER = 15; private java.lang.String lastSeenUserAgent_; /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @return The lastSeenUserAgent. */ @java.lang.Override public java.lang.String getLastSeenUserAgent() { return lastSeenUserAgent_; } /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @return The bytes for lastSeenUserAgent. */ @java.lang.Override public com.google.protobuf.ByteString getLastSeenUserAgentBytes() { return com.google.protobuf.ByteString.copyFromUtf8(lastSeenUserAgent_); } /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @param value The lastSeenUserAgent to set. */ private void setLastSeenUserAgent( java.lang.String value) { java.lang.Class valueClass = value.getClass(); lastSeenUserAgent_ = value; } /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; */ private void clearLastSeenUserAgent() { lastSeenUserAgent_ = getDefaultInstance().getLastSeenUserAgent(); } /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @param value The bytes for lastSeenUserAgent to set. */ private void setLastSeenUserAgentBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); lastSeenUserAgent_ = value.toStringUtf8(); } public static pbx.Model.TopicSub parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.TopicSub 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 pbx.Model.TopicSub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.TopicSub 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 pbx.Model.TopicSub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.TopicSub 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 pbx.Model.TopicSub parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.TopicSub 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 pbx.Model.TopicSub parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.TopicSub parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.TopicSub parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.TopicSub 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(pbx.Model.TopicSub prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * MsgTopicSub: topic subscription details, sent in Meta message
     * 
* * Protobuf type {@code pbx.TopicSub} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.TopicSub, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.TopicSub) pbx.Model.TopicSubOrBuilder { // Construct using pbx.Model.TopicSub.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * int64 updated_at = 1 [json_name = "updatedAt"]; * @return The updatedAt. */ @java.lang.Override public long getUpdatedAt() { return instance.getUpdatedAt(); } /** * int64 updated_at = 1 [json_name = "updatedAt"]; * @param value The updatedAt to set. * @return This builder for chaining. */ public Builder setUpdatedAt(long value) { copyOnWrite(); instance.setUpdatedAt(value); return this; } /** * int64 updated_at = 1 [json_name = "updatedAt"]; * @return This builder for chaining. */ public Builder clearUpdatedAt() { copyOnWrite(); instance.clearUpdatedAt(); return this; } /** * int64 deleted_at = 2 [json_name = "deletedAt"]; * @return The deletedAt. */ @java.lang.Override public long getDeletedAt() { return instance.getDeletedAt(); } /** * int64 deleted_at = 2 [json_name = "deletedAt"]; * @param value The deletedAt to set. * @return This builder for chaining. */ public Builder setDeletedAt(long value) { copyOnWrite(); instance.setDeletedAt(value); return this; } /** * int64 deleted_at = 2 [json_name = "deletedAt"]; * @return This builder for chaining. */ public Builder clearDeletedAt() { copyOnWrite(); instance.clearDeletedAt(); return this; } /** * int64 created_at = 17 [json_name = "createdAt"]; * @return The createdAt. */ @java.lang.Override public long getCreatedAt() { return instance.getCreatedAt(); } /** * int64 created_at = 17 [json_name = "createdAt"]; * @param value The createdAt to set. * @return This builder for chaining. */ public Builder setCreatedAt(long value) { copyOnWrite(); instance.setCreatedAt(value); return this; } /** * int64 created_at = 17 [json_name = "createdAt"]; * @return This builder for chaining. */ public Builder clearCreatedAt() { copyOnWrite(); instance.clearCreatedAt(); return this; } /** * bool online = 3 [json_name = "online"]; * @return The online. */ @java.lang.Override public boolean getOnline() { return instance.getOnline(); } /** * bool online = 3 [json_name = "online"]; * @param value The online to set. * @return This builder for chaining. */ public Builder setOnline(boolean value) { copyOnWrite(); instance.setOnline(value); return this; } /** * bool online = 3 [json_name = "online"]; * @return This builder for chaining. */ public Builder clearOnline() { copyOnWrite(); instance.clearOnline(); return this; } /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ @java.lang.Override public boolean hasAcs() { return instance.hasAcs(); } /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ @java.lang.Override public pbx.Model.AccessMode getAcs() { return instance.getAcs(); } /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ public Builder setAcs(pbx.Model.AccessMode value) { copyOnWrite(); instance.setAcs(value); return this; } /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ public Builder setAcs( pbx.Model.AccessMode.Builder builderForValue) { copyOnWrite(); instance.setAcs(builderForValue.build()); return this; } /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ public Builder mergeAcs(pbx.Model.AccessMode value) { copyOnWrite(); instance.mergeAcs(value); return this; } /** * .pbx.AccessMode acs = 4 [json_name = "acs"]; */ public Builder clearAcs() { copyOnWrite(); instance.clearAcs(); return this; } /** * int32 read_id = 5 [json_name = "readId"]; * @return The readId. */ @java.lang.Override public int getReadId() { return instance.getReadId(); } /** * int32 read_id = 5 [json_name = "readId"]; * @param value The readId to set. * @return This builder for chaining. */ public Builder setReadId(int value) { copyOnWrite(); instance.setReadId(value); return this; } /** * int32 read_id = 5 [json_name = "readId"]; * @return This builder for chaining. */ public Builder clearReadId() { copyOnWrite(); instance.clearReadId(); return this; } /** * int32 recv_id = 6 [json_name = "recvId"]; * @return The recvId. */ @java.lang.Override public int getRecvId() { return instance.getRecvId(); } /** * int32 recv_id = 6 [json_name = "recvId"]; * @param value The recvId to set. * @return This builder for chaining. */ public Builder setRecvId(int value) { copyOnWrite(); instance.setRecvId(value); return this; } /** * int32 recv_id = 6 [json_name = "recvId"]; * @return This builder for chaining. */ public Builder clearRecvId() { copyOnWrite(); instance.clearRecvId(); return this; } /** * bytes public = 7 [json_name = "public"]; * @return The public. */ @java.lang.Override public com.google.protobuf.ByteString getPublic() { return instance.getPublic(); } /** * bytes public = 7 [json_name = "public"]; * @param value The public to set. * @return This builder for chaining. */ public Builder setPublic(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPublic(value); return this; } /** * bytes public = 7 [json_name = "public"]; * @return This builder for chaining. */ public Builder clearPublic() { copyOnWrite(); instance.clearPublic(); return this; } /** *
       * 16!
       * 
* * bytes trusted = 16 [json_name = "trusted"]; * @return The trusted. */ @java.lang.Override public com.google.protobuf.ByteString getTrusted() { return instance.getTrusted(); } /** *
       * 16!
       * 
* * bytes trusted = 16 [json_name = "trusted"]; * @param value The trusted to set. * @return This builder for chaining. */ public Builder setTrusted(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTrusted(value); return this; } /** *
       * 16!
       * 
* * bytes trusted = 16 [json_name = "trusted"]; * @return This builder for chaining. */ public Builder clearTrusted() { copyOnWrite(); instance.clearTrusted(); return this; } /** * bytes private = 8 [json_name = "private"]; * @return The private. */ @java.lang.Override public com.google.protobuf.ByteString getPrivate() { return instance.getPrivate(); } /** * bytes private = 8 [json_name = "private"]; * @param value The private to set. * @return This builder for chaining. */ public Builder setPrivate(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPrivate(value); return this; } /** * bytes private = 8 [json_name = "private"]; * @return This builder for chaining. */ public Builder clearPrivate() { copyOnWrite(); instance.clearPrivate(); return this; } /** *
       * Uid of the subscribed user
       * 
* * string user_id = 9 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return instance.getUserId(); } /** *
       * Uid of the subscribed user
       * 
* * string user_id = 9 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return instance.getUserIdBytes(); } /** *
       * Uid of the subscribed user
       * 
* * string user_id = 9 [json_name = "userId"]; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { copyOnWrite(); instance.setUserId(value); return this; } /** *
       * Uid of the subscribed user
       * 
* * string user_id = 9 [json_name = "userId"]; * @return This builder for chaining. */ public Builder clearUserId() { copyOnWrite(); instance.clearUserId(); return this; } /** *
       * Uid of the subscribed user
       * 
* * string user_id = 9 [json_name = "userId"]; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserIdBytes(value); return this; } /** *
       * Topic name of this subscription
       * 
* * string topic = 10 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** *
       * Topic name of this subscription
       * 
* * string topic = 10 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** *
       * Topic name of this subscription
       * 
* * string topic = 10 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** *
       * Topic name of this subscription
       * 
* * string topic = 10 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** *
       * Topic name of this subscription
       * 
* * string topic = 10 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * int64 touched_at = 11 [json_name = "touchedAt"]; * @return The touchedAt. */ @java.lang.Override public long getTouchedAt() { return instance.getTouchedAt(); } /** * int64 touched_at = 11 [json_name = "touchedAt"]; * @param value The touchedAt to set. * @return This builder for chaining. */ public Builder setTouchedAt(long value) { copyOnWrite(); instance.setTouchedAt(value); return this; } /** * int64 touched_at = 11 [json_name = "touchedAt"]; * @return This builder for chaining. */ public Builder clearTouchedAt() { copyOnWrite(); instance.clearTouchedAt(); return this; } /** *
       * ID of the last {data} message in a topic
       * 
* * int32 seq_id = 12 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return instance.getSeqId(); } /** *
       * ID of the last {data} message in a topic
       * 
* * int32 seq_id = 12 [json_name = "seqId"]; * @param value The seqId to set. * @return This builder for chaining. */ public Builder setSeqId(int value) { copyOnWrite(); instance.setSeqId(value); return this; } /** *
       * ID of the last {data} message in a topic
       * 
* * int32 seq_id = 12 [json_name = "seqId"]; * @return This builder for chaining. */ public Builder clearSeqId() { copyOnWrite(); instance.clearSeqId(); return this; } /** *
       * Messages are deleted up to this ID
       * 
* * int32 del_id = 13 [json_name = "delId"]; * @return The delId. */ @java.lang.Override public int getDelId() { return instance.getDelId(); } /** *
       * Messages are deleted up to this ID
       * 
* * int32 del_id = 13 [json_name = "delId"]; * @param value The delId to set. * @return This builder for chaining. */ public Builder setDelId(int value) { copyOnWrite(); instance.setDelId(value); return this; } /** *
       * Messages are deleted up to this ID
       * 
* * int32 del_id = 13 [json_name = "delId"]; * @return This builder for chaining. */ public Builder clearDelId() { copyOnWrite(); instance.clearDelId(); return this; } /** *
       * Other user's last online timestamp & user agent
       * 
* * int64 last_seen_time = 14 [json_name = "lastSeenTime"]; * @return The lastSeenTime. */ @java.lang.Override public long getLastSeenTime() { return instance.getLastSeenTime(); } /** *
       * Other user's last online timestamp & user agent
       * 
* * int64 last_seen_time = 14 [json_name = "lastSeenTime"]; * @param value The lastSeenTime to set. * @return This builder for chaining. */ public Builder setLastSeenTime(long value) { copyOnWrite(); instance.setLastSeenTime(value); return this; } /** *
       * Other user's last online timestamp & user agent
       * 
* * int64 last_seen_time = 14 [json_name = "lastSeenTime"]; * @return This builder for chaining. */ public Builder clearLastSeenTime() { copyOnWrite(); instance.clearLastSeenTime(); return this; } /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @return The lastSeenUserAgent. */ @java.lang.Override public java.lang.String getLastSeenUserAgent() { return instance.getLastSeenUserAgent(); } /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @return The bytes for lastSeenUserAgent. */ @java.lang.Override public com.google.protobuf.ByteString getLastSeenUserAgentBytes() { return instance.getLastSeenUserAgentBytes(); } /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @param value The lastSeenUserAgent to set. * @return This builder for chaining. */ public Builder setLastSeenUserAgent( java.lang.String value) { copyOnWrite(); instance.setLastSeenUserAgent(value); return this; } /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @return This builder for chaining. */ public Builder clearLastSeenUserAgent() { copyOnWrite(); instance.clearLastSeenUserAgent(); return this; } /** * string last_seen_user_agent = 15 [json_name = "lastSeenUserAgent"]; * @param value The bytes for lastSeenUserAgent to set. * @return This builder for chaining. */ public Builder setLastSeenUserAgentBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setLastSeenUserAgentBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.TopicSub) } @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 pbx.Model.TopicSub(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "updatedAt_", "deletedAt_", "online_", "acs_", "readId_", "recvId_", "public_", "private_", "userId_", "topic_", "touchedAt_", "seqId_", "delId_", "lastSeenTime_", "lastSeenUserAgent_", "trusted_", "createdAt_", }; java.lang.String info = "\u0000\u0011\u0000\u0001\u0001\u0011\u0011\u0000\u0000\u0000\u0001\u0002\u0002\u0002" + "\u0003\u0007\u0004\u1009\u0000\u0005\u0004\u0006\u0004\u0007\n\b\n\t\u0208\n\u0208" + "\u000b\u0002\f\u0004\r\u0004\u000e\u0002\u000f\u0208\u0010\n\u0011\u0002"; 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 (pbx.Model.TopicSub.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:pbx.TopicSub) private static final pbx.Model.TopicSub DEFAULT_INSTANCE; static { TopicSub defaultInstance = new TopicSub(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( TopicSub.class, defaultInstance); } public static pbx.Model.TopicSub getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface DelValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.DelValues) com.google.protobuf.MessageLiteOrBuilder { /** * int32 del_id = 1 [json_name = "delId"]; * @return The delId. */ int getDelId(); /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ java.util.List getDelSeqList(); /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ pbx.Model.SeqRange getDelSeq(int index); /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ int getDelSeqCount(); } /** * Protobuf type {@code pbx.DelValues} */ public static final class DelValues extends com.google.protobuf.GeneratedMessageLite< DelValues, DelValues.Builder> implements // @@protoc_insertion_point(message_implements:pbx.DelValues) DelValuesOrBuilder { private DelValues() { delSeq_ = emptyProtobufList(); } public static final int DEL_ID_FIELD_NUMBER = 1; private int delId_; /** * int32 del_id = 1 [json_name = "delId"]; * @return The delId. */ @java.lang.Override public int getDelId() { return delId_; } /** * int32 del_id = 1 [json_name = "delId"]; * @param value The delId to set. */ private void setDelId(int value) { delId_ = value; } /** * int32 del_id = 1 [json_name = "delId"]; */ private void clearDelId() { delId_ = 0; } public static final int DEL_SEQ_FIELD_NUMBER = 2; private com.google.protobuf.Internal.ProtobufList delSeq_; /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ @java.lang.Override public java.util.List getDelSeqList() { return delSeq_; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public java.util.List getDelSeqOrBuilderList() { return delSeq_; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ @java.lang.Override public int getDelSeqCount() { return delSeq_.size(); } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ @java.lang.Override public pbx.Model.SeqRange getDelSeq(int index) { return delSeq_.get(index); } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public pbx.Model.SeqRangeOrBuilder getDelSeqOrBuilder( int index) { return delSeq_.get(index); } private void ensureDelSeqIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = delSeq_; if (!tmp.isModifiable()) { delSeq_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ private void setDelSeq( int index, pbx.Model.SeqRange value) { value.getClass(); ensureDelSeqIsMutable(); delSeq_.set(index, value); } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ private void addDelSeq(pbx.Model.SeqRange value) { value.getClass(); ensureDelSeqIsMutable(); delSeq_.add(value); } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ private void addDelSeq( int index, pbx.Model.SeqRange value) { value.getClass(); ensureDelSeqIsMutable(); delSeq_.add(index, value); } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ private void addAllDelSeq( java.lang.Iterable values) { ensureDelSeqIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, delSeq_); } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ private void clearDelSeq() { delSeq_ = emptyProtobufList(); } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ private void removeDelSeq(int index) { ensureDelSeqIsMutable(); delSeq_.remove(index); } public static pbx.Model.DelValues parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.DelValues 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 pbx.Model.DelValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.DelValues 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 pbx.Model.DelValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.DelValues 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 pbx.Model.DelValues parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.DelValues 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 pbx.Model.DelValues parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.DelValues parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.DelValues parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.DelValues 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(pbx.Model.DelValues prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.DelValues} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.DelValues, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.DelValues) pbx.Model.DelValuesOrBuilder { // Construct using pbx.Model.DelValues.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * int32 del_id = 1 [json_name = "delId"]; * @return The delId. */ @java.lang.Override public int getDelId() { return instance.getDelId(); } /** * int32 del_id = 1 [json_name = "delId"]; * @param value The delId to set. * @return This builder for chaining. */ public Builder setDelId(int value) { copyOnWrite(); instance.setDelId(value); return this; } /** * int32 del_id = 1 [json_name = "delId"]; * @return This builder for chaining. */ public Builder clearDelId() { copyOnWrite(); instance.clearDelId(); return this; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ @java.lang.Override public java.util.List getDelSeqList() { return java.util.Collections.unmodifiableList( instance.getDelSeqList()); } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ @java.lang.Override public int getDelSeqCount() { return instance.getDelSeqCount(); }/** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ @java.lang.Override public pbx.Model.SeqRange getDelSeq(int index) { return instance.getDelSeq(index); } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public Builder setDelSeq( int index, pbx.Model.SeqRange value) { copyOnWrite(); instance.setDelSeq(index, value); return this; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public Builder setDelSeq( int index, pbx.Model.SeqRange.Builder builderForValue) { copyOnWrite(); instance.setDelSeq(index, builderForValue.build()); return this; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public Builder addDelSeq(pbx.Model.SeqRange value) { copyOnWrite(); instance.addDelSeq(value); return this; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public Builder addDelSeq( int index, pbx.Model.SeqRange value) { copyOnWrite(); instance.addDelSeq(index, value); return this; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public Builder addDelSeq( pbx.Model.SeqRange.Builder builderForValue) { copyOnWrite(); instance.addDelSeq(builderForValue.build()); return this; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public Builder addDelSeq( int index, pbx.Model.SeqRange.Builder builderForValue) { copyOnWrite(); instance.addDelSeq(index, builderForValue.build()); return this; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public Builder addAllDelSeq( java.lang.Iterable values) { copyOnWrite(); instance.addAllDelSeq(values); return this; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public Builder clearDelSeq() { copyOnWrite(); instance.clearDelSeq(); return this; } /** * repeated .pbx.SeqRange del_seq = 2 [json_name = "delSeq"]; */ public Builder removeDelSeq(int index) { copyOnWrite(); instance.removeDelSeq(index); return this; } // @@protoc_insertion_point(builder_scope:pbx.DelValues) } @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 pbx.Model.DelValues(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "delId_", "delSeq_", pbx.Model.SeqRange.class, }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u0004\u0002\u001b" + ""; 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 (pbx.Model.DelValues.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:pbx.DelValues) private static final pbx.Model.DelValues DEFAULT_INSTANCE; static { DelValues defaultInstance = new DelValues(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( DelValues.class, defaultInstance); } public static pbx.Model.DelValues getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ServerCtrlOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ServerCtrl) com.google.protobuf.MessageLiteOrBuilder { /** * string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * int32 code = 3 [json_name = "code"]; * @return The code. */ int getCode(); /** * string text = 4 [json_name = "text"]; * @return The text. */ java.lang.String getText(); /** * string text = 4 [json_name = "text"]; * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); /** * map<string, bytes> params = 5 [json_name = "params"]; */ int getParamsCount(); /** * map<string, bytes> params = 5 [json_name = "params"]; */ boolean containsParams( java.lang.String key); /** * Use {@link #getParamsMap()} instead. */ @java.lang.Deprecated java.util.Map getParams(); /** * map<string, bytes> params = 5 [json_name = "params"]; */ java.util.Map getParamsMap(); /** * map<string, bytes> params = 5 [json_name = "params"]; */ /* nullable */ com.google.protobuf.ByteString getParamsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue); /** * map<string, bytes> params = 5 [json_name = "params"]; */ com.google.protobuf.ByteString getParamsOrThrow( java.lang.String key); } /** *
   * {ctrl} message
   * 
* * Protobuf type {@code pbx.ServerCtrl} */ public static final class ServerCtrl extends com.google.protobuf.GeneratedMessageLite< ServerCtrl, ServerCtrl.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ServerCtrl) ServerCtrlOrBuilder { private ServerCtrl() { id_ = ""; topic_ = ""; text_ = ""; } public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); id_ = value; } /** * string id = 1 [json_name = "id"]; */ private void clearId() { id_ = getDefaultInstance().getId(); } /** * string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); } public static final int TOPIC_FIELD_NUMBER = 2; private java.lang.String topic_; /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 2 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int CODE_FIELD_NUMBER = 3; private int code_; /** * int32 code = 3 [json_name = "code"]; * @return The code. */ @java.lang.Override public int getCode() { return code_; } /** * int32 code = 3 [json_name = "code"]; * @param value The code to set. */ private void setCode(int value) { code_ = value; } /** * int32 code = 3 [json_name = "code"]; */ private void clearCode() { code_ = 0; } public static final int TEXT_FIELD_NUMBER = 4; private java.lang.String text_; /** * string text = 4 [json_name = "text"]; * @return The text. */ @java.lang.Override public java.lang.String getText() { return text_; } /** * string text = 4 [json_name = "text"]; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { return com.google.protobuf.ByteString.copyFromUtf8(text_); } /** * string text = 4 [json_name = "text"]; * @param value The text to set. */ private void setText( java.lang.String value) { java.lang.Class valueClass = value.getClass(); text_ = value; } /** * string text = 4 [json_name = "text"]; */ private void clearText() { text_ = getDefaultInstance().getText(); } /** * string text = 4 [json_name = "text"]; * @param value The bytes for text to set. */ private void setTextBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); text_ = value.toStringUtf8(); } public static final int PARAMS_FIELD_NUMBER = 5; private static final class ParamsDefaultEntryHolder { static final com.google.protobuf.MapEntryLite< java.lang.String, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntryLite .newDefaultInstance( com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } private com.google.protobuf.MapFieldLite< java.lang.String, com.google.protobuf.ByteString> params_ = com.google.protobuf.MapFieldLite.emptyMapField(); private com.google.protobuf.MapFieldLite internalGetParams() { return params_; } private com.google.protobuf.MapFieldLite internalGetMutableParams() { if (!params_.isMutable()) { params_ = params_.mutableCopy(); } return params_; } @java.lang.Override public int getParamsCount() { return internalGetParams().size(); } /** * map<string, bytes> params = 5 [json_name = "params"]; */ @java.lang.Override public boolean containsParams( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return internalGetParams().containsKey(key); } /** * Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** * map<string, bytes> params = 5 [json_name = "params"]; */ @java.lang.Override public java.util.Map getParamsMap() { return java.util.Collections.unmodifiableMap( internalGetParams()); } /** * map<string, bytes> params = 5 [json_name = "params"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getParamsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetParams(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bytes> params = 5 [json_name = "params"]; */ @java.lang.Override public com.google.protobuf.ByteString getParamsOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetParams(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** * map<string, bytes> params = 5 [json_name = "params"]; */ private java.util.Map getMutableParamsMap() { return internalGetMutableParams(); } public static pbx.Model.ServerCtrl parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerCtrl 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 pbx.Model.ServerCtrl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerCtrl 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 pbx.Model.ServerCtrl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerCtrl 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 pbx.Model.ServerCtrl parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerCtrl 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 pbx.Model.ServerCtrl parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ServerCtrl parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ServerCtrl parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerCtrl 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(pbx.Model.ServerCtrl prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * {ctrl} message
     * 
* * Protobuf type {@code pbx.ServerCtrl} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ServerCtrl, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ServerCtrl) pbx.Model.ServerCtrlOrBuilder { // Construct using pbx.Model.ServerCtrl.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * int32 code = 3 [json_name = "code"]; * @return The code. */ @java.lang.Override public int getCode() { return instance.getCode(); } /** * int32 code = 3 [json_name = "code"]; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(int value) { copyOnWrite(); instance.setCode(value); return this; } /** * int32 code = 3 [json_name = "code"]; * @return This builder for chaining. */ public Builder clearCode() { copyOnWrite(); instance.clearCode(); return this; } /** * string text = 4 [json_name = "text"]; * @return The text. */ @java.lang.Override public java.lang.String getText() { return instance.getText(); } /** * string text = 4 [json_name = "text"]; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { return instance.getTextBytes(); } /** * string text = 4 [json_name = "text"]; * @param value The text to set. * @return This builder for chaining. */ public Builder setText( java.lang.String value) { copyOnWrite(); instance.setText(value); return this; } /** * string text = 4 [json_name = "text"]; * @return This builder for chaining. */ public Builder clearText() { copyOnWrite(); instance.clearText(); return this; } /** * string text = 4 [json_name = "text"]; * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTextBytes(value); return this; } @java.lang.Override public int getParamsCount() { return instance.getParamsMap().size(); } /** * map<string, bytes> params = 5 [json_name = "params"]; */ @java.lang.Override public boolean containsParams( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return instance.getParamsMap().containsKey(key); } public Builder clearParams() { copyOnWrite(); instance.getMutableParamsMap().clear(); return this; } /** * map<string, bytes> params = 5 [json_name = "params"]; */ public Builder removeParams( java.lang.String key) { java.lang.Class keyClass = key.getClass(); copyOnWrite(); instance.getMutableParamsMap().remove(key); return this; } /** * Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** * map<string, bytes> params = 5 [json_name = "params"]; */ @java.lang.Override public java.util.Map getParamsMap() { return java.util.Collections.unmodifiableMap( instance.getParamsMap()); } /** * map<string, bytes> params = 5 [json_name = "params"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getParamsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getParamsMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bytes> params = 5 [json_name = "params"]; */ @java.lang.Override public com.google.protobuf.ByteString getParamsOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getParamsMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** * map<string, bytes> params = 5 [json_name = "params"]; */ public Builder putParams( java.lang.String key, com.google.protobuf.ByteString value) { java.lang.Class keyClass = key.getClass(); java.lang.Class valueClass = value.getClass(); copyOnWrite(); instance.getMutableParamsMap().put(key, value); return this; } /** * map<string, bytes> params = 5 [json_name = "params"]; */ public Builder putAllParams( java.util.Map values) { copyOnWrite(); instance.getMutableParamsMap().putAll(values); return this; } // @@protoc_insertion_point(builder_scope:pbx.ServerCtrl) } @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 pbx.Model.ServerCtrl(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "id_", "topic_", "code_", "text_", "params_", ParamsDefaultEntryHolder.defaultEntry, }; java.lang.String info = "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0001\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\u0004\u0004\u0208\u00052"; 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 (pbx.Model.ServerCtrl.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:pbx.ServerCtrl) private static final pbx.Model.ServerCtrl DEFAULT_INSTANCE; static { ServerCtrl defaultInstance = new ServerCtrl(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ServerCtrl.class, defaultInstance); } public static pbx.Model.ServerCtrl getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ServerDataOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ServerData) com.google.protobuf.MessageLiteOrBuilder { /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** *
     * ID of the user who originated the message as {pub}, could be empty if sent by the system
     * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @return The fromUserId. */ java.lang.String getFromUserId(); /** *
     * ID of the user who originated the message as {pub}, could be empty if sent by the system
     * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @return The bytes for fromUserId. */ com.google.protobuf.ByteString getFromUserIdBytes(); /** *
     * Timestamp when the message was sent.
     * 
* * int64 timestamp = 7 [json_name = "timestamp"]; * @return The timestamp. */ long getTimestamp(); /** *
     * Timestamp when the message was deleted or 0. Milliseconds since the epoch 01/01/1970
     * 
* * int64 deleted_at = 3 [json_name = "deletedAt"]; * @return The deletedAt. */ long getDeletedAt(); /** * int32 seq_id = 4 [json_name = "seqId"]; * @return The seqId. */ int getSeqId(); /** * map<string, bytes> head = 5 [json_name = "head"]; */ int getHeadCount(); /** * map<string, bytes> head = 5 [json_name = "head"]; */ boolean containsHead( java.lang.String key); /** * Use {@link #getHeadMap()} instead. */ @java.lang.Deprecated java.util.Map getHead(); /** * map<string, bytes> head = 5 [json_name = "head"]; */ java.util.Map getHeadMap(); /** * map<string, bytes> head = 5 [json_name = "head"]; */ /* nullable */ com.google.protobuf.ByteString getHeadOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue); /** * map<string, bytes> head = 5 [json_name = "head"]; */ com.google.protobuf.ByteString getHeadOrThrow( java.lang.String key); /** * bytes content = 6 [json_name = "content"]; * @return The content. */ com.google.protobuf.ByteString getContent(); } /** *
   * {data} message
   * 
* * Protobuf type {@code pbx.ServerData} */ public static final class ServerData extends com.google.protobuf.GeneratedMessageLite< ServerData, ServerData.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ServerData) ServerDataOrBuilder { private ServerData() { topic_ = ""; fromUserId_ = ""; content_ = com.google.protobuf.ByteString.EMPTY; } public static final int TOPIC_FIELD_NUMBER = 1; private java.lang.String topic_; /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 1 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 1 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 1 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int FROM_USER_ID_FIELD_NUMBER = 2; private java.lang.String fromUserId_; /** *
     * ID of the user who originated the message as {pub}, could be empty if sent by the system
     * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @return The fromUserId. */ @java.lang.Override public java.lang.String getFromUserId() { return fromUserId_; } /** *
     * ID of the user who originated the message as {pub}, could be empty if sent by the system
     * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @return The bytes for fromUserId. */ @java.lang.Override public com.google.protobuf.ByteString getFromUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(fromUserId_); } /** *
     * ID of the user who originated the message as {pub}, could be empty if sent by the system
     * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @param value The fromUserId to set. */ private void setFromUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); fromUserId_ = value; } /** *
     * ID of the user who originated the message as {pub}, could be empty if sent by the system
     * 
* * string from_user_id = 2 [json_name = "fromUserId"]; */ private void clearFromUserId() { fromUserId_ = getDefaultInstance().getFromUserId(); } /** *
     * ID of the user who originated the message as {pub}, could be empty if sent by the system
     * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @param value The bytes for fromUserId to set. */ private void setFromUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); fromUserId_ = value.toStringUtf8(); } public static final int TIMESTAMP_FIELD_NUMBER = 7; private long timestamp_; /** *
     * Timestamp when the message was sent.
     * 
* * int64 timestamp = 7 [json_name = "timestamp"]; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** *
     * Timestamp when the message was sent.
     * 
* * int64 timestamp = 7 [json_name = "timestamp"]; * @param value The timestamp to set. */ private void setTimestamp(long value) { timestamp_ = value; } /** *
     * Timestamp when the message was sent.
     * 
* * int64 timestamp = 7 [json_name = "timestamp"]; */ private void clearTimestamp() { timestamp_ = 0L; } public static final int DELETED_AT_FIELD_NUMBER = 3; private long deletedAt_; /** *
     * Timestamp when the message was deleted or 0. Milliseconds since the epoch 01/01/1970
     * 
* * int64 deleted_at = 3 [json_name = "deletedAt"]; * @return The deletedAt. */ @java.lang.Override public long getDeletedAt() { return deletedAt_; } /** *
     * Timestamp when the message was deleted or 0. Milliseconds since the epoch 01/01/1970
     * 
* * int64 deleted_at = 3 [json_name = "deletedAt"]; * @param value The deletedAt to set. */ private void setDeletedAt(long value) { deletedAt_ = value; } /** *
     * Timestamp when the message was deleted or 0. Milliseconds since the epoch 01/01/1970
     * 
* * int64 deleted_at = 3 [json_name = "deletedAt"]; */ private void clearDeletedAt() { deletedAt_ = 0L; } public static final int SEQ_ID_FIELD_NUMBER = 4; private int seqId_; /** * int32 seq_id = 4 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return seqId_; } /** * int32 seq_id = 4 [json_name = "seqId"]; * @param value The seqId to set. */ private void setSeqId(int value) { seqId_ = value; } /** * int32 seq_id = 4 [json_name = "seqId"]; */ private void clearSeqId() { seqId_ = 0; } public static final int HEAD_FIELD_NUMBER = 5; private static final class HeadDefaultEntryHolder { static final com.google.protobuf.MapEntryLite< java.lang.String, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntryLite .newDefaultInstance( com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } private com.google.protobuf.MapFieldLite< java.lang.String, com.google.protobuf.ByteString> head_ = com.google.protobuf.MapFieldLite.emptyMapField(); private com.google.protobuf.MapFieldLite internalGetHead() { return head_; } private com.google.protobuf.MapFieldLite internalGetMutableHead() { if (!head_.isMutable()) { head_ = head_.mutableCopy(); } return head_; } @java.lang.Override public int getHeadCount() { return internalGetHead().size(); } /** * map<string, bytes> head = 5 [json_name = "head"]; */ @java.lang.Override public boolean containsHead( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return internalGetHead().containsKey(key); } /** * Use {@link #getHeadMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHead() { return getHeadMap(); } /** * map<string, bytes> head = 5 [json_name = "head"]; */ @java.lang.Override public java.util.Map getHeadMap() { return java.util.Collections.unmodifiableMap( internalGetHead()); } /** * map<string, bytes> head = 5 [json_name = "head"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getHeadOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetHead(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bytes> head = 5 [json_name = "head"]; */ @java.lang.Override public com.google.protobuf.ByteString getHeadOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetHead(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** * map<string, bytes> head = 5 [json_name = "head"]; */ private java.util.Map getMutableHeadMap() { return internalGetMutableHead(); } public static final int CONTENT_FIELD_NUMBER = 6; private com.google.protobuf.ByteString content_; /** * bytes content = 6 [json_name = "content"]; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } /** * bytes content = 6 [json_name = "content"]; * @param value The content to set. */ private void setContent(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); content_ = value; } /** * bytes content = 6 [json_name = "content"]; */ private void clearContent() { content_ = getDefaultInstance().getContent(); } public static pbx.Model.ServerData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerData 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 pbx.Model.ServerData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerData 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 pbx.Model.ServerData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerData 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 pbx.Model.ServerData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerData 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 pbx.Model.ServerData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ServerData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ServerData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerData 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(pbx.Model.ServerData prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * {data} message
     * 
* * Protobuf type {@code pbx.ServerData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ServerData, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ServerData) pbx.Model.ServerDataOrBuilder { // Construct using pbx.Model.ServerData.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 1 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 1 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 1 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** *
       * ID of the user who originated the message as {pub}, could be empty if sent by the system
       * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @return The fromUserId. */ @java.lang.Override public java.lang.String getFromUserId() { return instance.getFromUserId(); } /** *
       * ID of the user who originated the message as {pub}, could be empty if sent by the system
       * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @return The bytes for fromUserId. */ @java.lang.Override public com.google.protobuf.ByteString getFromUserIdBytes() { return instance.getFromUserIdBytes(); } /** *
       * ID of the user who originated the message as {pub}, could be empty if sent by the system
       * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @param value The fromUserId to set. * @return This builder for chaining. */ public Builder setFromUserId( java.lang.String value) { copyOnWrite(); instance.setFromUserId(value); return this; } /** *
       * ID of the user who originated the message as {pub}, could be empty if sent by the system
       * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @return This builder for chaining. */ public Builder clearFromUserId() { copyOnWrite(); instance.clearFromUserId(); return this; } /** *
       * ID of the user who originated the message as {pub}, could be empty if sent by the system
       * 
* * string from_user_id = 2 [json_name = "fromUserId"]; * @param value The bytes for fromUserId to set. * @return This builder for chaining. */ public Builder setFromUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setFromUserIdBytes(value); return this; } /** *
       * Timestamp when the message was sent.
       * 
* * int64 timestamp = 7 [json_name = "timestamp"]; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return instance.getTimestamp(); } /** *
       * Timestamp when the message was sent.
       * 
* * int64 timestamp = 7 [json_name = "timestamp"]; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { copyOnWrite(); instance.setTimestamp(value); return this; } /** *
       * Timestamp when the message was sent.
       * 
* * int64 timestamp = 7 [json_name = "timestamp"]; * @return This builder for chaining. */ public Builder clearTimestamp() { copyOnWrite(); instance.clearTimestamp(); return this; } /** *
       * Timestamp when the message was deleted or 0. Milliseconds since the epoch 01/01/1970
       * 
* * int64 deleted_at = 3 [json_name = "deletedAt"]; * @return The deletedAt. */ @java.lang.Override public long getDeletedAt() { return instance.getDeletedAt(); } /** *
       * Timestamp when the message was deleted or 0. Milliseconds since the epoch 01/01/1970
       * 
* * int64 deleted_at = 3 [json_name = "deletedAt"]; * @param value The deletedAt to set. * @return This builder for chaining. */ public Builder setDeletedAt(long value) { copyOnWrite(); instance.setDeletedAt(value); return this; } /** *
       * Timestamp when the message was deleted or 0. Milliseconds since the epoch 01/01/1970
       * 
* * int64 deleted_at = 3 [json_name = "deletedAt"]; * @return This builder for chaining. */ public Builder clearDeletedAt() { copyOnWrite(); instance.clearDeletedAt(); return this; } /** * int32 seq_id = 4 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return instance.getSeqId(); } /** * int32 seq_id = 4 [json_name = "seqId"]; * @param value The seqId to set. * @return This builder for chaining. */ public Builder setSeqId(int value) { copyOnWrite(); instance.setSeqId(value); return this; } /** * int32 seq_id = 4 [json_name = "seqId"]; * @return This builder for chaining. */ public Builder clearSeqId() { copyOnWrite(); instance.clearSeqId(); return this; } @java.lang.Override public int getHeadCount() { return instance.getHeadMap().size(); } /** * map<string, bytes> head = 5 [json_name = "head"]; */ @java.lang.Override public boolean containsHead( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return instance.getHeadMap().containsKey(key); } public Builder clearHead() { copyOnWrite(); instance.getMutableHeadMap().clear(); return this; } /** * map<string, bytes> head = 5 [json_name = "head"]; */ public Builder removeHead( java.lang.String key) { java.lang.Class keyClass = key.getClass(); copyOnWrite(); instance.getMutableHeadMap().remove(key); return this; } /** * Use {@link #getHeadMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHead() { return getHeadMap(); } /** * map<string, bytes> head = 5 [json_name = "head"]; */ @java.lang.Override public java.util.Map getHeadMap() { return java.util.Collections.unmodifiableMap( instance.getHeadMap()); } /** * map<string, bytes> head = 5 [json_name = "head"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getHeadOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getHeadMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bytes> head = 5 [json_name = "head"]; */ @java.lang.Override public com.google.protobuf.ByteString getHeadOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getHeadMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** * map<string, bytes> head = 5 [json_name = "head"]; */ public Builder putHead( java.lang.String key, com.google.protobuf.ByteString value) { java.lang.Class keyClass = key.getClass(); java.lang.Class valueClass = value.getClass(); copyOnWrite(); instance.getMutableHeadMap().put(key, value); return this; } /** * map<string, bytes> head = 5 [json_name = "head"]; */ public Builder putAllHead( java.util.Map values) { copyOnWrite(); instance.getMutableHeadMap().putAll(values); return this; } /** * bytes content = 6 [json_name = "content"]; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return instance.getContent(); } /** * bytes content = 6 [json_name = "content"]; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setContent(value); return this; } /** * bytes content = 6 [json_name = "content"]; * @return This builder for chaining. */ public Builder clearContent() { copyOnWrite(); instance.clearContent(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ServerData) } @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 pbx.Model.ServerData(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "topic_", "fromUserId_", "deletedAt_", "seqId_", "head_", HeadDefaultEntryHolder.defaultEntry, "content_", "timestamp_", }; java.lang.String info = "\u0000\u0007\u0000\u0000\u0001\u0007\u0007\u0001\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\u0002\u0004\u0004\u00052\u0006\n\u0007\u0002"; 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 (pbx.Model.ServerData.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:pbx.ServerData) private static final pbx.Model.ServerData DEFAULT_INSTANCE; static { ServerData defaultInstance = new ServerData(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ServerData.class, defaultInstance); } public static pbx.Model.ServerData getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ServerPresOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ServerPres) com.google.protobuf.MessageLiteOrBuilder { /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * string src = 2 [json_name = "src"]; * @return The src. */ java.lang.String getSrc(); /** * string src = 2 [json_name = "src"]; * @return The bytes for src. */ com.google.protobuf.ByteString getSrcBytes(); /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ int getWhatValue(); /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @return The what. */ pbx.Model.ServerPres.What getWhat(); /** * string user_agent = 4 [json_name = "userAgent"]; * @return The userAgent. */ java.lang.String getUserAgent(); /** * string user_agent = 4 [json_name = "userAgent"]; * @return The bytes for userAgent. */ com.google.protobuf.ByteString getUserAgentBytes(); /** * int32 seq_id = 5 [json_name = "seqId"]; * @return The seqId. */ int getSeqId(); /** * int32 del_id = 6 [json_name = "delId"]; * @return The delId. */ int getDelId(); /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ java.util.List getDelSeqList(); /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ pbx.Model.SeqRange getDelSeq(int index); /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ int getDelSeqCount(); /** * string target_user_id = 8 [json_name = "targetUserId"]; * @return The targetUserId. */ java.lang.String getTargetUserId(); /** * string target_user_id = 8 [json_name = "targetUserId"]; * @return The bytes for targetUserId. */ com.google.protobuf.ByteString getTargetUserIdBytes(); /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @return The actorUserId. */ java.lang.String getActorUserId(); /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @return The bytes for actorUserId. */ com.google.protobuf.ByteString getActorUserIdBytes(); /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; * @return Whether the acs field is set. */ boolean hasAcs(); /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; * @return The acs. */ pbx.Model.AccessMode getAcs(); } /** *
   * {pres} message
   * 
* * Protobuf type {@code pbx.ServerPres} */ public static final class ServerPres extends com.google.protobuf.GeneratedMessageLite< ServerPres, ServerPres.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ServerPres) ServerPresOrBuilder { private ServerPres() { topic_ = ""; src_ = ""; userAgent_ = ""; delSeq_ = emptyProtobufList(); targetUserId_ = ""; actorUserId_ = ""; } /** * Protobuf enum {@code pbx.ServerPres.What} */ public enum What implements com.google.protobuf.Internal.EnumLite { /** *
       * Invalid value. The name must be globally unique.
       * 
* * X3 = 0; */ X3(0), /** * ON = 1; */ ON(1), /** * OFF = 2; */ OFF(2), /** * UA = 3; */ UA(3), /** * UPD = 4; */ UPD(4), /** * GONE = 5; */ GONE(5), /** * ACS = 6; */ ACS(6), /** * TERM = 7; */ TERM(7), /** * MSG = 8; */ MSG(8), /** * READ = 9; */ READ(9), /** * RECV = 10; */ RECV(10), /** * DEL = 11; */ DEL(11), /** * TAGS = 12; */ TAGS(12), UNRECOGNIZED(-1), ; /** *
       * Invalid value. The name must be globally unique.
       * 
* * X3 = 0; */ public static final int X3_VALUE = 0; /** * ON = 1; */ public static final int ON_VALUE = 1; /** * OFF = 2; */ public static final int OFF_VALUE = 2; /** * UA = 3; */ public static final int UA_VALUE = 3; /** * UPD = 4; */ public static final int UPD_VALUE = 4; /** * GONE = 5; */ public static final int GONE_VALUE = 5; /** * ACS = 6; */ public static final int ACS_VALUE = 6; /** * TERM = 7; */ public static final int TERM_VALUE = 7; /** * MSG = 8; */ public static final int MSG_VALUE = 8; /** * READ = 9; */ public static final int READ_VALUE = 9; /** * RECV = 10; */ public static final int RECV_VALUE = 10; /** * DEL = 11; */ public static final int DEL_VALUE = 11; /** * TAGS = 12; */ public static final int TAGS_VALUE = 12; @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 What valueOf(int value) { return forNumber(value); } public static What forNumber(int value) { switch (value) { case 0: return X3; case 1: return ON; case 2: return OFF; case 3: return UA; case 4: return UPD; case 5: return GONE; case 6: return ACS; case 7: return TERM; case 8: return MSG; case 9: return READ; case 10: return RECV; case 11: return DEL; case 12: return TAGS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< What> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public What findValueByNumber(int number) { return What.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return WhatVerifier.INSTANCE; } private static final class WhatVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new WhatVerifier(); @java.lang.Override public boolean isInRange(int number) { return What.forNumber(number) != null; } }; private final int value; private What(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:pbx.ServerPres.What) } private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; private java.lang.String topic_; /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 1 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 1 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 1 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int SRC_FIELD_NUMBER = 2; private java.lang.String src_; /** * string src = 2 [json_name = "src"]; * @return The src. */ @java.lang.Override public java.lang.String getSrc() { return src_; } /** * string src = 2 [json_name = "src"]; * @return The bytes for src. */ @java.lang.Override public com.google.protobuf.ByteString getSrcBytes() { return com.google.protobuf.ByteString.copyFromUtf8(src_); } /** * string src = 2 [json_name = "src"]; * @param value The src to set. */ private void setSrc( java.lang.String value) { java.lang.Class valueClass = value.getClass(); src_ = value; } /** * string src = 2 [json_name = "src"]; */ private void clearSrc() { src_ = getDefaultInstance().getSrc(); } /** * string src = 2 [json_name = "src"]; * @param value The bytes for src to set. */ private void setSrcBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); src_ = value.toStringUtf8(); } public static final int WHAT_FIELD_NUMBER = 3; private int what_; /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ @java.lang.Override public int getWhatValue() { return what_; } /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @return The what. */ @java.lang.Override public pbx.Model.ServerPres.What getWhat() { pbx.Model.ServerPres.What result = pbx.Model.ServerPres.What.forNumber(what_); return result == null ? pbx.Model.ServerPres.What.UNRECOGNIZED : result; } /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @param value The enum numeric value on the wire for what to set. */ private void setWhatValue(int value) { what_ = value; } /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @param value The what to set. */ private void setWhat(pbx.Model.ServerPres.What value) { what_ = value.getNumber(); } /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; */ private void clearWhat() { what_ = 0; } public static final int USER_AGENT_FIELD_NUMBER = 4; private java.lang.String userAgent_; /** * string user_agent = 4 [json_name = "userAgent"]; * @return The userAgent. */ @java.lang.Override public java.lang.String getUserAgent() { return userAgent_; } /** * string user_agent = 4 [json_name = "userAgent"]; * @return The bytes for userAgent. */ @java.lang.Override public com.google.protobuf.ByteString getUserAgentBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userAgent_); } /** * string user_agent = 4 [json_name = "userAgent"]; * @param value The userAgent to set. */ private void setUserAgent( java.lang.String value) { java.lang.Class valueClass = value.getClass(); userAgent_ = value; } /** * string user_agent = 4 [json_name = "userAgent"]; */ private void clearUserAgent() { userAgent_ = getDefaultInstance().getUserAgent(); } /** * string user_agent = 4 [json_name = "userAgent"]; * @param value The bytes for userAgent to set. */ private void setUserAgentBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userAgent_ = value.toStringUtf8(); } public static final int SEQ_ID_FIELD_NUMBER = 5; private int seqId_; /** * int32 seq_id = 5 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return seqId_; } /** * int32 seq_id = 5 [json_name = "seqId"]; * @param value The seqId to set. */ private void setSeqId(int value) { seqId_ = value; } /** * int32 seq_id = 5 [json_name = "seqId"]; */ private void clearSeqId() { seqId_ = 0; } public static final int DEL_ID_FIELD_NUMBER = 6; private int delId_; /** * int32 del_id = 6 [json_name = "delId"]; * @return The delId. */ @java.lang.Override public int getDelId() { return delId_; } /** * int32 del_id = 6 [json_name = "delId"]; * @param value The delId to set. */ private void setDelId(int value) { delId_ = value; } /** * int32 del_id = 6 [json_name = "delId"]; */ private void clearDelId() { delId_ = 0; } public static final int DEL_SEQ_FIELD_NUMBER = 7; private com.google.protobuf.Internal.ProtobufList delSeq_; /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ @java.lang.Override public java.util.List getDelSeqList() { return delSeq_; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public java.util.List getDelSeqOrBuilderList() { return delSeq_; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ @java.lang.Override public int getDelSeqCount() { return delSeq_.size(); } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ @java.lang.Override public pbx.Model.SeqRange getDelSeq(int index) { return delSeq_.get(index); } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public pbx.Model.SeqRangeOrBuilder getDelSeqOrBuilder( int index) { return delSeq_.get(index); } private void ensureDelSeqIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = delSeq_; if (!tmp.isModifiable()) { delSeq_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ private void setDelSeq( int index, pbx.Model.SeqRange value) { value.getClass(); ensureDelSeqIsMutable(); delSeq_.set(index, value); } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ private void addDelSeq(pbx.Model.SeqRange value) { value.getClass(); ensureDelSeqIsMutable(); delSeq_.add(value); } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ private void addDelSeq( int index, pbx.Model.SeqRange value) { value.getClass(); ensureDelSeqIsMutable(); delSeq_.add(index, value); } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ private void addAllDelSeq( java.lang.Iterable values) { ensureDelSeqIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, delSeq_); } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ private void clearDelSeq() { delSeq_ = emptyProtobufList(); } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ private void removeDelSeq(int index) { ensureDelSeqIsMutable(); delSeq_.remove(index); } public static final int TARGET_USER_ID_FIELD_NUMBER = 8; private java.lang.String targetUserId_; /** * string target_user_id = 8 [json_name = "targetUserId"]; * @return The targetUserId. */ @java.lang.Override public java.lang.String getTargetUserId() { return targetUserId_; } /** * string target_user_id = 8 [json_name = "targetUserId"]; * @return The bytes for targetUserId. */ @java.lang.Override public com.google.protobuf.ByteString getTargetUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(targetUserId_); } /** * string target_user_id = 8 [json_name = "targetUserId"]; * @param value The targetUserId to set. */ private void setTargetUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); targetUserId_ = value; } /** * string target_user_id = 8 [json_name = "targetUserId"]; */ private void clearTargetUserId() { targetUserId_ = getDefaultInstance().getTargetUserId(); } /** * string target_user_id = 8 [json_name = "targetUserId"]; * @param value The bytes for targetUserId to set. */ private void setTargetUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); targetUserId_ = value.toStringUtf8(); } public static final int ACTOR_USER_ID_FIELD_NUMBER = 9; private java.lang.String actorUserId_; /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @return The actorUserId. */ @java.lang.Override public java.lang.String getActorUserId() { return actorUserId_; } /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @return The bytes for actorUserId. */ @java.lang.Override public com.google.protobuf.ByteString getActorUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(actorUserId_); } /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @param value The actorUserId to set. */ private void setActorUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); actorUserId_ = value; } /** * string actor_user_id = 9 [json_name = "actorUserId"]; */ private void clearActorUserId() { actorUserId_ = getDefaultInstance().getActorUserId(); } /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @param value The bytes for actorUserId to set. */ private void setActorUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); actorUserId_ = value.toStringUtf8(); } public static final int ACS_FIELD_NUMBER = 10; private pbx.Model.AccessMode acs_; /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ @java.lang.Override public boolean hasAcs() { return ((bitField0_ & 0x00000001) != 0); } /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ @java.lang.Override public pbx.Model.AccessMode getAcs() { return acs_ == null ? pbx.Model.AccessMode.getDefaultInstance() : acs_; } /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ private void setAcs(pbx.Model.AccessMode value) { value.getClass(); acs_ = value; bitField0_ |= 0x00000001; } /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeAcs(pbx.Model.AccessMode value) { value.getClass(); if (acs_ != null && acs_ != pbx.Model.AccessMode.getDefaultInstance()) { acs_ = pbx.Model.AccessMode.newBuilder(acs_).mergeFrom(value).buildPartial(); } else { acs_ = value; } bitField0_ |= 0x00000001; } /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ private void clearAcs() { acs_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static pbx.Model.ServerPres parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerPres 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 pbx.Model.ServerPres parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerPres 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 pbx.Model.ServerPres parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerPres 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 pbx.Model.ServerPres parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerPres 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 pbx.Model.ServerPres parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ServerPres parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ServerPres parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerPres 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(pbx.Model.ServerPres prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * {pres} message
     * 
* * Protobuf type {@code pbx.ServerPres} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ServerPres, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ServerPres) pbx.Model.ServerPresOrBuilder { // Construct using pbx.Model.ServerPres.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 1 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 1 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 1 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * string src = 2 [json_name = "src"]; * @return The src. */ @java.lang.Override public java.lang.String getSrc() { return instance.getSrc(); } /** * string src = 2 [json_name = "src"]; * @return The bytes for src. */ @java.lang.Override public com.google.protobuf.ByteString getSrcBytes() { return instance.getSrcBytes(); } /** * string src = 2 [json_name = "src"]; * @param value The src to set. * @return This builder for chaining. */ public Builder setSrc( java.lang.String value) { copyOnWrite(); instance.setSrc(value); return this; } /** * string src = 2 [json_name = "src"]; * @return This builder for chaining. */ public Builder clearSrc() { copyOnWrite(); instance.clearSrc(); return this; } /** * string src = 2 [json_name = "src"]; * @param value The bytes for src to set. * @return This builder for chaining. */ public Builder setSrcBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSrcBytes(value); return this; } /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ @java.lang.Override public int getWhatValue() { return instance.getWhatValue(); } /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @param value The what to set. * @return This builder for chaining. */ public Builder setWhatValue(int value) { copyOnWrite(); instance.setWhatValue(value); return this; } /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @return The what. */ @java.lang.Override public pbx.Model.ServerPres.What getWhat() { return instance.getWhat(); } /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @param value The enum numeric value on the wire for what to set. * @return This builder for chaining. */ public Builder setWhat(pbx.Model.ServerPres.What value) { copyOnWrite(); instance.setWhat(value); return this; } /** * .pbx.ServerPres.What what = 3 [json_name = "what"]; * @return This builder for chaining. */ public Builder clearWhat() { copyOnWrite(); instance.clearWhat(); return this; } /** * string user_agent = 4 [json_name = "userAgent"]; * @return The userAgent. */ @java.lang.Override public java.lang.String getUserAgent() { return instance.getUserAgent(); } /** * string user_agent = 4 [json_name = "userAgent"]; * @return The bytes for userAgent. */ @java.lang.Override public com.google.protobuf.ByteString getUserAgentBytes() { return instance.getUserAgentBytes(); } /** * string user_agent = 4 [json_name = "userAgent"]; * @param value The userAgent to set. * @return This builder for chaining. */ public Builder setUserAgent( java.lang.String value) { copyOnWrite(); instance.setUserAgent(value); return this; } /** * string user_agent = 4 [json_name = "userAgent"]; * @return This builder for chaining. */ public Builder clearUserAgent() { copyOnWrite(); instance.clearUserAgent(); return this; } /** * string user_agent = 4 [json_name = "userAgent"]; * @param value The bytes for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserAgentBytes(value); return this; } /** * int32 seq_id = 5 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return instance.getSeqId(); } /** * int32 seq_id = 5 [json_name = "seqId"]; * @param value The seqId to set. * @return This builder for chaining. */ public Builder setSeqId(int value) { copyOnWrite(); instance.setSeqId(value); return this; } /** * int32 seq_id = 5 [json_name = "seqId"]; * @return This builder for chaining. */ public Builder clearSeqId() { copyOnWrite(); instance.clearSeqId(); return this; } /** * int32 del_id = 6 [json_name = "delId"]; * @return The delId. */ @java.lang.Override public int getDelId() { return instance.getDelId(); } /** * int32 del_id = 6 [json_name = "delId"]; * @param value The delId to set. * @return This builder for chaining. */ public Builder setDelId(int value) { copyOnWrite(); instance.setDelId(value); return this; } /** * int32 del_id = 6 [json_name = "delId"]; * @return This builder for chaining. */ public Builder clearDelId() { copyOnWrite(); instance.clearDelId(); return this; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ @java.lang.Override public java.util.List getDelSeqList() { return java.util.Collections.unmodifiableList( instance.getDelSeqList()); } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ @java.lang.Override public int getDelSeqCount() { return instance.getDelSeqCount(); }/** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ @java.lang.Override public pbx.Model.SeqRange getDelSeq(int index) { return instance.getDelSeq(index); } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public Builder setDelSeq( int index, pbx.Model.SeqRange value) { copyOnWrite(); instance.setDelSeq(index, value); return this; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public Builder setDelSeq( int index, pbx.Model.SeqRange.Builder builderForValue) { copyOnWrite(); instance.setDelSeq(index, builderForValue.build()); return this; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public Builder addDelSeq(pbx.Model.SeqRange value) { copyOnWrite(); instance.addDelSeq(value); return this; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public Builder addDelSeq( int index, pbx.Model.SeqRange value) { copyOnWrite(); instance.addDelSeq(index, value); return this; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public Builder addDelSeq( pbx.Model.SeqRange.Builder builderForValue) { copyOnWrite(); instance.addDelSeq(builderForValue.build()); return this; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public Builder addDelSeq( int index, pbx.Model.SeqRange.Builder builderForValue) { copyOnWrite(); instance.addDelSeq(index, builderForValue.build()); return this; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public Builder addAllDelSeq( java.lang.Iterable values) { copyOnWrite(); instance.addAllDelSeq(values); return this; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public Builder clearDelSeq() { copyOnWrite(); instance.clearDelSeq(); return this; } /** * repeated .pbx.SeqRange del_seq = 7 [json_name = "delSeq"]; */ public Builder removeDelSeq(int index) { copyOnWrite(); instance.removeDelSeq(index); return this; } /** * string target_user_id = 8 [json_name = "targetUserId"]; * @return The targetUserId. */ @java.lang.Override public java.lang.String getTargetUserId() { return instance.getTargetUserId(); } /** * string target_user_id = 8 [json_name = "targetUserId"]; * @return The bytes for targetUserId. */ @java.lang.Override public com.google.protobuf.ByteString getTargetUserIdBytes() { return instance.getTargetUserIdBytes(); } /** * string target_user_id = 8 [json_name = "targetUserId"]; * @param value The targetUserId to set. * @return This builder for chaining. */ public Builder setTargetUserId( java.lang.String value) { copyOnWrite(); instance.setTargetUserId(value); return this; } /** * string target_user_id = 8 [json_name = "targetUserId"]; * @return This builder for chaining. */ public Builder clearTargetUserId() { copyOnWrite(); instance.clearTargetUserId(); return this; } /** * string target_user_id = 8 [json_name = "targetUserId"]; * @param value The bytes for targetUserId to set. * @return This builder for chaining. */ public Builder setTargetUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTargetUserIdBytes(value); return this; } /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @return The actorUserId. */ @java.lang.Override public java.lang.String getActorUserId() { return instance.getActorUserId(); } /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @return The bytes for actorUserId. */ @java.lang.Override public com.google.protobuf.ByteString getActorUserIdBytes() { return instance.getActorUserIdBytes(); } /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @param value The actorUserId to set. * @return This builder for chaining. */ public Builder setActorUserId( java.lang.String value) { copyOnWrite(); instance.setActorUserId(value); return this; } /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @return This builder for chaining. */ public Builder clearActorUserId() { copyOnWrite(); instance.clearActorUserId(); return this; } /** * string actor_user_id = 9 [json_name = "actorUserId"]; * @param value The bytes for actorUserId to set. * @return This builder for chaining. */ public Builder setActorUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setActorUserIdBytes(value); return this; } /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ @java.lang.Override public boolean hasAcs() { return instance.hasAcs(); } /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ @java.lang.Override public pbx.Model.AccessMode getAcs() { return instance.getAcs(); } /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ public Builder setAcs(pbx.Model.AccessMode value) { copyOnWrite(); instance.setAcs(value); return this; } /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ public Builder setAcs( pbx.Model.AccessMode.Builder builderForValue) { copyOnWrite(); instance.setAcs(builderForValue.build()); return this; } /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ public Builder mergeAcs(pbx.Model.AccessMode value) { copyOnWrite(); instance.mergeAcs(value); return this; } /** * .pbx.AccessMode acs = 10 [json_name = "acs"]; */ public Builder clearAcs() { copyOnWrite(); instance.clearAcs(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ServerPres) } @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 pbx.Model.ServerPres(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "topic_", "src_", "what_", "userAgent_", "seqId_", "delId_", "delSeq_", pbx.Model.SeqRange.class, "targetUserId_", "actorUserId_", "acs_", }; java.lang.String info = "\u0000\n\u0000\u0001\u0001\n\n\u0000\u0001\u0000\u0001\u0208\u0002\u0208\u0003\f" + "\u0004\u0208\u0005\u0004\u0006\u0004\u0007\u001b\b\u0208\t\u0208\n\u1009\u0000"; 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 (pbx.Model.ServerPres.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:pbx.ServerPres) private static final pbx.Model.ServerPres DEFAULT_INSTANCE; static { ServerPres defaultInstance = new ServerPres(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ServerPres.class, defaultInstance); } public static pbx.Model.ServerPres getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ServerMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ServerMeta) com.google.protobuf.MessageLiteOrBuilder { /** * string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** * string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; * @return Whether the desc field is set. */ boolean hasDesc(); /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; * @return The desc. */ pbx.Model.TopicDesc getDesc(); /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ java.util.List getSubList(); /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ pbx.Model.TopicSub getSub(int index); /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ int getSubCount(); /** * .pbx.DelValues del = 5 [json_name = "del"]; * @return Whether the del field is set. */ boolean hasDel(); /** * .pbx.DelValues del = 5 [json_name = "del"]; * @return The del. */ pbx.Model.DelValues getDel(); /** * repeated string tags = 6 [json_name = "tags"]; * @return A list containing the tags. */ java.util.List getTagsList(); /** * repeated string tags = 6 [json_name = "tags"]; * @return The count of tags. */ int getTagsCount(); /** * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ java.util.List getCredList(); /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ pbx.Model.ServerCred getCred(int index); /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ int getCredCount(); } /** *
   * {meta} message
   * 
* * Protobuf type {@code pbx.ServerMeta} */ public static final class ServerMeta extends com.google.protobuf.GeneratedMessageLite< ServerMeta, ServerMeta.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ServerMeta) ServerMetaOrBuilder { private ServerMeta() { id_ = ""; topic_ = ""; sub_ = emptyProtobufList(); tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); cred_ = emptyProtobufList(); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private java.lang.String id_; /** * string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return id_; } /** * string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(id_); } /** * string id = 1 [json_name = "id"]; * @param value The id to set. */ private void setId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); id_ = value; } /** * string id = 1 [json_name = "id"]; */ private void clearId() { id_ = getDefaultInstance().getId(); } /** * string id = 1 [json_name = "id"]; * @param value The bytes for id to set. */ private void setIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); id_ = value.toStringUtf8(); } public static final int TOPIC_FIELD_NUMBER = 2; private java.lang.String topic_; /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 2 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int DESC_FIELD_NUMBER = 3; private pbx.Model.TopicDesc desc_; /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ @java.lang.Override public boolean hasDesc() { return ((bitField0_ & 0x00000001) != 0); } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ @java.lang.Override public pbx.Model.TopicDesc getDesc() { return desc_ == null ? pbx.Model.TopicDesc.getDefaultInstance() : desc_; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ private void setDesc(pbx.Model.TopicDesc value) { value.getClass(); desc_ = value; bitField0_ |= 0x00000001; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeDesc(pbx.Model.TopicDesc value) { value.getClass(); if (desc_ != null && desc_ != pbx.Model.TopicDesc.getDefaultInstance()) { desc_ = pbx.Model.TopicDesc.newBuilder(desc_).mergeFrom(value).buildPartial(); } else { desc_ = value; } bitField0_ |= 0x00000001; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ private void clearDesc() { desc_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int SUB_FIELD_NUMBER = 4; private com.google.protobuf.Internal.ProtobufList sub_; /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ @java.lang.Override public java.util.List getSubList() { return sub_; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public java.util.List getSubOrBuilderList() { return sub_; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ @java.lang.Override public int getSubCount() { return sub_.size(); } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ @java.lang.Override public pbx.Model.TopicSub getSub(int index) { return sub_.get(index); } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public pbx.Model.TopicSubOrBuilder getSubOrBuilder( int index) { return sub_.get(index); } private void ensureSubIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = sub_; if (!tmp.isModifiable()) { sub_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ private void setSub( int index, pbx.Model.TopicSub value) { value.getClass(); ensureSubIsMutable(); sub_.set(index, value); } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ private void addSub(pbx.Model.TopicSub value) { value.getClass(); ensureSubIsMutable(); sub_.add(value); } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ private void addSub( int index, pbx.Model.TopicSub value) { value.getClass(); ensureSubIsMutable(); sub_.add(index, value); } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ private void addAllSub( java.lang.Iterable values) { ensureSubIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, sub_); } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ private void clearSub() { sub_ = emptyProtobufList(); } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ private void removeSub(int index) { ensureSubIsMutable(); sub_.remove(index); } public static final int DEL_FIELD_NUMBER = 5; private pbx.Model.DelValues del_; /** * .pbx.DelValues del = 5 [json_name = "del"]; */ @java.lang.Override public boolean hasDel() { return ((bitField0_ & 0x00000002) != 0); } /** * .pbx.DelValues del = 5 [json_name = "del"]; */ @java.lang.Override public pbx.Model.DelValues getDel() { return del_ == null ? pbx.Model.DelValues.getDefaultInstance() : del_; } /** * .pbx.DelValues del = 5 [json_name = "del"]; */ private void setDel(pbx.Model.DelValues value) { value.getClass(); del_ = value; bitField0_ |= 0x00000002; } /** * .pbx.DelValues del = 5 [json_name = "del"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeDel(pbx.Model.DelValues value) { value.getClass(); if (del_ != null && del_ != pbx.Model.DelValues.getDefaultInstance()) { del_ = pbx.Model.DelValues.newBuilder(del_).mergeFrom(value).buildPartial(); } else { del_ = value; } bitField0_ |= 0x00000002; } /** * .pbx.DelValues del = 5 [json_name = "del"]; */ private void clearDel() { del_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static final int TAGS_FIELD_NUMBER = 6; private com.google.protobuf.Internal.ProtobufList tags_; /** * repeated string tags = 6 [json_name = "tags"]; * @return A list containing the tags. */ @java.lang.Override public java.util.List getTagsList() { return tags_; } /** * repeated string tags = 6 [json_name = "tags"]; * @return The count of tags. */ @java.lang.Override public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ @java.lang.Override public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getTagsBytes(int index) { return com.google.protobuf.ByteString.copyFromUtf8( tags_.get(index)); } private void ensureTagsIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = tags_; if (!tmp.isModifiable()) { tags_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** * repeated string tags = 6 [json_name = "tags"]; * @param index The index to set the value at. * @param value The tags to set. */ private void setTags( int index, java.lang.String value) { java.lang.Class valueClass = value.getClass(); ensureTagsIsMutable(); tags_.set(index, value); } /** * repeated string tags = 6 [json_name = "tags"]; * @param value The tags to add. */ private void addTags( java.lang.String value) { java.lang.Class valueClass = value.getClass(); ensureTagsIsMutable(); tags_.add(value); } /** * repeated string tags = 6 [json_name = "tags"]; * @param values The tags to add. */ private void addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, tags_); } /** * repeated string tags = 6 [json_name = "tags"]; */ private void clearTags() { tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } /** * repeated string tags = 6 [json_name = "tags"]; * @param value The bytes of the tags to add. */ private void addTagsBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value.toStringUtf8()); } public static final int CRED_FIELD_NUMBER = 7; private com.google.protobuf.Internal.ProtobufList cred_; /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ @java.lang.Override public java.util.List getCredList() { return cred_; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public java.util.List getCredOrBuilderList() { return cred_; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ @java.lang.Override public int getCredCount() { return cred_.size(); } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ @java.lang.Override public pbx.Model.ServerCred getCred(int index) { return cred_.get(index); } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public pbx.Model.ServerCredOrBuilder getCredOrBuilder( int index) { return cred_.get(index); } private void ensureCredIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = cred_; if (!tmp.isModifiable()) { cred_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ private void setCred( int index, pbx.Model.ServerCred value) { value.getClass(); ensureCredIsMutable(); cred_.set(index, value); } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ private void addCred(pbx.Model.ServerCred value) { value.getClass(); ensureCredIsMutable(); cred_.add(value); } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ private void addCred( int index, pbx.Model.ServerCred value) { value.getClass(); ensureCredIsMutable(); cred_.add(index, value); } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ private void addAllCred( java.lang.Iterable values) { ensureCredIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, cred_); } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ private void clearCred() { cred_ = emptyProtobufList(); } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ private void removeCred(int index) { ensureCredIsMutable(); cred_.remove(index); } public static pbx.Model.ServerMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerMeta 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 pbx.Model.ServerMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerMeta 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 pbx.Model.ServerMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerMeta 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 pbx.Model.ServerMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerMeta 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 pbx.Model.ServerMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ServerMeta parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ServerMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerMeta 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(pbx.Model.ServerMeta prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * {meta} message
     * 
* * Protobuf type {@code pbx.ServerMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ServerMeta, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ServerMeta) pbx.Model.ServerMetaOrBuilder { // Construct using pbx.Model.ServerMeta.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { return instance.getId(); } /** * string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { return instance.getIdBytes(); } /** * string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { copyOnWrite(); instance.setId(value); return this; } /** * string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { copyOnWrite(); instance.clearId(); return this; } /** * string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdBytes(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ @java.lang.Override public boolean hasDesc() { return instance.hasDesc(); } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ @java.lang.Override public pbx.Model.TopicDesc getDesc() { return instance.getDesc(); } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ public Builder setDesc(pbx.Model.TopicDesc value) { copyOnWrite(); instance.setDesc(value); return this; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ public Builder setDesc( pbx.Model.TopicDesc.Builder builderForValue) { copyOnWrite(); instance.setDesc(builderForValue.build()); return this; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ public Builder mergeDesc(pbx.Model.TopicDesc value) { copyOnWrite(); instance.mergeDesc(value); return this; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ public Builder clearDesc() { copyOnWrite(); instance.clearDesc(); return this; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ @java.lang.Override public java.util.List getSubList() { return java.util.Collections.unmodifiableList( instance.getSubList()); } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ @java.lang.Override public int getSubCount() { return instance.getSubCount(); }/** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ @java.lang.Override public pbx.Model.TopicSub getSub(int index) { return instance.getSub(index); } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public Builder setSub( int index, pbx.Model.TopicSub value) { copyOnWrite(); instance.setSub(index, value); return this; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public Builder setSub( int index, pbx.Model.TopicSub.Builder builderForValue) { copyOnWrite(); instance.setSub(index, builderForValue.build()); return this; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public Builder addSub(pbx.Model.TopicSub value) { copyOnWrite(); instance.addSub(value); return this; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public Builder addSub( int index, pbx.Model.TopicSub value) { copyOnWrite(); instance.addSub(index, value); return this; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public Builder addSub( pbx.Model.TopicSub.Builder builderForValue) { copyOnWrite(); instance.addSub(builderForValue.build()); return this; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public Builder addSub( int index, pbx.Model.TopicSub.Builder builderForValue) { copyOnWrite(); instance.addSub(index, builderForValue.build()); return this; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public Builder addAllSub( java.lang.Iterable values) { copyOnWrite(); instance.addAllSub(values); return this; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public Builder clearSub() { copyOnWrite(); instance.clearSub(); return this; } /** * repeated .pbx.TopicSub sub = 4 [json_name = "sub"]; */ public Builder removeSub(int index) { copyOnWrite(); instance.removeSub(index); return this; } /** * .pbx.DelValues del = 5 [json_name = "del"]; */ @java.lang.Override public boolean hasDel() { return instance.hasDel(); } /** * .pbx.DelValues del = 5 [json_name = "del"]; */ @java.lang.Override public pbx.Model.DelValues getDel() { return instance.getDel(); } /** * .pbx.DelValues del = 5 [json_name = "del"]; */ public Builder setDel(pbx.Model.DelValues value) { copyOnWrite(); instance.setDel(value); return this; } /** * .pbx.DelValues del = 5 [json_name = "del"]; */ public Builder setDel( pbx.Model.DelValues.Builder builderForValue) { copyOnWrite(); instance.setDel(builderForValue.build()); return this; } /** * .pbx.DelValues del = 5 [json_name = "del"]; */ public Builder mergeDel(pbx.Model.DelValues value) { copyOnWrite(); instance.mergeDel(value); return this; } /** * .pbx.DelValues del = 5 [json_name = "del"]; */ public Builder clearDel() { copyOnWrite(); instance.clearDel(); return this; } /** * repeated string tags = 6 [json_name = "tags"]; * @return A list containing the tags. */ @java.lang.Override public java.util.List getTagsList() { return java.util.Collections.unmodifiableList( instance.getTagsList()); } /** * repeated string tags = 6 [json_name = "tags"]; * @return The count of tags. */ @java.lang.Override public int getTagsCount() { return instance.getTagsCount(); } /** * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ @java.lang.Override public java.lang.String getTags(int index) { return instance.getTags(index); } /** * repeated string tags = 6 [json_name = "tags"]; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getTagsBytes(int index) { return instance.getTagsBytes(index); } /** * repeated string tags = 6 [json_name = "tags"]; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { copyOnWrite(); instance.setTags(index, value); return this; } /** * repeated string tags = 6 [json_name = "tags"]; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { copyOnWrite(); instance.addTags(value); return this; } /** * repeated string tags = 6 [json_name = "tags"]; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { copyOnWrite(); instance.addAllTags(values); return this; } /** * repeated string tags = 6 [json_name = "tags"]; * @return This builder for chaining. */ public Builder clearTags() { copyOnWrite(); instance.clearTags(); return this; } /** * repeated string tags = 6 [json_name = "tags"]; * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.addTagsBytes(value); return this; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ @java.lang.Override public java.util.List getCredList() { return java.util.Collections.unmodifiableList( instance.getCredList()); } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ @java.lang.Override public int getCredCount() { return instance.getCredCount(); }/** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ @java.lang.Override public pbx.Model.ServerCred getCred(int index) { return instance.getCred(index); } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public Builder setCred( int index, pbx.Model.ServerCred value) { copyOnWrite(); instance.setCred(index, value); return this; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public Builder setCred( int index, pbx.Model.ServerCred.Builder builderForValue) { copyOnWrite(); instance.setCred(index, builderForValue.build()); return this; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public Builder addCred(pbx.Model.ServerCred value) { copyOnWrite(); instance.addCred(value); return this; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public Builder addCred( int index, pbx.Model.ServerCred value) { copyOnWrite(); instance.addCred(index, value); return this; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public Builder addCred( pbx.Model.ServerCred.Builder builderForValue) { copyOnWrite(); instance.addCred(builderForValue.build()); return this; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public Builder addCred( int index, pbx.Model.ServerCred.Builder builderForValue) { copyOnWrite(); instance.addCred(index, builderForValue.build()); return this; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public Builder addAllCred( java.lang.Iterable values) { copyOnWrite(); instance.addAllCred(values); return this; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public Builder clearCred() { copyOnWrite(); instance.clearCred(); return this; } /** * repeated .pbx.ServerCred cred = 7 [json_name = "cred"]; */ public Builder removeCred(int index) { copyOnWrite(); instance.removeCred(index); return this; } // @@protoc_insertion_point(builder_scope:pbx.ServerMeta) } @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 pbx.Model.ServerMeta(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "id_", "topic_", "desc_", "sub_", pbx.Model.TopicSub.class, "del_", "tags_", "cred_", pbx.Model.ServerCred.class, }; java.lang.String info = "\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0003\u0000\u0001\u0208\u0002\u0208" + "\u0003\u1009\u0000\u0004\u001b\u0005\u1009\u0001\u0006\u021a\u0007\u001b"; 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 (pbx.Model.ServerMeta.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:pbx.ServerMeta) private static final pbx.Model.ServerMeta DEFAULT_INSTANCE; static { ServerMeta defaultInstance = new ServerMeta(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ServerMeta.class, defaultInstance); } public static pbx.Model.ServerMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ServerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ServerInfo) com.google.protobuf.MessageLiteOrBuilder { /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * string from_user_id = 2 [json_name = "fromUserId"]; * @return The fromUserId. */ java.lang.String getFromUserId(); /** * string from_user_id = 2 [json_name = "fromUserId"]; * @return The bytes for fromUserId. */ com.google.protobuf.ByteString getFromUserIdBytes(); /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ int getWhatValue(); /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @return The what. */ pbx.Model.InfoNote getWhat(); /** * int32 seq_id = 4 [json_name = "seqId"]; * @return The seqId. */ int getSeqId(); /** * string src = 5 [json_name = "src"]; * @return The src. */ java.lang.String getSrc(); /** * string src = 5 [json_name = "src"]; * @return The bytes for src. */ com.google.protobuf.ByteString getSrcBytes(); /** * bytes content = 6 [json_name = "content"]; * @return The content. */ com.google.protobuf.ByteString getContent(); /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @return The enum numeric value on the wire for event. */ int getEventValue(); /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @return The event. */ pbx.Model.CallEvent getEvent(); /** * bytes payload = 8 [json_name = "payload"]; * @return The payload. */ com.google.protobuf.ByteString getPayload(); } /** *
   * {info} message: server-side copy of ClientNote with From and optional Src added.
   * 
* * Protobuf type {@code pbx.ServerInfo} */ public static final class ServerInfo extends com.google.protobuf.GeneratedMessageLite< ServerInfo, ServerInfo.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ServerInfo) ServerInfoOrBuilder { private ServerInfo() { topic_ = ""; fromUserId_ = ""; src_ = ""; content_ = com.google.protobuf.ByteString.EMPTY; payload_ = com.google.protobuf.ByteString.EMPTY; } public static final int TOPIC_FIELD_NUMBER = 1; private java.lang.String topic_; /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 1 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 1 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 1 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int FROM_USER_ID_FIELD_NUMBER = 2; private java.lang.String fromUserId_; /** * string from_user_id = 2 [json_name = "fromUserId"]; * @return The fromUserId. */ @java.lang.Override public java.lang.String getFromUserId() { return fromUserId_; } /** * string from_user_id = 2 [json_name = "fromUserId"]; * @return The bytes for fromUserId. */ @java.lang.Override public com.google.protobuf.ByteString getFromUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(fromUserId_); } /** * string from_user_id = 2 [json_name = "fromUserId"]; * @param value The fromUserId to set. */ private void setFromUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); fromUserId_ = value; } /** * string from_user_id = 2 [json_name = "fromUserId"]; */ private void clearFromUserId() { fromUserId_ = getDefaultInstance().getFromUserId(); } /** * string from_user_id = 2 [json_name = "fromUserId"]; * @param value The bytes for fromUserId to set. */ private void setFromUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); fromUserId_ = value.toStringUtf8(); } public static final int WHAT_FIELD_NUMBER = 3; private int what_; /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ @java.lang.Override public int getWhatValue() { return what_; } /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @return The what. */ @java.lang.Override public pbx.Model.InfoNote getWhat() { pbx.Model.InfoNote result = pbx.Model.InfoNote.forNumber(what_); return result == null ? pbx.Model.InfoNote.UNRECOGNIZED : result; } /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @param value The enum numeric value on the wire for what to set. */ private void setWhatValue(int value) { what_ = value; } /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @param value The what to set. */ private void setWhat(pbx.Model.InfoNote value) { what_ = value.getNumber(); } /** * .pbx.InfoNote what = 3 [json_name = "what"]; */ private void clearWhat() { what_ = 0; } public static final int SEQ_ID_FIELD_NUMBER = 4; private int seqId_; /** * int32 seq_id = 4 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return seqId_; } /** * int32 seq_id = 4 [json_name = "seqId"]; * @param value The seqId to set. */ private void setSeqId(int value) { seqId_ = value; } /** * int32 seq_id = 4 [json_name = "seqId"]; */ private void clearSeqId() { seqId_ = 0; } public static final int SRC_FIELD_NUMBER = 5; private java.lang.String src_; /** * string src = 5 [json_name = "src"]; * @return The src. */ @java.lang.Override public java.lang.String getSrc() { return src_; } /** * string src = 5 [json_name = "src"]; * @return The bytes for src. */ @java.lang.Override public com.google.protobuf.ByteString getSrcBytes() { return com.google.protobuf.ByteString.copyFromUtf8(src_); } /** * string src = 5 [json_name = "src"]; * @param value The src to set. */ private void setSrc( java.lang.String value) { java.lang.Class valueClass = value.getClass(); src_ = value; } /** * string src = 5 [json_name = "src"]; */ private void clearSrc() { src_ = getDefaultInstance().getSrc(); } /** * string src = 5 [json_name = "src"]; * @param value The bytes for src to set. */ private void setSrcBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); src_ = value.toStringUtf8(); } public static final int CONTENT_FIELD_NUMBER = 6; private com.google.protobuf.ByteString content_; /** * bytes content = 6 [json_name = "content"]; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } /** * bytes content = 6 [json_name = "content"]; * @param value The content to set. */ private void setContent(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); content_ = value; } /** * bytes content = 6 [json_name = "content"]; */ private void clearContent() { content_ = getDefaultInstance().getContent(); } public static final int EVENT_FIELD_NUMBER = 7; private int event_; /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @return The enum numeric value on the wire for event. */ @java.lang.Override public int getEventValue() { return event_; } /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @return The event. */ @java.lang.Override public pbx.Model.CallEvent getEvent() { pbx.Model.CallEvent result = pbx.Model.CallEvent.forNumber(event_); return result == null ? pbx.Model.CallEvent.UNRECOGNIZED : result; } /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @param value The enum numeric value on the wire for event to set. */ private void setEventValue(int value) { event_ = value; } /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @param value The event to set. */ private void setEvent(pbx.Model.CallEvent value) { event_ = value.getNumber(); } /** * .pbx.CallEvent event = 7 [json_name = "event"]; */ private void clearEvent() { event_ = 0; } public static final int PAYLOAD_FIELD_NUMBER = 8; private com.google.protobuf.ByteString payload_; /** * bytes payload = 8 [json_name = "payload"]; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** * bytes payload = 8 [json_name = "payload"]; * @param value The payload to set. */ private void setPayload(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); payload_ = value; } /** * bytes payload = 8 [json_name = "payload"]; */ private void clearPayload() { payload_ = getDefaultInstance().getPayload(); } public static pbx.Model.ServerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerInfo 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 pbx.Model.ServerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerInfo 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 pbx.Model.ServerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerInfo 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 pbx.Model.ServerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerInfo 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 pbx.Model.ServerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ServerInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ServerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerInfo 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(pbx.Model.ServerInfo prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * {info} message: server-side copy of ClientNote with From and optional Src added.
     * 
* * Protobuf type {@code pbx.ServerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ServerInfo, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ServerInfo) pbx.Model.ServerInfoOrBuilder { // Construct using pbx.Model.ServerInfo.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string topic = 1 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 1 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 1 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 1 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 1 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * string from_user_id = 2 [json_name = "fromUserId"]; * @return The fromUserId. */ @java.lang.Override public java.lang.String getFromUserId() { return instance.getFromUserId(); } /** * string from_user_id = 2 [json_name = "fromUserId"]; * @return The bytes for fromUserId. */ @java.lang.Override public com.google.protobuf.ByteString getFromUserIdBytes() { return instance.getFromUserIdBytes(); } /** * string from_user_id = 2 [json_name = "fromUserId"]; * @param value The fromUserId to set. * @return This builder for chaining. */ public Builder setFromUserId( java.lang.String value) { copyOnWrite(); instance.setFromUserId(value); return this; } /** * string from_user_id = 2 [json_name = "fromUserId"]; * @return This builder for chaining. */ public Builder clearFromUserId() { copyOnWrite(); instance.clearFromUserId(); return this; } /** * string from_user_id = 2 [json_name = "fromUserId"]; * @param value The bytes for fromUserId to set. * @return This builder for chaining. */ public Builder setFromUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setFromUserIdBytes(value); return this; } /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @return The enum numeric value on the wire for what. */ @java.lang.Override public int getWhatValue() { return instance.getWhatValue(); } /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @param value The what to set. * @return This builder for chaining. */ public Builder setWhatValue(int value) { copyOnWrite(); instance.setWhatValue(value); return this; } /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @return The what. */ @java.lang.Override public pbx.Model.InfoNote getWhat() { return instance.getWhat(); } /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @param value The enum numeric value on the wire for what to set. * @return This builder for chaining. */ public Builder setWhat(pbx.Model.InfoNote value) { copyOnWrite(); instance.setWhat(value); return this; } /** * .pbx.InfoNote what = 3 [json_name = "what"]; * @return This builder for chaining. */ public Builder clearWhat() { copyOnWrite(); instance.clearWhat(); return this; } /** * int32 seq_id = 4 [json_name = "seqId"]; * @return The seqId. */ @java.lang.Override public int getSeqId() { return instance.getSeqId(); } /** * int32 seq_id = 4 [json_name = "seqId"]; * @param value The seqId to set. * @return This builder for chaining. */ public Builder setSeqId(int value) { copyOnWrite(); instance.setSeqId(value); return this; } /** * int32 seq_id = 4 [json_name = "seqId"]; * @return This builder for chaining. */ public Builder clearSeqId() { copyOnWrite(); instance.clearSeqId(); return this; } /** * string src = 5 [json_name = "src"]; * @return The src. */ @java.lang.Override public java.lang.String getSrc() { return instance.getSrc(); } /** * string src = 5 [json_name = "src"]; * @return The bytes for src. */ @java.lang.Override public com.google.protobuf.ByteString getSrcBytes() { return instance.getSrcBytes(); } /** * string src = 5 [json_name = "src"]; * @param value The src to set. * @return This builder for chaining. */ public Builder setSrc( java.lang.String value) { copyOnWrite(); instance.setSrc(value); return this; } /** * string src = 5 [json_name = "src"]; * @return This builder for chaining. */ public Builder clearSrc() { copyOnWrite(); instance.clearSrc(); return this; } /** * string src = 5 [json_name = "src"]; * @param value The bytes for src to set. * @return This builder for chaining. */ public Builder setSrcBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSrcBytes(value); return this; } /** * bytes content = 6 [json_name = "content"]; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return instance.getContent(); } /** * bytes content = 6 [json_name = "content"]; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setContent(value); return this; } /** * bytes content = 6 [json_name = "content"]; * @return This builder for chaining. */ public Builder clearContent() { copyOnWrite(); instance.clearContent(); return this; } /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @return The enum numeric value on the wire for event. */ @java.lang.Override public int getEventValue() { return instance.getEventValue(); } /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @param value The event to set. * @return This builder for chaining. */ public Builder setEventValue(int value) { copyOnWrite(); instance.setEventValue(value); return this; } /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @return The event. */ @java.lang.Override public pbx.Model.CallEvent getEvent() { return instance.getEvent(); } /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @param value The enum numeric value on the wire for event to set. * @return This builder for chaining. */ public Builder setEvent(pbx.Model.CallEvent value) { copyOnWrite(); instance.setEvent(value); return this; } /** * .pbx.CallEvent event = 7 [json_name = "event"]; * @return This builder for chaining. */ public Builder clearEvent() { copyOnWrite(); instance.clearEvent(); return this; } /** * bytes payload = 8 [json_name = "payload"]; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return instance.getPayload(); } /** * bytes payload = 8 [json_name = "payload"]; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPayload(value); return this; } /** * bytes payload = 8 [json_name = "payload"]; * @return This builder for chaining. */ public Builder clearPayload() { copyOnWrite(); instance.clearPayload(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ServerInfo) } @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 pbx.Model.ServerInfo(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "topic_", "fromUserId_", "what_", "seqId_", "src_", "content_", "event_", "payload_", }; java.lang.String info = "\u0000\b\u0000\u0000\u0001\b\b\u0000\u0000\u0000\u0001\u0208\u0002\u0208\u0003\f" + "\u0004\u0004\u0005\u0208\u0006\n\u0007\f\b\n"; 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 (pbx.Model.ServerInfo.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:pbx.ServerInfo) private static final pbx.Model.ServerInfo DEFAULT_INSTANCE; static { ServerInfo defaultInstance = new ServerInfo(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ServerInfo.class, defaultInstance); } public static pbx.Model.ServerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ServerMsgOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ServerMsg) com.google.protobuf.MessageLiteOrBuilder { /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; * @return Whether the ctrl field is set. */ boolean hasCtrl(); /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; * @return The ctrl. */ pbx.Model.ServerCtrl getCtrl(); /** * .pbx.ServerData data = 2 [json_name = "data"]; * @return Whether the data field is set. */ boolean hasData(); /** * .pbx.ServerData data = 2 [json_name = "data"]; * @return The data. */ pbx.Model.ServerData getData(); /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; * @return Whether the pres field is set. */ boolean hasPres(); /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; * @return The pres. */ pbx.Model.ServerPres getPres(); /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; * @return Whether the meta field is set. */ boolean hasMeta(); /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; * @return The meta. */ pbx.Model.ServerMeta getMeta(); /** * .pbx.ServerInfo info = 5 [json_name = "info"]; * @return Whether the info field is set. */ boolean hasInfo(); /** * .pbx.ServerInfo info = 5 [json_name = "info"]; * @return The info. */ pbx.Model.ServerInfo getInfo(); /** *
     * When response is sent to Root, send internal topic name too.
     * 
* * string topic = 6 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** *
     * When response is sent to Root, send internal topic name too.
     * 
* * string topic = 6 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); public pbx.Model.ServerMsg.MessageCase getMessageCase(); } /** *
   * Cumulative message
   * 
* * Protobuf type {@code pbx.ServerMsg} */ public static final class ServerMsg extends com.google.protobuf.GeneratedMessageLite< ServerMsg, ServerMsg.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ServerMsg) ServerMsgOrBuilder { private ServerMsg() { topic_ = ""; } private int messageCase_ = 0; private java.lang.Object message_; public enum MessageCase { CTRL(1), DATA(2), PRES(3), META(4), INFO(5), MESSAGE_NOT_SET(0); private final int value; private MessageCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MessageCase valueOf(int value) { return forNumber(value); } public static MessageCase forNumber(int value) { switch (value) { case 1: return CTRL; case 2: return DATA; case 3: return PRES; case 4: return META; case 5: return INFO; case 0: return MESSAGE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; @java.lang.Override public MessageCase getMessageCase() { return MessageCase.forNumber( messageCase_); } private void clearMessage() { messageCase_ = 0; message_ = null; } public static final int CTRL_FIELD_NUMBER = 1; /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ @java.lang.Override public boolean hasCtrl() { return messageCase_ == 1; } /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ @java.lang.Override public pbx.Model.ServerCtrl getCtrl() { if (messageCase_ == 1) { return (pbx.Model.ServerCtrl) message_; } return pbx.Model.ServerCtrl.getDefaultInstance(); } /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ private void setCtrl(pbx.Model.ServerCtrl value) { value.getClass(); message_ = value; messageCase_ = 1; } /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ private void mergeCtrl(pbx.Model.ServerCtrl value) { value.getClass(); if (messageCase_ == 1 && message_ != pbx.Model.ServerCtrl.getDefaultInstance()) { message_ = pbx.Model.ServerCtrl.newBuilder((pbx.Model.ServerCtrl) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 1; } /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ private void clearCtrl() { if (messageCase_ == 1) { messageCase_ = 0; message_ = null; } } public static final int DATA_FIELD_NUMBER = 2; /** * .pbx.ServerData data = 2 [json_name = "data"]; */ @java.lang.Override public boolean hasData() { return messageCase_ == 2; } /** * .pbx.ServerData data = 2 [json_name = "data"]; */ @java.lang.Override public pbx.Model.ServerData getData() { if (messageCase_ == 2) { return (pbx.Model.ServerData) message_; } return pbx.Model.ServerData.getDefaultInstance(); } /** * .pbx.ServerData data = 2 [json_name = "data"]; */ private void setData(pbx.Model.ServerData value) { value.getClass(); message_ = value; messageCase_ = 2; } /** * .pbx.ServerData data = 2 [json_name = "data"]; */ private void mergeData(pbx.Model.ServerData value) { value.getClass(); if (messageCase_ == 2 && message_ != pbx.Model.ServerData.getDefaultInstance()) { message_ = pbx.Model.ServerData.newBuilder((pbx.Model.ServerData) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 2; } /** * .pbx.ServerData data = 2 [json_name = "data"]; */ private void clearData() { if (messageCase_ == 2) { messageCase_ = 0; message_ = null; } } public static final int PRES_FIELD_NUMBER = 3; /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ @java.lang.Override public boolean hasPres() { return messageCase_ == 3; } /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ @java.lang.Override public pbx.Model.ServerPres getPres() { if (messageCase_ == 3) { return (pbx.Model.ServerPres) message_; } return pbx.Model.ServerPres.getDefaultInstance(); } /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ private void setPres(pbx.Model.ServerPres value) { value.getClass(); message_ = value; messageCase_ = 3; } /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ private void mergePres(pbx.Model.ServerPres value) { value.getClass(); if (messageCase_ == 3 && message_ != pbx.Model.ServerPres.getDefaultInstance()) { message_ = pbx.Model.ServerPres.newBuilder((pbx.Model.ServerPres) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 3; } /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ private void clearPres() { if (messageCase_ == 3) { messageCase_ = 0; message_ = null; } } public static final int META_FIELD_NUMBER = 4; /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ @java.lang.Override public boolean hasMeta() { return messageCase_ == 4; } /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ @java.lang.Override public pbx.Model.ServerMeta getMeta() { if (messageCase_ == 4) { return (pbx.Model.ServerMeta) message_; } return pbx.Model.ServerMeta.getDefaultInstance(); } /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ private void setMeta(pbx.Model.ServerMeta value) { value.getClass(); message_ = value; messageCase_ = 4; } /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ private void mergeMeta(pbx.Model.ServerMeta value) { value.getClass(); if (messageCase_ == 4 && message_ != pbx.Model.ServerMeta.getDefaultInstance()) { message_ = pbx.Model.ServerMeta.newBuilder((pbx.Model.ServerMeta) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 4; } /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ private void clearMeta() { if (messageCase_ == 4) { messageCase_ = 0; message_ = null; } } public static final int INFO_FIELD_NUMBER = 5; /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ @java.lang.Override public boolean hasInfo() { return messageCase_ == 5; } /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ @java.lang.Override public pbx.Model.ServerInfo getInfo() { if (messageCase_ == 5) { return (pbx.Model.ServerInfo) message_; } return pbx.Model.ServerInfo.getDefaultInstance(); } /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ private void setInfo(pbx.Model.ServerInfo value) { value.getClass(); message_ = value; messageCase_ = 5; } /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ private void mergeInfo(pbx.Model.ServerInfo value) { value.getClass(); if (messageCase_ == 5 && message_ != pbx.Model.ServerInfo.getDefaultInstance()) { message_ = pbx.Model.ServerInfo.newBuilder((pbx.Model.ServerInfo) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } messageCase_ = 5; } /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ private void clearInfo() { if (messageCase_ == 5) { messageCase_ = 0; message_ = null; } } public static final int TOPIC_FIELD_NUMBER = 6; private java.lang.String topic_; /** *
     * When response is sent to Root, send internal topic name too.
     * 
* * string topic = 6 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** *
     * When response is sent to Root, send internal topic name too.
     * 
* * string topic = 6 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** *
     * When response is sent to Root, send internal topic name too.
     * 
* * string topic = 6 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** *
     * When response is sent to Root, send internal topic name too.
     * 
* * string topic = 6 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** *
     * When response is sent to Root, send internal topic name too.
     * 
* * string topic = 6 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static pbx.Model.ServerMsg parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerMsg 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 pbx.Model.ServerMsg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerMsg 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 pbx.Model.ServerMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerMsg 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 pbx.Model.ServerMsg parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerMsg 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 pbx.Model.ServerMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ServerMsg parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ServerMsg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerMsg 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(pbx.Model.ServerMsg prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Cumulative message
     * 
* * Protobuf type {@code pbx.ServerMsg} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ServerMsg, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ServerMsg) pbx.Model.ServerMsgOrBuilder { // Construct using pbx.Model.ServerMsg.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @java.lang.Override public MessageCase getMessageCase() { return instance.getMessageCase(); } public Builder clearMessage() { copyOnWrite(); instance.clearMessage(); return this; } /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ @java.lang.Override public boolean hasCtrl() { return instance.hasCtrl(); } /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ @java.lang.Override public pbx.Model.ServerCtrl getCtrl() { return instance.getCtrl(); } /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ public Builder setCtrl(pbx.Model.ServerCtrl value) { copyOnWrite(); instance.setCtrl(value); return this; } /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ public Builder setCtrl( pbx.Model.ServerCtrl.Builder builderForValue) { copyOnWrite(); instance.setCtrl(builderForValue.build()); return this; } /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ public Builder mergeCtrl(pbx.Model.ServerCtrl value) { copyOnWrite(); instance.mergeCtrl(value); return this; } /** * .pbx.ServerCtrl ctrl = 1 [json_name = "ctrl"]; */ public Builder clearCtrl() { copyOnWrite(); instance.clearCtrl(); return this; } /** * .pbx.ServerData data = 2 [json_name = "data"]; */ @java.lang.Override public boolean hasData() { return instance.hasData(); } /** * .pbx.ServerData data = 2 [json_name = "data"]; */ @java.lang.Override public pbx.Model.ServerData getData() { return instance.getData(); } /** * .pbx.ServerData data = 2 [json_name = "data"]; */ public Builder setData(pbx.Model.ServerData value) { copyOnWrite(); instance.setData(value); return this; } /** * .pbx.ServerData data = 2 [json_name = "data"]; */ public Builder setData( pbx.Model.ServerData.Builder builderForValue) { copyOnWrite(); instance.setData(builderForValue.build()); return this; } /** * .pbx.ServerData data = 2 [json_name = "data"]; */ public Builder mergeData(pbx.Model.ServerData value) { copyOnWrite(); instance.mergeData(value); return this; } /** * .pbx.ServerData data = 2 [json_name = "data"]; */ public Builder clearData() { copyOnWrite(); instance.clearData(); return this; } /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ @java.lang.Override public boolean hasPres() { return instance.hasPres(); } /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ @java.lang.Override public pbx.Model.ServerPres getPres() { return instance.getPres(); } /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ public Builder setPres(pbx.Model.ServerPres value) { copyOnWrite(); instance.setPres(value); return this; } /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ public Builder setPres( pbx.Model.ServerPres.Builder builderForValue) { copyOnWrite(); instance.setPres(builderForValue.build()); return this; } /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ public Builder mergePres(pbx.Model.ServerPres value) { copyOnWrite(); instance.mergePres(value); return this; } /** * .pbx.ServerPres pres = 3 [json_name = "pres"]; */ public Builder clearPres() { copyOnWrite(); instance.clearPres(); return this; } /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ @java.lang.Override public boolean hasMeta() { return instance.hasMeta(); } /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ @java.lang.Override public pbx.Model.ServerMeta getMeta() { return instance.getMeta(); } /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ public Builder setMeta(pbx.Model.ServerMeta value) { copyOnWrite(); instance.setMeta(value); return this; } /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ public Builder setMeta( pbx.Model.ServerMeta.Builder builderForValue) { copyOnWrite(); instance.setMeta(builderForValue.build()); return this; } /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ public Builder mergeMeta(pbx.Model.ServerMeta value) { copyOnWrite(); instance.mergeMeta(value); return this; } /** * .pbx.ServerMeta meta = 4 [json_name = "meta"]; */ public Builder clearMeta() { copyOnWrite(); instance.clearMeta(); return this; } /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ @java.lang.Override public boolean hasInfo() { return instance.hasInfo(); } /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ @java.lang.Override public pbx.Model.ServerInfo getInfo() { return instance.getInfo(); } /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ public Builder setInfo(pbx.Model.ServerInfo value) { copyOnWrite(); instance.setInfo(value); return this; } /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ public Builder setInfo( pbx.Model.ServerInfo.Builder builderForValue) { copyOnWrite(); instance.setInfo(builderForValue.build()); return this; } /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ public Builder mergeInfo(pbx.Model.ServerInfo value) { copyOnWrite(); instance.mergeInfo(value); return this; } /** * .pbx.ServerInfo info = 5 [json_name = "info"]; */ public Builder clearInfo() { copyOnWrite(); instance.clearInfo(); return this; } /** *
       * When response is sent to Root, send internal topic name too.
       * 
* * string topic = 6 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** *
       * When response is sent to Root, send internal topic name too.
       * 
* * string topic = 6 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** *
       * When response is sent to Root, send internal topic name too.
       * 
* * string topic = 6 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** *
       * When response is sent to Root, send internal topic name too.
       * 
* * string topic = 6 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** *
       * When response is sent to Root, send internal topic name too.
       * 
* * string topic = 6 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.ServerMsg) } @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 pbx.Model.ServerMsg(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "message_", "messageCase_", pbx.Model.ServerCtrl.class, pbx.Model.ServerData.class, pbx.Model.ServerPres.class, pbx.Model.ServerMeta.class, pbx.Model.ServerInfo.class, "topic_", }; java.lang.String info = "\u0000\u0006\u0001\u0000\u0001\u0006\u0006\u0000\u0000\u0000\u0001<\u0000\u0002<" + "\u0000\u0003<\u0000\u0004<\u0000\u0005<\u0000\u0006\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 (pbx.Model.ServerMsg.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:pbx.ServerMsg) private static final pbx.Model.ServerMsg DEFAULT_INSTANCE; static { ServerMsg defaultInstance = new ServerMsg(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ServerMsg.class, defaultInstance); } public static pbx.Model.ServerMsg getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ServerRespOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ServerResp) com.google.protobuf.MessageLiteOrBuilder { /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The status. */ pbx.Model.RespCode getStatus(); /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; * @return Whether the srvmsg field is set. */ boolean hasSrvmsg(); /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; * @return The srvmsg. */ pbx.Model.ServerMsg getSrvmsg(); /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; * @return Whether the clmsg field is set. */ boolean hasClmsg(); /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; * @return The clmsg. */ pbx.Model.ClientMsg getClmsg(); } /** * Protobuf type {@code pbx.ServerResp} */ public static final class ServerResp extends com.google.protobuf.GeneratedMessageLite< ServerResp, ServerResp.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ServerResp) ServerRespOrBuilder { private ServerResp() { } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The status. */ @java.lang.Override public pbx.Model.RespCode getStatus() { pbx.Model.RespCode result = pbx.Model.RespCode.forNumber(status_); return result == null ? pbx.Model.RespCode.UNRECOGNIZED : result; } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @param value The enum numeric value on the wire for status to set. */ private void setStatusValue(int value) { status_ = value; } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @param value The status to set. */ private void setStatus(pbx.Model.RespCode value) { status_ = value.getNumber(); } /** * .pbx.RespCode status = 1 [json_name = "status"]; */ private void clearStatus() { status_ = 0; } public static final int SRVMSG_FIELD_NUMBER = 2; private pbx.Model.ServerMsg srvmsg_; /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ @java.lang.Override public boolean hasSrvmsg() { return ((bitField0_ & 0x00000001) != 0); } /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ @java.lang.Override public pbx.Model.ServerMsg getSrvmsg() { return srvmsg_ == null ? pbx.Model.ServerMsg.getDefaultInstance() : srvmsg_; } /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ private void setSrvmsg(pbx.Model.ServerMsg value) { value.getClass(); srvmsg_ = value; bitField0_ |= 0x00000001; } /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeSrvmsg(pbx.Model.ServerMsg value) { value.getClass(); if (srvmsg_ != null && srvmsg_ != pbx.Model.ServerMsg.getDefaultInstance()) { srvmsg_ = pbx.Model.ServerMsg.newBuilder(srvmsg_).mergeFrom(value).buildPartial(); } else { srvmsg_ = value; } bitField0_ |= 0x00000001; } /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ private void clearSrvmsg() { srvmsg_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int CLMSG_FIELD_NUMBER = 3; private pbx.Model.ClientMsg clmsg_; /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ @java.lang.Override public boolean hasClmsg() { return ((bitField0_ & 0x00000002) != 0); } /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ @java.lang.Override public pbx.Model.ClientMsg getClmsg() { return clmsg_ == null ? pbx.Model.ClientMsg.getDefaultInstance() : clmsg_; } /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ private void setClmsg(pbx.Model.ClientMsg value) { value.getClass(); clmsg_ = value; bitField0_ |= 0x00000002; } /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeClmsg(pbx.Model.ClientMsg value) { value.getClass(); if (clmsg_ != null && clmsg_ != pbx.Model.ClientMsg.getDefaultInstance()) { clmsg_ = pbx.Model.ClientMsg.newBuilder(clmsg_).mergeFrom(value).buildPartial(); } else { clmsg_ = value; } bitField0_ |= 0x00000002; } /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ private void clearClmsg() { clmsg_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static pbx.Model.ServerResp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerResp 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 pbx.Model.ServerResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerResp 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 pbx.Model.ServerResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ServerResp 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 pbx.Model.ServerResp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerResp 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 pbx.Model.ServerResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ServerResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ServerResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ServerResp 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(pbx.Model.ServerResp prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.ServerResp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ServerResp, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ServerResp) pbx.Model.ServerRespOrBuilder { // Construct using pbx.Model.ServerResp.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return instance.getStatusValue(); } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { copyOnWrite(); instance.setStatusValue(value); return this; } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The status. */ @java.lang.Override public pbx.Model.RespCode getStatus() { return instance.getStatus(); } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatus(pbx.Model.RespCode value) { copyOnWrite(); instance.setStatus(value); return this; } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return This builder for chaining. */ public Builder clearStatus() { copyOnWrite(); instance.clearStatus(); return this; } /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ @java.lang.Override public boolean hasSrvmsg() { return instance.hasSrvmsg(); } /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ @java.lang.Override public pbx.Model.ServerMsg getSrvmsg() { return instance.getSrvmsg(); } /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ public Builder setSrvmsg(pbx.Model.ServerMsg value) { copyOnWrite(); instance.setSrvmsg(value); return this; } /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ public Builder setSrvmsg( pbx.Model.ServerMsg.Builder builderForValue) { copyOnWrite(); instance.setSrvmsg(builderForValue.build()); return this; } /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ public Builder mergeSrvmsg(pbx.Model.ServerMsg value) { copyOnWrite(); instance.mergeSrvmsg(value); return this; } /** * .pbx.ServerMsg srvmsg = 2 [json_name = "srvmsg"]; */ public Builder clearSrvmsg() { copyOnWrite(); instance.clearSrvmsg(); return this; } /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ @java.lang.Override public boolean hasClmsg() { return instance.hasClmsg(); } /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ @java.lang.Override public pbx.Model.ClientMsg getClmsg() { return instance.getClmsg(); } /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ public Builder setClmsg(pbx.Model.ClientMsg value) { copyOnWrite(); instance.setClmsg(value); return this; } /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ public Builder setClmsg( pbx.Model.ClientMsg.Builder builderForValue) { copyOnWrite(); instance.setClmsg(builderForValue.build()); return this; } /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ public Builder mergeClmsg(pbx.Model.ClientMsg value) { copyOnWrite(); instance.mergeClmsg(value); return this; } /** * .pbx.ClientMsg clmsg = 3 [json_name = "clmsg"]; */ public Builder clearClmsg() { copyOnWrite(); instance.clearClmsg(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ServerResp) } @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 pbx.Model.ServerResp(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "status_", "srvmsg_", "clmsg_", }; java.lang.String info = "\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\f\u0002\u1009" + "\u0000\u0003\u1009\u0001"; 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 (pbx.Model.ServerResp.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:pbx.ServerResp) private static final pbx.Model.ServerResp DEFAULT_INSTANCE; static { ServerResp defaultInstance = new ServerResp(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ServerResp.class, defaultInstance); } public static pbx.Model.ServerResp getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface SessionOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.Session) com.google.protobuf.MessageLiteOrBuilder { /** * string session_id = 1 [json_name = "sessionId"]; * @return The sessionId. */ java.lang.String getSessionId(); /** * string session_id = 1 [json_name = "sessionId"]; * @return The bytes for sessionId. */ com.google.protobuf.ByteString getSessionIdBytes(); /** * string user_id = 2 [json_name = "userId"]; * @return The userId. */ java.lang.String getUserId(); /** * string user_id = 2 [json_name = "userId"]; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The enum numeric value on the wire for authLevel. */ int getAuthLevelValue(); /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The authLevel. */ pbx.Model.AuthLevel getAuthLevel(); /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @return The remoteAddr. */ java.lang.String getRemoteAddr(); /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @return The bytes for remoteAddr. */ com.google.protobuf.ByteString getRemoteAddrBytes(); /** * string user_agent = 5 [json_name = "userAgent"]; * @return The userAgent. */ java.lang.String getUserAgent(); /** * string user_agent = 5 [json_name = "userAgent"]; * @return The bytes for userAgent. */ com.google.protobuf.ByteString getUserAgentBytes(); /** * string device_id = 6 [json_name = "deviceId"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** * string device_id = 6 [json_name = "deviceId"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** * string language = 7 [json_name = "language"]; * @return The language. */ java.lang.String getLanguage(); /** * string language = 7 [json_name = "language"]; * @return The bytes for language. */ com.google.protobuf.ByteString getLanguageBytes(); } /** *
   * Context message
   * 
* * Protobuf type {@code pbx.Session} */ public static final class Session extends com.google.protobuf.GeneratedMessageLite< Session, Session.Builder> implements // @@protoc_insertion_point(message_implements:pbx.Session) SessionOrBuilder { private Session() { sessionId_ = ""; userId_ = ""; remoteAddr_ = ""; userAgent_ = ""; deviceId_ = ""; language_ = ""; } public static final int SESSION_ID_FIELD_NUMBER = 1; private java.lang.String sessionId_; /** * string session_id = 1 [json_name = "sessionId"]; * @return The sessionId. */ @java.lang.Override public java.lang.String getSessionId() { return sessionId_; } /** * string session_id = 1 [json_name = "sessionId"]; * @return The bytes for sessionId. */ @java.lang.Override public com.google.protobuf.ByteString getSessionIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(sessionId_); } /** * string session_id = 1 [json_name = "sessionId"]; * @param value The sessionId to set. */ private void setSessionId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); sessionId_ = value; } /** * string session_id = 1 [json_name = "sessionId"]; */ private void clearSessionId() { sessionId_ = getDefaultInstance().getSessionId(); } /** * string session_id = 1 [json_name = "sessionId"]; * @param value The bytes for sessionId to set. */ private void setSessionIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); sessionId_ = value.toStringUtf8(); } public static final int USER_ID_FIELD_NUMBER = 2; private java.lang.String userId_; /** * string user_id = 2 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return userId_; } /** * string user_id = 2 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userId_); } /** * string user_id = 2 [json_name = "userId"]; * @param value The userId to set. */ private void setUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); userId_ = value; } /** * string user_id = 2 [json_name = "userId"]; */ private void clearUserId() { userId_ = getDefaultInstance().getUserId(); } /** * string user_id = 2 [json_name = "userId"]; * @param value The bytes for userId to set. */ private void setUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userId_ = value.toStringUtf8(); } public static final int AUTH_LEVEL_FIELD_NUMBER = 3; private int authLevel_; /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The enum numeric value on the wire for authLevel. */ @java.lang.Override public int getAuthLevelValue() { return authLevel_; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The authLevel. */ @java.lang.Override public pbx.Model.AuthLevel getAuthLevel() { pbx.Model.AuthLevel result = pbx.Model.AuthLevel.forNumber(authLevel_); return result == null ? pbx.Model.AuthLevel.UNRECOGNIZED : result; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @param value The enum numeric value on the wire for authLevel to set. */ private void setAuthLevelValue(int value) { authLevel_ = value; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @param value The authLevel to set. */ private void setAuthLevel(pbx.Model.AuthLevel value) { authLevel_ = value.getNumber(); } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; */ private void clearAuthLevel() { authLevel_ = 0; } public static final int REMOTE_ADDR_FIELD_NUMBER = 4; private java.lang.String remoteAddr_; /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @return The remoteAddr. */ @java.lang.Override public java.lang.String getRemoteAddr() { return remoteAddr_; } /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @return The bytes for remoteAddr. */ @java.lang.Override public com.google.protobuf.ByteString getRemoteAddrBytes() { return com.google.protobuf.ByteString.copyFromUtf8(remoteAddr_); } /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @param value The remoteAddr to set. */ private void setRemoteAddr( java.lang.String value) { java.lang.Class valueClass = value.getClass(); remoteAddr_ = value; } /** * string remote_addr = 4 [json_name = "remoteAddr"]; */ private void clearRemoteAddr() { remoteAddr_ = getDefaultInstance().getRemoteAddr(); } /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @param value The bytes for remoteAddr to set. */ private void setRemoteAddrBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); remoteAddr_ = value.toStringUtf8(); } public static final int USER_AGENT_FIELD_NUMBER = 5; private java.lang.String userAgent_; /** * string user_agent = 5 [json_name = "userAgent"]; * @return The userAgent. */ @java.lang.Override public java.lang.String getUserAgent() { return userAgent_; } /** * string user_agent = 5 [json_name = "userAgent"]; * @return The bytes for userAgent. */ @java.lang.Override public com.google.protobuf.ByteString getUserAgentBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userAgent_); } /** * string user_agent = 5 [json_name = "userAgent"]; * @param value The userAgent to set. */ private void setUserAgent( java.lang.String value) { java.lang.Class valueClass = value.getClass(); userAgent_ = value; } /** * string user_agent = 5 [json_name = "userAgent"]; */ private void clearUserAgent() { userAgent_ = getDefaultInstance().getUserAgent(); } /** * string user_agent = 5 [json_name = "userAgent"]; * @param value The bytes for userAgent to set. */ private void setUserAgentBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userAgent_ = value.toStringUtf8(); } public static final int DEVICE_ID_FIELD_NUMBER = 6; private java.lang.String deviceId_; /** * string device_id = 6 [json_name = "deviceId"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { return deviceId_; } /** * string device_id = 6 [json_name = "deviceId"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(deviceId_); } /** * string device_id = 6 [json_name = "deviceId"]; * @param value The deviceId to set. */ private void setDeviceId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); deviceId_ = value; } /** * string device_id = 6 [json_name = "deviceId"]; */ private void clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); } /** * string device_id = 6 [json_name = "deviceId"]; * @param value The bytes for deviceId to set. */ private void setDeviceIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); deviceId_ = value.toStringUtf8(); } public static final int LANGUAGE_FIELD_NUMBER = 7; private java.lang.String language_; /** * string language = 7 [json_name = "language"]; * @return The language. */ @java.lang.Override public java.lang.String getLanguage() { return language_; } /** * string language = 7 [json_name = "language"]; * @return The bytes for language. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageBytes() { return com.google.protobuf.ByteString.copyFromUtf8(language_); } /** * string language = 7 [json_name = "language"]; * @param value The language to set. */ private void setLanguage( java.lang.String value) { java.lang.Class valueClass = value.getClass(); language_ = value; } /** * string language = 7 [json_name = "language"]; */ private void clearLanguage() { language_ = getDefaultInstance().getLanguage(); } /** * string language = 7 [json_name = "language"]; * @param value The bytes for language to set. */ private void setLanguageBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); language_ = value.toStringUtf8(); } public static pbx.Model.Session parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.Session 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 pbx.Model.Session parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.Session 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 pbx.Model.Session parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.Session 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 pbx.Model.Session parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.Session 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 pbx.Model.Session parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.Session parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.Session parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.Session 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(pbx.Model.Session prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Context message
     * 
* * Protobuf type {@code pbx.Session} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.Session, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.Session) pbx.Model.SessionOrBuilder { // Construct using pbx.Model.Session.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string session_id = 1 [json_name = "sessionId"]; * @return The sessionId. */ @java.lang.Override public java.lang.String getSessionId() { return instance.getSessionId(); } /** * string session_id = 1 [json_name = "sessionId"]; * @return The bytes for sessionId. */ @java.lang.Override public com.google.protobuf.ByteString getSessionIdBytes() { return instance.getSessionIdBytes(); } /** * string session_id = 1 [json_name = "sessionId"]; * @param value The sessionId to set. * @return This builder for chaining. */ public Builder setSessionId( java.lang.String value) { copyOnWrite(); instance.setSessionId(value); return this; } /** * string session_id = 1 [json_name = "sessionId"]; * @return This builder for chaining. */ public Builder clearSessionId() { copyOnWrite(); instance.clearSessionId(); return this; } /** * string session_id = 1 [json_name = "sessionId"]; * @param value The bytes for sessionId to set. * @return This builder for chaining. */ public Builder setSessionIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSessionIdBytes(value); return this; } /** * string user_id = 2 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return instance.getUserId(); } /** * string user_id = 2 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return instance.getUserIdBytes(); } /** * string user_id = 2 [json_name = "userId"]; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { copyOnWrite(); instance.setUserId(value); return this; } /** * string user_id = 2 [json_name = "userId"]; * @return This builder for chaining. */ public Builder clearUserId() { copyOnWrite(); instance.clearUserId(); return this; } /** * string user_id = 2 [json_name = "userId"]; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserIdBytes(value); return this; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The enum numeric value on the wire for authLevel. */ @java.lang.Override public int getAuthLevelValue() { return instance.getAuthLevelValue(); } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @param value The authLevel to set. * @return This builder for chaining. */ public Builder setAuthLevelValue(int value) { copyOnWrite(); instance.setAuthLevelValue(value); return this; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return The authLevel. */ @java.lang.Override public pbx.Model.AuthLevel getAuthLevel() { return instance.getAuthLevel(); } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @param value The enum numeric value on the wire for authLevel to set. * @return This builder for chaining. */ public Builder setAuthLevel(pbx.Model.AuthLevel value) { copyOnWrite(); instance.setAuthLevel(value); return this; } /** * .pbx.AuthLevel auth_level = 3 [json_name = "authLevel"]; * @return This builder for chaining. */ public Builder clearAuthLevel() { copyOnWrite(); instance.clearAuthLevel(); return this; } /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @return The remoteAddr. */ @java.lang.Override public java.lang.String getRemoteAddr() { return instance.getRemoteAddr(); } /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @return The bytes for remoteAddr. */ @java.lang.Override public com.google.protobuf.ByteString getRemoteAddrBytes() { return instance.getRemoteAddrBytes(); } /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @param value The remoteAddr to set. * @return This builder for chaining. */ public Builder setRemoteAddr( java.lang.String value) { copyOnWrite(); instance.setRemoteAddr(value); return this; } /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @return This builder for chaining. */ public Builder clearRemoteAddr() { copyOnWrite(); instance.clearRemoteAddr(); return this; } /** * string remote_addr = 4 [json_name = "remoteAddr"]; * @param value The bytes for remoteAddr to set. * @return This builder for chaining. */ public Builder setRemoteAddrBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setRemoteAddrBytes(value); return this; } /** * string user_agent = 5 [json_name = "userAgent"]; * @return The userAgent. */ @java.lang.Override public java.lang.String getUserAgent() { return instance.getUserAgent(); } /** * string user_agent = 5 [json_name = "userAgent"]; * @return The bytes for userAgent. */ @java.lang.Override public com.google.protobuf.ByteString getUserAgentBytes() { return instance.getUserAgentBytes(); } /** * string user_agent = 5 [json_name = "userAgent"]; * @param value The userAgent to set. * @return This builder for chaining. */ public Builder setUserAgent( java.lang.String value) { copyOnWrite(); instance.setUserAgent(value); return this; } /** * string user_agent = 5 [json_name = "userAgent"]; * @return This builder for chaining. */ public Builder clearUserAgent() { copyOnWrite(); instance.clearUserAgent(); return this; } /** * string user_agent = 5 [json_name = "userAgent"]; * @param value The bytes for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserAgentBytes(value); return this; } /** * string device_id = 6 [json_name = "deviceId"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { return instance.getDeviceId(); } /** * string device_id = 6 [json_name = "deviceId"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { return instance.getDeviceIdBytes(); } /** * string device_id = 6 [json_name = "deviceId"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { copyOnWrite(); instance.setDeviceId(value); return this; } /** * string device_id = 6 [json_name = "deviceId"]; * @return This builder for chaining. */ public Builder clearDeviceId() { copyOnWrite(); instance.clearDeviceId(); return this; } /** * string device_id = 6 [json_name = "deviceId"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setDeviceIdBytes(value); return this; } /** * string language = 7 [json_name = "language"]; * @return The language. */ @java.lang.Override public java.lang.String getLanguage() { return instance.getLanguage(); } /** * string language = 7 [json_name = "language"]; * @return The bytes for language. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageBytes() { return instance.getLanguageBytes(); } /** * string language = 7 [json_name = "language"]; * @param value The language to set. * @return This builder for chaining. */ public Builder setLanguage( java.lang.String value) { copyOnWrite(); instance.setLanguage(value); return this; } /** * string language = 7 [json_name = "language"]; * @return This builder for chaining. */ public Builder clearLanguage() { copyOnWrite(); instance.clearLanguage(); return this; } /** * string language = 7 [json_name = "language"]; * @param value The bytes for language to set. * @return This builder for chaining. */ public Builder setLanguageBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setLanguageBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.Session) } @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 pbx.Model.Session(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "sessionId_", "userId_", "authLevel_", "remoteAddr_", "userAgent_", "deviceId_", "language_", }; java.lang.String info = "\u0000\u0007\u0000\u0000\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\f\u0004\u0208\u0005\u0208\u0006\u0208\u0007\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 (pbx.Model.Session.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:pbx.Session) private static final pbx.Model.Session DEFAULT_INSTANCE; static { Session defaultInstance = new Session(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( Session.class, defaultInstance); } public static pbx.Model.Session getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ClientReqOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.ClientReq) com.google.protobuf.MessageLiteOrBuilder { /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; * @return Whether the msg field is set. */ boolean hasMsg(); /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; * @return The msg. */ pbx.Model.ClientMsg getMsg(); /** * .pbx.Session sess = 2 [json_name = "sess"]; * @return Whether the sess field is set. */ boolean hasSess(); /** * .pbx.Session sess = 2 [json_name = "sess"]; * @return The sess. */ pbx.Model.Session getSess(); } /** * Protobuf type {@code pbx.ClientReq} */ public static final class ClientReq extends com.google.protobuf.GeneratedMessageLite< ClientReq, ClientReq.Builder> implements // @@protoc_insertion_point(message_implements:pbx.ClientReq) ClientReqOrBuilder { private ClientReq() { } private int bitField0_; public static final int MSG_FIELD_NUMBER = 1; private pbx.Model.ClientMsg msg_; /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ @java.lang.Override public boolean hasMsg() { return ((bitField0_ & 0x00000001) != 0); } /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ @java.lang.Override public pbx.Model.ClientMsg getMsg() { return msg_ == null ? pbx.Model.ClientMsg.getDefaultInstance() : msg_; } /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ private void setMsg(pbx.Model.ClientMsg value) { value.getClass(); msg_ = value; bitField0_ |= 0x00000001; } /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeMsg(pbx.Model.ClientMsg value) { value.getClass(); if (msg_ != null && msg_ != pbx.Model.ClientMsg.getDefaultInstance()) { msg_ = pbx.Model.ClientMsg.newBuilder(msg_).mergeFrom(value).buildPartial(); } else { msg_ = value; } bitField0_ |= 0x00000001; } /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ private void clearMsg() { msg_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int SESS_FIELD_NUMBER = 2; private pbx.Model.Session sess_; /** * .pbx.Session sess = 2 [json_name = "sess"]; */ @java.lang.Override public boolean hasSess() { return ((bitField0_ & 0x00000002) != 0); } /** * .pbx.Session sess = 2 [json_name = "sess"]; */ @java.lang.Override public pbx.Model.Session getSess() { return sess_ == null ? pbx.Model.Session.getDefaultInstance() : sess_; } /** * .pbx.Session sess = 2 [json_name = "sess"]; */ private void setSess(pbx.Model.Session value) { value.getClass(); sess_ = value; bitField0_ |= 0x00000002; } /** * .pbx.Session sess = 2 [json_name = "sess"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeSess(pbx.Model.Session value) { value.getClass(); if (sess_ != null && sess_ != pbx.Model.Session.getDefaultInstance()) { sess_ = pbx.Model.Session.newBuilder(sess_).mergeFrom(value).buildPartial(); } else { sess_ = value; } bitField0_ |= 0x00000002; } /** * .pbx.Session sess = 2 [json_name = "sess"]; */ private void clearSess() { sess_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static pbx.Model.ClientReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientReq 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 pbx.Model.ClientReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientReq 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 pbx.Model.ClientReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.ClientReq 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 pbx.Model.ClientReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientReq 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 pbx.Model.ClientReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.ClientReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.ClientReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.ClientReq 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(pbx.Model.ClientReq prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.ClientReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.ClientReq, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.ClientReq) pbx.Model.ClientReqOrBuilder { // Construct using pbx.Model.ClientReq.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ @java.lang.Override public boolean hasMsg() { return instance.hasMsg(); } /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ @java.lang.Override public pbx.Model.ClientMsg getMsg() { return instance.getMsg(); } /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ public Builder setMsg(pbx.Model.ClientMsg value) { copyOnWrite(); instance.setMsg(value); return this; } /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ public Builder setMsg( pbx.Model.ClientMsg.Builder builderForValue) { copyOnWrite(); instance.setMsg(builderForValue.build()); return this; } /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ public Builder mergeMsg(pbx.Model.ClientMsg value) { copyOnWrite(); instance.mergeMsg(value); return this; } /** * .pbx.ClientMsg msg = 1 [json_name = "msg"]; */ public Builder clearMsg() { copyOnWrite(); instance.clearMsg(); return this; } /** * .pbx.Session sess = 2 [json_name = "sess"]; */ @java.lang.Override public boolean hasSess() { return instance.hasSess(); } /** * .pbx.Session sess = 2 [json_name = "sess"]; */ @java.lang.Override public pbx.Model.Session getSess() { return instance.getSess(); } /** * .pbx.Session sess = 2 [json_name = "sess"]; */ public Builder setSess(pbx.Model.Session value) { copyOnWrite(); instance.setSess(value); return this; } /** * .pbx.Session sess = 2 [json_name = "sess"]; */ public Builder setSess( pbx.Model.Session.Builder builderForValue) { copyOnWrite(); instance.setSess(builderForValue.build()); return this; } /** * .pbx.Session sess = 2 [json_name = "sess"]; */ public Builder mergeSess(pbx.Model.Session value) { copyOnWrite(); instance.mergeSess(value); return this; } /** * .pbx.Session sess = 2 [json_name = "sess"]; */ public Builder clearSess() { copyOnWrite(); instance.clearSess(); return this; } // @@protoc_insertion_point(builder_scope:pbx.ClientReq) } @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 pbx.Model.ClientReq(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "msg_", "sess_", }; java.lang.String info = "\u0000\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u1009\u0000\u0002" + "\u1009\u0001"; 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 (pbx.Model.ClientReq.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:pbx.ClientReq) private static final pbx.Model.ClientReq DEFAULT_INSTANCE; static { ClientReq defaultInstance = new ClientReq(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ClientReq.class, defaultInstance); } public static pbx.Model.ClientReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface SearchQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.SearchQuery) com.google.protobuf.MessageLiteOrBuilder { /** * string user_id = 1 [json_name = "userId"]; * @return The userId. */ java.lang.String getUserId(); /** * string user_id = 1 [json_name = "userId"]; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** * string query = 2 [json_name = "query"]; * @return The query. */ java.lang.String getQuery(); /** * string query = 2 [json_name = "query"]; * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); } /** * Protobuf type {@code pbx.SearchQuery} */ public static final class SearchQuery extends com.google.protobuf.GeneratedMessageLite< SearchQuery, SearchQuery.Builder> implements // @@protoc_insertion_point(message_implements:pbx.SearchQuery) SearchQueryOrBuilder { private SearchQuery() { userId_ = ""; query_ = ""; } public static final int USER_ID_FIELD_NUMBER = 1; private java.lang.String userId_; /** * string user_id = 1 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return userId_; } /** * string user_id = 1 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userId_); } /** * string user_id = 1 [json_name = "userId"]; * @param value The userId to set. */ private void setUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); userId_ = value; } /** * string user_id = 1 [json_name = "userId"]; */ private void clearUserId() { userId_ = getDefaultInstance().getUserId(); } /** * string user_id = 1 [json_name = "userId"]; * @param value The bytes for userId to set. */ private void setUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userId_ = value.toStringUtf8(); } public static final int QUERY_FIELD_NUMBER = 2; private java.lang.String query_; /** * string query = 2 [json_name = "query"]; * @return The query. */ @java.lang.Override public java.lang.String getQuery() { return query_; } /** * string query = 2 [json_name = "query"]; * @return The bytes for query. */ @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { return com.google.protobuf.ByteString.copyFromUtf8(query_); } /** * string query = 2 [json_name = "query"]; * @param value The query to set. */ private void setQuery( java.lang.String value) { java.lang.Class valueClass = value.getClass(); query_ = value; } /** * string query = 2 [json_name = "query"]; */ private void clearQuery() { query_ = getDefaultInstance().getQuery(); } /** * string query = 2 [json_name = "query"]; * @param value The bytes for query to set. */ private void setQueryBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); query_ = value.toStringUtf8(); } public static pbx.Model.SearchQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SearchQuery 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 pbx.Model.SearchQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SearchQuery 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 pbx.Model.SearchQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SearchQuery 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 pbx.Model.SearchQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SearchQuery 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 pbx.Model.SearchQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.SearchQuery parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.SearchQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SearchQuery 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(pbx.Model.SearchQuery prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.SearchQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.SearchQuery, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.SearchQuery) pbx.Model.SearchQueryOrBuilder { // Construct using pbx.Model.SearchQuery.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string user_id = 1 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return instance.getUserId(); } /** * string user_id = 1 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return instance.getUserIdBytes(); } /** * string user_id = 1 [json_name = "userId"]; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { copyOnWrite(); instance.setUserId(value); return this; } /** * string user_id = 1 [json_name = "userId"]; * @return This builder for chaining. */ public Builder clearUserId() { copyOnWrite(); instance.clearUserId(); return this; } /** * string user_id = 1 [json_name = "userId"]; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserIdBytes(value); return this; } /** * string query = 2 [json_name = "query"]; * @return The query. */ @java.lang.Override public java.lang.String getQuery() { return instance.getQuery(); } /** * string query = 2 [json_name = "query"]; * @return The bytes for query. */ @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { return instance.getQueryBytes(); } /** * string query = 2 [json_name = "query"]; * @param value The query to set. * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { copyOnWrite(); instance.setQuery(value); return this; } /** * string query = 2 [json_name = "query"]; * @return This builder for chaining. */ public Builder clearQuery() { copyOnWrite(); instance.clearQuery(); return this; } /** * string query = 2 [json_name = "query"]; * @param value The bytes for query to set. * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setQueryBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.SearchQuery) } @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 pbx.Model.SearchQuery(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "userId_", "query_", }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\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 (pbx.Model.SearchQuery.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:pbx.SearchQuery) private static final pbx.Model.SearchQuery DEFAULT_INSTANCE; static { SearchQuery defaultInstance = new SearchQuery(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SearchQuery.class, defaultInstance); } public static pbx.Model.SearchQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface SearchFoundOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.SearchFound) com.google.protobuf.MessageLiteOrBuilder { /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The status. */ pbx.Model.RespCode getStatus(); /** *
     * New search query If status == REPLACE, otherwise unset.
     * 
* * string query = 2 [json_name = "query"]; * @return The query. */ java.lang.String getQuery(); /** *
     * New search query If status == REPLACE, otherwise unset.
     * 
* * string query = 2 [json_name = "query"]; * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ java.util.List getResultList(); /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ pbx.Model.TopicSub getResult(int index); /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ int getResultCount(); } /** * Protobuf type {@code pbx.SearchFound} */ public static final class SearchFound extends com.google.protobuf.GeneratedMessageLite< SearchFound, SearchFound.Builder> implements // @@protoc_insertion_point(message_implements:pbx.SearchFound) SearchFoundOrBuilder { private SearchFound() { query_ = ""; result_ = emptyProtobufList(); } public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The status. */ @java.lang.Override public pbx.Model.RespCode getStatus() { pbx.Model.RespCode result = pbx.Model.RespCode.forNumber(status_); return result == null ? pbx.Model.RespCode.UNRECOGNIZED : result; } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @param value The enum numeric value on the wire for status to set. */ private void setStatusValue(int value) { status_ = value; } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @param value The status to set. */ private void setStatus(pbx.Model.RespCode value) { status_ = value.getNumber(); } /** * .pbx.RespCode status = 1 [json_name = "status"]; */ private void clearStatus() { status_ = 0; } public static final int QUERY_FIELD_NUMBER = 2; private java.lang.String query_; /** *
     * New search query If status == REPLACE, otherwise unset.
     * 
* * string query = 2 [json_name = "query"]; * @return The query. */ @java.lang.Override public java.lang.String getQuery() { return query_; } /** *
     * New search query If status == REPLACE, otherwise unset.
     * 
* * string query = 2 [json_name = "query"]; * @return The bytes for query. */ @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { return com.google.protobuf.ByteString.copyFromUtf8(query_); } /** *
     * New search query If status == REPLACE, otherwise unset.
     * 
* * string query = 2 [json_name = "query"]; * @param value The query to set. */ private void setQuery( java.lang.String value) { java.lang.Class valueClass = value.getClass(); query_ = value; } /** *
     * New search query If status == REPLACE, otherwise unset.
     * 
* * string query = 2 [json_name = "query"]; */ private void clearQuery() { query_ = getDefaultInstance().getQuery(); } /** *
     * New search query If status == REPLACE, otherwise unset.
     * 
* * string query = 2 [json_name = "query"]; * @param value The bytes for query to set. */ private void setQueryBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); query_ = value.toStringUtf8(); } public static final int RESULT_FIELD_NUMBER = 3; private com.google.protobuf.Internal.ProtobufList result_; /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ @java.lang.Override public java.util.List getResultList() { return result_; } /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public java.util.List getResultOrBuilderList() { return result_; } /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ @java.lang.Override public int getResultCount() { return result_.size(); } /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ @java.lang.Override public pbx.Model.TopicSub getResult(int index) { return result_.get(index); } /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public pbx.Model.TopicSubOrBuilder getResultOrBuilder( int index) { return result_.get(index); } private void ensureResultIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = result_; if (!tmp.isModifiable()) { result_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ private void setResult( int index, pbx.Model.TopicSub value) { value.getClass(); ensureResultIsMutable(); result_.set(index, value); } /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ private void addResult(pbx.Model.TopicSub value) { value.getClass(); ensureResultIsMutable(); result_.add(value); } /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ private void addResult( int index, pbx.Model.TopicSub value) { value.getClass(); ensureResultIsMutable(); result_.add(index, value); } /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ private void addAllResult( java.lang.Iterable values) { ensureResultIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, result_); } /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ private void clearResult() { result_ = emptyProtobufList(); } /** *
     * Search results.
     * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ private void removeResult(int index) { ensureResultIsMutable(); result_.remove(index); } public static pbx.Model.SearchFound parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SearchFound 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 pbx.Model.SearchFound parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SearchFound 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 pbx.Model.SearchFound parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SearchFound 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 pbx.Model.SearchFound parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SearchFound 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 pbx.Model.SearchFound parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.SearchFound parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.SearchFound parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SearchFound 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(pbx.Model.SearchFound prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.SearchFound} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.SearchFound, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.SearchFound) pbx.Model.SearchFoundOrBuilder { // Construct using pbx.Model.SearchFound.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return instance.getStatusValue(); } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { copyOnWrite(); instance.setStatusValue(value); return this; } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return The status. */ @java.lang.Override public pbx.Model.RespCode getStatus() { return instance.getStatus(); } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatus(pbx.Model.RespCode value) { copyOnWrite(); instance.setStatus(value); return this; } /** * .pbx.RespCode status = 1 [json_name = "status"]; * @return This builder for chaining. */ public Builder clearStatus() { copyOnWrite(); instance.clearStatus(); return this; } /** *
       * New search query If status == REPLACE, otherwise unset.
       * 
* * string query = 2 [json_name = "query"]; * @return The query. */ @java.lang.Override public java.lang.String getQuery() { return instance.getQuery(); } /** *
       * New search query If status == REPLACE, otherwise unset.
       * 
* * string query = 2 [json_name = "query"]; * @return The bytes for query. */ @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { return instance.getQueryBytes(); } /** *
       * New search query If status == REPLACE, otherwise unset.
       * 
* * string query = 2 [json_name = "query"]; * @param value The query to set. * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { copyOnWrite(); instance.setQuery(value); return this; } /** *
       * New search query If status == REPLACE, otherwise unset.
       * 
* * string query = 2 [json_name = "query"]; * @return This builder for chaining. */ public Builder clearQuery() { copyOnWrite(); instance.clearQuery(); return this; } /** *
       * New search query If status == REPLACE, otherwise unset.
       * 
* * string query = 2 [json_name = "query"]; * @param value The bytes for query to set. * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setQueryBytes(value); return this; } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ @java.lang.Override public java.util.List getResultList() { return java.util.Collections.unmodifiableList( instance.getResultList()); } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ @java.lang.Override public int getResultCount() { return instance.getResultCount(); }/** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ @java.lang.Override public pbx.Model.TopicSub getResult(int index) { return instance.getResult(index); } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public Builder setResult( int index, pbx.Model.TopicSub value) { copyOnWrite(); instance.setResult(index, value); return this; } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public Builder setResult( int index, pbx.Model.TopicSub.Builder builderForValue) { copyOnWrite(); instance.setResult(index, builderForValue.build()); return this; } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public Builder addResult(pbx.Model.TopicSub value) { copyOnWrite(); instance.addResult(value); return this; } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public Builder addResult( int index, pbx.Model.TopicSub value) { copyOnWrite(); instance.addResult(index, value); return this; } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public Builder addResult( pbx.Model.TopicSub.Builder builderForValue) { copyOnWrite(); instance.addResult(builderForValue.build()); return this; } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public Builder addResult( int index, pbx.Model.TopicSub.Builder builderForValue) { copyOnWrite(); instance.addResult(index, builderForValue.build()); return this; } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public Builder addAllResult( java.lang.Iterable values) { copyOnWrite(); instance.addAllResult(values); return this; } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public Builder clearResult() { copyOnWrite(); instance.clearResult(); return this; } /** *
       * Search results.
       * 
* * repeated .pbx.TopicSub result = 3 [json_name = "result"]; */ public Builder removeResult(int index) { copyOnWrite(); instance.removeResult(index); return this; } // @@protoc_insertion_point(builder_scope:pbx.SearchFound) } @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 pbx.Model.SearchFound(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "status_", "query_", "result_", pbx.Model.TopicSub.class, }; java.lang.String info = "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0001\u0000\u0001\f\u0002\u0208" + "\u0003\u001b"; 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 (pbx.Model.SearchFound.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:pbx.SearchFound) private static final pbx.Model.SearchFound DEFAULT_INSTANCE; static { SearchFound defaultInstance = new SearchFound(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SearchFound.class, defaultInstance); } public static pbx.Model.SearchFound getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface TopicEventOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.TopicEvent) com.google.protobuf.MessageLiteOrBuilder { /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ int getActionValue(); /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ pbx.Model.Crud getAction(); /** * string name = 2 [json_name = "name"]; * @return The name. */ java.lang.String getName(); /** * string name = 2 [json_name = "name"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; * @return Whether the desc field is set. */ boolean hasDesc(); /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; * @return The desc. */ pbx.Model.TopicDesc getDesc(); } /** * Protobuf type {@code pbx.TopicEvent} */ public static final class TopicEvent extends com.google.protobuf.GeneratedMessageLite< TopicEvent, TopicEvent.Builder> implements // @@protoc_insertion_point(message_implements:pbx.TopicEvent) TopicEventOrBuilder { private TopicEvent() { name_ = ""; } private int bitField0_; public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return action_; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ @java.lang.Override public pbx.Model.Crud getAction() { pbx.Model.Crud result = pbx.Model.Crud.forNumber(action_); return result == null ? pbx.Model.Crud.UNRECOGNIZED : result; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The enum numeric value on the wire for action to set. */ private void setActionValue(int value) { action_ = value; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The action to set. */ private void setAction(pbx.Model.Crud value) { action_ = value.getNumber(); } /** * .pbx.Crud action = 1 [json_name = "action"]; */ private void clearAction() { action_ = 0; } public static final int NAME_FIELD_NUMBER = 2; private java.lang.String name_; /** * string name = 2 [json_name = "name"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { return name_; } /** * string name = 2 [json_name = "name"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(name_); } /** * string name = 2 [json_name = "name"]; * @param value The name to set. */ private void setName( java.lang.String value) { java.lang.Class valueClass = value.getClass(); name_ = value; } /** * string name = 2 [json_name = "name"]; */ private void clearName() { name_ = getDefaultInstance().getName(); } /** * string name = 2 [json_name = "name"]; * @param value The bytes for name to set. */ private void setNameBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); name_ = value.toStringUtf8(); } public static final int DESC_FIELD_NUMBER = 3; private pbx.Model.TopicDesc desc_; /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ @java.lang.Override public boolean hasDesc() { return ((bitField0_ & 0x00000001) != 0); } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ @java.lang.Override public pbx.Model.TopicDesc getDesc() { return desc_ == null ? pbx.Model.TopicDesc.getDefaultInstance() : desc_; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ private void setDesc(pbx.Model.TopicDesc value) { value.getClass(); desc_ = value; bitField0_ |= 0x00000001; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeDesc(pbx.Model.TopicDesc value) { value.getClass(); if (desc_ != null && desc_ != pbx.Model.TopicDesc.getDefaultInstance()) { desc_ = pbx.Model.TopicDesc.newBuilder(desc_).mergeFrom(value).buildPartial(); } else { desc_ = value; } bitField0_ |= 0x00000001; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ private void clearDesc() { desc_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static pbx.Model.TopicEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.TopicEvent 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 pbx.Model.TopicEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.TopicEvent 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 pbx.Model.TopicEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.TopicEvent 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 pbx.Model.TopicEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.TopicEvent 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 pbx.Model.TopicEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.TopicEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.TopicEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.TopicEvent 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(pbx.Model.TopicEvent prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.TopicEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.TopicEvent, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.TopicEvent) pbx.Model.TopicEventOrBuilder { // Construct using pbx.Model.TopicEvent.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return instance.getActionValue(); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { copyOnWrite(); instance.setActionValue(value); return this; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ @java.lang.Override public pbx.Model.Crud getAction() { return instance.getAction(); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setAction(pbx.Model.Crud value) { copyOnWrite(); instance.setAction(value); return this; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return This builder for chaining. */ public Builder clearAction() { copyOnWrite(); instance.clearAction(); return this; } /** * string name = 2 [json_name = "name"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { return instance.getName(); } /** * string name = 2 [json_name = "name"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { return instance.getNameBytes(); } /** * string name = 2 [json_name = "name"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { copyOnWrite(); instance.setName(value); return this; } /** * string name = 2 [json_name = "name"]; * @return This builder for chaining. */ public Builder clearName() { copyOnWrite(); instance.clearName(); return this; } /** * string name = 2 [json_name = "name"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setNameBytes(value); return this; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ @java.lang.Override public boolean hasDesc() { return instance.hasDesc(); } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ @java.lang.Override public pbx.Model.TopicDesc getDesc() { return instance.getDesc(); } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ public Builder setDesc(pbx.Model.TopicDesc value) { copyOnWrite(); instance.setDesc(value); return this; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ public Builder setDesc( pbx.Model.TopicDesc.Builder builderForValue) { copyOnWrite(); instance.setDesc(builderForValue.build()); return this; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ public Builder mergeDesc(pbx.Model.TopicDesc value) { copyOnWrite(); instance.mergeDesc(value); return this; } /** * .pbx.TopicDesc desc = 3 [json_name = "desc"]; */ public Builder clearDesc() { copyOnWrite(); instance.clearDesc(); return this; } // @@protoc_insertion_point(builder_scope:pbx.TopicEvent) } @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 pbx.Model.TopicEvent(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "action_", "name_", "desc_", }; java.lang.String info = "\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\f\u0002\u0208" + "\u0003\u1009\u0000"; 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 (pbx.Model.TopicEvent.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:pbx.TopicEvent) private static final pbx.Model.TopicEvent DEFAULT_INSTANCE; static { TopicEvent defaultInstance = new TopicEvent(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( TopicEvent.class, defaultInstance); } public static pbx.Model.TopicEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface AccountEventOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.AccountEvent) com.google.protobuf.MessageLiteOrBuilder { /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ int getActionValue(); /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ pbx.Model.Crud getAction(); /** * string user_id = 2 [json_name = "userId"]; * @return The userId. */ java.lang.String getUserId(); /** * string user_id = 2 [json_name = "userId"]; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; * @return Whether the defaultAcs field is set. */ boolean hasDefaultAcs(); /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; * @return The defaultAcs. */ pbx.Model.DefaultAcsMode getDefaultAcs(); /** * bytes public = 4 [json_name = "public"]; * @return The public. */ com.google.protobuf.ByteString getPublic(); /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @return A list containing the tags. */ java.util.List getTagsList(); /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @return The count of tags. */ int getTagsCount(); /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); } /** * Protobuf type {@code pbx.AccountEvent} */ public static final class AccountEvent extends com.google.protobuf.GeneratedMessageLite< AccountEvent, AccountEvent.Builder> implements // @@protoc_insertion_point(message_implements:pbx.AccountEvent) AccountEventOrBuilder { private AccountEvent() { userId_ = ""; public_ = com.google.protobuf.ByteString.EMPTY; tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } private int bitField0_; public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return action_; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ @java.lang.Override public pbx.Model.Crud getAction() { pbx.Model.Crud result = pbx.Model.Crud.forNumber(action_); return result == null ? pbx.Model.Crud.UNRECOGNIZED : result; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The enum numeric value on the wire for action to set. */ private void setActionValue(int value) { action_ = value; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The action to set. */ private void setAction(pbx.Model.Crud value) { action_ = value.getNumber(); } /** * .pbx.Crud action = 1 [json_name = "action"]; */ private void clearAction() { action_ = 0; } public static final int USER_ID_FIELD_NUMBER = 2; private java.lang.String userId_; /** * string user_id = 2 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return userId_; } /** * string user_id = 2 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userId_); } /** * string user_id = 2 [json_name = "userId"]; * @param value The userId to set. */ private void setUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); userId_ = value; } /** * string user_id = 2 [json_name = "userId"]; */ private void clearUserId() { userId_ = getDefaultInstance().getUserId(); } /** * string user_id = 2 [json_name = "userId"]; * @param value The bytes for userId to set. */ private void setUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userId_ = value.toStringUtf8(); } public static final int DEFAULT_ACS_FIELD_NUMBER = 3; private pbx.Model.DefaultAcsMode defaultAcs_; /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ @java.lang.Override public boolean hasDefaultAcs() { return ((bitField0_ & 0x00000001) != 0); } /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ @java.lang.Override public pbx.Model.DefaultAcsMode getDefaultAcs() { return defaultAcs_ == null ? pbx.Model.DefaultAcsMode.getDefaultInstance() : defaultAcs_; } /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ private void setDefaultAcs(pbx.Model.DefaultAcsMode value) { value.getClass(); defaultAcs_ = value; bitField0_ |= 0x00000001; } /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeDefaultAcs(pbx.Model.DefaultAcsMode value) { value.getClass(); if (defaultAcs_ != null && defaultAcs_ != pbx.Model.DefaultAcsMode.getDefaultInstance()) { defaultAcs_ = pbx.Model.DefaultAcsMode.newBuilder(defaultAcs_).mergeFrom(value).buildPartial(); } else { defaultAcs_ = value; } bitField0_ |= 0x00000001; } /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ private void clearDefaultAcs() { defaultAcs_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int PUBLIC_FIELD_NUMBER = 4; private com.google.protobuf.ByteString public_; /** * bytes public = 4 [json_name = "public"]; * @return The public. */ @java.lang.Override public com.google.protobuf.ByteString getPublic() { return public_; } /** * bytes public = 4 [json_name = "public"]; * @param value The public to set. */ private void setPublic(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); public_ = value; } /** * bytes public = 4 [json_name = "public"]; */ private void clearPublic() { public_ = getDefaultInstance().getPublic(); } public static final int TAGS_FIELD_NUMBER = 8; private com.google.protobuf.Internal.ProtobufList tags_; /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @return A list containing the tags. */ @java.lang.Override public java.util.List getTagsList() { return tags_; } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @return The count of tags. */ @java.lang.Override public int getTagsCount() { return tags_.size(); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ @java.lang.Override public java.lang.String getTags(int index) { return tags_.get(index); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getTagsBytes(int index) { return com.google.protobuf.ByteString.copyFromUtf8( tags_.get(index)); } private void ensureTagsIsMutable() { com.google.protobuf.Internal.ProtobufList tmp = tags_; if (!tmp.isModifiable()) { tags_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @param index The index to set the value at. * @param value The tags to set. */ private void setTags( int index, java.lang.String value) { java.lang.Class valueClass = value.getClass(); ensureTagsIsMutable(); tags_.set(index, value); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @param value The tags to add. */ private void addTags( java.lang.String value) { java.lang.Class valueClass = value.getClass(); ensureTagsIsMutable(); tags_.add(value); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @param values The tags to add. */ private void addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, tags_); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; */ private void clearTags() { tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } /** *
     * Indexable tags for user discovery
     * 
* * repeated string tags = 8 [json_name = "tags"]; * @param value The bytes of the tags to add. */ private void addTagsBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value.toStringUtf8()); } public static pbx.Model.AccountEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.AccountEvent 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 pbx.Model.AccountEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.AccountEvent 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 pbx.Model.AccountEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.AccountEvent 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 pbx.Model.AccountEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.AccountEvent 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 pbx.Model.AccountEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.AccountEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.AccountEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.AccountEvent 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(pbx.Model.AccountEvent prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.AccountEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.AccountEvent, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.AccountEvent) pbx.Model.AccountEventOrBuilder { // Construct using pbx.Model.AccountEvent.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return instance.getActionValue(); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { copyOnWrite(); instance.setActionValue(value); return this; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ @java.lang.Override public pbx.Model.Crud getAction() { return instance.getAction(); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setAction(pbx.Model.Crud value) { copyOnWrite(); instance.setAction(value); return this; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return This builder for chaining. */ public Builder clearAction() { copyOnWrite(); instance.clearAction(); return this; } /** * string user_id = 2 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return instance.getUserId(); } /** * string user_id = 2 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return instance.getUserIdBytes(); } /** * string user_id = 2 [json_name = "userId"]; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { copyOnWrite(); instance.setUserId(value); return this; } /** * string user_id = 2 [json_name = "userId"]; * @return This builder for chaining. */ public Builder clearUserId() { copyOnWrite(); instance.clearUserId(); return this; } /** * string user_id = 2 [json_name = "userId"]; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserIdBytes(value); return this; } /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ @java.lang.Override public boolean hasDefaultAcs() { return instance.hasDefaultAcs(); } /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ @java.lang.Override public pbx.Model.DefaultAcsMode getDefaultAcs() { return instance.getDefaultAcs(); } /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ public Builder setDefaultAcs(pbx.Model.DefaultAcsMode value) { copyOnWrite(); instance.setDefaultAcs(value); return this; } /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ public Builder setDefaultAcs( pbx.Model.DefaultAcsMode.Builder builderForValue) { copyOnWrite(); instance.setDefaultAcs(builderForValue.build()); return this; } /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ public Builder mergeDefaultAcs(pbx.Model.DefaultAcsMode value) { copyOnWrite(); instance.mergeDefaultAcs(value); return this; } /** * .pbx.DefaultAcsMode default_acs = 3 [json_name = "defaultAcs"]; */ public Builder clearDefaultAcs() { copyOnWrite(); instance.clearDefaultAcs(); return this; } /** * bytes public = 4 [json_name = "public"]; * @return The public. */ @java.lang.Override public com.google.protobuf.ByteString getPublic() { return instance.getPublic(); } /** * bytes public = 4 [json_name = "public"]; * @param value The public to set. * @return This builder for chaining. */ public Builder setPublic(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPublic(value); return this; } /** * bytes public = 4 [json_name = "public"]; * @return This builder for chaining. */ public Builder clearPublic() { copyOnWrite(); instance.clearPublic(); return this; } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 8 [json_name = "tags"]; * @return A list containing the tags. */ @java.lang.Override public java.util.List getTagsList() { return java.util.Collections.unmodifiableList( instance.getTagsList()); } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 8 [json_name = "tags"]; * @return The count of tags. */ @java.lang.Override public int getTagsCount() { return instance.getTagsCount(); } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 8 [json_name = "tags"]; * @param index The index of the element to return. * @return The tags at the given index. */ @java.lang.Override public java.lang.String getTags(int index) { return instance.getTags(index); } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 8 [json_name = "tags"]; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getTagsBytes(int index) { return instance.getTagsBytes(index); } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 8 [json_name = "tags"]; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { copyOnWrite(); instance.setTags(index, value); return this; } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 8 [json_name = "tags"]; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { copyOnWrite(); instance.addTags(value); return this; } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 8 [json_name = "tags"]; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { copyOnWrite(); instance.addAllTags(values); return this; } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 8 [json_name = "tags"]; * @return This builder for chaining. */ public Builder clearTags() { copyOnWrite(); instance.clearTags(); return this; } /** *
       * Indexable tags for user discovery
       * 
* * repeated string tags = 8 [json_name = "tags"]; * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.addTagsBytes(value); return this; } // @@protoc_insertion_point(builder_scope:pbx.AccountEvent) } @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 pbx.Model.AccountEvent(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "action_", "userId_", "defaultAcs_", "public_", "tags_", }; java.lang.String info = "\u0000\u0005\u0000\u0001\u0001\b\u0005\u0000\u0001\u0000\u0001\f\u0002\u0208\u0003" + "\u1009\u0000\u0004\n\b\u021a"; 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 (pbx.Model.AccountEvent.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:pbx.AccountEvent) private static final pbx.Model.AccountEvent DEFAULT_INSTANCE; static { AccountEvent defaultInstance = new AccountEvent(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( AccountEvent.class, defaultInstance); } public static pbx.Model.AccountEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface SubscriptionEventOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.SubscriptionEvent) com.google.protobuf.MessageLiteOrBuilder { /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ int getActionValue(); /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ pbx.Model.Crud getAction(); /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ java.lang.String getTopic(); /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * string user_id = 3 [json_name = "userId"]; * @return The userId. */ java.lang.String getUserId(); /** * string user_id = 3 [json_name = "userId"]; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** * int32 del_id = 4 [json_name = "delId"]; * @return The delId. */ int getDelId(); /** * int32 read_id = 5 [json_name = "readId"]; * @return The readId. */ int getReadId(); /** * int32 recv_id = 6 [json_name = "recvId"]; * @return The recvId. */ int getRecvId(); /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; * @return Whether the mode field is set. */ boolean hasMode(); /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; * @return The mode. */ pbx.Model.AccessMode getMode(); /** * bytes private = 8 [json_name = "private"]; * @return The private. */ com.google.protobuf.ByteString getPrivate(); } /** * Protobuf type {@code pbx.SubscriptionEvent} */ public static final class SubscriptionEvent extends com.google.protobuf.GeneratedMessageLite< SubscriptionEvent, SubscriptionEvent.Builder> implements // @@protoc_insertion_point(message_implements:pbx.SubscriptionEvent) SubscriptionEventOrBuilder { private SubscriptionEvent() { topic_ = ""; userId_ = ""; private_ = com.google.protobuf.ByteString.EMPTY; } private int bitField0_; public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return action_; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ @java.lang.Override public pbx.Model.Crud getAction() { pbx.Model.Crud result = pbx.Model.Crud.forNumber(action_); return result == null ? pbx.Model.Crud.UNRECOGNIZED : result; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The enum numeric value on the wire for action to set. */ private void setActionValue(int value) { action_ = value; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The action to set. */ private void setAction(pbx.Model.Crud value) { action_ = value.getNumber(); } /** * .pbx.Crud action = 1 [json_name = "action"]; */ private void clearAction() { action_ = 0; } public static final int TOPIC_FIELD_NUMBER = 2; private java.lang.String topic_; /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 2 [json_name = "topic"]; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int USER_ID_FIELD_NUMBER = 3; private java.lang.String userId_; /** * string user_id = 3 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return userId_; } /** * string user_id = 3 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(userId_); } /** * string user_id = 3 [json_name = "userId"]; * @param value The userId to set. */ private void setUserId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); userId_ = value; } /** * string user_id = 3 [json_name = "userId"]; */ private void clearUserId() { userId_ = getDefaultInstance().getUserId(); } /** * string user_id = 3 [json_name = "userId"]; * @param value The bytes for userId to set. */ private void setUserIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); userId_ = value.toStringUtf8(); } public static final int DEL_ID_FIELD_NUMBER = 4; private int delId_; /** * int32 del_id = 4 [json_name = "delId"]; * @return The delId. */ @java.lang.Override public int getDelId() { return delId_; } /** * int32 del_id = 4 [json_name = "delId"]; * @param value The delId to set. */ private void setDelId(int value) { delId_ = value; } /** * int32 del_id = 4 [json_name = "delId"]; */ private void clearDelId() { delId_ = 0; } public static final int READ_ID_FIELD_NUMBER = 5; private int readId_; /** * int32 read_id = 5 [json_name = "readId"]; * @return The readId. */ @java.lang.Override public int getReadId() { return readId_; } /** * int32 read_id = 5 [json_name = "readId"]; * @param value The readId to set. */ private void setReadId(int value) { readId_ = value; } /** * int32 read_id = 5 [json_name = "readId"]; */ private void clearReadId() { readId_ = 0; } public static final int RECV_ID_FIELD_NUMBER = 6; private int recvId_; /** * int32 recv_id = 6 [json_name = "recvId"]; * @return The recvId. */ @java.lang.Override public int getRecvId() { return recvId_; } /** * int32 recv_id = 6 [json_name = "recvId"]; * @param value The recvId to set. */ private void setRecvId(int value) { recvId_ = value; } /** * int32 recv_id = 6 [json_name = "recvId"]; */ private void clearRecvId() { recvId_ = 0; } public static final int MODE_FIELD_NUMBER = 7; private pbx.Model.AccessMode mode_; /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ @java.lang.Override public boolean hasMode() { return ((bitField0_ & 0x00000001) != 0); } /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ @java.lang.Override public pbx.Model.AccessMode getMode() { return mode_ == null ? pbx.Model.AccessMode.getDefaultInstance() : mode_; } /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ private void setMode(pbx.Model.AccessMode value) { value.getClass(); mode_ = value; bitField0_ |= 0x00000001; } /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeMode(pbx.Model.AccessMode value) { value.getClass(); if (mode_ != null && mode_ != pbx.Model.AccessMode.getDefaultInstance()) { mode_ = pbx.Model.AccessMode.newBuilder(mode_).mergeFrom(value).buildPartial(); } else { mode_ = value; } bitField0_ |= 0x00000001; } /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ private void clearMode() { mode_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int PRIVATE_FIELD_NUMBER = 8; private com.google.protobuf.ByteString private_; /** * bytes private = 8 [json_name = "private"]; * @return The private. */ @java.lang.Override public com.google.protobuf.ByteString getPrivate() { return private_; } /** * bytes private = 8 [json_name = "private"]; * @param value The private to set. */ private void setPrivate(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); private_ = value; } /** * bytes private = 8 [json_name = "private"]; */ private void clearPrivate() { private_ = getDefaultInstance().getPrivate(); } public static pbx.Model.SubscriptionEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SubscriptionEvent 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 pbx.Model.SubscriptionEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SubscriptionEvent 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 pbx.Model.SubscriptionEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.SubscriptionEvent 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 pbx.Model.SubscriptionEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SubscriptionEvent 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 pbx.Model.SubscriptionEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.SubscriptionEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.SubscriptionEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.SubscriptionEvent 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(pbx.Model.SubscriptionEvent prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.SubscriptionEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.SubscriptionEvent, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.SubscriptionEvent) pbx.Model.SubscriptionEventOrBuilder { // Construct using pbx.Model.SubscriptionEvent.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return instance.getActionValue(); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { copyOnWrite(); instance.setActionValue(value); return this; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ @java.lang.Override public pbx.Model.Crud getAction() { return instance.getAction(); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setAction(pbx.Model.Crud value) { copyOnWrite(); instance.setAction(value); return this; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return This builder for chaining. */ public Builder clearAction() { copyOnWrite(); instance.clearAction(); return this; } /** * string topic = 2 [json_name = "topic"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 2 [json_name = "topic"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 2 [json_name = "topic"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 2 [json_name = "topic"]; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 2 [json_name = "topic"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * string user_id = 3 [json_name = "userId"]; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { return instance.getUserId(); } /** * string user_id = 3 [json_name = "userId"]; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { return instance.getUserIdBytes(); } /** * string user_id = 3 [json_name = "userId"]; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { copyOnWrite(); instance.setUserId(value); return this; } /** * string user_id = 3 [json_name = "userId"]; * @return This builder for chaining. */ public Builder clearUserId() { copyOnWrite(); instance.clearUserId(); return this; } /** * string user_id = 3 [json_name = "userId"]; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUserIdBytes(value); return this; } /** * int32 del_id = 4 [json_name = "delId"]; * @return The delId. */ @java.lang.Override public int getDelId() { return instance.getDelId(); } /** * int32 del_id = 4 [json_name = "delId"]; * @param value The delId to set. * @return This builder for chaining. */ public Builder setDelId(int value) { copyOnWrite(); instance.setDelId(value); return this; } /** * int32 del_id = 4 [json_name = "delId"]; * @return This builder for chaining. */ public Builder clearDelId() { copyOnWrite(); instance.clearDelId(); return this; } /** * int32 read_id = 5 [json_name = "readId"]; * @return The readId. */ @java.lang.Override public int getReadId() { return instance.getReadId(); } /** * int32 read_id = 5 [json_name = "readId"]; * @param value The readId to set. * @return This builder for chaining. */ public Builder setReadId(int value) { copyOnWrite(); instance.setReadId(value); return this; } /** * int32 read_id = 5 [json_name = "readId"]; * @return This builder for chaining. */ public Builder clearReadId() { copyOnWrite(); instance.clearReadId(); return this; } /** * int32 recv_id = 6 [json_name = "recvId"]; * @return The recvId. */ @java.lang.Override public int getRecvId() { return instance.getRecvId(); } /** * int32 recv_id = 6 [json_name = "recvId"]; * @param value The recvId to set. * @return This builder for chaining. */ public Builder setRecvId(int value) { copyOnWrite(); instance.setRecvId(value); return this; } /** * int32 recv_id = 6 [json_name = "recvId"]; * @return This builder for chaining. */ public Builder clearRecvId() { copyOnWrite(); instance.clearRecvId(); return this; } /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ @java.lang.Override public boolean hasMode() { return instance.hasMode(); } /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ @java.lang.Override public pbx.Model.AccessMode getMode() { return instance.getMode(); } /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ public Builder setMode(pbx.Model.AccessMode value) { copyOnWrite(); instance.setMode(value); return this; } /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ public Builder setMode( pbx.Model.AccessMode.Builder builderForValue) { copyOnWrite(); instance.setMode(builderForValue.build()); return this; } /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ public Builder mergeMode(pbx.Model.AccessMode value) { copyOnWrite(); instance.mergeMode(value); return this; } /** * .pbx.AccessMode mode = 7 [json_name = "mode"]; */ public Builder clearMode() { copyOnWrite(); instance.clearMode(); return this; } /** * bytes private = 8 [json_name = "private"]; * @return The private. */ @java.lang.Override public com.google.protobuf.ByteString getPrivate() { return instance.getPrivate(); } /** * bytes private = 8 [json_name = "private"]; * @param value The private to set. * @return This builder for chaining. */ public Builder setPrivate(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPrivate(value); return this; } /** * bytes private = 8 [json_name = "private"]; * @return This builder for chaining. */ public Builder clearPrivate() { copyOnWrite(); instance.clearPrivate(); return this; } // @@protoc_insertion_point(builder_scope:pbx.SubscriptionEvent) } @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 pbx.Model.SubscriptionEvent(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "action_", "topic_", "userId_", "delId_", "readId_", "recvId_", "mode_", "private_", }; java.lang.String info = "\u0000\b\u0000\u0001\u0001\b\b\u0000\u0000\u0000\u0001\f\u0002\u0208\u0003\u0208" + "\u0004\u0004\u0005\u0004\u0006\u0004\u0007\u1009\u0000\b\n"; 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 (pbx.Model.SubscriptionEvent.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:pbx.SubscriptionEvent) private static final pbx.Model.SubscriptionEvent DEFAULT_INSTANCE; static { SubscriptionEvent defaultInstance = new SubscriptionEvent(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SubscriptionEvent.class, defaultInstance); } public static pbx.Model.SubscriptionEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface MessageEventOrBuilder extends // @@protoc_insertion_point(interface_extends:pbx.MessageEvent) com.google.protobuf.MessageLiteOrBuilder { /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ int getActionValue(); /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ pbx.Model.Crud getAction(); /** * .pbx.ServerData msg = 2 [json_name = "msg"]; * @return Whether the msg field is set. */ boolean hasMsg(); /** * .pbx.ServerData msg = 2 [json_name = "msg"]; * @return The msg. */ pbx.Model.ServerData getMsg(); } /** * Protobuf type {@code pbx.MessageEvent} */ public static final class MessageEvent extends com.google.protobuf.GeneratedMessageLite< MessageEvent, MessageEvent.Builder> implements // @@protoc_insertion_point(message_implements:pbx.MessageEvent) MessageEventOrBuilder { private MessageEvent() { } private int bitField0_; public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return action_; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ @java.lang.Override public pbx.Model.Crud getAction() { pbx.Model.Crud result = pbx.Model.Crud.forNumber(action_); return result == null ? pbx.Model.Crud.UNRECOGNIZED : result; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The enum numeric value on the wire for action to set. */ private void setActionValue(int value) { action_ = value; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The action to set. */ private void setAction(pbx.Model.Crud value) { action_ = value.getNumber(); } /** * .pbx.Crud action = 1 [json_name = "action"]; */ private void clearAction() { action_ = 0; } public static final int MSG_FIELD_NUMBER = 2; private pbx.Model.ServerData msg_; /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ @java.lang.Override public boolean hasMsg() { return ((bitField0_ & 0x00000001) != 0); } /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ @java.lang.Override public pbx.Model.ServerData getMsg() { return msg_ == null ? pbx.Model.ServerData.getDefaultInstance() : msg_; } /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ private void setMsg(pbx.Model.ServerData value) { value.getClass(); msg_ = value; bitField0_ |= 0x00000001; } /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeMsg(pbx.Model.ServerData value) { value.getClass(); if (msg_ != null && msg_ != pbx.Model.ServerData.getDefaultInstance()) { msg_ = pbx.Model.ServerData.newBuilder(msg_).mergeFrom(value).buildPartial(); } else { msg_ = value; } bitField0_ |= 0x00000001; } /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ private void clearMsg() { msg_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static pbx.Model.MessageEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.MessageEvent 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 pbx.Model.MessageEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.MessageEvent 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 pbx.Model.MessageEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static pbx.Model.MessageEvent 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 pbx.Model.MessageEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.MessageEvent 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 pbx.Model.MessageEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static pbx.Model.MessageEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static pbx.Model.MessageEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static pbx.Model.MessageEvent 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(pbx.Model.MessageEvent prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code pbx.MessageEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< pbx.Model.MessageEvent, Builder> implements // @@protoc_insertion_point(builder_implements:pbx.MessageEvent) pbx.Model.MessageEventOrBuilder { // Construct using pbx.Model.MessageEvent.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return instance.getActionValue(); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { copyOnWrite(); instance.setActionValue(value); return this; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return The action. */ @java.lang.Override public pbx.Model.Crud getAction() { return instance.getAction(); } /** * .pbx.Crud action = 1 [json_name = "action"]; * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setAction(pbx.Model.Crud value) { copyOnWrite(); instance.setAction(value); return this; } /** * .pbx.Crud action = 1 [json_name = "action"]; * @return This builder for chaining. */ public Builder clearAction() { copyOnWrite(); instance.clearAction(); return this; } /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ @java.lang.Override public boolean hasMsg() { return instance.hasMsg(); } /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ @java.lang.Override public pbx.Model.ServerData getMsg() { return instance.getMsg(); } /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ public Builder setMsg(pbx.Model.ServerData value) { copyOnWrite(); instance.setMsg(value); return this; } /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ public Builder setMsg( pbx.Model.ServerData.Builder builderForValue) { copyOnWrite(); instance.setMsg(builderForValue.build()); return this; } /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ public Builder mergeMsg(pbx.Model.ServerData value) { copyOnWrite(); instance.mergeMsg(value); return this; } /** * .pbx.ServerData msg = 2 [json_name = "msg"]; */ public Builder clearMsg() { copyOnWrite(); instance.clearMsg(); return this; } // @@protoc_insertion_point(builder_scope:pbx.MessageEvent) } @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 pbx.Model.MessageEvent(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "action_", "msg_", }; java.lang.String info = "\u0000\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001\f\u0002\u1009" + "\u0000"; 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 (pbx.Model.MessageEvent.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:pbx.MessageEvent) private static final pbx.Model.MessageEvent DEFAULT_INSTANCE; static { MessageEvent defaultInstance = new MessageEvent(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( MessageEvent.class, defaultInstance); } public static pbx.Model.MessageEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } static { } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy