public static long fetchMsgId(Descriptor descriptor) { MessageOptions options = descriptor.getOptions(); return options.hasExtension(AxOptions.messageId) ? options.getExtension(AxOptions.messageId) : Murmur2.hash(descriptor.getFullName()); }
private MessageOptions generateMessageOptions(Type type) { MessageOptions.Builder builder = MessageOptions.newBuilder(); setOptions(builder, type.getOptionsList(), TYPE_OPTION_NAME_PREFIX); return builder.build(); }
/** Get the {@code MessageOptions}, defined in {@code descriptor.proto}. */ public MessageOptions getOptions() { return proto.getOptions(); }
/** * Get the {@code MessageOptions}, defined in {@code descriptor.proto}. */ public MessageOptions getOptions () { return proto.getOptions (); }
public MessageOptions.Builder getMessageOptions() { return currentScope.getMessageOptions(); }
protected MessageOptions.Builder getMessageOptions() { throw new RuntimeException(NOT_APPLICABLE_IN_CURRENT_SCOPE); }
@Override protected MessageOptions.Builder getMessageOptions() { return protoBuilder.getOptionsBuilder(); }
@Override protected MessageOptions.Builder getMessageOptions() { return getParent().getMessageOptions(); }