func (c *ProjectsPatchTracesCall) Fields(s ...googleapi.Field) *ProjectsPatchTracesCall {
	c.urlParams_.Set("fields", googleapi.CombineFields(s))
	return c
}
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
package cloudtrace  
import (
	"bytes"
	"encoding/json"
	"errors"
	"fmt"
	context "golang.org/x/net/context"
	ctxhttp "golang.org/x/net/context/ctxhttp"
	gensupport "google.golang.org/api/gensupport"
	googleapi "google.golang.org/api/googleapi"
	"io"
	"net/http"
	"net/url"
	"strconv"
	"strings"
)
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = ctxhttp.Do
const apiId = "cloudtrace:v1"
const apiName = "cloudtrace"
const apiVersion = "v1"
const basePath = "https://cloudtrace.googleapis.com/"
const (
	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
	TraceAppendScope = "https://www.googleapis.com/auth/trace.append"
	TraceReadonlyScope = "https://www.googleapis.com/auth/trace.readonly"
)
func New(client *http.Client) (*Service, error) {
	if client == nil {
		return nil, errors.New("client is nil")
	}
	s := &Service{client: client, BasePath: basePath}
	s.Projects = NewProjectsService(s)
	return s, nil
}
type Service struct {
	client    *http.Client
	BasePath  string  
	UserAgent string  
	Projects *ProjectsService
}
func (s *Service) userAgent() string {
	if s.UserAgent == "" {
		return googleapi.UserAgent
	}
	return googleapi.UserAgent + " " + s.UserAgent
}
func NewProjectsService(s *Service) *ProjectsService {
	rs := &ProjectsService{s: s}
	rs.Traces = NewProjectsTracesService(s)
	return rs
}
type ProjectsService struct {
	s *Service
	Traces *ProjectsTracesService
}
func NewProjectsTracesService(s *Service) *ProjectsTracesService {
	rs := &ProjectsTracesService{s: s}
	return rs
}
type ProjectsTracesService struct {
	s *Service
}
type Empty struct {
	googleapi.ServerResponse `json:"-"`
}
type ListTracesResponse struct {
	NextPageToken string `json:"nextPageToken,omitempty"`
	Traces []*Trace `json:"traces,omitempty"`
	googleapi.ServerResponse `json:"-"`
	ForceSendFields []string `json:"-"`
	NullFields []string `json:"-"`
}
func (s *ListTracesResponse) MarshalJSON() ([]byte, error) {
	type noMethod ListTracesResponse
	raw := noMethod(*s)
	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Trace struct {
	ProjectId string `json:"projectId,omitempty"`
	Spans []*TraceSpan `json:"spans,omitempty"`
	TraceId string `json:"traceId,omitempty"`
	googleapi.ServerResponse `json:"-"`
	ForceSendFields []string `json:"-"`
	NullFields []string `json:"-"`
}
func (s *Trace) MarshalJSON() ([]byte, error) {
	type noMethod Trace
	raw := noMethod(*s)
	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TraceSpan struct {
	EndTime string `json:"endTime,omitempty"`
	Kind string `json:"kind,omitempty"`
	Labels map[string]string `json:"labels,omitempty"`
	Name string `json:"name,omitempty"`
	ParentSpanId uint64 `json:"parentSpanId,omitempty,string"`
	SpanId uint64 `json:"spanId,omitempty,string"`
	StartTime string `json:"startTime,omitempty"`
	ForceSendFields []string `json:"-"`
	NullFields []string `json:"-"`
}
func (s *TraceSpan) MarshalJSON() ([]byte, error) {
	type noMethod TraceSpan
	raw := noMethod(*s)
	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Traces struct {
	Traces []*Trace `json:"traces,omitempty"`
	ForceSendFields []string `json:"-"`
	NullFields []string `json:"-"`
}
func (s *Traces) MarshalJSON() ([]byte, error) {
	type noMethod Traces
	raw := noMethod(*s)
	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ProjectsPatchTracesCall struct {
	s          *Service
	projectId  string
	traces     *Traces
	urlParams_ gensupport.URLParams
	ctx_       context.Context
	header_    http.Header
}
func (r *ProjectsService) PatchTraces(projectId string, traces *Traces) *ProjectsPatchTracesCall {
	c := &ProjectsPatchTracesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
	c.projectId = projectId
	c.traces = traces
	return c
}