github.com/timstclair/heapster@v0.20.0-alpha1/Godeps/_workspace/src/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package urlfetch is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto
    10  
    11  It has these top-level messages:
    12  	URLFetchServiceError
    13  	URLFetchRequest
    14  	URLFetchResponse
    15  */
    16  package urlfetch
    17  
    18  import proto "github.com/golang/protobuf/proto"
    19  import fmt "fmt"
    20  import math "math"
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  type URLFetchServiceError_ErrorCode int32
    28  
    29  const (
    30  	URLFetchServiceError_OK                       URLFetchServiceError_ErrorCode = 0
    31  	URLFetchServiceError_INVALID_URL              URLFetchServiceError_ErrorCode = 1
    32  	URLFetchServiceError_FETCH_ERROR              URLFetchServiceError_ErrorCode = 2
    33  	URLFetchServiceError_UNSPECIFIED_ERROR        URLFetchServiceError_ErrorCode = 3
    34  	URLFetchServiceError_RESPONSE_TOO_LARGE       URLFetchServiceError_ErrorCode = 4
    35  	URLFetchServiceError_DEADLINE_EXCEEDED        URLFetchServiceError_ErrorCode = 5
    36  	URLFetchServiceError_SSL_CERTIFICATE_ERROR    URLFetchServiceError_ErrorCode = 6
    37  	URLFetchServiceError_DNS_ERROR                URLFetchServiceError_ErrorCode = 7
    38  	URLFetchServiceError_CLOSED                   URLFetchServiceError_ErrorCode = 8
    39  	URLFetchServiceError_INTERNAL_TRANSIENT_ERROR URLFetchServiceError_ErrorCode = 9
    40  	URLFetchServiceError_TOO_MANY_REDIRECTS       URLFetchServiceError_ErrorCode = 10
    41  	URLFetchServiceError_MALFORMED_REPLY          URLFetchServiceError_ErrorCode = 11
    42  	URLFetchServiceError_CONNECTION_ERROR         URLFetchServiceError_ErrorCode = 12
    43  )
    44  
    45  var URLFetchServiceError_ErrorCode_name = map[int32]string{
    46  	0:  "OK",
    47  	1:  "INVALID_URL",
    48  	2:  "FETCH_ERROR",
    49  	3:  "UNSPECIFIED_ERROR",
    50  	4:  "RESPONSE_TOO_LARGE",
    51  	5:  "DEADLINE_EXCEEDED",
    52  	6:  "SSL_CERTIFICATE_ERROR",
    53  	7:  "DNS_ERROR",
    54  	8:  "CLOSED",
    55  	9:  "INTERNAL_TRANSIENT_ERROR",
    56  	10: "TOO_MANY_REDIRECTS",
    57  	11: "MALFORMED_REPLY",
    58  	12: "CONNECTION_ERROR",
    59  }
    60  var URLFetchServiceError_ErrorCode_value = map[string]int32{
    61  	"OK":                       0,
    62  	"INVALID_URL":              1,
    63  	"FETCH_ERROR":              2,
    64  	"UNSPECIFIED_ERROR":        3,
    65  	"RESPONSE_TOO_LARGE":       4,
    66  	"DEADLINE_EXCEEDED":        5,
    67  	"SSL_CERTIFICATE_ERROR":    6,
    68  	"DNS_ERROR":                7,
    69  	"CLOSED":                   8,
    70  	"INTERNAL_TRANSIENT_ERROR": 9,
    71  	"TOO_MANY_REDIRECTS":       10,
    72  	"MALFORMED_REPLY":          11,
    73  	"CONNECTION_ERROR":         12,
    74  }
    75  
    76  func (x URLFetchServiceError_ErrorCode) Enum() *URLFetchServiceError_ErrorCode {
    77  	p := new(URLFetchServiceError_ErrorCode)
    78  	*p = x
    79  	return p
    80  }
    81  func (x URLFetchServiceError_ErrorCode) String() string {
    82  	return proto.EnumName(URLFetchServiceError_ErrorCode_name, int32(x))
    83  }
    84  func (x *URLFetchServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
    85  	value, err := proto.UnmarshalJSONEnum(URLFetchServiceError_ErrorCode_value, data, "URLFetchServiceError_ErrorCode")
    86  	if err != nil {
    87  		return err
    88  	}
    89  	*x = URLFetchServiceError_ErrorCode(value)
    90  	return nil
    91  }
    92  
    93  type URLFetchRequest_RequestMethod int32
    94  
    95  const (
    96  	URLFetchRequest_GET    URLFetchRequest_RequestMethod = 1
    97  	URLFetchRequest_POST   URLFetchRequest_RequestMethod = 2
    98  	URLFetchRequest_HEAD   URLFetchRequest_RequestMethod = 3
    99  	URLFetchRequest_PUT    URLFetchRequest_RequestMethod = 4
   100  	URLFetchRequest_DELETE URLFetchRequest_RequestMethod = 5
   101  	URLFetchRequest_PATCH  URLFetchRequest_RequestMethod = 6
   102  )
   103  
   104  var URLFetchRequest_RequestMethod_name = map[int32]string{
   105  	1: "GET",
   106  	2: "POST",
   107  	3: "HEAD",
   108  	4: "PUT",
   109  	5: "DELETE",
   110  	6: "PATCH",
   111  }
   112  var URLFetchRequest_RequestMethod_value = map[string]int32{
   113  	"GET":    1,
   114  	"POST":   2,
   115  	"HEAD":   3,
   116  	"PUT":    4,
   117  	"DELETE": 5,
   118  	"PATCH":  6,
   119  }
   120  
   121  func (x URLFetchRequest_RequestMethod) Enum() *URLFetchRequest_RequestMethod {
   122  	p := new(URLFetchRequest_RequestMethod)
   123  	*p = x
   124  	return p
   125  }
   126  func (x URLFetchRequest_RequestMethod) String() string {
   127  	return proto.EnumName(URLFetchRequest_RequestMethod_name, int32(x))
   128  }
   129  func (x *URLFetchRequest_RequestMethod) UnmarshalJSON(data []byte) error {
   130  	value, err := proto.UnmarshalJSONEnum(URLFetchRequest_RequestMethod_value, data, "URLFetchRequest_RequestMethod")
   131  	if err != nil {
   132  		return err
   133  	}
   134  	*x = URLFetchRequest_RequestMethod(value)
   135  	return nil
   136  }
   137  
   138  type URLFetchServiceError struct {
   139  	XXX_unrecognized []byte `json:"-"`
   140  }
   141  
   142  func (m *URLFetchServiceError) Reset()         { *m = URLFetchServiceError{} }
   143  func (m *URLFetchServiceError) String() string { return proto.CompactTextString(m) }
   144  func (*URLFetchServiceError) ProtoMessage()    {}
   145  
   146  type URLFetchRequest struct {
   147  	Method                        *URLFetchRequest_RequestMethod `protobuf:"varint,1,req,name=Method,enum=appengine.URLFetchRequest_RequestMethod" json:"Method,omitempty"`
   148  	Url                           *string                        `protobuf:"bytes,2,req,name=Url" json:"Url,omitempty"`
   149  	Header                        []*URLFetchRequest_Header      `protobuf:"group,3,rep,name=Header" json:"header,omitempty"`
   150  	Payload                       []byte                         `protobuf:"bytes,6,opt,name=Payload" json:"Payload,omitempty"`
   151  	FollowRedirects               *bool                          `protobuf:"varint,7,opt,name=FollowRedirects,def=1" json:"FollowRedirects,omitempty"`
   152  	Deadline                      *float64                       `protobuf:"fixed64,8,opt,name=Deadline" json:"Deadline,omitempty"`
   153  	MustValidateServerCertificate *bool                          `protobuf:"varint,9,opt,name=MustValidateServerCertificate,def=1" json:"MustValidateServerCertificate,omitempty"`
   154  	XXX_unrecognized              []byte                         `json:"-"`
   155  }
   156  
   157  func (m *URLFetchRequest) Reset()         { *m = URLFetchRequest{} }
   158  func (m *URLFetchRequest) String() string { return proto.CompactTextString(m) }
   159  func (*URLFetchRequest) ProtoMessage()    {}
   160  
   161  const Default_URLFetchRequest_FollowRedirects bool = true
   162  const Default_URLFetchRequest_MustValidateServerCertificate bool = true
   163  
   164  func (m *URLFetchRequest) GetMethod() URLFetchRequest_RequestMethod {
   165  	if m != nil && m.Method != nil {
   166  		return *m.Method
   167  	}
   168  	return URLFetchRequest_GET
   169  }
   170  
   171  func (m *URLFetchRequest) GetUrl() string {
   172  	if m != nil && m.Url != nil {
   173  		return *m.Url
   174  	}
   175  	return ""
   176  }
   177  
   178  func (m *URLFetchRequest) GetHeader() []*URLFetchRequest_Header {
   179  	if m != nil {
   180  		return m.Header
   181  	}
   182  	return nil
   183  }
   184  
   185  func (m *URLFetchRequest) GetPayload() []byte {
   186  	if m != nil {
   187  		return m.Payload
   188  	}
   189  	return nil
   190  }
   191  
   192  func (m *URLFetchRequest) GetFollowRedirects() bool {
   193  	if m != nil && m.FollowRedirects != nil {
   194  		return *m.FollowRedirects
   195  	}
   196  	return Default_URLFetchRequest_FollowRedirects
   197  }
   198  
   199  func (m *URLFetchRequest) GetDeadline() float64 {
   200  	if m != nil && m.Deadline != nil {
   201  		return *m.Deadline
   202  	}
   203  	return 0
   204  }
   205  
   206  func (m *URLFetchRequest) GetMustValidateServerCertificate() bool {
   207  	if m != nil && m.MustValidateServerCertificate != nil {
   208  		return *m.MustValidateServerCertificate
   209  	}
   210  	return Default_URLFetchRequest_MustValidateServerCertificate
   211  }
   212  
   213  type URLFetchRequest_Header struct {
   214  	Key              *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"`
   215  	Value            *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"`
   216  	XXX_unrecognized []byte  `json:"-"`
   217  }
   218  
   219  func (m *URLFetchRequest_Header) Reset()         { *m = URLFetchRequest_Header{} }
   220  func (m *URLFetchRequest_Header) String() string { return proto.CompactTextString(m) }
   221  func (*URLFetchRequest_Header) ProtoMessage()    {}
   222  
   223  func (m *URLFetchRequest_Header) GetKey() string {
   224  	if m != nil && m.Key != nil {
   225  		return *m.Key
   226  	}
   227  	return ""
   228  }
   229  
   230  func (m *URLFetchRequest_Header) GetValue() string {
   231  	if m != nil && m.Value != nil {
   232  		return *m.Value
   233  	}
   234  	return ""
   235  }
   236  
   237  type URLFetchResponse struct {
   238  	Content               []byte                     `protobuf:"bytes,1,opt,name=Content" json:"Content,omitempty"`
   239  	StatusCode            *int32                     `protobuf:"varint,2,req,name=StatusCode" json:"StatusCode,omitempty"`
   240  	Header                []*URLFetchResponse_Header `protobuf:"group,3,rep,name=Header" json:"header,omitempty"`
   241  	ContentWasTruncated   *bool                      `protobuf:"varint,6,opt,name=ContentWasTruncated,def=0" json:"ContentWasTruncated,omitempty"`
   242  	ExternalBytesSent     *int64                     `protobuf:"varint,7,opt,name=ExternalBytesSent" json:"ExternalBytesSent,omitempty"`
   243  	ExternalBytesReceived *int64                     `protobuf:"varint,8,opt,name=ExternalBytesReceived" json:"ExternalBytesReceived,omitempty"`
   244  	FinalUrl              *string                    `protobuf:"bytes,9,opt,name=FinalUrl" json:"FinalUrl,omitempty"`
   245  	ApiCpuMilliseconds    *int64                     `protobuf:"varint,10,opt,name=ApiCpuMilliseconds,def=0" json:"ApiCpuMilliseconds,omitempty"`
   246  	ApiBytesSent          *int64                     `protobuf:"varint,11,opt,name=ApiBytesSent,def=0" json:"ApiBytesSent,omitempty"`
   247  	ApiBytesReceived      *int64                     `protobuf:"varint,12,opt,name=ApiBytesReceived,def=0" json:"ApiBytesReceived,omitempty"`
   248  	XXX_unrecognized      []byte                     `json:"-"`
   249  }
   250  
   251  func (m *URLFetchResponse) Reset()         { *m = URLFetchResponse{} }
   252  func (m *URLFetchResponse) String() string { return proto.CompactTextString(m) }
   253  func (*URLFetchResponse) ProtoMessage()    {}
   254  
   255  const Default_URLFetchResponse_ContentWasTruncated bool = false
   256  const Default_URLFetchResponse_ApiCpuMilliseconds int64 = 0
   257  const Default_URLFetchResponse_ApiBytesSent int64 = 0
   258  const Default_URLFetchResponse_ApiBytesReceived int64 = 0
   259  
   260  func (m *URLFetchResponse) GetContent() []byte {
   261  	if m != nil {
   262  		return m.Content
   263  	}
   264  	return nil
   265  }
   266  
   267  func (m *URLFetchResponse) GetStatusCode() int32 {
   268  	if m != nil && m.StatusCode != nil {
   269  		return *m.StatusCode
   270  	}
   271  	return 0
   272  }
   273  
   274  func (m *URLFetchResponse) GetHeader() []*URLFetchResponse_Header {
   275  	if m != nil {
   276  		return m.Header
   277  	}
   278  	return nil
   279  }
   280  
   281  func (m *URLFetchResponse) GetContentWasTruncated() bool {
   282  	if m != nil && m.ContentWasTruncated != nil {
   283  		return *m.ContentWasTruncated
   284  	}
   285  	return Default_URLFetchResponse_ContentWasTruncated
   286  }
   287  
   288  func (m *URLFetchResponse) GetExternalBytesSent() int64 {
   289  	if m != nil && m.ExternalBytesSent != nil {
   290  		return *m.ExternalBytesSent
   291  	}
   292  	return 0
   293  }
   294  
   295  func (m *URLFetchResponse) GetExternalBytesReceived() int64 {
   296  	if m != nil && m.ExternalBytesReceived != nil {
   297  		return *m.ExternalBytesReceived
   298  	}
   299  	return 0
   300  }
   301  
   302  func (m *URLFetchResponse) GetFinalUrl() string {
   303  	if m != nil && m.FinalUrl != nil {
   304  		return *m.FinalUrl
   305  	}
   306  	return ""
   307  }
   308  
   309  func (m *URLFetchResponse) GetApiCpuMilliseconds() int64 {
   310  	if m != nil && m.ApiCpuMilliseconds != nil {
   311  		return *m.ApiCpuMilliseconds
   312  	}
   313  	return Default_URLFetchResponse_ApiCpuMilliseconds
   314  }
   315  
   316  func (m *URLFetchResponse) GetApiBytesSent() int64 {
   317  	if m != nil && m.ApiBytesSent != nil {
   318  		return *m.ApiBytesSent
   319  	}
   320  	return Default_URLFetchResponse_ApiBytesSent
   321  }
   322  
   323  func (m *URLFetchResponse) GetApiBytesReceived() int64 {
   324  	if m != nil && m.ApiBytesReceived != nil {
   325  		return *m.ApiBytesReceived
   326  	}
   327  	return Default_URLFetchResponse_ApiBytesReceived
   328  }
   329  
   330  type URLFetchResponse_Header struct {
   331  	Key              *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"`
   332  	Value            *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"`
   333  	XXX_unrecognized []byte  `json:"-"`
   334  }
   335  
   336  func (m *URLFetchResponse_Header) Reset()         { *m = URLFetchResponse_Header{} }
   337  func (m *URLFetchResponse_Header) String() string { return proto.CompactTextString(m) }
   338  func (*URLFetchResponse_Header) ProtoMessage()    {}
   339  
   340  func (m *URLFetchResponse_Header) GetKey() string {
   341  	if m != nil && m.Key != nil {
   342  		return *m.Key
   343  	}
   344  	return ""
   345  }
   346  
   347  func (m *URLFetchResponse_Header) GetValue() string {
   348  	if m != nil && m.Value != nil {
   349  		return *m.Value
   350  	}
   351  	return ""
   352  }
   353  
   354  func init() {
   355  }