github.com/google/cloudprober@v0.11.3/servers/grpc/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/servers/grpc/proto/config.proto
     6  
     7  package proto
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type ServerConf struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Port *int32 `protobuf:"varint,1,opt,name=port,def=3142" json:"port,omitempty"`
    29  	// Enables gRPC reflection for publicly visible services, allowing grpc_cli to
    30  	// work. See https://grpc.io/grpc/core/md_doc_server_reflection_tutorial.html.
    31  	EnableReflection *bool `protobuf:"varint,2,opt,name=enable_reflection,json=enableReflection,def=0" json:"enable_reflection,omitempty"`
    32  	// If use_dedicated_server is set to true, then create a new gRPC server
    33  	// to handle probes. Otherwise, attempt to reuse gRPC server from runconfig
    34  	// if that was set.
    35  	UseDedicatedServer *bool `protobuf:"varint,3,opt,name=use_dedicated_server,json=useDedicatedServer,def=1" json:"use_dedicated_server,omitempty"`
    36  }
    37  
    38  // Default values for ServerConf fields.
    39  const (
    40  	Default_ServerConf_Port               = int32(3142)
    41  	Default_ServerConf_EnableReflection   = bool(false)
    42  	Default_ServerConf_UseDedicatedServer = bool(true)
    43  )
    44  
    45  func (x *ServerConf) Reset() {
    46  	*x = ServerConf{}
    47  	if protoimpl.UnsafeEnabled {
    48  		mi := &file_github_com_google_cloudprober_servers_grpc_proto_config_proto_msgTypes[0]
    49  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    50  		ms.StoreMessageInfo(mi)
    51  	}
    52  }
    53  
    54  func (x *ServerConf) String() string {
    55  	return protoimpl.X.MessageStringOf(x)
    56  }
    57  
    58  func (*ServerConf) ProtoMessage() {}
    59  
    60  func (x *ServerConf) ProtoReflect() protoreflect.Message {
    61  	mi := &file_github_com_google_cloudprober_servers_grpc_proto_config_proto_msgTypes[0]
    62  	if protoimpl.UnsafeEnabled && x != nil {
    63  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    64  		if ms.LoadMessageInfo() == nil {
    65  			ms.StoreMessageInfo(mi)
    66  		}
    67  		return ms
    68  	}
    69  	return mi.MessageOf(x)
    70  }
    71  
    72  // Deprecated: Use ServerConf.ProtoReflect.Descriptor instead.
    73  func (*ServerConf) Descriptor() ([]byte, []int) {
    74  	return file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDescGZIP(), []int{0}
    75  }
    76  
    77  func (x *ServerConf) GetPort() int32 {
    78  	if x != nil && x.Port != nil {
    79  		return *x.Port
    80  	}
    81  	return Default_ServerConf_Port
    82  }
    83  
    84  func (x *ServerConf) GetEnableReflection() bool {
    85  	if x != nil && x.EnableReflection != nil {
    86  		return *x.EnableReflection
    87  	}
    88  	return Default_ServerConf_EnableReflection
    89  }
    90  
    91  func (x *ServerConf) GetUseDedicatedServer() bool {
    92  	if x != nil && x.UseDedicatedServer != nil {
    93  		return *x.UseDedicatedServer
    94  	}
    95  	return Default_ServerConf_UseDedicatedServer
    96  }
    97  
    98  var File_github_com_google_cloudprober_servers_grpc_proto_config_proto protoreflect.FileDescriptor
    99  
   100  var file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDesc = []byte{
   101  	0x0a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f,
   102  	0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f,
   103  	0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x70, 0x72, 0x6f,
   104  	0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   105  	0x18, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x73, 0x65, 0x72,
   106  	0x76, 0x65, 0x72, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x22, 0x92, 0x01, 0x0a, 0x0a, 0x53, 0x65,
   107  	0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x18, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74,
   108  	0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x04, 0x33, 0x31, 0x34, 0x32, 0x52, 0x04, 0x70, 0x6f,
   109  	0x72, 0x74, 0x12, 0x32, 0x0a, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66,
   110  	0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66,
   111  	0x61, 0x6c, 0x73, 0x65, 0x52, 0x10, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x6c,
   112  	0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x5f, 0x64, 0x65,
   113  	0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x03,
   114  	0x20, 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, 0x72, 0x75, 0x65, 0x52, 0x12, 0x75, 0x73, 0x65, 0x44,
   115  	0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x32,
   116  	0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f,
   117  	0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f,
   118  	0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x70, 0x72, 0x6f,
   119  	0x74, 0x6f,
   120  }
   121  
   122  var (
   123  	file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDescOnce sync.Once
   124  	file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDescData = file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDesc
   125  )
   126  
   127  func file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDescGZIP() []byte {
   128  	file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDescOnce.Do(func() {
   129  		file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDescData)
   130  	})
   131  	return file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDescData
   132  }
   133  
   134  var file_github_com_google_cloudprober_servers_grpc_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   135  var file_github_com_google_cloudprober_servers_grpc_proto_config_proto_goTypes = []interface{}{
   136  	(*ServerConf)(nil), // 0: cloudprober.servers.grpc.ServerConf
   137  }
   138  var file_github_com_google_cloudprober_servers_grpc_proto_config_proto_depIdxs = []int32{
   139  	0, // [0:0] is the sub-list for method output_type
   140  	0, // [0:0] is the sub-list for method input_type
   141  	0, // [0:0] is the sub-list for extension type_name
   142  	0, // [0:0] is the sub-list for extension extendee
   143  	0, // [0:0] is the sub-list for field type_name
   144  }
   145  
   146  func init() { file_github_com_google_cloudprober_servers_grpc_proto_config_proto_init() }
   147  func file_github_com_google_cloudprober_servers_grpc_proto_config_proto_init() {
   148  	if File_github_com_google_cloudprober_servers_grpc_proto_config_proto != nil {
   149  		return
   150  	}
   151  	if !protoimpl.UnsafeEnabled {
   152  		file_github_com_google_cloudprober_servers_grpc_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   153  			switch v := v.(*ServerConf); i {
   154  			case 0:
   155  				return &v.state
   156  			case 1:
   157  				return &v.sizeCache
   158  			case 2:
   159  				return &v.unknownFields
   160  			default:
   161  				return nil
   162  			}
   163  		}
   164  	}
   165  	type x struct{}
   166  	out := protoimpl.TypeBuilder{
   167  		File: protoimpl.DescBuilder{
   168  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   169  			RawDescriptor: file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDesc,
   170  			NumEnums:      0,
   171  			NumMessages:   1,
   172  			NumExtensions: 0,
   173  			NumServices:   0,
   174  		},
   175  		GoTypes:           file_github_com_google_cloudprober_servers_grpc_proto_config_proto_goTypes,
   176  		DependencyIndexes: file_github_com_google_cloudprober_servers_grpc_proto_config_proto_depIdxs,
   177  		MessageInfos:      file_github_com_google_cloudprober_servers_grpc_proto_config_proto_msgTypes,
   178  	}.Build()
   179  	File_github_com_google_cloudprober_servers_grpc_proto_config_proto = out.File
   180  	file_github_com_google_cloudprober_servers_grpc_proto_config_proto_rawDesc = nil
   181  	file_github_com_google_cloudprober_servers_grpc_proto_config_proto_goTypes = nil
   182  	file_github_com_google_cloudprober_servers_grpc_proto_config_proto_depIdxs = nil
   183  }