Documentation ¶
Index ¶
- Constants
- Variables
- type URLFetchRequest
- func (*URLFetchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *URLFetchRequest) GetDeadline() float64
- func (x *URLFetchRequest) GetFollowRedirects() bool
- func (x *URLFetchRequest) GetHeader() []*URLFetchRequest_Header
- func (x *URLFetchRequest) GetMethod() URLFetchRequest_RequestMethod
- func (x *URLFetchRequest) GetMustValidateServerCertificate() bool
- func (x *URLFetchRequest) GetPayload() []byte
- func (x *URLFetchRequest) GetUrl() string
- func (*URLFetchRequest) ProtoMessage()
- func (x *URLFetchRequest) ProtoReflect() protoreflect.Message
- func (x *URLFetchRequest) Reset()
- func (x *URLFetchRequest) String() string
- type URLFetchRequest_Header
- func (*URLFetchRequest_Header) Descriptor() ([]byte, []int)deprecated
- func (x *URLFetchRequest_Header) GetKey() string
- func (x *URLFetchRequest_Header) GetValue() string
- func (*URLFetchRequest_Header) ProtoMessage()
- func (x *URLFetchRequest_Header) ProtoReflect() protoreflect.Message
- func (x *URLFetchRequest_Header) Reset()
- func (x *URLFetchRequest_Header) String() string
- type URLFetchRequest_RequestMethod
- func (URLFetchRequest_RequestMethod) Descriptor() protoreflect.EnumDescriptor
- func (x URLFetchRequest_RequestMethod) Enum() *URLFetchRequest_RequestMethod
- func (URLFetchRequest_RequestMethod) EnumDescriptor() ([]byte, []int)deprecated
- func (x URLFetchRequest_RequestMethod) Number() protoreflect.EnumNumber
- func (x URLFetchRequest_RequestMethod) String() string
- func (URLFetchRequest_RequestMethod) Type() protoreflect.EnumType
- func (x *URLFetchRequest_RequestMethod) UnmarshalJSON(b []byte) errordeprecated
- type URLFetchResponse
- func (*URLFetchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *URLFetchResponse) GetApiBytesReceived() int64
- func (x *URLFetchResponse) GetApiBytesSent() int64
- func (x *URLFetchResponse) GetApiCpuMilliseconds() int64
- func (x *URLFetchResponse) GetContent() []byte
- func (x *URLFetchResponse) GetContentWasTruncated() bool
- func (x *URLFetchResponse) GetExternalBytesReceived() int64
- func (x *URLFetchResponse) GetExternalBytesSent() int64
- func (x *URLFetchResponse) GetFinalUrl() string
- func (x *URLFetchResponse) GetHeader() []*URLFetchResponse_Header
- func (x *URLFetchResponse) GetStatusCode() int32
- func (*URLFetchResponse) ProtoMessage()
- func (x *URLFetchResponse) ProtoReflect() protoreflect.Message
- func (x *URLFetchResponse) Reset()
- func (x *URLFetchResponse) String() string
- type URLFetchResponse_Header
- func (*URLFetchResponse_Header) Descriptor() ([]byte, []int)deprecated
- func (x *URLFetchResponse_Header) GetKey() string
- func (x *URLFetchResponse_Header) GetValue() string
- func (*URLFetchResponse_Header) ProtoMessage()
- func (x *URLFetchResponse_Header) ProtoReflect() protoreflect.Message
- func (x *URLFetchResponse_Header) Reset()
- func (x *URLFetchResponse_Header) String() string
- type URLFetchServiceError
- type URLFetchServiceError_ErrorCode
- func (URLFetchServiceError_ErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x URLFetchServiceError_ErrorCode) Enum() *URLFetchServiceError_ErrorCode
- func (URLFetchServiceError_ErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x URLFetchServiceError_ErrorCode) Number() protoreflect.EnumNumber
- func (x URLFetchServiceError_ErrorCode) String() string
- func (URLFetchServiceError_ErrorCode) Type() protoreflect.EnumType
- func (x *URLFetchServiceError_ErrorCode) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
const ( Default_URLFetchRequest_FollowRedirects = bool(true) Default_URLFetchRequest_MustValidateServerCertificate = bool(true) )
Default values for URLFetchRequest fields.
const ( Default_URLFetchResponse_ContentWasTruncated = bool(false) Default_URLFetchResponse_ApiCpuMilliseconds = int64(0) Default_URLFetchResponse_ApiBytesSent = int64(0) Default_URLFetchResponse_ApiBytesReceived = int64(0) )
Default values for URLFetchResponse fields.
Variables ¶
var ( URLFetchServiceError_ErrorCode_name = map[int32]string{ 0: "OK", 1: "INVALID_URL", 2: "FETCH_ERROR", 3: "UNSPECIFIED_ERROR", 4: "RESPONSE_TOO_LARGE", 5: "DEADLINE_EXCEEDED", 6: "SSL_CERTIFICATE_ERROR", 7: "DNS_ERROR", 8: "CLOSED", 9: "INTERNAL_TRANSIENT_ERROR", 10: "TOO_MANY_REDIRECTS", 11: "MALFORMED_REPLY", 12: "CONNECTION_ERROR", } URLFetchServiceError_ErrorCode_value = map[string]int32{ "OK": 0, "INVALID_URL": 1, "FETCH_ERROR": 2, "UNSPECIFIED_ERROR": 3, "RESPONSE_TOO_LARGE": 4, "DEADLINE_EXCEEDED": 5, "SSL_CERTIFICATE_ERROR": 6, "DNS_ERROR": 7, "CLOSED": 8, "INTERNAL_TRANSIENT_ERROR": 9, "TOO_MANY_REDIRECTS": 10, "MALFORMED_REPLY": 11, "CONNECTION_ERROR": 12, } )
Enum value maps for URLFetchServiceError_ErrorCode.
var ( URLFetchRequest_RequestMethod_name = map[int32]string{ 1: "GET", 2: "POST", 3: "HEAD", 4: "PUT", 5: "DELETE", 6: "PATCH", } URLFetchRequest_RequestMethod_value = map[string]int32{ "GET": 1, "POST": 2, "HEAD": 3, "PUT": 4, "DELETE": 5, "PATCH": 6, } )
Enum value maps for URLFetchRequest_RequestMethod.
var File_urlfetch_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type URLFetchRequest ¶
type URLFetchRequest struct { Method *URLFetchRequest_RequestMethod `protobuf:"varint,1,req,name=Method,enum=appengine.v2.URLFetchRequest_RequestMethod" json:"Method,omitempty"` Url *string `protobuf:"bytes,2,req,name=Url" json:"Url,omitempty"` Header []*URLFetchRequest_Header `protobuf:"group,3,rep,name=Header,json=header" json:"header,omitempty"` Payload []byte `protobuf:"bytes,6,opt,name=Payload" json:"Payload,omitempty"` FollowRedirects *bool `protobuf:"varint,7,opt,name=FollowRedirects,def=1" json:"FollowRedirects,omitempty"` Deadline *float64 `protobuf:"fixed64,8,opt,name=Deadline" json:"Deadline,omitempty"` MustValidateServerCertificate *bool `protobuf:"varint,9,opt,name=MustValidateServerCertificate,def=1" json:"MustValidateServerCertificate,omitempty"` // contains filtered or unexported fields }
func (*URLFetchRequest) Descriptor
deprecated
func (*URLFetchRequest) Descriptor() ([]byte, []int)
Deprecated: Use URLFetchRequest.ProtoReflect.Descriptor instead.
func (*URLFetchRequest) GetDeadline ¶
func (x *URLFetchRequest) GetDeadline() float64
func (*URLFetchRequest) GetFollowRedirects ¶
func (x *URLFetchRequest) GetFollowRedirects() bool
func (*URLFetchRequest) GetHeader ¶
func (x *URLFetchRequest) GetHeader() []*URLFetchRequest_Header
func (*URLFetchRequest) GetMethod ¶
func (x *URLFetchRequest) GetMethod() URLFetchRequest_RequestMethod
func (*URLFetchRequest) GetMustValidateServerCertificate ¶
func (x *URLFetchRequest) GetMustValidateServerCertificate() bool
func (*URLFetchRequest) GetPayload ¶
func (x *URLFetchRequest) GetPayload() []byte
func (*URLFetchRequest) GetUrl ¶
func (x *URLFetchRequest) GetUrl() string
func (*URLFetchRequest) ProtoMessage ¶
func (*URLFetchRequest) ProtoMessage()
func (*URLFetchRequest) ProtoReflect ¶ added in v2.0.4
func (x *URLFetchRequest) ProtoReflect() protoreflect.Message
func (*URLFetchRequest) Reset ¶
func (x *URLFetchRequest) Reset()
func (*URLFetchRequest) String ¶
func (x *URLFetchRequest) String() string
type URLFetchRequest_Header ¶
type URLFetchRequest_Header struct { Key *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"` Value *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*URLFetchRequest_Header) Descriptor
deprecated
func (*URLFetchRequest_Header) Descriptor() ([]byte, []int)
Deprecated: Use URLFetchRequest_Header.ProtoReflect.Descriptor instead.
func (*URLFetchRequest_Header) GetKey ¶
func (x *URLFetchRequest_Header) GetKey() string
func (*URLFetchRequest_Header) GetValue ¶
func (x *URLFetchRequest_Header) GetValue() string
func (*URLFetchRequest_Header) ProtoMessage ¶
func (*URLFetchRequest_Header) ProtoMessage()
func (*URLFetchRequest_Header) ProtoReflect ¶ added in v2.0.4
func (x *URLFetchRequest_Header) ProtoReflect() protoreflect.Message
func (*URLFetchRequest_Header) Reset ¶
func (x *URLFetchRequest_Header) Reset()
func (*URLFetchRequest_Header) String ¶
func (x *URLFetchRequest_Header) String() string
type URLFetchRequest_RequestMethod ¶
type URLFetchRequest_RequestMethod int32
const ( URLFetchRequest_GET URLFetchRequest_RequestMethod = 1 URLFetchRequest_POST URLFetchRequest_RequestMethod = 2 URLFetchRequest_HEAD URLFetchRequest_RequestMethod = 3 URLFetchRequest_PUT URLFetchRequest_RequestMethod = 4 URLFetchRequest_DELETE URLFetchRequest_RequestMethod = 5 URLFetchRequest_PATCH URLFetchRequest_RequestMethod = 6 )
func (URLFetchRequest_RequestMethod) Descriptor ¶ added in v2.0.4
func (URLFetchRequest_RequestMethod) Descriptor() protoreflect.EnumDescriptor
func (URLFetchRequest_RequestMethod) Enum ¶
func (x URLFetchRequest_RequestMethod) Enum() *URLFetchRequest_RequestMethod
func (URLFetchRequest_RequestMethod) EnumDescriptor
deprecated
func (URLFetchRequest_RequestMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use URLFetchRequest_RequestMethod.Descriptor instead.
func (URLFetchRequest_RequestMethod) Number ¶ added in v2.0.4
func (x URLFetchRequest_RequestMethod) Number() protoreflect.EnumNumber
func (URLFetchRequest_RequestMethod) String ¶
func (x URLFetchRequest_RequestMethod) String() string
func (URLFetchRequest_RequestMethod) Type ¶ added in v2.0.4
func (URLFetchRequest_RequestMethod) Type() protoreflect.EnumType
func (*URLFetchRequest_RequestMethod) UnmarshalJSON
deprecated
func (x *URLFetchRequest_RequestMethod) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type URLFetchResponse ¶
type URLFetchResponse struct { Content []byte `protobuf:"bytes,1,opt,name=Content" json:"Content,omitempty"` StatusCode *int32 `protobuf:"varint,2,req,name=StatusCode" json:"StatusCode,omitempty"` Header []*URLFetchResponse_Header `protobuf:"group,3,rep,name=Header,json=header" json:"header,omitempty"` ContentWasTruncated *bool `protobuf:"varint,6,opt,name=ContentWasTruncated,def=0" json:"ContentWasTruncated,omitempty"` ExternalBytesSent *int64 `protobuf:"varint,7,opt,name=ExternalBytesSent" json:"ExternalBytesSent,omitempty"` ExternalBytesReceived *int64 `protobuf:"varint,8,opt,name=ExternalBytesReceived" json:"ExternalBytesReceived,omitempty"` FinalUrl *string `protobuf:"bytes,9,opt,name=FinalUrl" json:"FinalUrl,omitempty"` ApiCpuMilliseconds *int64 `protobuf:"varint,10,opt,name=ApiCpuMilliseconds,def=0" json:"ApiCpuMilliseconds,omitempty"` ApiBytesSent *int64 `protobuf:"varint,11,opt,name=ApiBytesSent,def=0" json:"ApiBytesSent,omitempty"` ApiBytesReceived *int64 `protobuf:"varint,12,opt,name=ApiBytesReceived,def=0" json:"ApiBytesReceived,omitempty"` // contains filtered or unexported fields }
func (*URLFetchResponse) Descriptor
deprecated
func (*URLFetchResponse) Descriptor() ([]byte, []int)
Deprecated: Use URLFetchResponse.ProtoReflect.Descriptor instead.
func (*URLFetchResponse) GetApiBytesReceived ¶
func (x *URLFetchResponse) GetApiBytesReceived() int64
func (*URLFetchResponse) GetApiBytesSent ¶
func (x *URLFetchResponse) GetApiBytesSent() int64
func (*URLFetchResponse) GetApiCpuMilliseconds ¶
func (x *URLFetchResponse) GetApiCpuMilliseconds() int64
func (*URLFetchResponse) GetContent ¶
func (x *URLFetchResponse) GetContent() []byte
func (*URLFetchResponse) GetContentWasTruncated ¶
func (x *URLFetchResponse) GetContentWasTruncated() bool
func (*URLFetchResponse) GetExternalBytesReceived ¶
func (x *URLFetchResponse) GetExternalBytesReceived() int64
func (*URLFetchResponse) GetExternalBytesSent ¶
func (x *URLFetchResponse) GetExternalBytesSent() int64
func (*URLFetchResponse) GetFinalUrl ¶
func (x *URLFetchResponse) GetFinalUrl() string
func (*URLFetchResponse) GetHeader ¶
func (x *URLFetchResponse) GetHeader() []*URLFetchResponse_Header
func (*URLFetchResponse) GetStatusCode ¶
func (x *URLFetchResponse) GetStatusCode() int32
func (*URLFetchResponse) ProtoMessage ¶
func (*URLFetchResponse) ProtoMessage()
func (*URLFetchResponse) ProtoReflect ¶ added in v2.0.4
func (x *URLFetchResponse) ProtoReflect() protoreflect.Message
func (*URLFetchResponse) Reset ¶
func (x *URLFetchResponse) Reset()
func (*URLFetchResponse) String ¶
func (x *URLFetchResponse) String() string
type URLFetchResponse_Header ¶
type URLFetchResponse_Header struct { Key *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"` Value *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*URLFetchResponse_Header) Descriptor
deprecated
func (*URLFetchResponse_Header) Descriptor() ([]byte, []int)
Deprecated: Use URLFetchResponse_Header.ProtoReflect.Descriptor instead.
func (*URLFetchResponse_Header) GetKey ¶
func (x *URLFetchResponse_Header) GetKey() string
func (*URLFetchResponse_Header) GetValue ¶
func (x *URLFetchResponse_Header) GetValue() string
func (*URLFetchResponse_Header) ProtoMessage ¶
func (*URLFetchResponse_Header) ProtoMessage()
func (*URLFetchResponse_Header) ProtoReflect ¶ added in v2.0.4
func (x *URLFetchResponse_Header) ProtoReflect() protoreflect.Message
func (*URLFetchResponse_Header) Reset ¶
func (x *URLFetchResponse_Header) Reset()
func (*URLFetchResponse_Header) String ¶
func (x *URLFetchResponse_Header) String() string
type URLFetchServiceError ¶
type URLFetchServiceError struct {
// contains filtered or unexported fields
}
func (*URLFetchServiceError) Descriptor
deprecated
func (*URLFetchServiceError) Descriptor() ([]byte, []int)
Deprecated: Use URLFetchServiceError.ProtoReflect.Descriptor instead.
func (*URLFetchServiceError) ProtoMessage ¶
func (*URLFetchServiceError) ProtoMessage()
func (*URLFetchServiceError) ProtoReflect ¶ added in v2.0.4
func (x *URLFetchServiceError) ProtoReflect() protoreflect.Message
func (*URLFetchServiceError) Reset ¶
func (x *URLFetchServiceError) Reset()
func (*URLFetchServiceError) String ¶
func (x *URLFetchServiceError) String() string
type URLFetchServiceError_ErrorCode ¶
type URLFetchServiceError_ErrorCode int32
const ( URLFetchServiceError_OK URLFetchServiceError_ErrorCode = 0 URLFetchServiceError_INVALID_URL URLFetchServiceError_ErrorCode = 1 URLFetchServiceError_FETCH_ERROR URLFetchServiceError_ErrorCode = 2 URLFetchServiceError_UNSPECIFIED_ERROR URLFetchServiceError_ErrorCode = 3 URLFetchServiceError_RESPONSE_TOO_LARGE URLFetchServiceError_ErrorCode = 4 URLFetchServiceError_DEADLINE_EXCEEDED URLFetchServiceError_ErrorCode = 5 URLFetchServiceError_SSL_CERTIFICATE_ERROR URLFetchServiceError_ErrorCode = 6 URLFetchServiceError_DNS_ERROR URLFetchServiceError_ErrorCode = 7 URLFetchServiceError_CLOSED URLFetchServiceError_ErrorCode = 8 URLFetchServiceError_INTERNAL_TRANSIENT_ERROR URLFetchServiceError_ErrorCode = 9 URLFetchServiceError_TOO_MANY_REDIRECTS URLFetchServiceError_ErrorCode = 10 URLFetchServiceError_MALFORMED_REPLY URLFetchServiceError_ErrorCode = 11 URLFetchServiceError_CONNECTION_ERROR URLFetchServiceError_ErrorCode = 12 )
func (URLFetchServiceError_ErrorCode) Descriptor ¶ added in v2.0.4
func (URLFetchServiceError_ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (URLFetchServiceError_ErrorCode) Enum ¶
func (x URLFetchServiceError_ErrorCode) Enum() *URLFetchServiceError_ErrorCode
func (URLFetchServiceError_ErrorCode) EnumDescriptor
deprecated
func (URLFetchServiceError_ErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use URLFetchServiceError_ErrorCode.Descriptor instead.
func (URLFetchServiceError_ErrorCode) Number ¶ added in v2.0.4
func (x URLFetchServiceError_ErrorCode) Number() protoreflect.EnumNumber
func (URLFetchServiceError_ErrorCode) String ¶
func (x URLFetchServiceError_ErrorCode) String() string
func (URLFetchServiceError_ErrorCode) Type ¶ added in v2.0.4
func (URLFetchServiceError_ErrorCode) Type() protoreflect.EnumType
func (*URLFetchServiceError_ErrorCode) UnmarshalJSON
deprecated
func (x *URLFetchServiceError_ErrorCode) UnmarshalJSON(b []byte) error
Deprecated: Do not use.