blob: a395f960cd5d2cf49cc441c0843b98c38d218bad [file] [log] [blame]
William Kurkianea869482019-04-09 15:16:11 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/resource.proto
3
4package annotations // import "google.golang.org/genproto/googleapis/api/annotations"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9import descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
10
11// Reference imports to suppress errors if they are not otherwise used.
12var _ = proto.Marshal
13var _ = fmt.Errorf
14var _ = 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.
20const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
21
22// An annotation designating that this field designates a resource.
23//
24// Example:
25//
26// message Topic {
27// string name = 1 [(google.api.resource) = {
28// name: "projects/{project}/topics/{topic}"
29// }];
30// }
31type Resource struct {
32 // Required. The resource's name template.
33 //
34 // Examples:
35 // - "projects/{project}/topics/{topic}"
36 // - "projects/{project}/knowledgeBases/{knowledge_base}"
37 Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
38 // The name that should be used in code to describe the resource,
39 // in PascalCase.
40 //
41 // If omitted, this is inferred from the name of the message.
42 // This is required if the resource is being defined without the context
43 // of a message (see `resource_definition`, below).
44 //
45 // Example:
46 // option (google.api.resource_definition) = {
47 // pattern: "projects/{project}"
48 // symbol: "Project"
49 // };
50 Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
51 XXX_NoUnkeyedLiteral struct{} `json:"-"`
52 XXX_unrecognized []byte `json:"-"`
53 XXX_sizecache int32 `json:"-"`
54}
55
56func (m *Resource) Reset() { *m = Resource{} }
57func (m *Resource) String() string { return proto.CompactTextString(m) }
58func (*Resource) ProtoMessage() {}
59func (*Resource) Descriptor() ([]byte, []int) {
60 return fileDescriptor_resource_232de5e6fd811932, []int{0}
61}
62func (m *Resource) XXX_Unmarshal(b []byte) error {
63 return xxx_messageInfo_Resource.Unmarshal(m, b)
64}
65func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
66 return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
67}
68func (dst *Resource) XXX_Merge(src proto.Message) {
69 xxx_messageInfo_Resource.Merge(dst, src)
70}
71func (m *Resource) XXX_Size() int {
72 return xxx_messageInfo_Resource.Size(m)
73}
74func (m *Resource) XXX_DiscardUnknown() {
75 xxx_messageInfo_Resource.DiscardUnknown(m)
76}
77
78var xxx_messageInfo_Resource proto.InternalMessageInfo
79
80func (m *Resource) GetPattern() string {
81 if m != nil {
82 return m.Pattern
83 }
84 return ""
85}
86
87func (m *Resource) GetSymbol() string {
88 if m != nil {
89 return m.Symbol
90 }
91 return ""
92}
93
94var E_Resource = &proto.ExtensionDesc{
95 ExtendedType: (*descriptor.FieldOptions)(nil),
96 ExtensionType: (*Resource)(nil),
97 Field: 1053,
98 Name: "google.api.resource",
99 Tag: "bytes,1053,opt,name=resource",
100 Filename: "google/api/resource.proto",
101}
102
103var E_ResourceReference = &proto.ExtensionDesc{
104 ExtendedType: (*descriptor.FieldOptions)(nil),
105 ExtensionType: (*string)(nil),
106 Field: 1055,
107 Name: "google.api.resource_reference",
108 Tag: "bytes,1055,opt,name=resource_reference,json=resourceReference",
109 Filename: "google/api/resource.proto",
110}
111
112var E_ResourceDefinition = &proto.ExtensionDesc{
113 ExtendedType: (*descriptor.FileOptions)(nil),
114 ExtensionType: ([]*Resource)(nil),
115 Field: 1053,
116 Name: "google.api.resource_definition",
117 Tag: "bytes,1053,rep,name=resource_definition,json=resourceDefinition",
118 Filename: "google/api/resource.proto",
119}
120
121func init() {
122 proto.RegisterType((*Resource)(nil), "google.api.Resource")
123 proto.RegisterExtension(E_Resource)
124 proto.RegisterExtension(E_ResourceReference)
125 proto.RegisterExtension(E_ResourceDefinition)
126}
127
128func init() { proto.RegisterFile("google/api/resource.proto", fileDescriptor_resource_232de5e6fd811932) }
129
130var fileDescriptor_resource_232de5e6fd811932 = []byte{
131 // 334 bytes of a gzipped FileDescriptorProto
132 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x4a, 0xeb, 0x40,
133 0x18, 0x85, 0x49, 0xef, 0xa5, 0xcd, 0x9d, 0xab, 0x82, 0xa3, 0x48, 0x94, 0x16, 0x8a, 0xab, 0x2e,
134 0x64, 0x06, 0x74, 0x57, 0xdd, 0xa4, 0x88, 0xe2, 0x42, 0x1a, 0xb2, 0x74, 0x23, 0xd3, 0x64, 0x3a,
135 0x8c, 0xa4, 0xf3, 0x0f, 0x93, 0xe9, 0x42, 0x4b, 0x1f, 0x45, 0x04, 0x1f, 0xc3, 0x47, 0xea, 0x53,
136 0x48, 0x27, 0x99, 0x98, 0x85, 0xe2, 0xee, 0x3f, 0x9c, 0x39, 0xe7, 0x3b, 0x81, 0xa0, 0x63, 0x01,
137 0x20, 0x0a, 0x4e, 0x99, 0x96, 0xd4, 0xf0, 0x12, 0x96, 0x26, 0xe3, 0x44, 0x1b, 0xb0, 0x80, 0x51,
138 0x65, 0x11, 0xa6, 0xe5, 0xc9, 0xb0, 0x7e, 0xe6, 0x9c, 0xd9, 0x72, 0x4e, 0x73, 0x5e, 0x66, 0x46,
139 0x6a, 0x0b, 0xa6, 0x7a, 0x7d, 0x7a, 0x85, 0xc2, 0xb4, 0xce, 0xe3, 0x08, 0xf5, 0x34, 0xb3, 0x96,
140 0x1b, 0x15, 0x05, 0xc3, 0x60, 0xf4, 0x2f, 0xf5, 0x12, 0x1f, 0xa1, 0x6e, 0xf9, 0xbc, 0x98, 0x41,
141 0x11, 0x75, 0x9c, 0x51, 0xab, 0x71, 0x82, 0x42, 0x4f, 0xc7, 0x03, 0x52, 0x83, 0x3d, 0x8c, 0xdc,
142 0x48, 0x5e, 0xe4, 0x53, 0x6d, 0x25, 0xa8, 0x32, 0x7a, 0x0d, 0x87, 0xc1, 0xe8, 0xff, 0xf9, 0x21,
143 0xf9, 0x9a, 0x47, 0x3c, 0x39, 0x6d, 0x5a, 0xc6, 0xf7, 0x08, 0xfb, 0xfb, 0xd1, 0xf0, 0x39, 0x37,
144 0x5c, 0xfd, 0xde, 0xfd, 0x16, 0xba, 0x55, 0xfb, 0x3e, 0x99, 0xfa, 0xe0, 0x38, 0x47, 0x07, 0x4d,
145 0x5d, 0xce, 0xe7, 0x52, 0xc9, 0x6d, 0x02, 0xf7, 0xbf, 0xe9, 0x2b, 0x78, 0x6b, 0xea, 0x9f, 0x1f,
146 0xa7, 0x36, 0xf3, 0xae, 0x9b, 0xba, 0xc9, 0x47, 0xb0, 0x89, 0x07, 0x08, 0x6b, 0x03, 0x4f, 0x3c,
147 0xb3, 0x25, 0x5d, 0xd5, 0xd7, 0x1a, 0xf7, 0x92, 0xea, 0xda, 0xc4, 0x67, 0xa8, 0x0f, 0x46, 0x30,
148 0x25, 0x5f, 0x98, 0xa3, 0xd0, 0x55, 0x5b, 0xae, 0xf1, 0xce, 0xb4, 0x25, 0xd1, 0x5e, 0x06, 0x8b,
149 0x16, 0x7e, 0xb2, 0xeb, 0xf9, 0xc9, 0x76, 0x70, 0x12, 0x3c, 0xc4, 0xb5, 0x29, 0xa0, 0x60, 0x4a,
150 0x10, 0x30, 0x82, 0x0a, 0xae, 0xdc, 0xe7, 0xd0, 0xca, 0x62, 0x5a, 0x96, 0xee, 0xff, 0x60, 0x4a,
151 0x81, 0xad, 0xa0, 0x97, 0xad, 0xfb, 0xbd, 0xf3, 0xf7, 0x36, 0x4e, 0xee, 0x66, 0x5d, 0x17, 0xba,
152 0xf8, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x7e, 0x96, 0xa2, 0x53, 0x02, 0x00, 0x00,
153}