Code refactoring for bpa operator
[icn.git] / cmd / bpa-operator / vendor / google.golang.org / genproto / googleapis / api / httpbody / httpbody.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/httpbody.proto
3
4 package httpbody // import "google.golang.org/genproto/googleapis/api/httpbody"
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9 import any "github.com/golang/protobuf/ptypes/any"
10
11 // Reference imports to suppress errors if they are not otherwise used.
12 var _ = proto.Marshal
13 var _ = fmt.Errorf
14 var _ = 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.
20 const _ = 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
47 //       (google.protobuf.Empty);
48 //     }
49 //
50 // Example with streaming methods:
51 //
52 //     service CaldavService {
53 //       rpc GetCalendar(stream google.api.HttpBody)
54 //         returns (stream google.api.HttpBody);
55 //       rpc UpdateCalendar(stream google.api.HttpBody)
56 //         returns (stream google.api.HttpBody);
57 //     }
58 //
59 // Use of this type only changes how the request and response bodies are
60 // handled, all other features will continue to work unchanged.
61 type HttpBody struct {
62         // The HTTP Content-Type header value specifying the content type of the body.
63         ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
64         // The HTTP request/response body as raw binary.
65         Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
66         // Application specific response metadata. Must be set in the first response
67         // for streaming APIs.
68         Extensions           []*any.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"`
69         XXX_NoUnkeyedLiteral struct{}   `json:"-"`
70         XXX_unrecognized     []byte     `json:"-"`
71         XXX_sizecache        int32      `json:"-"`
72 }
73
74 func (m *HttpBody) Reset()         { *m = HttpBody{} }
75 func (m *HttpBody) String() string { return proto.CompactTextString(m) }
76 func (*HttpBody) ProtoMessage()    {}
77 func (*HttpBody) Descriptor() ([]byte, []int) {
78         return fileDescriptor_httpbody_45db50668f1dc1dc, []int{0}
79 }
80 func (m *HttpBody) XXX_Unmarshal(b []byte) error {
81         return xxx_messageInfo_HttpBody.Unmarshal(m, b)
82 }
83 func (m *HttpBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
84         return xxx_messageInfo_HttpBody.Marshal(b, m, deterministic)
85 }
86 func (dst *HttpBody) XXX_Merge(src proto.Message) {
87         xxx_messageInfo_HttpBody.Merge(dst, src)
88 }
89 func (m *HttpBody) XXX_Size() int {
90         return xxx_messageInfo_HttpBody.Size(m)
91 }
92 func (m *HttpBody) XXX_DiscardUnknown() {
93         xxx_messageInfo_HttpBody.DiscardUnknown(m)
94 }
95
96 var xxx_messageInfo_HttpBody proto.InternalMessageInfo
97
98 func (m *HttpBody) GetContentType() string {
99         if m != nil {
100                 return m.ContentType
101         }
102         return ""
103 }
104
105 func (m *HttpBody) GetData() []byte {
106         if m != nil {
107                 return m.Data
108         }
109         return nil
110 }
111
112 func (m *HttpBody) GetExtensions() []*any.Any {
113         if m != nil {
114                 return m.Extensions
115         }
116         return nil
117 }
118
119 func init() {
120         proto.RegisterType((*HttpBody)(nil), "google.api.HttpBody")
121 }
122
123 func init() { proto.RegisterFile("google/api/httpbody.proto", fileDescriptor_httpbody_45db50668f1dc1dc) }
124
125 var fileDescriptor_httpbody_45db50668f1dc1dc = []byte{
126         // 229 bytes of a gzipped FileDescriptorProto
127         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x31, 0x4f, 0xc3, 0x30,
128         0x10, 0x85, 0xe5, 0xb6, 0x42, 0x70, 0x2d, 0x0c, 0x16, 0x43, 0x60, 0x0a, 0x4c, 0x99, 0x6c, 0x09,
129         0xd8, 0x3a, 0x35, 0x0b, 0xb0, 0x45, 0x11, 0x13, 0x0b, 0x72, 0x1a, 0xe3, 0x46, 0x2a, 0x77, 0xa7,
130         0xe6, 0x10, 0xf8, 0xef, 0xf0, 0x2b, 0x19, 0x11, 0x69, 0x2c, 0xe8, 0xf6, 0xe4, 0xef, 0x3d, 0xbf,
131         0x77, 0x70, 0x11, 0x88, 0xc2, 0xd6, 0x5b, 0xc7, 0x9d, 0xdd, 0x88, 0x70, 0x43, 0x6d, 0x34, 0xbc,
132         0x23, 0x21, 0x0d, 0x7b, 0x64, 0x1c, 0x77, 0x97, 0xc9, 0x36, 0x90, 0xe6, 0xfd, 0xd5, 0x3a, 0x1c,
133         0x6d, 0xd7, 0x1f, 0x70, 0xfc, 0x20, 0xc2, 0x25, 0xb5, 0x51, 0x5f, 0xc1, 0x62, 0x4d, 0x28, 0x1e,
134         0xe5, 0x45, 0x22, 0xfb, 0x4c, 0xe5, 0xaa, 0x38, 0xa9, 0xe7, 0xe3, 0xdb, 0x53, 0x64, 0xaf, 0x35,
135         0xcc, 0x5a, 0x27, 0x2e, 0x9b, 0xe4, 0xaa, 0x58, 0xd4, 0x83, 0xd6, 0x77, 0x00, 0xfe, 0x53, 0x3c,
136         0xf6, 0x1d, 0x61, 0x9f, 0x4d, 0xf3, 0x69, 0x31, 0xbf, 0x39, 0x37, 0x63, 0x7d, 0xaa, 0x34, 0x2b,
137         0x8c, 0xf5, 0x3f, 0x5f, 0xb9, 0x81, 0xb3, 0x35, 0xbd, 0x99, 0xbf, 0x95, 0xe5, 0x69, 0x1a, 0x52,
138         0xfd, 0x66, 0x2a, 0xf5, 0xbc, 0x1c, 0x61, 0xa0, 0xad, 0xc3, 0x60, 0x68, 0x17, 0x6c, 0xf0, 0x38,
139         0xfc, 0x68, 0xf7, 0xc8, 0x71, 0xd7, 0x1f, 0x1c, 0xbf, 0x4c, 0xe2, 0x5b, 0xa9, 0xaf, 0xc9, 0xec,
140         0x7e, 0x55, 0x3d, 0x36, 0x47, 0x43, 0xe2, 0xf6, 0x27, 0x00, 0x00, 0xff, 0xff, 0x78, 0xb9, 0x16,
141         0x2b, 0x2d, 0x01, 0x00, 0x00,
142 }