1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/httpbody.proto
5 Package httpbody is a generated protocol buffer package.
7 It is generated from these files:
8 google/api/httpbody.proto
10 It has these top-level messages:
15 import proto "github.com/golang/protobuf/proto"
19 // Reference imports to suppress errors if they are not otherwise used.
24 // This is a compile-time assertion to ensure that this generated file
25 // is compatible with the proto package it is being compiled against.
26 // A compilation error at this line likely means your copy of the
27 // proto package needs to be updated.
28 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
30 // Message that represents an arbitrary HTTP body. It should only be used for
31 // payload formats that can't be represented as JSON, such as raw binary or
35 // This message can be used both in streaming and non-streaming API methods in
36 // the request as well as the response.
38 // It can be used as a top-level request field, which is convenient if one
39 // wants to extract parameters from either the URL or HTTP template into the
40 // request fields and also want access to the raw HTTP body.
44 // message GetResourceRequest {
45 // // A unique request id.
46 // string request_id = 1;
48 // // The raw HTTP body is bound to this field.
49 // google.api.HttpBody http_body = 2;
52 // service ResourceService {
53 // rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
54 // rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
57 // Example with streaming methods:
59 // service CaldavService {
60 // rpc GetCalendar(stream google.api.HttpBody)
61 // returns (stream google.api.HttpBody);
62 // rpc UpdateCalendar(stream google.api.HttpBody)
63 // returns (stream google.api.HttpBody);
66 // Use of this type only changes how the request and response bodies are
67 // handled, all other features will continue to work unchanged.
68 type HttpBody struct {
69 // The HTTP Content-Type string representing the content type of the body.
70 ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType" json:"content_type,omitempty"`
71 // HTTP body binary data.
72 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
75 func (m *HttpBody) Reset() { *m = HttpBody{} }
76 func (m *HttpBody) String() string { return proto.CompactTextString(m) }
77 func (*HttpBody) ProtoMessage() {}
78 func (*HttpBody) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
80 func (m *HttpBody) GetContentType() string {
87 func (m *HttpBody) GetData() []byte {
95 proto.RegisterType((*HttpBody)(nil), "google.api.HttpBody")
98 func init() { proto.RegisterFile("google/api/httpbody.proto", fileDescriptor0) }
100 var fileDescriptor0 = []byte{
101 // 181 bytes of a gzipped FileDescriptorProto
102 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0xcf, 0xcf, 0x4f,
103 0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0xcf, 0x28, 0x29, 0x29, 0x48, 0xca, 0x4f, 0xa9, 0xd4,
104 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0x48, 0xe9, 0x25, 0x16, 0x64, 0x2a, 0x39, 0x72,
105 0x71, 0x78, 0x94, 0x94, 0x14, 0x38, 0xe5, 0xa7, 0x54, 0x0a, 0x29, 0x72, 0xf1, 0x24, 0xe7, 0xe7,
106 0x95, 0xa4, 0xe6, 0x95, 0xc4, 0x97, 0x54, 0x16, 0xa4, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06,
107 0x71, 0x43, 0xc5, 0x42, 0x2a, 0x0b, 0x52, 0x85, 0x84, 0xb8, 0x58, 0x52, 0x12, 0x4b, 0x12, 0x25,
108 0x98, 0x14, 0x18, 0x35, 0x78, 0x82, 0xc0, 0x6c, 0xa7, 0x54, 0x2e, 0xbe, 0xe4, 0xfc, 0x5c, 0x3d,
109 0x84, 0xa1, 0x4e, 0xbc, 0x30, 0x23, 0x03, 0x40, 0xf6, 0x05, 0x30, 0x46, 0x59, 0x43, 0x25, 0xd3,
110 0xf3, 0x73, 0x12, 0xf3, 0xd2, 0xf5, 0xf2, 0x8b, 0xd2, 0xf5, 0xd3, 0x53, 0xf3, 0xc0, 0xae, 0xd1,
111 0x87, 0x48, 0x25, 0x16, 0x64, 0x16, 0xa3, 0xb8, 0xd5, 0x1a, 0xc6, 0x58, 0xc4, 0xc4, 0xe2, 0xee,
112 0x18, 0xe0, 0x99, 0xc4, 0x06, 0x56, 0x6e, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x0e, 0x3a, 0xdf,
113 0x30, 0xd9, 0x00, 0x00, 0x00,