github.com/google/cloudprober@v0.11.3/validators/proto/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.26.0
     4  // 	protoc        v3.17.3
     5  // source: github.com/google/cloudprober/validators/proto/config.proto
     6  
     7  package proto
     8  
     9  import (
    10  	proto "github.com/google/cloudprober/validators/http/proto"
    11  	proto1 "github.com/google/cloudprober/validators/integrity/proto"
    12  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    13  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    14  	reflect "reflect"
    15  	sync "sync"
    16  )
    17  
    18  const (
    19  	// Verify that this generated code is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    23  )
    24  
    25  type Validator struct {
    26  	state         protoimpl.MessageState
    27  	sizeCache     protoimpl.SizeCache
    28  	unknownFields protoimpl.UnknownFields
    29  
    30  	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
    31  	// Types that are assignable to Type:
    32  	//	*Validator_HttpValidator
    33  	//	*Validator_IntegrityValidator
    34  	//	*Validator_Regex
    35  	Type isValidator_Type `protobuf_oneof:"type"`
    36  }
    37  
    38  func (x *Validator) Reset() {
    39  	*x = Validator{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_github_com_google_cloudprober_validators_proto_config_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *Validator) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*Validator) ProtoMessage() {}
    52  
    53  func (x *Validator) ProtoReflect() protoreflect.Message {
    54  	mi := &file_github_com_google_cloudprober_validators_proto_config_proto_msgTypes[0]
    55  	if protoimpl.UnsafeEnabled && x != nil {
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		if ms.LoadMessageInfo() == nil {
    58  			ms.StoreMessageInfo(mi)
    59  		}
    60  		return ms
    61  	}
    62  	return mi.MessageOf(x)
    63  }
    64  
    65  // Deprecated: Use Validator.ProtoReflect.Descriptor instead.
    66  func (*Validator) Descriptor() ([]byte, []int) {
    67  	return file_github_com_google_cloudprober_validators_proto_config_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (x *Validator) GetName() string {
    71  	if x != nil && x.Name != nil {
    72  		return *x.Name
    73  	}
    74  	return ""
    75  }
    76  
    77  func (m *Validator) GetType() isValidator_Type {
    78  	if m != nil {
    79  		return m.Type
    80  	}
    81  	return nil
    82  }
    83  
    84  func (x *Validator) GetHttpValidator() *proto.Validator {
    85  	if x, ok := x.GetType().(*Validator_HttpValidator); ok {
    86  		return x.HttpValidator
    87  	}
    88  	return nil
    89  }
    90  
    91  func (x *Validator) GetIntegrityValidator() *proto1.Validator {
    92  	if x, ok := x.GetType().(*Validator_IntegrityValidator); ok {
    93  		return x.IntegrityValidator
    94  	}
    95  	return nil
    96  }
    97  
    98  func (x *Validator) GetRegex() string {
    99  	if x, ok := x.GetType().(*Validator_Regex); ok {
   100  		return x.Regex
   101  	}
   102  	return ""
   103  }
   104  
   105  type isValidator_Type interface {
   106  	isValidator_Type()
   107  }
   108  
   109  type Validator_HttpValidator struct {
   110  	HttpValidator *proto.Validator `protobuf:"bytes,2,opt,name=http_validator,json=httpValidator,oneof"`
   111  }
   112  
   113  type Validator_IntegrityValidator struct {
   114  	// Data integrity validator
   115  	IntegrityValidator *proto1.Validator `protobuf:"bytes,3,opt,name=integrity_validator,json=integrityValidator,oneof"`
   116  }
   117  
   118  type Validator_Regex struct {
   119  	// Regex validator
   120  	Regex string `protobuf:"bytes,4,opt,name=regex,oneof"`
   121  }
   122  
   123  func (*Validator_HttpValidator) isValidator_Type() {}
   124  
   125  func (*Validator_IntegrityValidator) isValidator_Type() {}
   126  
   127  func (*Validator_Regex) isValidator_Type() {}
   128  
   129  var File_github_com_google_cloudprober_validators_proto_config_proto protoreflect.FileDescriptor
   130  
   131  var file_github_com_google_cloudprober_validators_proto_config_proto_rawDesc = []byte{
   132  	0x0a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f,
   133  	0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f,
   134  	0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   135  	0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63,
   136  	0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x76, 0x61, 0x6c, 0x69, 0x64,
   137  	0x61, 0x74, 0x6f, 0x72, 0x73, 0x1a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
   138  	0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72,
   139  	0x6f, 0x62, 0x65, 0x72, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f,
   140  	0x68, 0x74, 0x74, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
   141  	0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
   142  	0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
   143  	0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72,
   144  	0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   145  	0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0,
   146  	0x01, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04,
   147  	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
   148  	0x12, 0x4f, 0x0a, 0x0e, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
   149  	0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
   150  	0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72,
   151  	0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72,
   152  	0x48, 0x00, 0x52, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f,
   153  	0x72, 0x12, 0x5e, 0x0a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x76,
   154  	0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b,
   155  	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x76, 0x61, 0x6c,
   156  	0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74,
   157  	0x79, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x12, 0x69,
   158  	0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f,
   159  	0x72, 0x12, 0x16, 0x0a, 0x05, 0x72, 0x65, 0x67, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
   160  	0x48, 0x00, 0x52, 0x05, 0x72, 0x65, 0x67, 0x65, 0x78, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70,
   161  	0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
   162  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62,
   163  	0x65, 0x72, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x70, 0x72,
   164  	0x6f, 0x74, 0x6f,
   165  }
   166  
   167  var (
   168  	file_github_com_google_cloudprober_validators_proto_config_proto_rawDescOnce sync.Once
   169  	file_github_com_google_cloudprober_validators_proto_config_proto_rawDescData = file_github_com_google_cloudprober_validators_proto_config_proto_rawDesc
   170  )
   171  
   172  func file_github_com_google_cloudprober_validators_proto_config_proto_rawDescGZIP() []byte {
   173  	file_github_com_google_cloudprober_validators_proto_config_proto_rawDescOnce.Do(func() {
   174  		file_github_com_google_cloudprober_validators_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_validators_proto_config_proto_rawDescData)
   175  	})
   176  	return file_github_com_google_cloudprober_validators_proto_config_proto_rawDescData
   177  }
   178  
   179  var file_github_com_google_cloudprober_validators_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   180  var file_github_com_google_cloudprober_validators_proto_config_proto_goTypes = []interface{}{
   181  	(*Validator)(nil),        // 0: cloudprober.validators.Validator
   182  	(*proto.Validator)(nil),  // 1: cloudprober.validators.http.Validator
   183  	(*proto1.Validator)(nil), // 2: cloudprober.validators.integrity.Validator
   184  }
   185  var file_github_com_google_cloudprober_validators_proto_config_proto_depIdxs = []int32{
   186  	1, // 0: cloudprober.validators.Validator.http_validator:type_name -> cloudprober.validators.http.Validator
   187  	2, // 1: cloudprober.validators.Validator.integrity_validator:type_name -> cloudprober.validators.integrity.Validator
   188  	2, // [2:2] is the sub-list for method output_type
   189  	2, // [2:2] is the sub-list for method input_type
   190  	2, // [2:2] is the sub-list for extension type_name
   191  	2, // [2:2] is the sub-list for extension extendee
   192  	0, // [0:2] is the sub-list for field type_name
   193  }
   194  
   195  func init() { file_github_com_google_cloudprober_validators_proto_config_proto_init() }
   196  func file_github_com_google_cloudprober_validators_proto_config_proto_init() {
   197  	if File_github_com_google_cloudprober_validators_proto_config_proto != nil {
   198  		return
   199  	}
   200  	if !protoimpl.UnsafeEnabled {
   201  		file_github_com_google_cloudprober_validators_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   202  			switch v := v.(*Validator); i {
   203  			case 0:
   204  				return &v.state
   205  			case 1:
   206  				return &v.sizeCache
   207  			case 2:
   208  				return &v.unknownFields
   209  			default:
   210  				return nil
   211  			}
   212  		}
   213  	}
   214  	file_github_com_google_cloudprober_validators_proto_config_proto_msgTypes[0].OneofWrappers = []interface{}{
   215  		(*Validator_HttpValidator)(nil),
   216  		(*Validator_IntegrityValidator)(nil),
   217  		(*Validator_Regex)(nil),
   218  	}
   219  	type x struct{}
   220  	out := protoimpl.TypeBuilder{
   221  		File: protoimpl.DescBuilder{
   222  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   223  			RawDescriptor: file_github_com_google_cloudprober_validators_proto_config_proto_rawDesc,
   224  			NumEnums:      0,
   225  			NumMessages:   1,
   226  			NumExtensions: 0,
   227  			NumServices:   0,
   228  		},
   229  		GoTypes:           file_github_com_google_cloudprober_validators_proto_config_proto_goTypes,
   230  		DependencyIndexes: file_github_com_google_cloudprober_validators_proto_config_proto_depIdxs,
   231  		MessageInfos:      file_github_com_google_cloudprober_validators_proto_config_proto_msgTypes,
   232  	}.Build()
   233  	File_github_com_google_cloudprober_validators_proto_config_proto = out.File
   234  	file_github_com_google_cloudprober_validators_proto_config_proto_rawDesc = nil
   235  	file_github_com_google_cloudprober_validators_proto_config_proto_goTypes = nil
   236  	file_github_com_google_cloudprober_validators_proto_config_proto_depIdxs = nil
   237  }