code: func (q *Query) GetType() QueryType {
  	if q.GetCcQuery() != nil {
  		return ChaincodeQueryType
  	}
  	if q.GetConfigQuery() != nil {
  		return ConfigQueryType
  	}
  	if q.GetPeerQuery() != nil {
  		return PeerMembershipQueryType
  	}
  	if q.GetLocalPeers() != nil {
  		return LocalMembershipQueryType
  	}
  	return InvalidQueryType
  }
docs: // GetType returns the type of the request