Returns the singular descriptor used by all non-null messages in the list.

<p>If there is no descriptor, or more than one, returns {@code Optional.absent()}.
977397
static Optional<Descriptor> getSingleDescriptor(Iterable<? extends Message> messages) {
    Optional<Descriptor> optDescriptor = Optional.absent();
    for (Message message : messages) {
      if (message != null) {
        Descriptor descriptor = message.getDescriptorForType();
        if (!optDescriptor.isPresent()) {
          optDescriptor = Optional.of(descriptor);
        } else if (descriptor != optDescriptor.get()) {
          // Two different descriptors - abandon ship.
          return Optional.absent();
        }
      }
    }
    return optDescriptor;
  }
898068
public Set<ElementDescriptor<?>> getProperties()
	{
		return mProp == null ? null : Collections.unmodifiableSet(mProp.keySet());
	}
1234611
protected FaultDescriptor getFaultDescriptor(Object fault) {
        for (int i = 0; i < faultDescriptors.size(); i++) {
            if (faultDescriptors.get(i).isValid(fault)) {
                return faultDescriptors.get(i);
            }
        }
        return null;
    }
259974
public static DynamicMessage getDefaultInstance(Descriptor type) {
    return new DynamicMessage(type, FieldSet.<FieldDescriptor>emptySet(),
                              UnknownFieldSet.getDefaultInstance());
  }
891116
public String toDescriptor() {
        int i;
        StringBuilder result;

        if (isArray()) {
            result = new StringBuilder();
            for (i = 0; i < dimensions; i++) {
                result.append('[');
            }
            result.append(componentType.descriptor);
            if (componentType.id == T_REFERENCE) {
                result.append(name.replace('.', '/'));
                result.append(';');
            }
            return result.toString();
        } else {
            if (componentType.id != T_REFERENCE) {
                throw new RuntimeException("not a reference type: " + this);
            }
            return name.replace('.', '/');
        }
    }
1368568
@Override
    public String getMessageSelector() throws JMSException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getMessageSelector");
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "getMessageSelector", theSelector);

        //if selector is null or empty return null
        if (theSelector == null || theSelector.trim().isEmpty())
            return null;

        return theSelector;
    }
51426
def get_type_by_descriptor(descriptor):
        
        if descriptor == None:
            raise Exception("Type descriptor cannot be null")

        return TypeReflector.get_type(descriptor.get_name(), descriptor.get_library())
938840
public SeqnoList getMissing(int max_msgs) {
        lock.lock();
        try {
            if(size == 0)
                return null;
            long start_seqno=getHighestDeliverable() +1;
            int capacity=(int)(hr - start_seqno);
            int max_size=max_msgs > 0? Math.min(max_msgs, capacity) : capacity;
            if(max_size <= 0)
                return null;
            Missing missing=new Missing(start_seqno, max_size);
            long to=max_size > 0? Math.min(start_seqno + max_size-1, hr-1) : hr-1;
            forEach(start_seqno, to, missing);
            return missing.getMissingElements();
        }
        finally {
            lock.unlock();
        }
    }
133814
@javax.annotation.Nonnull
    public java.util.Optional<java.util.List<String>> optionalIncludes() {
        return java.util.Optional.ofNullable(mIncludes);
    }
992009
final ProtoTruthMessageDifferencer toMessageDifferencer(Descriptor descriptor) {
    checkState(expectedMessages().isPresent(), "expectedMessages() not set");
    return messageDifferencers.getUnchecked(descriptor);
  }
338606
@Override
    public String getDescription()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "getDescription");

        String desc = _definition.getDescription();

        // Assume that a null description means inherit.
        if (null == desc)
        {
            desc = getTarget().getDescription();
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "getDescription", desc);

        return desc;
    }
309044
public String getDescriptorName() {
    if (MeshHeading_Type.featOkTst && ((MeshHeading_Type)jcasType).casFeat_descriptorName == null)
      jcasType.jcas.throwFeatMissing("descriptorName", "de.julielab.jules.types.MeshHeading");
    return jcasType.ll_cas.ll_getStringValue(addr, ((MeshHeading_Type)jcasType).casFeatCode_descriptorName);}
379708
public SIMPIterator getRemoteSubscriptionIterator()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getRemoteSubscriptionIterator");
      
    DestinationTypeFilter filter = new DestinationTypeFilter();
    filter.QUEUE = Boolean.FALSE;
    
    Collection mpAIHCollection = new LinkedList();
    for (SIMPIterator iter = destinationIndex.iterator(filter); iter.hasNext();)
    {
      BaseDestinationHandler destination = (BaseDestinationHandler) iter.next();
      Map destAIHMap = destination.getPseudoDurableAIHMap();
      mpAIHCollection.add(destAIHMap.values());
    }
    
    AttachedRemoteSubscriberIterator remoteSubscriptionItr 
      = new AttachedRemoteSubscriberIterator(mpAIHCollection);
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getRemoteSubscriptionIterator", remoteSubscriptionItr);
    return remoteSubscriptionItr;
  }
925194
public Map<ElementDescriptor<?>, Object> getSet()
	{
		return mSet == null ? null : Collections.unmodifiableMap(mSet);
	}
834407
private int getNonEmptyParentIndex() {
        return parent == null
                ? -1
                : parent.effectiveKeys().isEmpty() ? parent.getNonEmptyParentIndex() : parent.currentIndex;
    }
685602
private int getFileDescriptor() throws IOException {
		final int fd = SharedSecrets.getJavaIOFileDescriptorAccess().get(getFD());

        if(fd < 1)
            throw new IOException("failed to get POSIX file descriptor!");

        return fd;
    }
654265
public List<Descriptor<ListViewColumn>> getColumnsDescriptors() {
        StaplerRequest request = Stapler.getCurrentRequest();
        if (request != null) {
            View view = request.findAncestorObject(clazz);
            return view == null ? DescriptorVisibilityFilter.applyType(clazz, ListViewColumn.all())
                    : DescriptorVisibilityFilter.apply(view, ListViewColumn.all());
        }
        return ListViewColumn.all();
    }