| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package v3 |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/xds/annotations/v3" |
| 11 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 12 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 13 |
anypb "google.golang.org/protobuf/types/known/anypb" |
| 14 |
reflect "reflect" |
| 15 |
sync "sync" |
| 16 |
unsafe "unsafe" |
| 17 |
) |
| 18 |
|
| 19 |
const ( |
| 20 |
|
| 21 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 22 |
|
| 23 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 24 |
) |
| 25 |
|
| 26 |
type Resource struct { |
| 27 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 28 |
Name *ResourceName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 29 |
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 30 |
Resource *anypb.Any `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` |
| 31 |
unknownFields protoimpl.UnknownFields |
| 32 |
sizeCache protoimpl.SizeCache |
| 33 |
} |
| 34 |
|
| 35 |
func (x *Resource) Reset() { |
| 36 |
*x = Resource{} |
| 37 |
mi := &file_xds_core_v3_resource_proto_msgTypes[0] |
| 38 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 39 |
ms.StoreMessageInfo(mi) |
| 40 |
} |
| 41 |
|
| 42 |
func (x *Resource) String() string { |
| 43 |
return protoimpl.X.MessageStringOf(x) |
| 44 |
} |
| 45 |
|
| 46 |
func (*Resource) ProtoMessage() {} |
| 47 |
|
| 48 |
func (x *Resource) ProtoReflect() protoreflect.Message { |
| 49 |
mi := &file_xds_core_v3_resource_proto_msgTypes[0] |
| 50 |
if x != nil { |
| 51 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 52 |
if ms.LoadMessageInfo() == nil { |
| 53 |
ms.StoreMessageInfo(mi) |
| 54 |
} |
| 55 |
return ms |
| 56 |
} |
| 57 |
return mi.MessageOf(x) |
| 58 |
} |
| 59 |
|
| 60 |
|
| 61 |
func (*Resource) Descriptor() ([]byte, []int) { |
| 62 |
return file_xds_core_v3_resource_proto_rawDescGZIP(), []int{0} |
| 63 |
} |
| 64 |
|
| 65 |
func (x *Resource) GetName() *ResourceName { |
| 66 |
if x != nil { |
| 67 |
return x.Name |
| 68 |
} |
| 69 |
return nil |
| 70 |
} |
| 71 |
|
| 72 |
func (x *Resource) GetVersion() string { |
| 73 |
if x != nil { |
| 74 |
return x.Version |
| 75 |
} |
| 76 |
return "" |
| 77 |
} |
| 78 |
|
| 79 |
func (x *Resource) GetResource() *anypb.Any { |
| 80 |
if x != nil { |
| 81 |
return x.Resource |
| 82 |
} |
| 83 |
return nil |
| 84 |
} |
| 85 |
|
| 86 |
var File_xds_core_v3_resource_proto protoreflect.FileDescriptor |
| 87 |
|
| 88 |
const file_xds_core_v3_resource_proto_rawDesc = "" + |
| 89 |
"\n" + |
| 90 |
"\x1axds/core/v3/resource.proto\x12\vxds.core.v3\x1a\x19google/protobuf/any.proto\x1a\x1fxds/annotations/v3/status.proto\x1a\x1fxds/core/v3/resource_name.proto\"\x85\x01\n" + |
| 91 |
"\bResource\x12-\n" + |
| 92 |
"\x04name\x18\x01 \x01(\v2\x19.xds.core.v3.ResourceNameR\x04name\x12\x18\n" + |
| 93 |
"\aversion\x18\x02 \x01(\tR\aversion\x120\n" + |
| 94 |
"\bresource\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\bresourceBU\xd2Ƥ\xe1\x06\x02\b\x01\n" + |
| 95 |
"\x16com.github.xds.core.v3B\rResourceProtoP\x01Z\"github.com/cncf/xds/go/xds/core/v3b\x06proto3" |
| 96 |
|
| 97 |
var ( |
| 98 |
file_xds_core_v3_resource_proto_rawDescOnce sync.Once |
| 99 |
file_xds_core_v3_resource_proto_rawDescData []byte |
| 100 |
) |
| 101 |
|
| 102 |
func file_xds_core_v3_resource_proto_rawDescGZIP() []byte { |
| 103 |
file_xds_core_v3_resource_proto_rawDescOnce.Do(func() { |
| 104 |
file_xds_core_v3_resource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_core_v3_resource_proto_rawDesc), len(file_xds_core_v3_resource_proto_rawDesc))) |
| 105 |
}) |
| 106 |
return file_xds_core_v3_resource_proto_rawDescData |
| 107 |
} |
| 108 |
|
| 109 |
var file_xds_core_v3_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 110 |
var file_xds_core_v3_resource_proto_goTypes = []any{ |
| 111 |
(*Resource)(nil), |
| 112 |
(*ResourceName)(nil), |
| 113 |
(*anypb.Any)(nil), |
| 114 |
} |
| 115 |
var file_xds_core_v3_resource_proto_depIdxs = []int32{ |
| 116 |
1, |
| 117 |
2, |
| 118 |
2, |
| 119 |
2, |
| 120 |
2, |
| 121 |
2, |
| 122 |
0, |
| 123 |
} |
| 124 |
|
| 125 |
func init() { file_xds_core_v3_resource_proto_init() } |
| 126 |
func file_xds_core_v3_resource_proto_init() { |
| 127 |
if File_xds_core_v3_resource_proto != nil { |
| 128 |
return |
| 129 |
} |
| 130 |
file_xds_core_v3_resource_name_proto_init() |
| 131 |
type x struct{} |
| 132 |
out := protoimpl.TypeBuilder{ |
| 133 |
File: protoimpl.DescBuilder{ |
| 134 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 135 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_core_v3_resource_proto_rawDesc), len(file_xds_core_v3_resource_proto_rawDesc)), |
| 136 |
NumEnums: 0, |
| 137 |
NumMessages: 1, |
| 138 |
NumExtensions: 0, |
| 139 |
NumServices: 0, |
| 140 |
}, |
| 141 |
GoTypes: file_xds_core_v3_resource_proto_goTypes, |
| 142 |
DependencyIndexes: file_xds_core_v3_resource_proto_depIdxs, |
| 143 |
MessageInfos: file_xds_core_v3_resource_proto_msgTypes, |
| 144 |
}.Build() |
| 145 |
File_xds_core_v3_resource_proto = out.File |
| 146 |
file_xds_core_v3_resource_proto_goTypes = nil |
| 147 |
file_xds_core_v3_resource_proto_depIdxs = nil |
| 148 |
} |