github.com/google/fleetspeak@v0.1.15-0.20240426164851-4f31f62c1aea/fleetspeak/src/client/proto/fleetspeak_client/client.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.0
     4  // 	protoc        v4.23.4
     5  // source: fleetspeak/src/client/proto/fleetspeak_client/client.proto
     6  
     7  package fleetspeak_client
     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  // Parameters used to configure communicator plugins.
    24  type CommunicatorConfig struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	// The longest possible wait before attempting to contact the server.  The
    30  	// communicator may poll sooner if there are messages for the server, of it
    31  	// there has been recent communication with the server.
    32  	//
    33  	// A default of 5 minutes is used if unset.
    34  	MaxPollDelaySeconds int32 `protobuf:"varint,2,opt,name=max_poll_delay_seconds,json=maxPollDelaySeconds,proto3" json:"max_poll_delay_seconds,omitempty"`
    35  	// The longest possible wait before attempting to contact the server when
    36  	// there is some data to transmit. The communicator may poll sooner if the
    37  	// buffer is full.
    38  	//
    39  	// A default of 5 seconds is used if unset.
    40  	MaxBufferDelaySeconds int32 `protobuf:"varint,3,opt,name=max_buffer_delay_seconds,json=maxBufferDelaySeconds,proto3" json:"max_buffer_delay_seconds,omitempty"`
    41  	// The minimum time to wait after a failure to reach any server.
    42  	//
    43  	// A default of 5 minutes is used if unset.
    44  	MinFailureDelaySeconds int32 `protobuf:"varint,4,opt,name=min_failure_delay_seconds,json=minFailureDelaySeconds,proto3" json:"min_failure_delay_seconds,omitempty"`
    45  	// If the communicator is unable to communicate with the server for this long,
    46  	// it should kill fleetspeak, in the hope that a restart will fix things.
    47  	//
    48  	// A default of 7 days is used if unset.
    49  	FailureSuicideTimeSeconds int32 `protobuf:"varint,5,opt,name=failure_suicide_time_seconds,json=failureSuicideTimeSeconds,proto3" json:"failure_suicide_time_seconds,omitempty"`
    50  }
    51  
    52  func (x *CommunicatorConfig) Reset() {
    53  	*x = CommunicatorConfig{}
    54  	if protoimpl.UnsafeEnabled {
    55  		mi := &file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_msgTypes[0]
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		ms.StoreMessageInfo(mi)
    58  	}
    59  }
    60  
    61  func (x *CommunicatorConfig) String() string {
    62  	return protoimpl.X.MessageStringOf(x)
    63  }
    64  
    65  func (*CommunicatorConfig) ProtoMessage() {}
    66  
    67  func (x *CommunicatorConfig) ProtoReflect() protoreflect.Message {
    68  	mi := &file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_msgTypes[0]
    69  	if protoimpl.UnsafeEnabled && x != nil {
    70  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    71  		if ms.LoadMessageInfo() == nil {
    72  			ms.StoreMessageInfo(mi)
    73  		}
    74  		return ms
    75  	}
    76  	return mi.MessageOf(x)
    77  }
    78  
    79  // Deprecated: Use CommunicatorConfig.ProtoReflect.Descriptor instead.
    80  func (*CommunicatorConfig) Descriptor() ([]byte, []int) {
    81  	return file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDescGZIP(), []int{0}
    82  }
    83  
    84  func (x *CommunicatorConfig) GetMaxPollDelaySeconds() int32 {
    85  	if x != nil {
    86  		return x.MaxPollDelaySeconds
    87  	}
    88  	return 0
    89  }
    90  
    91  func (x *CommunicatorConfig) GetMaxBufferDelaySeconds() int32 {
    92  	if x != nil {
    93  		return x.MaxBufferDelaySeconds
    94  	}
    95  	return 0
    96  }
    97  
    98  func (x *CommunicatorConfig) GetMinFailureDelaySeconds() int32 {
    99  	if x != nil {
   100  		return x.MinFailureDelaySeconds
   101  	}
   102  	return 0
   103  }
   104  
   105  func (x *CommunicatorConfig) GetFailureSuicideTimeSeconds() int32 {
   106  	if x != nil {
   107  		return x.FailureSuicideTimeSeconds
   108  	}
   109  	return 0
   110  }
   111  
   112  // ClientState contains the state of the client which should be persisted across
   113  // restarts.
   114  type ClientState struct {
   115  	state         protoimpl.MessageState
   116  	sizeCache     protoimpl.SizeCache
   117  	unknownFields protoimpl.UnknownFields
   118  
   119  	// The client key, normally fixed after first execution. Also defines the
   120  	// client's id.
   121  	ClientKey []byte `protobuf:"bytes,1,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
   122  	// The most recent sequencing nonce received from the server.
   123  	SequencingNonce uint64 `protobuf:"varint,7,opt,name=sequencing_nonce,json=sequencingNonce,proto3" json:"sequencing_nonce,omitempty"`
   124  	// A set of revoked/blacklisted certificate serial numbers in big endian
   125  	// format. Not restricted, but normally at most 20 bytes. (RFC 3280)
   126  	RevokedCertSerials [][]byte `protobuf:"bytes,8,rep,name=revoked_cert_serials,json=revokedCertSerials,proto3" json:"revoked_cert_serials,omitempty"`
   127  }
   128  
   129  func (x *ClientState) Reset() {
   130  	*x = ClientState{}
   131  	if protoimpl.UnsafeEnabled {
   132  		mi := &file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_msgTypes[1]
   133  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   134  		ms.StoreMessageInfo(mi)
   135  	}
   136  }
   137  
   138  func (x *ClientState) String() string {
   139  	return protoimpl.X.MessageStringOf(x)
   140  }
   141  
   142  func (*ClientState) ProtoMessage() {}
   143  
   144  func (x *ClientState) ProtoReflect() protoreflect.Message {
   145  	mi := &file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_msgTypes[1]
   146  	if protoimpl.UnsafeEnabled && x != nil {
   147  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   148  		if ms.LoadMessageInfo() == nil {
   149  			ms.StoreMessageInfo(mi)
   150  		}
   151  		return ms
   152  	}
   153  	return mi.MessageOf(x)
   154  }
   155  
   156  // Deprecated: Use ClientState.ProtoReflect.Descriptor instead.
   157  func (*ClientState) Descriptor() ([]byte, []int) {
   158  	return file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDescGZIP(), []int{1}
   159  }
   160  
   161  func (x *ClientState) GetClientKey() []byte {
   162  	if x != nil {
   163  		return x.ClientKey
   164  	}
   165  	return nil
   166  }
   167  
   168  func (x *ClientState) GetSequencingNonce() uint64 {
   169  	if x != nil {
   170  		return x.SequencingNonce
   171  	}
   172  	return 0
   173  }
   174  
   175  func (x *ClientState) GetRevokedCertSerials() [][]byte {
   176  	if x != nil {
   177  		return x.RevokedCertSerials
   178  	}
   179  	return nil
   180  }
   181  
   182  var File_fleetspeak_src_client_proto_fleetspeak_client_client_proto protoreflect.FileDescriptor
   183  
   184  var file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDesc = []byte{
   185  	0x0a, 0x3a, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x73, 0x72, 0x63,
   186  	0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x6c,
   187  	0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f,
   188  	0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x66, 0x6c,
   189  	0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x22,
   190  	0xfe, 0x01, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72,
   191  	0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x6f,
   192  	0x6c, 0x6c, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73,
   193  	0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x50, 0x6f, 0x6c, 0x6c, 0x44,
   194  	0x65, 0x6c, 0x61, 0x79, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x6d,
   195  	0x61, 0x78, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f,
   196  	0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x15, 0x6d,
   197  	0x61, 0x78, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x65, 0x63,
   198  	0x6f, 0x6e, 0x64, 0x73, 0x12, 0x39, 0x0a, 0x19, 0x6d, 0x69, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c,
   199  	0x75, 0x72, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
   200  	0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x6d, 0x69, 0x6e, 0x46, 0x61, 0x69, 0x6c,
   201  	0x75, 0x72, 0x65, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12,
   202  	0x3f, 0x0a, 0x1c, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x75, 0x69, 0x63, 0x69,
   203  	0x64, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18,
   204  	0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x19, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x53, 0x75,
   205  	0x69, 0x63, 0x69, 0x64, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73,
   206  	0x22, 0x89, 0x01, 0x0a, 0x0b, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65,
   207  	0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01,
   208  	0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x12,
   209  	0x29, 0x0a, 0x10, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x6f,
   210  	0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65,
   211  	0x6e, 0x63, 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65,
   212  	0x76, 0x6f, 0x6b, 0x65, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61,
   213  	0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x12, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65,
   214  	0x64, 0x43, 0x65, 0x72, 0x74, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x73, 0x42, 0x4c, 0x5a, 0x4a,
   215  	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   216  	0x65, 0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x66, 0x6c, 0x65,
   217  	0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x63, 0x6c, 0x69, 0x65,
   218  	0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70,
   219  	0x65, 0x61, 0x6b, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   220  	0x6f, 0x33,
   221  }
   222  
   223  var (
   224  	file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDescOnce sync.Once
   225  	file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDescData = file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDesc
   226  )
   227  
   228  func file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDescGZIP() []byte {
   229  	file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDescOnce.Do(func() {
   230  		file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDescData = protoimpl.X.CompressGZIP(file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDescData)
   231  	})
   232  	return file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDescData
   233  }
   234  
   235  var file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   236  var file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_goTypes = []interface{}{
   237  	(*CommunicatorConfig)(nil), // 0: fleetspeak.client.CommunicatorConfig
   238  	(*ClientState)(nil),        // 1: fleetspeak.client.ClientState
   239  }
   240  var file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_depIdxs = []int32{
   241  	0, // [0:0] is the sub-list for method output_type
   242  	0, // [0:0] is the sub-list for method input_type
   243  	0, // [0:0] is the sub-list for extension type_name
   244  	0, // [0:0] is the sub-list for extension extendee
   245  	0, // [0:0] is the sub-list for field type_name
   246  }
   247  
   248  func init() { file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_init() }
   249  func file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_init() {
   250  	if File_fleetspeak_src_client_proto_fleetspeak_client_client_proto != nil {
   251  		return
   252  	}
   253  	if !protoimpl.UnsafeEnabled {
   254  		file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   255  			switch v := v.(*CommunicatorConfig); i {
   256  			case 0:
   257  				return &v.state
   258  			case 1:
   259  				return &v.sizeCache
   260  			case 2:
   261  				return &v.unknownFields
   262  			default:
   263  				return nil
   264  			}
   265  		}
   266  		file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   267  			switch v := v.(*ClientState); i {
   268  			case 0:
   269  				return &v.state
   270  			case 1:
   271  				return &v.sizeCache
   272  			case 2:
   273  				return &v.unknownFields
   274  			default:
   275  				return nil
   276  			}
   277  		}
   278  	}
   279  	type x struct{}
   280  	out := protoimpl.TypeBuilder{
   281  		File: protoimpl.DescBuilder{
   282  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   283  			RawDescriptor: file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDesc,
   284  			NumEnums:      0,
   285  			NumMessages:   2,
   286  			NumExtensions: 0,
   287  			NumServices:   0,
   288  		},
   289  		GoTypes:           file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_goTypes,
   290  		DependencyIndexes: file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_depIdxs,
   291  		MessageInfos:      file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_msgTypes,
   292  	}.Build()
   293  	File_fleetspeak_src_client_proto_fleetspeak_client_client_proto = out.File
   294  	file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_rawDesc = nil
   295  	file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_goTypes = nil
   296  	file_fleetspeak_src_client_proto_fleetspeak_client_client_proto_depIdxs = nil
   297  }