var File_google_rpc_http_proto protoreflect.FileDescriptor
Represents an HTTP header.
type HttpHeader struct { // The HTTP header key. It is case insensitive. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The HTTP header value. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*HttpHeader) Descriptor() ([]byte, []int)
Deprecated: Use HttpHeader.ProtoReflect.Descriptor instead.
func (x *HttpHeader) GetKey() string
func (x *HttpHeader) GetValue() string
func (*HttpHeader) ProtoMessage()
func (x *HttpHeader) ProtoReflect() protoreflect.Message
func (x *HttpHeader) Reset()
func (x *HttpHeader) String() string
Represents an HTTP request.
type HttpRequest struct { // The HTTP request method. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // The HTTP request URI. Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // The HTTP request headers. The ordering of the headers is significant. // Multiple headers with the same key may present for the request. Headers []*HttpHeader `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty"` // The HTTP request body. If the body is not expected, it should be empty. Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*HttpRequest) Descriptor() ([]byte, []int)
Deprecated: Use HttpRequest.ProtoReflect.Descriptor instead.
func (x *HttpRequest) GetBody() []byte
func (x *HttpRequest) GetHeaders() []*HttpHeader
func (x *HttpRequest) GetMethod() string
func (x *HttpRequest) GetUri() string
func (*HttpRequest) ProtoMessage()
func (x *HttpRequest) ProtoReflect() protoreflect.Message
func (x *HttpRequest) Reset()
func (x *HttpRequest) String() string
Represents an HTTP response.
type HttpResponse struct { // The HTTP status code, such as 200 or 404. Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // The HTTP reason phrase, such as "OK" or "Not Found". Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // The HTTP response headers. The ordering of the headers is significant. // Multiple headers with the same key may present for the response. Headers []*HttpHeader `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty"` // The HTTP response body. If the body is not expected, it should be empty. Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*HttpResponse) Descriptor() ([]byte, []int)
Deprecated: Use HttpResponse.ProtoReflect.Descriptor instead.
func (x *HttpResponse) GetBody() []byte
func (x *HttpResponse) GetHeaders() []*HttpHeader
func (x *HttpResponse) GetReason() string
func (x *HttpResponse) GetStatus() int32
func (*HttpResponse) ProtoMessage()
func (x *HttpResponse) ProtoReflect() protoreflect.Message
func (x *HttpResponse) Reset()
func (x *HttpResponse) String() string