You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

143 lines
5.5 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/httpbody.proto
  3. package httpbody // import "google.golang.org/genproto/googleapis/api/httpbody"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import any "github.com/golang/protobuf/ptypes/any"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Message that represents an arbitrary HTTP body. It should only be used for
  18. // payload formats that can't be represented as JSON, such as raw binary or
  19. // an HTML page.
  20. //
  21. //
  22. // This message can be used both in streaming and non-streaming API methods in
  23. // the request as well as the response.
  24. //
  25. // It can be used as a top-level request field, which is convenient if one
  26. // wants to extract parameters from either the URL or HTTP template into the
  27. // request fields and also want access to the raw HTTP body.
  28. //
  29. // Example:
  30. //
  31. // message GetResourceRequest {
  32. // // A unique request id.
  33. // string request_id = 1;
  34. //
  35. // // The raw HTTP body is bound to this field.
  36. // google.api.HttpBody http_body = 2;
  37. // }
  38. //
  39. // service ResourceService {
  40. // rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
  41. // rpc UpdateResource(google.api.HttpBody) returns
  42. // (google.protobuf.Empty);
  43. // }
  44. //
  45. // Example with streaming methods:
  46. //
  47. // service CaldavService {
  48. // rpc GetCalendar(stream google.api.HttpBody)
  49. // returns (stream google.api.HttpBody);
  50. // rpc UpdateCalendar(stream google.api.HttpBody)
  51. // returns (stream google.api.HttpBody);
  52. // }
  53. //
  54. // Use of this type only changes how the request and response bodies are
  55. // handled, all other features will continue to work unchanged.
  56. type HttpBody struct {
  57. // The HTTP Content-Type header value specifying the content type of the body.
  58. ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
  59. // The HTTP request/response body as raw binary.
  60. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  61. // Application specific response metadata. Must be set in the first response
  62. // for streaming APIs.
  63. Extensions []*any.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"`
  64. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  65. XXX_unrecognized []byte `json:"-"`
  66. XXX_sizecache int32 `json:"-"`
  67. }
  68. func (m *HttpBody) Reset() { *m = HttpBody{} }
  69. func (m *HttpBody) String() string { return proto.CompactTextString(m) }
  70. func (*HttpBody) ProtoMessage() {}
  71. func (*HttpBody) Descriptor() ([]byte, []int) {
  72. return fileDescriptor_httpbody_45db50668f1dc1dc, []int{0}
  73. }
  74. func (m *HttpBody) XXX_Unmarshal(b []byte) error {
  75. return xxx_messageInfo_HttpBody.Unmarshal(m, b)
  76. }
  77. func (m *HttpBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  78. return xxx_messageInfo_HttpBody.Marshal(b, m, deterministic)
  79. }
  80. func (dst *HttpBody) XXX_Merge(src proto.Message) {
  81. xxx_messageInfo_HttpBody.Merge(dst, src)
  82. }
  83. func (m *HttpBody) XXX_Size() int {
  84. return xxx_messageInfo_HttpBody.Size(m)
  85. }
  86. func (m *HttpBody) XXX_DiscardUnknown() {
  87. xxx_messageInfo_HttpBody.DiscardUnknown(m)
  88. }
  89. var xxx_messageInfo_HttpBody proto.InternalMessageInfo
  90. func (m *HttpBody) GetContentType() string {
  91. if m != nil {
  92. return m.ContentType
  93. }
  94. return ""
  95. }
  96. func (m *HttpBody) GetData() []byte {
  97. if m != nil {
  98. return m.Data
  99. }
  100. return nil
  101. }
  102. func (m *HttpBody) GetExtensions() []*any.Any {
  103. if m != nil {
  104. return m.Extensions
  105. }
  106. return nil
  107. }
  108. func init() {
  109. proto.RegisterType((*HttpBody)(nil), "google.api.HttpBody")
  110. }
  111. func init() { proto.RegisterFile("google/api/httpbody.proto", fileDescriptor_httpbody_45db50668f1dc1dc) }
  112. var fileDescriptor_httpbody_45db50668f1dc1dc = []byte{
  113. // 229 bytes of a gzipped FileDescriptorProto
  114. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x31, 0x4f, 0xc3, 0x30,
  115. 0x10, 0x85, 0xe5, 0xb6, 0x42, 0x70, 0x2d, 0x0c, 0x16, 0x43, 0x60, 0x0a, 0x4c, 0x99, 0x6c, 0x09,
  116. 0xd8, 0x3a, 0x35, 0x0b, 0xb0, 0x45, 0x11, 0x13, 0x0b, 0x72, 0x1a, 0xe3, 0x46, 0x2a, 0x77, 0xa7,
  117. 0xe6, 0x10, 0xf8, 0xef, 0xf0, 0x2b, 0x19, 0x11, 0x69, 0x2c, 0xe8, 0xf6, 0xe4, 0xef, 0x3d, 0xbf,
  118. 0x77, 0x70, 0x11, 0x88, 0xc2, 0xd6, 0x5b, 0xc7, 0x9d, 0xdd, 0x88, 0x70, 0x43, 0x6d, 0x34, 0xbc,
  119. 0x23, 0x21, 0x0d, 0x7b, 0x64, 0x1c, 0x77, 0x97, 0xc9, 0x36, 0x90, 0xe6, 0xfd, 0xd5, 0x3a, 0x1c,
  120. 0x6d, 0xd7, 0x1f, 0x70, 0xfc, 0x20, 0xc2, 0x25, 0xb5, 0x51, 0x5f, 0xc1, 0x62, 0x4d, 0x28, 0x1e,
  121. 0xe5, 0x45, 0x22, 0xfb, 0x4c, 0xe5, 0xaa, 0x38, 0xa9, 0xe7, 0xe3, 0xdb, 0x53, 0x64, 0xaf, 0x35,
  122. 0xcc, 0x5a, 0x27, 0x2e, 0x9b, 0xe4, 0xaa, 0x58, 0xd4, 0x83, 0xd6, 0x77, 0x00, 0xfe, 0x53, 0x3c,
  123. 0xf6, 0x1d, 0x61, 0x9f, 0x4d, 0xf3, 0x69, 0x31, 0xbf, 0x39, 0x37, 0x63, 0x7d, 0xaa, 0x34, 0x2b,
  124. 0x8c, 0xf5, 0x3f, 0x5f, 0xb9, 0x81, 0xb3, 0x35, 0xbd, 0x99, 0xbf, 0x95, 0xe5, 0x69, 0x1a, 0x52,
  125. 0xfd, 0x66, 0x2a, 0xf5, 0xbc, 0x1c, 0x61, 0xa0, 0xad, 0xc3, 0x60, 0x68, 0x17, 0x6c, 0xf0, 0x38,
  126. 0xfc, 0x68, 0xf7, 0xc8, 0x71, 0xd7, 0x1f, 0x1c, 0xbf, 0x4c, 0xe2, 0x5b, 0xa9, 0xaf, 0xc9, 0xec,
  127. 0x7e, 0x55, 0x3d, 0x36, 0x47, 0x43, 0xe2, 0xf6, 0x27, 0x00, 0x00, 0xff, 0xff, 0x78, 0xb9, 0x16,
  128. 0x2b, 0x2d, 0x01, 0x00, 0x00,
  129. }