any.pb.go 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // Code generated by protoc-gen-go.
  2. // source: github.com/golang/protobuf/ptypes/any/any.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package any is a generated protocol buffer package.
  6. It is generated from these files:
  7. github.com/golang/protobuf/ptypes/any/any.proto
  8. It has these top-level messages:
  9. Any
  10. */
  11. package any
  12. import proto "github.com/golang/protobuf/proto"
  13. import fmt "fmt"
  14. import math "math"
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  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. const _ = proto.ProtoPackageIsVersion1
  22. // `Any` contains an arbitrary serialized message along with a URL
  23. // that describes the type of the serialized message.
  24. //
  25. //
  26. // JSON
  27. // ====
  28. // The JSON representation of an `Any` value uses the regular
  29. // representation of the deserialized, embedded message, with an
  30. // additional field `@type` which contains the type URL. Example:
  31. //
  32. // package google.profile;
  33. // message Person {
  34. // string first_name = 1;
  35. // string last_name = 2;
  36. // }
  37. //
  38. // {
  39. // "@type": "type.googleapis.com/google.profile.Person",
  40. // "firstName": <string>,
  41. // "lastName": <string>
  42. // }
  43. //
  44. // If the embedded message type is well-known and has a custom JSON
  45. // representation, that representation will be embedded adding a field
  46. // `value` which holds the custom JSON in addition to the `@type`
  47. // field. Example (for message [google.protobuf.Duration][]):
  48. //
  49. // {
  50. // "@type": "type.googleapis.com/google.protobuf.Duration",
  51. // "value": "1.212s"
  52. // }
  53. //
  54. type Any struct {
  55. // A URL/resource name whose content describes the type of the
  56. // serialized message.
  57. //
  58. // For URLs which use the schema `http`, `https`, or no schema, the
  59. // following restrictions and interpretations apply:
  60. //
  61. // * If no schema is provided, `https` is assumed.
  62. // * The last segment of the URL's path must represent the fully
  63. // qualified name of the type (as in `path/google.protobuf.Duration`).
  64. // * An HTTP GET on the URL must yield a [google.protobuf.Type][]
  65. // value in binary format, or produce an error.
  66. // * Applications are allowed to cache lookup results based on the
  67. // URL, or have them precompiled into a binary to avoid any
  68. // lookup. Therefore, binary compatibility needs to be preserved
  69. // on changes to types. (Use versioned type names to manage
  70. // breaking changes.)
  71. //
  72. // Schemas other than `http`, `https` (or the empty schema) might be
  73. // used with implementation specific semantics.
  74. //
  75. TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl" json:"type_url,omitempty"`
  76. // Must be valid serialized data of the above specified type.
  77. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  78. }
  79. func (m *Any) Reset() { *m = Any{} }
  80. func (m *Any) String() string { return proto.CompactTextString(m) }
  81. func (*Any) ProtoMessage() {}
  82. func (*Any) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  83. func (*Any) XXX_WellKnownType() string { return "Any" }
  84. func init() {
  85. proto.RegisterType((*Any)(nil), "google.protobuf.Any")
  86. }
  87. var fileDescriptor0 = []byte{
  88. // 184 bytes of a gzipped FileDescriptorProto
  89. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xd2, 0x4f, 0xcf, 0x2c, 0xc9,
  90. 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0xcf, 0x49, 0xcc, 0x4b, 0xd7, 0x2f, 0x28,
  91. 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x2f, 0x28, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x4f, 0xcc,
  92. 0xab, 0x04, 0x61, 0x3d, 0xb0, 0xb8, 0x10, 0x7f, 0x7a, 0x7e, 0x7e, 0x7a, 0x4e, 0xaa, 0x1e, 0x4c,
  93. 0x95, 0x92, 0x19, 0x17, 0xb3, 0x63, 0x5e, 0xa5, 0x90, 0x24, 0x17, 0x07, 0x48, 0x79, 0x7c, 0x69,
  94. 0x51, 0x8e, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x3b, 0x88, 0x1f, 0x5a, 0x94, 0x23, 0x24,
  95. 0xc2, 0xc5, 0x5a, 0x96, 0x98, 0x53, 0x9a, 0x2a, 0xc1, 0x04, 0x14, 0xe7, 0x09, 0x82, 0x70, 0x9c,
  96. 0x8a, 0xb8, 0x84, 0x81, 0x96, 0xea, 0xa1, 0x19, 0xe7, 0xc4, 0x01, 0x34, 0x2c, 0x00, 0xc4, 0x09,
  97. 0x60, 0x8c, 0x52, 0x25, 0xca, 0x71, 0x0b, 0x18, 0x19, 0x17, 0x31, 0x31, 0xbb, 0x07, 0x38, 0xad,
  98. 0x62, 0x92, 0x73, 0x87, 0x98, 0x16, 0x00, 0x55, 0xa5, 0x17, 0x9e, 0x9a, 0x93, 0xe3, 0x9d, 0x97,
  99. 0x5f, 0x9e, 0x17, 0x02, 0x52, 0x9d, 0xc4, 0x06, 0xd6, 0x6e, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff,
  100. 0xc6, 0x4d, 0x03, 0x23, 0xf6, 0x00, 0x00, 0x00,
  101. }