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.
boundary/sdk/pbs/controller/protooptions/testing.pb.go

569 lines
20 KiB

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: controller/custom_options/v1/testing.proto
package protooptions
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type TestBase struct {
state protoimpl.MessageState `protogen:"open.v1"`
FirstField string `protobuf:"bytes,1,opt,name=first_field,json=firstField,proto3" json:"first_field,omitempty"`
StrangeFormatField string `protobuf:"bytes,2,opt,name=StrangeFormatField,proto3" json:"StrangeFormatField,omitempty"`
FieldWithDifferentJsonName string `protobuf:"bytes,3,opt,name=field_with_different_json_name,json=json_name,proto3" json:"field_with_different_json_name,omitempty"`
ExtraField string `protobuf:"bytes,4,opt,name=extra_field,json=extraField,proto3" json:"extra_field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestBase) Reset() {
*x = TestBase{}
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestBase) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestBase) ProtoMessage() {}
func (x *TestBase) ProtoReflect() protoreflect.Message {
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestBase.ProtoReflect.Descriptor instead.
func (*TestBase) Descriptor() ([]byte, []int) {
return file_controller_custom_options_v1_testing_proto_rawDescGZIP(), []int{0}
}
func (x *TestBase) GetFirstField() string {
if x != nil {
return x.FirstField
}
return ""
}
func (x *TestBase) GetStrangeFormatField() string {
if x != nil {
return x.StrangeFormatField
}
return ""
}
func (x *TestBase) GetFieldWithDifferentJsonName() string {
if x != nil {
return x.FieldWithDifferentJsonName
}
return ""
}
func (x *TestBase) GetExtraField() string {
if x != nil {
return x.ExtraField
}
return ""
}
type TestBaseSplit1 struct {
state protoimpl.MessageState `protogen:"open.v1"`
FirstField string `protobuf:"bytes,1,opt,name=first_field,json=firstField,proto3" json:"first_field,omitempty"`
FieldWithDifferentJsonName string `protobuf:"bytes,2,opt,name=field_with_different_json_name,json=json_name,proto3" json:"field_with_different_json_name,omitempty"`
ExtraField string `protobuf:"bytes,3,opt,name=extra_field,json=extraField,proto3" json:"extra_field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestBaseSplit1) Reset() {
*x = TestBaseSplit1{}
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestBaseSplit1) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestBaseSplit1) ProtoMessage() {}
func (x *TestBaseSplit1) ProtoReflect() protoreflect.Message {
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestBaseSplit1.ProtoReflect.Descriptor instead.
func (*TestBaseSplit1) Descriptor() ([]byte, []int) {
return file_controller_custom_options_v1_testing_proto_rawDescGZIP(), []int{1}
}
func (x *TestBaseSplit1) GetFirstField() string {
if x != nil {
return x.FirstField
}
return ""
}
func (x *TestBaseSplit1) GetFieldWithDifferentJsonName() string {
if x != nil {
return x.FieldWithDifferentJsonName
}
return ""
}
func (x *TestBaseSplit1) GetExtraField() string {
if x != nil {
return x.ExtraField
}
return ""
}
type TestBaseSplit2 struct {
state protoimpl.MessageState `protogen:"open.v1"`
SplitField1 string `protobuf:"bytes,1,opt,name=split_field1,json=splitField1,proto3" json:"split_field1,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestBaseSplit2) Reset() {
*x = TestBaseSplit2{}
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestBaseSplit2) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestBaseSplit2) ProtoMessage() {}
func (x *TestBaseSplit2) ProtoReflect() protoreflect.Message {
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestBaseSplit2.ProtoReflect.Descriptor instead.
func (*TestBaseSplit2) Descriptor() ([]byte, []int) {
return file_controller_custom_options_v1_testing_proto_rawDescGZIP(), []int{2}
}
func (x *TestBaseSplit2) GetSplitField1() string {
if x != nil {
return x.SplitField1
}
return ""
}
type TestProperlyNamedFields struct {
state protoimpl.MessageState `protogen:"open.v1"`
OtherFirstField string `protobuf:"bytes,1,opt,name=other_first_field,json=otherFirstField,proto3" json:"other_first_field,omitempty"`
OtherSecondField string `protobuf:"bytes,2,opt,name=other_second_field,json=otherSecondField,proto3" json:"other_second_field,omitempty"`
OtherThirdField string `protobuf:"bytes,3,opt,name=other_third_field,proto3" json:"other_third_field,omitempty"`
AnotherExtraField string `protobuf:"bytes,4,opt,name=another_extra_field,json=anotherExtraField,proto3" json:"another_extra_field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestProperlyNamedFields) Reset() {
*x = TestProperlyNamedFields{}
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestProperlyNamedFields) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestProperlyNamedFields) ProtoMessage() {}
func (x *TestProperlyNamedFields) ProtoReflect() protoreflect.Message {
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestProperlyNamedFields.ProtoReflect.Descriptor instead.
func (*TestProperlyNamedFields) Descriptor() ([]byte, []int) {
return file_controller_custom_options_v1_testing_proto_rawDescGZIP(), []int{3}
}
func (x *TestProperlyNamedFields) GetOtherFirstField() string {
if x != nil {
return x.OtherFirstField
}
return ""
}
func (x *TestProperlyNamedFields) GetOtherSecondField() string {
if x != nil {
return x.OtherSecondField
}
return ""
}
func (x *TestProperlyNamedFields) GetOtherThirdField() string {
if x != nil {
return x.OtherThirdField
}
return ""
}
func (x *TestProperlyNamedFields) GetAnotherExtraField() string {
if x != nil {
return x.AnotherExtraField
}
return ""
}
type TestNameDoesntMap struct {
state protoimpl.MessageState `protogen:"open.v1"`
FirstDoesntMap string `protobuf:"bytes,1,opt,name=first_doesnt_map,json=firstDoesntMap,proto3" json:"first_doesnt_map,omitempty"`
SecondDoesntMap string `protobuf:"bytes,2,opt,name=second_doesnt_map,json=secondDoesntMap,proto3" json:"second_doesnt_map,omitempty"`
ThirdDoesntMap string `protobuf:"bytes,3,opt,name=third_doesnt_map,json=thirdDoesntMap,proto3" json:"third_doesnt_map,omitempty"`
AnotherExtraField string `protobuf:"bytes,4,opt,name=another_extra_field,json=anotherExtraField,proto3" json:"another_extra_field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestNameDoesntMap) Reset() {
*x = TestNameDoesntMap{}
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestNameDoesntMap) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestNameDoesntMap) ProtoMessage() {}
func (x *TestNameDoesntMap) ProtoReflect() protoreflect.Message {
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestNameDoesntMap.ProtoReflect.Descriptor instead.
func (*TestNameDoesntMap) Descriptor() ([]byte, []int) {
return file_controller_custom_options_v1_testing_proto_rawDescGZIP(), []int{4}
}
func (x *TestNameDoesntMap) GetFirstDoesntMap() string {
if x != nil {
return x.FirstDoesntMap
}
return ""
}
func (x *TestNameDoesntMap) GetSecondDoesntMap() string {
if x != nil {
return x.SecondDoesntMap
}
return ""
}
func (x *TestNameDoesntMap) GetThirdDoesntMap() string {
if x != nil {
return x.ThirdDoesntMap
}
return ""
}
func (x *TestNameDoesntMap) GetAnotherExtraField() string {
if x != nil {
return x.AnotherExtraField
}
return ""
}
type TestNotEnoughFields struct {
state protoimpl.MessageState `protogen:"open.v1"`
OtherFirstField string `protobuf:"bytes,1,opt,name=other_first_field,json=otherFirstField,proto3" json:"other_first_field,omitempty"`
OtherSecondField string `protobuf:"bytes,2,opt,name=other_second_field,json=otherSecondField,proto3" json:"other_second_field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestNotEnoughFields) Reset() {
*x = TestNotEnoughFields{}
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestNotEnoughFields) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestNotEnoughFields) ProtoMessage() {}
func (x *TestNotEnoughFields) ProtoReflect() protoreflect.Message {
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestNotEnoughFields.ProtoReflect.Descriptor instead.
func (*TestNotEnoughFields) Descriptor() ([]byte, []int) {
return file_controller_custom_options_v1_testing_proto_rawDescGZIP(), []int{5}
}
func (x *TestNotEnoughFields) GetOtherFirstField() string {
if x != nil {
return x.OtherFirstField
}
return ""
}
func (x *TestNotEnoughFields) GetOtherSecondField() string {
if x != nil {
return x.OtherSecondField
}
return ""
}
type TestManyToOneMappings struct {
state protoimpl.MessageState `protogen:"open.v1"`
OtherFirstField string `protobuf:"bytes,1,opt,name=other_first_field,json=otherFirstField,proto3" json:"other_first_field,omitempty"`
OtherSecondField string `protobuf:"bytes,2,opt,name=other_second_field,json=otherSecondField,proto3" json:"other_second_field,omitempty"`
OtherThirdField string `protobuf:"bytes,3,opt,name=other_third_field,json=otherThirdField,proto3" json:"other_third_field,omitempty"`
// this field maps to the first_field like 'other_first_field'
ExtraField string `protobuf:"bytes,4,opt,name=extra_field,json=extraField,proto3" json:"extra_field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestManyToOneMappings) Reset() {
*x = TestManyToOneMappings{}
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestManyToOneMappings) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestManyToOneMappings) ProtoMessage() {}
func (x *TestManyToOneMappings) ProtoReflect() protoreflect.Message {
mi := &file_controller_custom_options_v1_testing_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestManyToOneMappings.ProtoReflect.Descriptor instead.
func (*TestManyToOneMappings) Descriptor() ([]byte, []int) {
return file_controller_custom_options_v1_testing_proto_rawDescGZIP(), []int{6}
}
func (x *TestManyToOneMappings) GetOtherFirstField() string {
if x != nil {
return x.OtherFirstField
}
return ""
}
func (x *TestManyToOneMappings) GetOtherSecondField() string {
if x != nil {
return x.OtherSecondField
}
return ""
}
func (x *TestManyToOneMappings) GetOtherThirdField() string {
if x != nil {
return x.OtherThirdField
}
return ""
}
func (x *TestManyToOneMappings) GetExtraField() string {
if x != nil {
return x.ExtraField
}
return ""
}
var File_controller_custom_options_v1_testing_proto protoreflect.FileDescriptor
const file_controller_custom_options_v1_testing_proto_rawDesc = "" +
"\n" +
"*controller/custom_options/v1/testing.proto\x12\x1ccontroller.custom_options.v1\x1a*controller/custom_options/v1/options.proto\"\xa4\x02\n" +
"\bTestBase\x12C\n" +
"\vfirst_field\x18\x01 \x01(\tB\"\xc2\xdd)\x1e\n" +
"\vfirst_field\x12\x0fOtherFirstFieldR\n" +
"firstField\x12b\n" +
"\x12StrangeFormatField\x18\x02 \x01(\tB2\xc2\xdd).\n" +
"\x18strangly_formatted_field\x12\x12other_second_fieldR\x12StrangeFormatField\x12N\n" +
"\x1efield_with_different_json_name\x18\x03 \x01(\tB\x1b\xc2\xdd)\x17\n" +
"\x06field3\x12\rother_field_3R\tjson_name\x12\x1f\n" +
"\vextra_field\x18\x04 \x01(\tR\n" +
"extraField\"\xc6\x01\n" +
"\x0eTestBaseSplit1\x12C\n" +
"\vfirst_field\x18\x01 \x01(\tB\"\xc2\xdd)\x1e\n" +
"\vfirst_field\x12\x0fOtherFirstFieldR\n" +
"firstField\x12N\n" +
"\x1efield_with_different_json_name\x18\x02 \x01(\tB\x1b\xc2\xdd)\x17\n" +
"\x06field3\x12\rother_field_3R\tjson_name\x12\x1f\n" +
"\vextra_field\x18\x03 \x01(\tR\n" +
"extraField\"g\n" +
"\x0eTestBaseSplit2\x12U\n" +
"\fsplit_field1\x18\x01 \x01(\tB2\xc2\xdd).\n" +
"\x18strangly_formatted_field\x12\x12other_second_fieldR\vsplitField1\"\xc6\x02\n" +
"\x17TestProperlyNamedFields\x12N\n" +
"\x11other_first_field\x18\x01 \x01(\tB\"\xc2\xdd)\x1e\n" +
"\x0fOtherFirstField\x12\vfirst_fieldR\x0fotherFirstField\x12`\n" +
"\x12other_second_field\x18\x02 \x01(\tB2\xc2\xdd).\n" +
"\x12other_second_field\x12\x18strangly_formatted_fieldR\x10otherSecondField\x12I\n" +
"\x11other_third_field\x18\x03 \x01(\tB\x1b\xc2\xdd)\x17\n" +
"\rother_field_3\x12\x06field3R\x11other_third_field\x12.\n" +
"\x13another_extra_field\x18\x04 \x01(\tR\x11anotherExtraField\"\xcd\x02\n" +
"\x11TestNameDoesntMap\x12M\n" +
"\x10first_doesnt_map\x18\x01 \x01(\tB#\xc2\xdd)\x1f\n" +
"\x10first_doesnt_map\x12\vfirst_fieldR\x0efirstDoesntMap\x12W\n" +
"\x11second_doesnt_map\x18\x02 \x01(\tB+\xc2\xdd)'\n" +
"\x11second_doesnt_map\x12\x12StrangeFormatFieldR\x0fsecondDoesntMap\x12`\n" +
"\x10third_doesnt_map\x18\x03 \x01(\tB6\xc2\xdd)2\n" +
"\x10third_doesnt_map\x12\x1efield_with_different_json_nameR\x0ethirdDoesntMap\x12.\n" +
"\x13another_extra_field\x18\x04 \x01(\tR\x11anotherExtraField\"\xc7\x01\n" +
"\x13TestNotEnoughFields\x12N\n" +
"\x11other_first_field\x18\x01 \x01(\tB\"\xc2\xdd)\x1e\n" +
"\x0fOtherFirstField\x12\vfirst_fieldR\x0fotherFirstField\x12`\n" +
"\x12other_second_field\x18\x02 \x01(\tB2\xc2\xdd).\n" +
"\x12other_second_field\x12\x18strangly_formatted_fieldR\x10otherSecondField\"\xd2\x02\n" +
"\x15TestManyToOneMappings\x12N\n" +
"\x11other_first_field\x18\x01 \x01(\tB\"\xc2\xdd)\x1e\n" +
"\x0fOtherFirstField\x12\vfirst_fieldR\x0fotherFirstField\x12`\n" +
"\x12other_second_field\x18\x02 \x01(\tB2\xc2\xdd).\n" +
"\x12other_second_field\x12\x18strangly_formatted_fieldR\x10otherSecondField\x12G\n" +
"\x11other_third_field\x18\x03 \x01(\tB\x1b\xc2\xdd)\x17\n" +
"\rother_field_3\x12\x06field3R\x0fotherThirdField\x12>\n" +
"\vextra_field\x18\x04 \x01(\tB\x1d\xc2\xdd)\x19\n" +
"\n" +
"ExtraField\x12\vfirst_fieldR\n" +
"extraFieldBLZJgithub.com/hashicorp/boundary/sdk/pbs/controller/protooptions;protooptionsb\x06proto3"
var (
file_controller_custom_options_v1_testing_proto_rawDescOnce sync.Once
file_controller_custom_options_v1_testing_proto_rawDescData []byte
)
func file_controller_custom_options_v1_testing_proto_rawDescGZIP() []byte {
file_controller_custom_options_v1_testing_proto_rawDescOnce.Do(func() {
file_controller_custom_options_v1_testing_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_custom_options_v1_testing_proto_rawDesc), len(file_controller_custom_options_v1_testing_proto_rawDesc)))
})
return file_controller_custom_options_v1_testing_proto_rawDescData
}
var file_controller_custom_options_v1_testing_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_controller_custom_options_v1_testing_proto_goTypes = []any{
(*TestBase)(nil), // 0: controller.custom_options.v1.TestBase
(*TestBaseSplit1)(nil), // 1: controller.custom_options.v1.TestBaseSplit1
(*TestBaseSplit2)(nil), // 2: controller.custom_options.v1.TestBaseSplit2
(*TestProperlyNamedFields)(nil), // 3: controller.custom_options.v1.TestProperlyNamedFields
(*TestNameDoesntMap)(nil), // 4: controller.custom_options.v1.TestNameDoesntMap
(*TestNotEnoughFields)(nil), // 5: controller.custom_options.v1.TestNotEnoughFields
(*TestManyToOneMappings)(nil), // 6: controller.custom_options.v1.TestManyToOneMappings
}
var file_controller_custom_options_v1_testing_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_controller_custom_options_v1_testing_proto_init() }
func file_controller_custom_options_v1_testing_proto_init() {
if File_controller_custom_options_v1_testing_proto != nil {
return
}
file_controller_custom_options_v1_options_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_custom_options_v1_testing_proto_rawDesc), len(file_controller_custom_options_v1_testing_proto_rawDesc)),
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_controller_custom_options_v1_testing_proto_goTypes,
DependencyIndexes: file_controller_custom_options_v1_testing_proto_depIdxs,
MessageInfos: file_controller_custom_options_v1_testing_proto_msgTypes,
}.Build()
File_controller_custom_options_v1_testing_proto = out.File
file_controller_custom_options_v1_testing_proto_goTypes = nil
file_controller_custom_options_v1_testing_proto_depIdxs = nil
}