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.
 
 
 

229 lines
9.0 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/config_change.proto
  3. package configchange // import "google.golang.org/genproto/googleapis/api/configchange"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. // Classifies set of possible modifications to an object in the service
  17. // configuration.
  18. type ChangeType int32
  19. const (
  20. // No value was provided.
  21. ChangeType_CHANGE_TYPE_UNSPECIFIED ChangeType = 0
  22. // The changed object exists in the 'new' service configuration, but not
  23. // in the 'old' service configuration.
  24. ChangeType_ADDED ChangeType = 1
  25. // The changed object exists in the 'old' service configuration, but not
  26. // in the 'new' service configuration.
  27. ChangeType_REMOVED ChangeType = 2
  28. // The changed object exists in both service configurations, but its value
  29. // is different.
  30. ChangeType_MODIFIED ChangeType = 3
  31. )
  32. var ChangeType_name = map[int32]string{
  33. 0: "CHANGE_TYPE_UNSPECIFIED",
  34. 1: "ADDED",
  35. 2: "REMOVED",
  36. 3: "MODIFIED",
  37. }
  38. var ChangeType_value = map[string]int32{
  39. "CHANGE_TYPE_UNSPECIFIED": 0,
  40. "ADDED": 1,
  41. "REMOVED": 2,
  42. "MODIFIED": 3,
  43. }
  44. func (x ChangeType) String() string {
  45. return proto.EnumName(ChangeType_name, int32(x))
  46. }
  47. func (ChangeType) EnumDescriptor() ([]byte, []int) {
  48. return fileDescriptor_config_change_ef3c642f4673b39c, []int{0}
  49. }
  50. // Output generated from semantically comparing two versions of a service
  51. // configuration.
  52. //
  53. // Includes detailed information about a field that have changed with
  54. // applicable advice about potential consequences for the change, such as
  55. // backwards-incompatibility.
  56. type ConfigChange struct {
  57. // Object hierarchy path to the change, with levels separated by a '.'
  58. // character. For repeated fields, an applicable unique identifier field is
  59. // used for the index (usually selector, name, or id). For maps, the term
  60. // 'key' is used. If the field has no unique identifier, the numeric index
  61. // is used.
  62. // Examples:
  63. // -
  64. // visibility.rules[selector=="google.LibraryService.CreateBook"].restriction
  65. // - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
  66. // - logging.producer_destinations[0]
  67. Element string `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
  68. // Value of the changed object in the old Service configuration,
  69. // in JSON format. This field will not be populated if ChangeType == ADDED.
  70. OldValue string `protobuf:"bytes,2,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"`
  71. // Value of the changed object in the new Service configuration,
  72. // in JSON format. This field will not be populated if ChangeType == REMOVED.
  73. NewValue string `protobuf:"bytes,3,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
  74. // The type for this change, either ADDED, REMOVED, or MODIFIED.
  75. ChangeType ChangeType `protobuf:"varint,4,opt,name=change_type,json=changeType,proto3,enum=google.api.ChangeType" json:"change_type,omitempty"`
  76. // Collection of advice provided for this change, useful for determining the
  77. // possible impact of this change.
  78. Advices []*Advice `protobuf:"bytes,5,rep,name=advices,proto3" json:"advices,omitempty"`
  79. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  80. XXX_unrecognized []byte `json:"-"`
  81. XXX_sizecache int32 `json:"-"`
  82. }
  83. func (m *ConfigChange) Reset() { *m = ConfigChange{} }
  84. func (m *ConfigChange) String() string { return proto.CompactTextString(m) }
  85. func (*ConfigChange) ProtoMessage() {}
  86. func (*ConfigChange) Descriptor() ([]byte, []int) {
  87. return fileDescriptor_config_change_ef3c642f4673b39c, []int{0}
  88. }
  89. func (m *ConfigChange) XXX_Unmarshal(b []byte) error {
  90. return xxx_messageInfo_ConfigChange.Unmarshal(m, b)
  91. }
  92. func (m *ConfigChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  93. return xxx_messageInfo_ConfigChange.Marshal(b, m, deterministic)
  94. }
  95. func (dst *ConfigChange) XXX_Merge(src proto.Message) {
  96. xxx_messageInfo_ConfigChange.Merge(dst, src)
  97. }
  98. func (m *ConfigChange) XXX_Size() int {
  99. return xxx_messageInfo_ConfigChange.Size(m)
  100. }
  101. func (m *ConfigChange) XXX_DiscardUnknown() {
  102. xxx_messageInfo_ConfigChange.DiscardUnknown(m)
  103. }
  104. var xxx_messageInfo_ConfigChange proto.InternalMessageInfo
  105. func (m *ConfigChange) GetElement() string {
  106. if m != nil {
  107. return m.Element
  108. }
  109. return ""
  110. }
  111. func (m *ConfigChange) GetOldValue() string {
  112. if m != nil {
  113. return m.OldValue
  114. }
  115. return ""
  116. }
  117. func (m *ConfigChange) GetNewValue() string {
  118. if m != nil {
  119. return m.NewValue
  120. }
  121. return ""
  122. }
  123. func (m *ConfigChange) GetChangeType() ChangeType {
  124. if m != nil {
  125. return m.ChangeType
  126. }
  127. return ChangeType_CHANGE_TYPE_UNSPECIFIED
  128. }
  129. func (m *ConfigChange) GetAdvices() []*Advice {
  130. if m != nil {
  131. return m.Advices
  132. }
  133. return nil
  134. }
  135. // Generated advice about this change, used for providing more
  136. // information about how a change will affect the existing service.
  137. type Advice struct {
  138. // Useful description for why this advice was applied and what actions should
  139. // be taken to mitigate any implied risks.
  140. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  141. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  142. XXX_unrecognized []byte `json:"-"`
  143. XXX_sizecache int32 `json:"-"`
  144. }
  145. func (m *Advice) Reset() { *m = Advice{} }
  146. func (m *Advice) String() string { return proto.CompactTextString(m) }
  147. func (*Advice) ProtoMessage() {}
  148. func (*Advice) Descriptor() ([]byte, []int) {
  149. return fileDescriptor_config_change_ef3c642f4673b39c, []int{1}
  150. }
  151. func (m *Advice) XXX_Unmarshal(b []byte) error {
  152. return xxx_messageInfo_Advice.Unmarshal(m, b)
  153. }
  154. func (m *Advice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  155. return xxx_messageInfo_Advice.Marshal(b, m, deterministic)
  156. }
  157. func (dst *Advice) XXX_Merge(src proto.Message) {
  158. xxx_messageInfo_Advice.Merge(dst, src)
  159. }
  160. func (m *Advice) XXX_Size() int {
  161. return xxx_messageInfo_Advice.Size(m)
  162. }
  163. func (m *Advice) XXX_DiscardUnknown() {
  164. xxx_messageInfo_Advice.DiscardUnknown(m)
  165. }
  166. var xxx_messageInfo_Advice proto.InternalMessageInfo
  167. func (m *Advice) GetDescription() string {
  168. if m != nil {
  169. return m.Description
  170. }
  171. return ""
  172. }
  173. func init() {
  174. proto.RegisterType((*ConfigChange)(nil), "google.api.ConfigChange")
  175. proto.RegisterType((*Advice)(nil), "google.api.Advice")
  176. proto.RegisterEnum("google.api.ChangeType", ChangeType_name, ChangeType_value)
  177. }
  178. func init() {
  179. proto.RegisterFile("google/api/config_change.proto", fileDescriptor_config_change_ef3c642f4673b39c)
  180. }
  181. var fileDescriptor_config_change_ef3c642f4673b39c = []byte{
  182. // 338 bytes of a gzipped FileDescriptorProto
  183. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xcd, 0x4e, 0xc2, 0x40,
  184. 0x14, 0x85, 0x2d, 0xff, 0xdc, 0x12, 0x82, 0xb3, 0xd0, 0x26, 0x24, 0xa6, 0x61, 0x45, 0x88, 0x69,
  185. 0x13, 0x5c, 0xb8, 0x70, 0x55, 0xda, 0x8a, 0x2c, 0x80, 0xa6, 0x22, 0x89, 0x6e, 0x9a, 0xb1, 0x1d,
  186. 0xc7, 0x49, 0xca, 0xcc, 0x08, 0x15, 0xc2, 0xeb, 0xf8, 0x36, 0xbe, 0x95, 0xa1, 0x03, 0xd2, 0xdd,
  187. 0x9c, 0xf9, 0xce, 0xcd, 0x3d, 0x39, 0x17, 0x6e, 0xa8, 0x10, 0x34, 0x25, 0x36, 0x96, 0xcc, 0x8e,
  188. 0x05, 0xff, 0x60, 0x34, 0x8a, 0x3f, 0x31, 0xa7, 0xc4, 0x92, 0x6b, 0x91, 0x09, 0x04, 0x8a, 0x5b,
  189. 0x58, 0xb2, 0xde, 0xaf, 0x06, 0x2d, 0x37, 0xf7, 0xb8, 0xb9, 0x05, 0x19, 0x50, 0x27, 0x29, 0x59,
  190. 0x11, 0x9e, 0x19, 0x9a, 0xa9, 0xf5, 0x9b, 0xe1, 0x49, 0xa2, 0x2e, 0x34, 0x45, 0x9a, 0x44, 0x5b,
  191. 0x9c, 0x7e, 0x13, 0xa3, 0x94, 0xb3, 0x86, 0x48, 0x93, 0xe5, 0x41, 0x1f, 0x20, 0x27, 0xbb, 0x23,
  192. 0x2c, 0x2b, 0xc8, 0xc9, 0x4e, 0xc1, 0x7b, 0xd0, 0x55, 0x80, 0x28, 0xdb, 0x4b, 0x62, 0x54, 0x4c,
  193. 0xad, 0xdf, 0x1e, 0x5e, 0x59, 0xe7, 0x18, 0x96, 0x5a, 0xbe, 0xd8, 0x4b, 0x12, 0x42, 0xfc, 0xff,
  194. 0x46, 0xb7, 0x50, 0xc7, 0xc9, 0x96, 0xc5, 0x64, 0x63, 0x54, 0xcd, 0x72, 0x5f, 0x1f, 0xa2, 0xe2,
  195. 0x90, 0x93, 0xa3, 0xf0, 0x64, 0xe9, 0x0d, 0xa0, 0xa6, 0xbe, 0x90, 0x09, 0x7a, 0x42, 0x36, 0xf1,
  196. 0x9a, 0xc9, 0x8c, 0x09, 0x7e, 0x0c, 0x5b, 0xfc, 0x1a, 0xcc, 0x01, 0xce, 0x3b, 0x51, 0x17, 0xae,
  197. 0xdd, 0x27, 0x67, 0x36, 0xf6, 0xa3, 0xc5, 0x6b, 0xe0, 0x47, 0x2f, 0xb3, 0xe7, 0xc0, 0x77, 0x27,
  198. 0x8f, 0x13, 0xdf, 0xeb, 0x5c, 0xa0, 0x26, 0x54, 0x1d, 0xcf, 0xf3, 0xbd, 0x8e, 0x86, 0x74, 0xa8,
  199. 0x87, 0xfe, 0x74, 0xbe, 0xf4, 0xbd, 0x4e, 0x09, 0xb5, 0xa0, 0x31, 0x9d, 0x7b, 0xca, 0x55, 0x1e,
  200. 0x7d, 0x41, 0x3b, 0x16, 0xab, 0x42, 0xbc, 0xd1, 0x65, 0xb1, 0xd7, 0xe0, 0xd0, 0x7c, 0xa0, 0xbd,
  201. 0xb9, 0x47, 0x03, 0x15, 0x29, 0xe6, 0xd4, 0x12, 0x6b, 0x6a, 0x53, 0xc2, 0xf3, 0xbb, 0xd8, 0x0a,
  202. 0x61, 0xc9, 0x36, 0x85, 0xd3, 0xa9, 0x36, 0x1e, 0x8a, 0xe2, 0xa7, 0x54, 0x19, 0x3b, 0xc1, 0xe4,
  203. 0xbd, 0x96, 0x8f, 0xdd, 0xfd, 0x05, 0x00, 0x00, 0xff, 0xff, 0x46, 0x8b, 0xd3, 0xf5, 0xf0, 0x01,
  204. 0x00, 0x00,
  205. }