go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/logdog/api/config/svcconfig/config.pb.go (about)

     1  // Copyright 2015 The LUCI Authors. All rights reserved.
     2  // Use of this source code is governed under the Apache License, Version 2.0
     3  // that can be found in the LICENSE file.
     4  
     5  // Code generated by protoc-gen-go. DO NOT EDIT.
     6  // versions:
     7  // 	protoc-gen-go v1.31.0
     8  // 	protoc        v3.21.7
     9  // source: go.chromium.org/luci/logdog/api/config/svcconfig/config.proto
    10  
    11  package svcconfig
    12  
    13  import (
    14  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    16  	durationpb "google.golang.org/protobuf/types/known/durationpb"
    17  	reflect "reflect"
    18  	sync "sync"
    19  )
    20  
    21  const (
    22  	// Verify that this generated code is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    24  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    25  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    26  )
    27  
    28  // Config is the overall instance configuration.
    29  type Config struct {
    30  	state         protoimpl.MessageState
    31  	sizeCache     protoimpl.SizeCache
    32  	unknownFields protoimpl.UnknownFields
    33  
    34  	// Configuration for the Butler's log transport.
    35  	Transport *Transport `protobuf:"bytes,10,opt,name=transport,proto3" json:"transport,omitempty"`
    36  	// Coordinator is the coordinator service configuration.
    37  	Coordinator *Coordinator `protobuf:"bytes,20,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
    38  }
    39  
    40  func (x *Config) Reset() {
    41  	*x = Config{}
    42  	if protoimpl.UnsafeEnabled {
    43  		mi := &file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_msgTypes[0]
    44  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    45  		ms.StoreMessageInfo(mi)
    46  	}
    47  }
    48  
    49  func (x *Config) String() string {
    50  	return protoimpl.X.MessageStringOf(x)
    51  }
    52  
    53  func (*Config) ProtoMessage() {}
    54  
    55  func (x *Config) ProtoReflect() protoreflect.Message {
    56  	mi := &file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_msgTypes[0]
    57  	if protoimpl.UnsafeEnabled && x != nil {
    58  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    59  		if ms.LoadMessageInfo() == nil {
    60  			ms.StoreMessageInfo(mi)
    61  		}
    62  		return ms
    63  	}
    64  	return mi.MessageOf(x)
    65  }
    66  
    67  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    68  func (*Config) Descriptor() ([]byte, []int) {
    69  	return file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDescGZIP(), []int{0}
    70  }
    71  
    72  func (x *Config) GetTransport() *Transport {
    73  	if x != nil {
    74  		return x.Transport
    75  	}
    76  	return nil
    77  }
    78  
    79  func (x *Config) GetCoordinator() *Coordinator {
    80  	if x != nil {
    81  		return x.Coordinator
    82  	}
    83  	return nil
    84  }
    85  
    86  // Coordinator is the Coordinator service configuration.
    87  type Coordinator struct {
    88  	state         protoimpl.MessageState
    89  	sizeCache     protoimpl.SizeCache
    90  	unknownFields protoimpl.UnknownFields
    91  
    92  	// The name of the authentication group for administrators.
    93  	AdminAuthGroup string `protobuf:"bytes,10,opt,name=admin_auth_group,json=adminAuthGroup,proto3" json:"admin_auth_group,omitempty"`
    94  	// The name of the authentication group for backend services.
    95  	ServiceAuthGroup string `protobuf:"bytes,11,opt,name=service_auth_group,json=serviceAuthGroup,proto3" json:"service_auth_group,omitempty"`
    96  	// A list of origin URLs that are allowed to perform CORS RPC calls.
    97  	RpcAllowOrigins []string `protobuf:"bytes,20,rep,name=rpc_allow_origins,json=rpcAllowOrigins,proto3" json:"rpc_allow_origins,omitempty"`
    98  	// The maximum amount of time after a prefix has been registered when log
    99  	// streams may also be registered under that prefix.
   100  	//
   101  	// After the expiration period has passed, new log stream registration will
   102  	// fail.
   103  	//
   104  	// Project configurations or stream prefix regitrations may override this by
   105  	// providing >= 0 values for prefix expiration. The smallest configured
   106  	// expiration will be applied.
   107  	PrefixExpiration *durationpb.Duration `protobuf:"bytes,21,opt,name=prefix_expiration,json=prefixExpiration,proto3" json:"prefix_expiration,omitempty"`
   108  }
   109  
   110  func (x *Coordinator) Reset() {
   111  	*x = Coordinator{}
   112  	if protoimpl.UnsafeEnabled {
   113  		mi := &file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_msgTypes[1]
   114  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   115  		ms.StoreMessageInfo(mi)
   116  	}
   117  }
   118  
   119  func (x *Coordinator) String() string {
   120  	return protoimpl.X.MessageStringOf(x)
   121  }
   122  
   123  func (*Coordinator) ProtoMessage() {}
   124  
   125  func (x *Coordinator) ProtoReflect() protoreflect.Message {
   126  	mi := &file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_msgTypes[1]
   127  	if protoimpl.UnsafeEnabled && x != nil {
   128  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   129  		if ms.LoadMessageInfo() == nil {
   130  			ms.StoreMessageInfo(mi)
   131  		}
   132  		return ms
   133  	}
   134  	return mi.MessageOf(x)
   135  }
   136  
   137  // Deprecated: Use Coordinator.ProtoReflect.Descriptor instead.
   138  func (*Coordinator) Descriptor() ([]byte, []int) {
   139  	return file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDescGZIP(), []int{1}
   140  }
   141  
   142  func (x *Coordinator) GetAdminAuthGroup() string {
   143  	if x != nil {
   144  		return x.AdminAuthGroup
   145  	}
   146  	return ""
   147  }
   148  
   149  func (x *Coordinator) GetServiceAuthGroup() string {
   150  	if x != nil {
   151  		return x.ServiceAuthGroup
   152  	}
   153  	return ""
   154  }
   155  
   156  func (x *Coordinator) GetRpcAllowOrigins() []string {
   157  	if x != nil {
   158  		return x.RpcAllowOrigins
   159  	}
   160  	return nil
   161  }
   162  
   163  func (x *Coordinator) GetPrefixExpiration() *durationpb.Duration {
   164  	if x != nil {
   165  		return x.PrefixExpiration
   166  	}
   167  	return nil
   168  }
   169  
   170  var File_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto protoreflect.FileDescriptor
   171  
   172  var file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDesc = []byte{
   173  	0x0a, 0x3d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   174  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70,
   175  	0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x73, 0x76, 0x63, 0x63, 0x6f, 0x6e, 0x66,
   176  	0x69, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   177  	0x09, 0x73, 0x76, 0x63, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x40, 0x67, 0x6f, 0x2e, 0x63,
   178  	0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69,
   179  	0x2f, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
   180  	0x69, 0x67, 0x2f, 0x73, 0x76, 0x63, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 0x72, 0x61,
   181  	0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f,
   182  	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75,
   183  	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa7, 0x01, 0x0a,
   184  	0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x32, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73,
   185  	0x70, 0x6f, 0x72, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x76, 0x63,
   186  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
   187  	0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x38, 0x0a, 0x0b, 0x63,
   188  	0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b,
   189  	0x32, 0x16, 0x2e, 0x73, 0x76, 0x63, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6f,
   190  	0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0b, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69,
   191  	0x6e, 0x61, 0x74, 0x6f, 0x72, 0x4a, 0x04, 0x08, 0x0b, 0x10, 0x0c, 0x4a, 0x04, 0x08, 0x15, 0x10,
   192  	0x16, 0x4a, 0x04, 0x08, 0x16, 0x10, 0x17, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
   193  	0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x09, 0x61, 0x72, 0x63,
   194  	0x68, 0x69, 0x76, 0x69, 0x73, 0x74, 0x22, 0xa3, 0x02, 0x0a, 0x0b, 0x43, 0x6f, 0x6f, 0x72, 0x64,
   195  	0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f,
   196  	0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
   197  	0x52, 0x0e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x47, 0x72, 0x6f, 0x75, 0x70,
   198  	0x12, 0x2c, 0x0a, 0x12, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x68,
   199  	0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x65,
   200  	0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2a,
   201  	0x0a, 0x11, 0x72, 0x70, 0x63, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6f, 0x72, 0x69, 0x67,
   202  	0x69, 0x6e, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x70, 0x63, 0x41, 0x6c,
   203  	0x6c, 0x6f, 0x77, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x73, 0x12, 0x46, 0x0a, 0x11, 0x70, 0x72,
   204  	0x65, 0x66, 0x69, 0x78, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
   205  	0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
   206  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   207  	0x52, 0x10, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69,
   208  	0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x1e, 0x10, 0x1f, 0x4a, 0x04, 0x08, 0x1f, 0x10, 0x20, 0x4a, 0x04,
   209  	0x08, 0x20, 0x10, 0x21, 0x52, 0x0d, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x6f,
   210  	0x70, 0x69, 0x63, 0x52, 0x14, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x65, 0x74,
   211  	0x74, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x11, 0x61, 0x72, 0x63, 0x68, 0x69,
   212  	0x76, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x6d, 0x61, 0x78, 0x42, 0x32, 0x5a, 0x30,
   213  	0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
   214  	0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f,
   215  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x73, 0x76, 0x63, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   216  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   217  }
   218  
   219  var (
   220  	file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDescOnce sync.Once
   221  	file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDescData = file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDesc
   222  )
   223  
   224  func file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDescGZIP() []byte {
   225  	file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDescOnce.Do(func() {
   226  		file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDescData)
   227  	})
   228  	return file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDescData
   229  }
   230  
   231  var file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   232  var file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_goTypes = []interface{}{
   233  	(*Config)(nil),              // 0: svcconfig.Config
   234  	(*Coordinator)(nil),         // 1: svcconfig.Coordinator
   235  	(*Transport)(nil),           // 2: svcconfig.Transport
   236  	(*durationpb.Duration)(nil), // 3: google.protobuf.Duration
   237  }
   238  var file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_depIdxs = []int32{
   239  	2, // 0: svcconfig.Config.transport:type_name -> svcconfig.Transport
   240  	1, // 1: svcconfig.Config.coordinator:type_name -> svcconfig.Coordinator
   241  	3, // 2: svcconfig.Coordinator.prefix_expiration:type_name -> google.protobuf.Duration
   242  	3, // [3:3] is the sub-list for method output_type
   243  	3, // [3:3] is the sub-list for method input_type
   244  	3, // [3:3] is the sub-list for extension type_name
   245  	3, // [3:3] is the sub-list for extension extendee
   246  	0, // [0:3] is the sub-list for field type_name
   247  }
   248  
   249  func init() { file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_init() }
   250  func file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_init() {
   251  	if File_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto != nil {
   252  		return
   253  	}
   254  	file_go_chromium_org_luci_logdog_api_config_svcconfig_transport_proto_init()
   255  	if !protoimpl.UnsafeEnabled {
   256  		file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   257  			switch v := v.(*Config); i {
   258  			case 0:
   259  				return &v.state
   260  			case 1:
   261  				return &v.sizeCache
   262  			case 2:
   263  				return &v.unknownFields
   264  			default:
   265  				return nil
   266  			}
   267  		}
   268  		file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   269  			switch v := v.(*Coordinator); i {
   270  			case 0:
   271  				return &v.state
   272  			case 1:
   273  				return &v.sizeCache
   274  			case 2:
   275  				return &v.unknownFields
   276  			default:
   277  				return nil
   278  			}
   279  		}
   280  	}
   281  	type x struct{}
   282  	out := protoimpl.TypeBuilder{
   283  		File: protoimpl.DescBuilder{
   284  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   285  			RawDescriptor: file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDesc,
   286  			NumEnums:      0,
   287  			NumMessages:   2,
   288  			NumExtensions: 0,
   289  			NumServices:   0,
   290  		},
   291  		GoTypes:           file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_goTypes,
   292  		DependencyIndexes: file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_depIdxs,
   293  		MessageInfos:      file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_msgTypes,
   294  	}.Build()
   295  	File_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto = out.File
   296  	file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_rawDesc = nil
   297  	file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_goTypes = nil
   298  	file_go_chromium_org_luci_logdog_api_config_svcconfig_config_proto_depIdxs = nil
   299  }