1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/httpbody.proto
3
4package httpbody // import "google.golang.org/genproto/googleapis/api/httpbody"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9import any "github.com/golang/protobuf/ptypes/any"
10
11// Reference imports to suppress errors if they are not otherwise used.
12var _ = proto.Marshal
13var _ = fmt.Errorf
14var _ = math.Inf
15
16// This is a compile-time assertion to ensure that this generated file
17// is compatible with the proto package it is being compiled against.
18// A compilation error at this line likely means your copy of the
19// proto package needs to be updated.
20const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
21
22// Message that represents an arbitrary HTTP body. It should only be used for
23// payload formats that can't be represented as JSON, such as raw binary or
24// an HTML page.
25//
26//
27// This message can be used both in streaming and non-streaming API methods in
28// the request as well as the response.
29//
30// It can be used as a top-level request field, which is convenient if one
31// wants to extract parameters from either the URL or HTTP template into the
32// request fields and also want access to the raw HTTP body.
33//
34// Example:
35//
36//     message GetResourceRequest {
37//       // A unique request id.
38//       string request_id = 1;
39//
40//       // The raw HTTP body is bound to this field.
41//       google.api.HttpBody http_body = 2;
42//     }
43//
44//     service ResourceService {
45//       rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
46//       rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
47//     }
48//
49// Example with streaming methods:
50//
51//     service CaldavService {
52//       rpc GetCalendar(stream google.api.HttpBody)
53//         returns (stream google.api.HttpBody);
54//       rpc UpdateCalendar(stream google.api.HttpBody)
55//         returns (stream google.api.HttpBody);
56//     }
57//
58// Use of this type only changes how the request and response bodies are
59// handled, all other features will continue to work unchanged.
60type HttpBody struct {
61	// The HTTP Content-Type string representing the content type of the body.
62	ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
63	// HTTP body binary data.
64	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
65	// Application specific response metadata. Must be set in the first response
66	// for streaming APIs.
67	Extensions           []*any.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"`
68	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
69	XXX_unrecognized     []byte     `json:"-"`
70	XXX_sizecache        int32      `json:"-"`
71}
72
73func (m *HttpBody) Reset()         { *m = HttpBody{} }
74func (m *HttpBody) String() string { return proto.CompactTextString(m) }
75func (*HttpBody) ProtoMessage()    {}
76func (*HttpBody) Descriptor() ([]byte, []int) {
77	return fileDescriptor_httpbody_d3ca4c70025a4501, []int{0}
78}
79func (m *HttpBody) XXX_Unmarshal(b []byte) error {
80	return xxx_messageInfo_HttpBody.Unmarshal(m, b)
81}
82func (m *HttpBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
83	return xxx_messageInfo_HttpBody.Marshal(b, m, deterministic)
84}
85func (dst *HttpBody) XXX_Merge(src proto.Message) {
86	xxx_messageInfo_HttpBody.Merge(dst, src)
87}
88func (m *HttpBody) XXX_Size() int {
89	return xxx_messageInfo_HttpBody.Size(m)
90}
91func (m *HttpBody) XXX_DiscardUnknown() {
92	xxx_messageInfo_HttpBody.DiscardUnknown(m)
93}
94
95var xxx_messageInfo_HttpBody proto.InternalMessageInfo
96
97func (m *HttpBody) GetContentType() string {
98	if m != nil {
99		return m.ContentType
100	}
101	return ""
102}
103
104func (m *HttpBody) GetData() []byte {
105	if m != nil {
106		return m.Data
107	}
108	return nil
109}
110
111func (m *HttpBody) GetExtensions() []*any.Any {
112	if m != nil {
113		return m.Extensions
114	}
115	return nil
116}
117
118func init() {
119	proto.RegisterType((*HttpBody)(nil), "google.api.HttpBody")
120}
121
122func init() { proto.RegisterFile("google/api/httpbody.proto", fileDescriptor_httpbody_d3ca4c70025a4501) }
123
124var fileDescriptor_httpbody_d3ca4c70025a4501 = []byte{
125	// 226 bytes of a gzipped FileDescriptorProto
126	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x3f, 0x4f, 0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