/** * See if the method has an annotation. * @param header * @return Return the priority from the annotation. If there isn't * an annotation, this returns something below zero. */ protected int getAnnotatedPriority(RequestHeader header) { String methodName = header.getMethodName(); Integer priorityByAnnotation = annotatedQos.get(methodName); if (priorityByAnnotation != null) { return priorityByAnnotation; } return -1; }
hash = (53 * hash) + getMethodName().hashCode();
if (header.hasRequestParam() && header.getRequestParam()) { md = this.service.getDescriptorForType().findMethodByName( header.getMethodName()); if (md == null) throw new UnsupportedOperationException(header.getMethodName()); builder = this.service.getRequestPrototype(md).newBuilderForType(); cis.resetSizeCounter();
result = result && getMethodName() .equals(other.getMethodName());
hash = (53 * hash) + getMethodName().hashCode();
/** * <code>optional string method_name = 3;</code> */ public Builder clearMethodName() { bitField0_ = (bitField0_ & ~0x00000004); methodName_ = getDefaultInstance().getMethodName(); onChanged(); return this; } /**
/** * Override this method because we can't mock a Descriptors.MethodDescriptor */ @Override protected String getCallMethod(final CallRunner task) { RpcCall call = task.getRpcCall(); if (call.getHeader() != null) { return call.getHeader().getMethodName(); } return null; } }
result = result && getMethodName() .equals(other.getMethodName());
/** * Override this method because we can't mock a Descriptors.MethodDescriptor */ @Override protected String getCallMethod(final CallRunner task) { RpcCall call = task.getRpcCall(); if (call.getHeader() != null) { return call.getHeader().getMethodName(); } return null; } }
/** * <code>optional string method_name = 3;</code> */ public Builder clearMethodName() { bitField0_ = (bitField0_ & ~0x00000004); methodName_ = getDefaultInstance().getMethodName(); onChanged(); return this; } /**