any.pb.go 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  24. // `Any` contains an arbitrary serialized protocol buffer message along with a
  25. // URL that describes the type of the serialized message.
  26. //
  27. // Protobuf library provides support to pack/unpack Any values in the form
  28. // of utility functions or additional generated methods of the Any type.
  29. //
  30. // Example 1: Pack and unpack a message in C++.
  31. //
  32. // Foo foo = ...;
  33. // Any any;
  34. // any.PackFrom(foo);
  35. // ...
  36. // if (any.UnpackTo(&foo)) {
  37. // ...
  38. // }
  39. //
  40. // Example 2: Pack and unpack a message in Java.
  41. //
  42. // Foo foo = ...;
  43. // Any any = Any.pack(foo);
  44. // ...
  45. // if (any.is(Foo.class)) {
  46. // foo = any.unpack(Foo.class);
  47. // }
  48. //
  49. // Example 3: Pack and unpack a message in Python.
  50. //
  51. // foo = Foo(...)
  52. // any = Any()
  53. // any.Pack(foo)
  54. // ...
  55. // if any.Is(Foo.DESCRIPTOR):
  56. // any.Unpack(foo)
  57. // ...
  58. //
  59. // The pack methods provided by protobuf library will by default use
  60. // 'type.googleapis.com/full.type.name' as the type URL and the unpack
  61. // methods only use the fully qualified type name after the last '/'
  62. // in the type URL, for example "foo.bar.com/x/y.z" will yield type
  63. // name "y.z".
  64. //
  65. //
  66. // JSON
  67. // ====
  68. // The JSON representation of an `Any` value uses the regular
  69. // representation of the deserialized, embedded message, with an
  70. // additional field `@type` which contains the type URL. Example:
  71. //
  72. // package google.profile;
  73. // message Person {
  74. // string first_name = 1;
  75. // string last_name = 2;
  76. // }
  77. //
  78. // {
  79. // "@type": "type.googleapis.com/google.profile.Person",
  80. // "firstName": <string>,
  81. // "lastName": <string>
  82. // }
  83. //
  84. // If the embedded message type is well-known and has a custom JSON
  85. // representation, that representation will be embedded adding a field
  86. // `value` which holds the custom JSON in addition to the `@type`
  87. // field. Example (for message [google.protobuf.Duration][]):
  88. //
  89. // {
  90. // "@type": "type.googleapis.com/google.protobuf.Duration",
  91. // "value": "1.212s"
  92. // }
  93. //
  94. type Any struct {
  95. // A URL/resource name whose content describes the type of the
  96. // serialized protocol buffer message.
  97. //
  98. // For URLs which use the scheme `http`, `https`, or no scheme, the
  99. // following restrictions and interpretations apply:
  100. //
  101. // * If no scheme is provided, `https` is assumed.
  102. // * The last segment of the URL's path must represent the fully
  103. // qualified name of the type (as in `path/google.protobuf.Duration`).
  104. // The name should be in a canonical form (e.g., leading "." is
  105. // not accepted).
  106. // * An HTTP GET on the URL must yield a [google.protobuf.Type][]
  107. // value in binary format, or produce an error.
  108. // * Applications are allowed to cache lookup results based on the
  109. // URL, or have them precompiled into a binary to avoid any
  110. // lookup. Therefore, binary compatibility needs to be preserved
  111. // on changes to types. (Use versioned type names to manage
  112. // breaking changes.)
  113. //
  114. // Schemes other than `http`, `https` (or the empty scheme) might be
  115. // used with implementation specific semantics.
  116. //
  117. TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl" json:"type_url,omitempty"`
  118. // Must be a valid serialized protocol buffer of the above specified type.
  119. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  120. }
  121. func (m *Any) Reset() { *m = Any{} }
  122. func (m *Any) String() string { return proto.CompactTextString(m) }
  123. func (*Any) ProtoMessage() {}
  124. func (*Any) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  125. func (*Any) XXX_WellKnownType() string { return "Any" }
  126. func init() {
  127. proto.RegisterType((*Any)(nil), "google.protobuf.Any")
  128. }
  129. func init() { proto.RegisterFile("github.com/golang/protobuf/ptypes/any/any.proto", fileDescriptor0) }
  130. var fileDescriptor0 = []byte{
  131. // 187 bytes of a gzipped FileDescriptorProto
  132. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xd2, 0x4f, 0xcf, 0x2c, 0xc9,
  133. 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0xcf, 0x49, 0xcc, 0x4b, 0xd7, 0x2f, 0x28,
  134. 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x2f, 0x28, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x4f, 0xcc,
  135. 0xab, 0x04, 0x61, 0x3d, 0xb0, 0xb8, 0x10, 0x7f, 0x7a, 0x7e, 0x7e, 0x7a, 0x4e, 0xaa, 0x1e, 0x4c,
  136. 0x95, 0x92, 0x19, 0x17, 0xb3, 0x63, 0x5e, 0xa5, 0x90, 0x24, 0x17, 0x07, 0x48, 0x79, 0x7c, 0x69,
  137. 0x51, 0x8e, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x3b, 0x88, 0x1f, 0x5a, 0x94, 0x23, 0x24,
  138. 0xc2, 0xc5, 0x5a, 0x96, 0x98, 0x53, 0x9a, 0x2a, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x13, 0x04, 0xe1,
  139. 0x38, 0x15, 0x71, 0x09, 0x27, 0xe7, 0xe7, 0xea, 0xa1, 0x19, 0xe7, 0xc4, 0xe1, 0x98, 0x57, 0x19,
  140. 0x00, 0xe2, 0x04, 0x30, 0x46, 0xa9, 0x12, 0xe5, 0xb8, 0x05, 0x8c, 0x8c, 0x8b, 0x98, 0x98, 0xdd,
  141. 0x03, 0x9c, 0x56, 0x31, 0xc9, 0xb9, 0x43, 0x4c, 0x0b, 0x80, 0xaa, 0xd2, 0x0b, 0x4f, 0xcd, 0xc9,
  142. 0xf1, 0xce, 0xcb, 0x2f, 0xcf, 0x0b, 0x01, 0xa9, 0x4e, 0x62, 0x03, 0x6b, 0x37, 0x06, 0x04, 0x00,
  143. 0x00, 0xff, 0xff, 0xc6, 0x4d, 0x03, 0x23, 0xf6, 0x00, 0x00, 0x00,
  144. }