static {
   java.lang.String[] descriptorData = {
     "\n$src/test/proto/TestDataFormats.proto\032\'"
         + "src/main/proto/BookkeeperProtocol.proto*"
         + "R\n\017AuthMessageType\022\024\n\020SUCCESS_RESPONSE\020\001"
         + "\022\024\n\020FAILURE_RESPONSE\020\002\022\023\n\017PAYLOAD_MESSAG"
         + "E\020\003:4\n\013messageType\022\014.AuthMessage\030\350\007 \001(\0162"
         + "\020.AuthMessageTypeB\037\n\033org.apache.bookkeep"
         + "er.protoH\001"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData,
       new com.google.protobuf.Descriptors.FileDescriptor[] {
         org.apache.bookkeeper.proto.BookkeeperProtocol.getDescriptor(),
       },
       assigner);
   messageType.internalInit(descriptor.getExtensions().get(0));
   org.apache.bookkeeper.proto.BookkeeperProtocol.getDescriptor();
 }
 /**
  * Populates a map of protobuf extensions and map with the default values for each message field
  * from a map of file descriptors.
  *
  * @param fileDescriptorMap Map of file descriptors
  * @param typeToExtensionMap Map of extensions to populate
  * @param defaultValueMap Map of default values to populate
  */
 public static void populateDefaultsAndExtensions(
     Map<String, Descriptors.FileDescriptor> fileDescriptorMap,
     Map<String, Set<Descriptors.FieldDescriptor>> typeToExtensionMap,
     Map<String, Object> defaultValueMap) {
   for (Descriptors.FileDescriptor f : fileDescriptorMap.values()) {
     // go over every file descriptor and look for extensions and default values of those
     // extensions
     for (Descriptors.FieldDescriptor fieldDescriptor : f.getExtensions()) {
       String containingType = fieldDescriptor.getContainingType().getFullName();
       Set<Descriptors.FieldDescriptor> fieldDescriptors = typeToExtensionMap.get(containingType);
       if (fieldDescriptors == null) {
         fieldDescriptors = new LinkedHashSet<>();
         typeToExtensionMap.put(containingType, fieldDescriptors);
       }
       fieldDescriptors.add(fieldDescriptor);
       if (fieldDescriptor.hasDefaultValue()) {
         defaultValueMap.put(
             containingType + "." + fieldDescriptor.getName(), fieldDescriptor.getDefaultValue());
       }
     }
     // go over messages within file descriptor and look for all fields and extensions and their
     // defaults
     for (Descriptors.Descriptor d : f.getMessageTypes()) {
       addDefaultsAndExtensions(typeToExtensionMap, defaultValueMap, d);
     }
   }
 }
  /**
   * Generates a protobuf descriptor instance from a FileDescriptor set.
   *
   * @param set set of file descriptors
   * @param fileDescriptorMap map of message types to file descriptors
   * @param descriptorFile descriptor file for message to be decoded
   * @param qualifiedMessageType the name of the message to be decoded
   * @return protobuf descriptor instance
   * @throws StageException
   */
  public static Descriptors.Descriptor getDescriptor(
      DescriptorProtos.FileDescriptorSet set,
      Map<String, Descriptors.FileDescriptor> fileDescriptorMap,
      String descriptorFile,
      String qualifiedMessageType)
      throws StageException {

    // find the FileDescriptorProto which contains the message type
    // IF cannot find, then bail out
    String packageName = null;
    String messageType = qualifiedMessageType;
    int lastIndex = qualifiedMessageType.lastIndexOf('.');
    if (lastIndex != -1) {
      packageName = qualifiedMessageType.substring(0, lastIndex);
      messageType = qualifiedMessageType.substring(lastIndex + 1);
    }
    DescriptorProtos.FileDescriptorProto file =
        getFileDescProtoForMsgType(packageName, messageType, set);
    if (file == null) {
      // could not find the message type from all the proto files contained in the descriptor file
      throw new StageException(Errors.PROTOBUF_00, qualifiedMessageType, descriptorFile);
    }
    // finally get the FileDescriptor for the message type
    Descriptors.FileDescriptor fileDescriptor = fileDescriptorMap.get(file.getName());
    // create builder using the FileDescriptor
    // this can only find the top level message types
    return fileDescriptor.findMessageTypeByName(messageType);
  }
  /**
   * Generates a protobuf descriptor instance from a FileDescriptor set.
   *
   * @param set set of file descriptors
   * @param fileDescriptorMap map of message types to file descriptors
   * @param descriptorFile descriptor file for message to be decoded
   * @param messageType the name of the message to be decoded
   * @return protobuf descriptor instance
   * @throws StageException
   */
  public static Descriptors.Descriptor getDescriptor(
      DescriptorProtos.FileDescriptorSet set,
      Map<String, Descriptors.FileDescriptor> fileDescriptorMap,
      String descriptorFile,
      String messageType)
      throws StageException {

    // find the FileDescriptorProto which contains the message type
    // IF cannot find, then bail out
    DescriptorProtos.FileDescriptorProto file = null;
    for (DescriptorProtos.FileDescriptorProto fileDescriptorProto : set.getFileList()) {
      for (DescriptorProtos.DescriptorProto descriptorProto :
          getAllMessageTypesInDescriptorProto(fileDescriptorProto)) {
        if (messageType.equals(descriptorProto.getName())) {
          file = fileDescriptorProto;
          break;
        }
      }
      if (file != null) {
        break;
      }
    }
    if (file == null) {
      // could not find the message type from all the proto files contained in the descriptor file
      throw new StageException(Errors.PROTOBUF_00, messageType, descriptorFile);
    }
    // finally get the FileDescriptor for the message type
    Descriptors.FileDescriptor fileDescriptor = fileDescriptorMap.get(file.getName());
    // create builder using the FileDescriptor
    return fileDescriptor.findMessageTypeByName(messageType);
  }
  /**
   * Returns a Message {@link Descriptor} for a dynamically generated DescriptorProto.
   *
   * @param descProto
   * @throws DescriptorValidationException
   */
  public static Descriptor makeMessageDescriptor(DescriptorProto descProto)
      throws DescriptorValidationException {

    DescriptorProtos.FileDescriptorProto fileDescP =
        DescriptorProtos.FileDescriptorProto.newBuilder().addMessageType(descProto).build();

    Descriptors.FileDescriptor[] fileDescs = new Descriptors.FileDescriptor[0];
    Descriptors.FileDescriptor dynamicDescriptor =
        Descriptors.FileDescriptor.buildFrom(fileDescP, fileDescs);
    return dynamicDescriptor.findMessageTypeByName(descProto.getName());
  }
 static {
   java.lang.String[] descriptorData = {
     "\n\031TaskEnumeratorEntry.proto\022\'com.alachis"
         + "oft.tayzgrid.common.protobuf\"1\n\023TaskEnum"
         + "eratorEntry\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014B"
         + "\035B\033TaskEnumeratorEntryProtocol"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_com_alachisoft_tayzgrid_common_protobuf_TaskEnumeratorEntry_descriptor =
               getDescriptor().getMessageTypes().get(0);
           internal_static_com_alachisoft_tayzgrid_common_protobuf_TaskEnumeratorEntry_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_com_alachisoft_tayzgrid_common_protobuf_TaskEnumeratorEntry_descriptor,
                   new java.lang.String[] {
                     "Key", "Value",
                   },
                   com.alachisoft.tayzgrid.common.protobuf.TaskEnumeratorEntryProtocol
                       .TaskEnumeratorEntry.class,
                   com.alachisoft.tayzgrid.common.protobuf.TaskEnumeratorEntryProtocol
                       .TaskEnumeratorEntry.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
Exemple #7
0
 static {
   java.lang.String[] descriptorData = {
     "\n\020Technology.proto\022\033com.hifun.soul.proto"
         + ".common\"1\n\nTechnology\022\024\n\014technologyId\030\001 "
         + "\002(\005\022\r\n\005level\030\002 \002(\005B*\n\033com.hifun.soul.pro"
         + "to.commonB\013Technologys"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_com_hifun_soul_proto_common_Technology_descriptor =
               getDescriptor().getMessageTypes().get(0);
           internal_static_com_hifun_soul_proto_common_Technology_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_com_hifun_soul_proto_common_Technology_descriptor,
                   new java.lang.String[] {
                     "TechnologyId", "Level",
                   },
                   com.hifun.soul.proto.common.Technologys.Technology.class,
                   com.hifun.soul.proto.common.Technologys.Technology.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
 static {
   java.lang.String[] descriptorData = {
     "\n\021BceUserSync.proto\022 com.xinqihd.sns.gam"
         + "eserver.proto\"@\n\013BceUserSync\022\017\n\004mode\030\001 \001"
         + "(\005:\0011\022\020\n\005value\030\002 \001(\005:\0010\022\016\n\006object\030\003 \001(\tB"
         + "\022B\020XinqiBceUserSync"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_com_xinqihd_sns_gameserver_proto_BceUserSync_descriptor =
               getDescriptor().getMessageTypes().get(0);
           internal_static_com_xinqihd_sns_gameserver_proto_BceUserSync_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_com_xinqihd_sns_gameserver_proto_BceUserSync_descriptor,
                   new java.lang.String[] {
                     "Mode", "Value", "Object",
                   },
                   com.xinqihd.sns.gameserver.proto.XinqiBceUserSync.BceUserSync.class,
                   com.xinqihd.sns.gameserver.proto.XinqiBceUserSync.BceUserSync.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
Exemple #9
0
 static {
   java.lang.String[] descriptorData = {
     "\n\022DungeonProto.proto\022\005proto\"P\n\014DungeonPr"
         + "oto\022\021\n\tdungeonID\030\001 \001(\005\022\020\n\010levelReq\030\002 \001(\005"
         + "\022\r\n\005rooms\030\003 \003(\005\022\014\n\004name\030\004 \001(\tB\'\n\034com.lvl"
         + "6.aoc2.noneventprotosB\007Dungeon"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_proto_DungeonProto_descriptor =
               getDescriptor().getMessageTypes().get(0);
           internal_static_proto_DungeonProto_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_proto_DungeonProto_descriptor,
                   new java.lang.String[] {
                     "DungeonID", "LevelReq", "Rooms", "Name",
                   },
                   com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto.class,
                   com.lvl6.aoc2.noneventprotos.Dungeon.DungeonProto.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
Exemple #10
0
 static {
   java.lang.String[] descriptorData = {
     "\n\037src/main/proto/IscsiProto.proto\"j\n\010Log"
         + "Entry\022\020\n\010store_id\030\001 \002(\004\022\032\n\006action\030\002 \002(\0162"
         + "\n.LogAction\022\013\n\003key\030\003 \001(\014\022\r\n\005value\030\004 \001(\014\022"
         + "\024\n\014increment_by\030\005 \001(\003*;\n\tLogAction\022\007\n\003SE"
         + "T\020\001\022\n\n\006DELETE\020\002\022\r\n\tINCREMENT\020\003\022\n\n\006APPEND"
         + "\020\004B\031\n\027com.cloudata.blockstore"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_LogEntry_descriptor = getDescriptor().getMessageTypes().get(0);
           internal_static_LogEntry_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_LogEntry_descriptor,
                   new java.lang.String[] {
                     "StoreId", "Action", "Key", "Value", "IncrementBy",
                   });
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
Exemple #11
0
 static {
   java.lang.String[] descriptorData = {
     "\n\013Admin.proto\032\nWasp.proto\"1\n\004UUID\022\024\n\014lea"
         + "stSigBits\030\001 \002(\004\022\023\n\013mostSigBits\030\002 \002(\0042\016\n\014"
         + "AdminServiceB:\n#com.alibaba.wasp.protobu"
         + "f.generatedB\013AdminProtosH\001\210\001\001\240\001\001"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_UUID_descriptor = getDescriptor().getMessageTypes().get(0);
           internal_static_UUID_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_UUID_descriptor,
                   new java.lang.String[] {
                     "LeastSigBits", "MostSigBits",
                   },
                   com.alibaba.wasp.protobuf.generated.AdminProtos.UUID.class,
                   com.alibaba.wasp.protobuf.generated.AdminProtos.UUID.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData,
       new com.google.protobuf.Descriptors.FileDescriptor[] {
         com.alibaba.wasp.protobuf.generated.WaspProtos.getDescriptor(),
       },
       assigner);
 }
Exemple #12
0
 static {
   java.lang.String[] descriptorData = {
     "\n\016GBHandle.proto\022\016D3.GameBalance\"1\n\006Hand"
         + "le\022\031\n\021game_balance_type\030\001 \002(\021\022\014\n\004gbid\030\002 "
         + "\002(\017"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_D3_GameBalance_Handle_descriptor =
               getDescriptor().getMessageTypes().get(0);
           internal_static_D3_GameBalance_Handle_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_D3_GameBalance_Handle_descriptor,
                   new java.lang.String[] {
                     "GameBalanceType", "Gbid",
                   },
                   D3.GameBalance.GBHandle.Handle.class,
                   D3.GameBalance.GBHandle.Handle.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
 static {
   java.lang.String[] descriptorData = {
     "\n\021BseShopping.proto\022 com.xinqihd.sns.gam"
         + "eserver.proto\032\017GoodsInfo.proto\"k\n\013BseSho"
         + "pping\022\014\n\004type\030\001 \002(\005\022\016\n\006gender\030\002 \002(\005\022>\n\tg"
         + "oodsInfo\030\003 \003(\0132+.com.xinqihd.sns.gameser"
         + "ver.proto.GoodsInfoB\022B\020XinqiBseShopping"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_com_xinqihd_sns_gameserver_proto_BseShopping_descriptor =
               getDescriptor().getMessageTypes().get(0);
           internal_static_com_xinqihd_sns_gameserver_proto_BseShopping_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_com_xinqihd_sns_gameserver_proto_BseShopping_descriptor,
                   new java.lang.String[] {
                     "Type", "Gender", "GoodsInfo",
                   },
                   com.xinqihd.sns.gameserver.proto.XinqiBseShopping.BseShopping.class,
                   com.xinqihd.sns.gameserver.proto.XinqiBseShopping.BseShopping.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData,
       new com.google.protobuf.Descriptors.FileDescriptor[] {
         com.xinqihd.sns.gameserver.proto.XinqiGoodsInfo.getDescriptor(),
       },
       assigner);
 }
Exemple #14
0
 static {
   java.lang.String[] descriptorData = {
     "\n\017Transport.proto\022!cn.garden.network.tra"
         + "nsport.proto\"F\n\007Message\022\n\n\002id\030\001 \001(\t\022\016\n\006s"
         + "tatus\030\002 \001(\005\022\016\n\006action\030\003 \001(\t\022\017\n\007message\030\004"
         + " \001(\014B*\n\033cn.garden.network.transportB\tTra"
         + "nsportH\001"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
   internal_static_cn_garden_network_transport_proto_Message_descriptor =
       getDescriptor().getMessageTypes().get(0);
   internal_static_cn_garden_network_transport_proto_Message_fieldAccessorTable =
       new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
           internal_static_cn_garden_network_transport_proto_Message_descriptor,
           new java.lang.String[] {
             "Id", "Status", "Action", "Message",
           });
 }
Exemple #15
0
 static {
   java.lang.String[] descriptorData = {
     "\n\nmsgs.proto\"8\n\014ProtobufPOJO\022\n\n\002id\030\001 \002(\004"
         + "\022\014\n\004name\030\002 \002(\t\022\016\n\006status\030\003 \002(\010B(\n\033com.sh"
         + "sz.young.tut.protobufB\tProtoMsgs"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_ProtobufPOJO_descriptor = getDescriptor().getMessageTypes().get(0);
           internal_static_ProtobufPOJO_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_ProtobufPOJO_descriptor,
                   new java.lang.String[] {
                     "Id", "Name", "Status",
                   },
                   com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO.class,
                   com.shsz.young.tut.protobuf.ProtoMsgs.ProtobufPOJO.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
 static {
   java.lang.String[] descriptorData = {
     "\n\022BseAuthState.proto\022 com.xinqihd.sns.ga"
         + "meserver.proto\";\n\014BseAuthState\022\014\n\004pass\030\001"
         + " \002(\010\022\014\n\004type\030\002 \002(\005\022\017\n\007leftMin\030\003 \002(\005B\023B\021X"
         + "inqiBseAuthState"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_com_xinqihd_sns_gameserver_proto_BseAuthState_descriptor =
               getDescriptor().getMessageTypes().get(0);
           internal_static_com_xinqihd_sns_gameserver_proto_BseAuthState_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_com_xinqihd_sns_gameserver_proto_BseAuthState_descriptor,
                   new java.lang.String[] {
                     "Pass", "Type", "LeftMin",
                   },
                   com.xinqihd.sns.gameserver.proto.XinqiBseAuthState.BseAuthState.class,
                   com.xinqihd.sns.gameserver.proto.XinqiBseAuthState.BseAuthState.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
Exemple #17
0
 static {
   java.lang.String[] descriptorData = {
     "\n\026KeyValueMessages.proto\022(org.opendaylig"
         + "ht.controller.cluster.raft\032\033AppendEntrie"
         + "sMessages.proto:_\n\003key\022R.org.opendayligh"
         + "t.controller.cluster.raft.AppendEntries."
         + "ReplicatedLogEntry.Payload\030\002 \001(\t:a\n\005valu"
         + "e\022R.org.opendaylight.controller.cluster."
         + "raft.AppendEntries.ReplicatedLogEntry.Pa"
         + "yload\030\003 \001(\tBT\n>org.opendaylight.controll"
         + "er.cluster.example.protobuff.messagesB\020K"
         + "eyValueMessagesH\001"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           key.internalInit(descriptor.getExtensions().get(0));
           value.internalInit(descriptor.getExtensions().get(1));
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData,
       new com.google.protobuf.Descriptors.FileDescriptor[] {
         org.opendaylight.controller.cluster.raft.protobuff.messages.AppendEntriesMessages
             .getDescriptor(),
       },
       assigner);
 }
 static {
   java.lang.String[] descriptorData = {
     "\n\027google/type/color.proto\022\013google.type\032\036"
         + "google/protobuf/wrappers.proto\"]\n\005Color\022"
         + "\013\n\003red\030\001 \001(\002\022\r\n\005green\030\002 \001(\002\022\014\n\004blue\030\003 \001("
         + "\002\022*\n\005alpha\030\004 \001(\0132\033.google.protobuf.Float"
         + "ValueB%\n\017com.google.typeB\nColorProtoP\001\242\002"
         + "\003GTPb\006proto3"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData,
       new com.google.protobuf.Descriptors.FileDescriptor[] {
         com.google.protobuf.WrappersProto.getDescriptor(),
       },
       assigner);
   internal_static_google_type_Color_descriptor = getDescriptor().getMessageTypes().get(0);
   internal_static_google_type_Color_fieldAccessorTable =
       new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
           internal_static_google_type_Color_descriptor,
           new java.lang.String[] {
             "Red", "Green", "Blue", "Alpha",
           });
   com.google.protobuf.WrappersProto.getDescriptor();
 }
 static {
   java.lang.String[] descriptorData = {
     "\n\021PGuidePosts.proto\"F\n\013PGuidePosts\022\022\n\ngu"
         + "idePosts\030\001 \003(\014\022\021\n\tbyteCount\030\002 \001(\003\022\020\n\010row"
         + "Count\030\003 \001(\003BE\n(org.apache.phoenix.coproc"
         + "essor.generatedB\021PGuidePostsProtosH\001\210\001\001\240"
         + "\001\001"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_PGuidePosts_descriptor = getDescriptor().getMessageTypes().get(0);
           internal_static_PGuidePosts_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_PGuidePosts_descriptor,
                   new java.lang.String[] {
                     "GuidePosts", "ByteCount", "RowCount",
                   });
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
 /**
  * Loads a Protobuf file descriptor set into an ubermap of file descriptors.
  *
  * @param set FileDescriptorSet
  * @param dependenciesMap FileDescriptor dependency map
  * @param fileDescriptorMap The populated map of FileDescriptors
  * @throws StageException
  */
 public static void getAllFileDescriptors(
     DescriptorProtos.FileDescriptorSet set,
     Map<String, Set<Descriptors.FileDescriptor>> dependenciesMap,
     Map<String, Descriptors.FileDescriptor> fileDescriptorMap)
     throws StageException {
   List<DescriptorProtos.FileDescriptorProto> fileList = set.getFileList();
   try {
     for (DescriptorProtos.FileDescriptorProto fdp : fileList) {
       if (!fileDescriptorMap.containsKey(fdp.getName())) {
         Set<Descriptors.FileDescriptor> dependencies = dependenciesMap.get(fdp.getName());
         if (dependencies == null) {
           dependencies = new LinkedHashSet<>();
           dependenciesMap.put(fdp.getName(), dependencies);
           dependencies.addAll(getDependencies(dependenciesMap, fileDescriptorMap, fdp, set));
         }
         Descriptors.FileDescriptor fileDescriptor =
             Descriptors.FileDescriptor.buildFrom(
                 fdp, dependencies.toArray(new Descriptors.FileDescriptor[dependencies.size()]));
         fileDescriptorMap.put(fdp.getName(), fileDescriptor);
       }
     }
   } catch (Descriptors.DescriptorValidationException e) {
     throw new StageException(Errors.PROTOBUF_07, e.getDescription(), e);
   }
 }
 static {
   java.lang.String[] descriptorData = {
     "\n\021http_logger.proto\022\005scope\"K\n\006Header\022\021\n\t"
         + "requestID\030\001 \002(\r\022\020\n\010windowID\030\002 \002(\r\022\014\n\004tim"
         + "e\030\003 \002(\t\022\016\n\006header\030\004 \002(\tB9\n#com.opera.cor"
         + "e.systems.scope.protosB\020HttpLoggerProtos"
         + "H\001"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_scope_Header_descriptor = getDescriptor().getMessageTypes().get(0);
           internal_static_scope_Header_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_scope_Header_descriptor,
                   new java.lang.String[] {
                     "RequestID", "WindowID", "Time", "Header",
                   },
                   com.opera.core.systems.scope.protos.HttpLoggerProtos.Header.class,
                   com.opera.core.systems.scope.protos.HttpLoggerProtos.Header.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
 static {
   java.lang.String[] descriptorData = {
     "\n$src/main/protobuf/EventFormats.proto\"X"
         + "\n\013EventFormat\022\025\n\rpersistenceId\030\001 \001(\t\022\022\n\n"
         + "sequenceNr\030\002 \001(\003\022\036\n\004data\030\003 \001(\0132\020.EventDa"
         + "taFormat\"K\n\017EventDataFormat\022\024\n\014serialize"
         + "rId\030\001 \001(\005\022\014\n\004data\030\002 \001(\014\022\024\n\014dataManifest\030"
         + "\003 \001(\014B\"\n\036akka.persistence.kafka.journalH"
         + "\001"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_EventFormat_descriptor = getDescriptor().getMessageTypes().get(0);
           internal_static_EventFormat_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_EventFormat_descriptor,
                   new java.lang.String[] {
                     "PersistenceId", "SequenceNr", "Data",
                   });
           internal_static_EventDataFormat_descriptor = getDescriptor().getMessageTypes().get(1);
           internal_static_EventDataFormat_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_EventDataFormat_descriptor,
                   new java.lang.String[] {
                     "SerializerId", "Data", "DataManifest",
                   });
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
Exemple #23
0
 static {
   java.lang.String[] descriptorData = {
     "\n\016FileMeta.proto\"g\n\010FileMeta\022\016\n\006fileId\030\001"
         + " \002(\t\022\020\n\010fileName\030\002 \001(\t\022\020\n\010fileSize\030\003 \002(\003"
         + "\022\022\n\ncreateTime\030\004 \002(\003\022\023\n\013innerFileId\030\005 \002("
         + "\tB;\n!org.simplefs.fs.meta.serial.protoB\016"
         + "FileMetaProtosH\001\210\001\001\240\001\001"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_FileMeta_descriptor = getDescriptor().getMessageTypes().get(0);
           internal_static_FileMeta_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_FileMeta_descriptor,
                   new java.lang.String[] {
                     "FileId", "FileName", "FileSize", "CreateTime", "InnerFileId",
                   });
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
 static {
   java.lang.String[] descriptorData = {
     "\n\026test_rpc_service.proto\032\ntest.proto2\250\001\n"
         + "\024TestProtobufRpcProto\022/\n\004ping\022\022.EmptyReq"
         + "uestProto\032\023.EmptyResponseProto\022-\n\004echo\022\021"
         + ".EchoRequestProto\032\022.EchoResponseProto\0220\n"
         + "\005error\022\022.EmptyRequestProto\032\023.EmptyRespon"
         + "seProtoBD\n&org.apache.wasp.ipc.protobuf."
         + "generatedB\024TestRpcServiceProtos\210\001\001\240\001\001"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData,
       new com.google.protobuf.Descriptors.FileDescriptor[] {
         org.apache.wasp.ipc.protobuf.generated.TestProtos.getDescriptor(),
       },
       assigner);
 }
Exemple #25
0
 static {
   java.lang.String[] descriptorData = {
     "\n\rTracing.proto\022\010hbase.pb\"/\n\010RPCTInfo\022\020\n"
         + "\010trace_id\030\001 \001(\003\022\021\n\tparent_id\030\002 \001(\003B@\n*or"
         + "g.apache.hadoop.hbase.protobuf.generated"
         + "B\rTracingProtosH\001\240\001\001"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_hbase_pb_RPCTInfo_descriptor = getDescriptor().getMessageTypes().get(0);
           internal_static_hbase_pb_RPCTInfo_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_hbase_pb_RPCTInfo_descriptor,
                   new java.lang.String[] {
                     "TraceId", "ParentId",
                   });
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
 static {
   java.lang.String[] descriptorData = {
     "\n\034GetCacheBindingCommand.proto\022\'com.alac"
         + "hisoft.tayzgrid.common.protobuf\"m\n\026GetCa"
         + "cheBindingCommand\022\021\n\trequestId\030\001 \001(\003\022\017\n\007"
         + "cacheId\030\002 \001(\t\022\021\n\tisRunning\030\003 \001(\010\022\034\n\016isDo"
         + "tnetClient\030\004 \001(\010:\004trueB B\036GetCacheBindin"
         + "gCommandProtocol"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_com_alachisoft_tayzgrid_common_protobuf_GetCacheBindingCommand_descriptor =
               getDescriptor().getMessageTypes().get(0);
           internal_static_com_alachisoft_tayzgrid_common_protobuf_GetCacheBindingCommand_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_com_alachisoft_tayzgrid_common_protobuf_GetCacheBindingCommand_descriptor,
                   new java.lang.String[] {
                     "RequestId", "CacheId", "IsRunning", "IsDotnetClient",
                   },
                   com.alachisoft.tayzgrid.common.protobuf.GetCacheBindingCommandProtocol
                       .GetCacheBindingCommand.class,
                   com.alachisoft.tayzgrid.common.protobuf.GetCacheBindingCommandProtocol
                       .GetCacheBindingCommand.Builder.class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
Exemple #27
0
 static {
   java.lang.String[] descriptorData = {
     "\n\022InnerCommand.proto\022\030com.loncent.protoc"
         + "ol.cmd*\272\003\n\014CmdInnerType\022\034\n\026SC_SS_REGISTE"
         + "R_REQUEST\020\200\200@\022\035\n\027S_L_CHECK_TOKEN_REQUEST"
         + "\020\201\200@\022\036\n\030S_L_CHECK_TOKEN_RESPONSE\020\202\200@\022\035\n\027"
         + "S_L_ONLIN_COUNT_REQUEST\020\203\200@\022#\n\035WORLD_GAM"
         + "E_ENTER_GAME_REQUEST\020\204\200@\022+\n%GAME_GATE_EN"
         + "TER_GAME_SUCCESS_RESPONSE\020\205\200@\022#\n\035GATE_GA"
         + "ME_PLAYER_EXIT_REQUEST\020\206\200@\022$\n\036GAME_WORLD"
         + "_PLAYER_EXIT_REQUEST\020\207\200@\022&\n GAME_WORLD_U"
         + "PDATE_PLAYER_REQUEST\020\210\200@\022$\n\036GATE_WORLD_P",
     "LAYER_EXIT_REQUEST\020\211\200@\022 \n\032INNER_SERVER_H"
         + "EART_REQUEST\020\212\200@\022!\n\033WORLD_GAME_DEL_ROLE_"
         + "REQUEST\020\213\200@B\032\n\030com.loncent.protocol.cmd"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
 static {
   java.lang.String[] descriptorData = {
     "\n\023SubscribeResp.proto\022\005netty\"A\n\rSubscrib"
         + "eResp\022\020\n\010subReqId\030\001 \002(\005\022\020\n\010respCode\030\002 \002("
         + "\005\022\014\n\004desc\030\003 \002(\tB>\n(com.hailiang.study.co"
         + "dec.demo01.protobufB\022SubscribeRespProto"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_netty_SubscribeResp_descriptor =
               getDescriptor().getMessageTypes().get(0);
           internal_static_netty_SubscribeResp_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_netty_SubscribeResp_descriptor,
                   new java.lang.String[] {
                     "SubReqId", "RespCode", "Desc",
                   });
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
 static {
   java.lang.String[] descriptorData = {
     "\n\024VersionMessage.proto\022/org.apache.hadoo"
         + "p.hbase.rest.protobuf.generated\"s\n\007Versi"
         + "on\022\023\n\013restVersion\030\001 \001(\t\022\022\n\njvmVersion\030\002 "
         + "\001(\t\022\021\n\tosVersion\030\003 \001(\t\022\025\n\rserverVersion\030"
         + "\004 \001(\t\022\025\n\rjerseyVersion\030\005 \001(\t"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Version_descriptor =
               getDescriptor().getMessageTypes().get(0);
           internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Version_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Version_descriptor,
                   new java.lang.String[] {
                     "RestVersion", "JvmVersion", "OsVersion", "ServerVersion", "JerseyVersion",
                   },
                   org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version.class,
                   org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version.Builder
                       .class);
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }
 static {
   java.lang.String[] descriptorData = {
     "\n$com/crovate/proto/ussd_request.proto\022\007"
         + "crovate\"\307\001\n\007Request\022\n\n\002id\030\001 \002(\t\022\n\n\002op\030\002 "
         + "\002(\t\022\n\n\002cp\030\003 \002(\t\022\017\n\007timeout\030\004 \001(\005\022\017\n\007mess"
         + "age\030\005 \002(\t\022*\n\004type\030\007 \002(\0162\034.crovate.Reques"
         + "t.RequestType\"J\n\013RequestType\022\t\n\005BEGIN\020\000\022"
         + "\014\n\010CONTINUE\020\001\022\007\n\003END\020\002\022\t\n\005CLOSE\020\003\022\016\n\nHEA"
         + "RT_BEAT\020\004B\'\n\023com.crovate.messageB\020ProtoB"
         + "uffRequest"
   };
   com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
         public com.google.protobuf.ExtensionRegistry assignDescriptors(
             com.google.protobuf.Descriptors.FileDescriptor root) {
           descriptor = root;
           internal_static_crovate_Request_descriptor = getDescriptor().getMessageTypes().get(0);
           internal_static_crovate_Request_fieldAccessorTable =
               new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                   internal_static_crovate_Request_descriptor,
                   new java.lang.String[] {
                     "Id", "Op", "Cp", "Timeout", "Message", "Type",
                   });
           return null;
         }
       };
   com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
       descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
 }