| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package v3 |
| 8 |
|
| 9 |
import ( |
| 10 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 |
structpb "google.golang.org/protobuf/types/known/structpb" |
| 13 |
reflect "reflect" |
| 14 |
sync "sync" |
| 15 |
unsafe "unsafe" |
| 16 |
) |
| 17 |
|
| 18 |
const ( |
| 19 |
|
| 20 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 21 |
|
| 22 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 23 |
) |
| 24 |
|
| 25 |
type TypedStruct struct { |
| 26 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 27 |
TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` |
| 28 |
Value *structpb.Struct `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| 29 |
unknownFields protoimpl.UnknownFields |
| 30 |
sizeCache protoimpl.SizeCache |
| 31 |
} |
| 32 |
|
| 33 |
func (x *TypedStruct) Reset() { |
| 34 |
*x = TypedStruct{} |
| 35 |
mi := &file_xds_type_v3_typed_struct_proto_msgTypes[0] |
| 36 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 37 |
ms.StoreMessageInfo(mi) |
| 38 |
} |
| 39 |
|
| 40 |
func (x *TypedStruct) String() string { |
| 41 |
return protoimpl.X.MessageStringOf(x) |
| 42 |
} |
| 43 |
|
| 44 |
func (*TypedStruct) ProtoMessage() {} |
| 45 |
|
| 46 |
func (x *TypedStruct) ProtoReflect() protoreflect.Message { |
| 47 |
mi := &file_xds_type_v3_typed_struct_proto_msgTypes[0] |
| 48 |
if x != nil { |
| 49 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 50 |
if ms.LoadMessageInfo() == nil { |
| 51 |
ms.StoreMessageInfo(mi) |
| 52 |
} |
| 53 |
return ms |
| 54 |
} |
| 55 |
return mi.MessageOf(x) |
| 56 |
} |
| 57 |
|
| 58 |
|
| 59 |
func (*TypedStruct) Descriptor() ([]byte, []int) { |
| 60 |
return file_xds_type_v3_typed_struct_proto_rawDescGZIP(), []int{0} |
| 61 |
} |
| 62 |
|
| 63 |
func (x *TypedStruct) GetTypeUrl() string { |
| 64 |
if x != nil { |
| 65 |
return x.TypeUrl |
| 66 |
} |
| 67 |
return "" |
| 68 |
} |
| 69 |
|
| 70 |
func (x *TypedStruct) GetValue() *structpb.Struct { |
| 71 |
if x != nil { |
| 72 |
return x.Value |
| 73 |
} |
| 74 |
return nil |
| 75 |
} |
| 76 |
|
| 77 |
var File_xds_type_v3_typed_struct_proto protoreflect.FileDescriptor |
| 78 |
|
| 79 |
const file_xds_type_v3_typed_struct_proto_rawDesc = "" + |
| 80 |
"\n" + |
| 81 |
"\x1exds/type/v3/typed_struct.proto\x12\vxds.type.v3\x1a\x1cgoogle/protobuf/struct.proto\"W\n" + |
| 82 |
"\vTypedStruct\x12\x19\n" + |
| 83 |
"\btype_url\x18\x01 \x01(\tR\atypeUrl\x12-\n" + |
| 84 |
"\x05value\x18\x02 \x01(\v2\x17.google.protobuf.StructR\x05valueBP\n" + |
| 85 |
"\x16com.github.xds.type.v3B\x10TypedStructProtoP\x01Z\"github.com/cncf/xds/go/xds/type/v3b\x06proto3" |
| 86 |
|
| 87 |
var ( |
| 88 |
file_xds_type_v3_typed_struct_proto_rawDescOnce sync.Once |
| 89 |
file_xds_type_v3_typed_struct_proto_rawDescData []byte |
| 90 |
) |
| 91 |
|
| 92 |
func file_xds_type_v3_typed_struct_proto_rawDescGZIP() []byte { |
| 93 |
file_xds_type_v3_typed_struct_proto_rawDescOnce.Do(func() { |
| 94 |
file_xds_type_v3_typed_struct_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_type_v3_typed_struct_proto_rawDesc), len(file_xds_type_v3_typed_struct_proto_rawDesc))) |
| 95 |
}) |
| 96 |
return file_xds_type_v3_typed_struct_proto_rawDescData |
| 97 |
} |
| 98 |
|
| 99 |
var file_xds_type_v3_typed_struct_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 100 |
var file_xds_type_v3_typed_struct_proto_goTypes = []any{ |
| 101 |
(*TypedStruct)(nil), |
| 102 |
(*structpb.Struct)(nil), |
| 103 |
} |
| 104 |
var file_xds_type_v3_typed_struct_proto_depIdxs = []int32{ |
| 105 |
1, |
| 106 |
1, |
| 107 |
1, |
| 108 |
1, |
| 109 |
1, |
| 110 |
0, |
| 111 |
} |
| 112 |
|
| 113 |
func init() { file_xds_type_v3_typed_struct_proto_init() } |
| 114 |
func file_xds_type_v3_typed_struct_proto_init() { |
| 115 |
if File_xds_type_v3_typed_struct_proto != nil { |
| 116 |
return |
| 117 |
} |
| 118 |
type x struct{} |
| 119 |
out := protoimpl.TypeBuilder{ |
| 120 |
File: protoimpl.DescBuilder{ |
| 121 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 122 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_type_v3_typed_struct_proto_rawDesc), len(file_xds_type_v3_typed_struct_proto_rawDesc)), |
| 123 |
NumEnums: 0, |
| 124 |
NumMessages: 1, |
| 125 |
NumExtensions: 0, |
| 126 |
NumServices: 0, |
| 127 |
}, |
| 128 |
GoTypes: file_xds_type_v3_typed_struct_proto_goTypes, |
| 129 |
DependencyIndexes: file_xds_type_v3_typed_struct_proto_depIdxs, |
| 130 |
MessageInfos: file_xds_type_v3_typed_struct_proto_msgTypes, |
| 131 |
}.Build() |
| 132 |
File_xds_type_v3_typed_struct_proto = out.File |
| 133 |
file_xds_type_v3_typed_struct_proto_goTypes = nil |
| 134 |
file_xds_type_v3_typed_struct_proto_depIdxs = nil |
| 135 |
} |