Java 类com.google.protobuf.DescriptorProtos.MessageOptions 实例源码

项目:Okra-Ax    文件:AxAnyUtil.java   
public static long fetchMsgId(Descriptor descriptor) {
    MessageOptions options = descriptor.getOptions();
    return options.hasExtension(AxOptions.messageId) ?
            options.getExtension(AxOptions.messageId) :
            Murmur2.hash(descriptor.getFullName());
}
项目:api-compiler    文件:DescriptorGenerator.java   
private MessageOptions generateMessageOptions(Type type) {
  MessageOptions.Builder builder = MessageOptions.newBuilder();
  setOptions(builder, type.getOptionsList(), TYPE_OPTION_NAME_PREFIX);
  return builder.build();
}
项目:play-store-api    文件:Descriptors.java   
/** Get the {@code MessageOptions}, defined in {@code descriptor.proto}. */
public MessageOptions getOptions() { return proto.getOptions(); }
项目:Beam    文件:Descriptors.java   
/**
 * Get the {@code MessageOptions}, defined in {@code descriptor.proto}.
 */
public MessageOptions getOptions () {
    return proto.getOptions ();
}
项目:protobuf-el    文件:Scopes.java   
public MessageOptions.Builder getMessageOptions() {
  return currentScope.getMessageOptions();
}
项目:protobuf-el    文件:Scopes.java   
protected MessageOptions.Builder getMessageOptions() {
  throw new RuntimeException(NOT_APPLICABLE_IN_CURRENT_SCOPE);
}
项目:protobuf-el    文件:Scopes.java   
@Override
protected MessageOptions.Builder getMessageOptions() {
  return protoBuilder.getOptionsBuilder();
}
项目:protobuf-el    文件:Scopes.java   
@Override
protected MessageOptions.Builder getMessageOptions() {
  return getParent().getMessageOptions();
}
项目:protobuf-el    文件:Scopes.java   
@Override
protected MessageOptions.Builder getMessageOptions() {
  return getParent().getMessageOptions();
}