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