github.com/google/fleetspeak@v0.1.15-0.20240426164851-4f31f62c1aea/fleetspeak/src/server/proto/fleetspeak_server/broadcasts.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/server/proto/fleetspeak_server/broadcasts.proto
     6  
     7  package fleetspeak_server
     8  
     9  import (
    10  	fleetspeak "github.com/google/fleetspeak/fleetspeak/src/common/proto/fleetspeak"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	anypb "google.golang.org/protobuf/types/known/anypb"
    14  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    15  	reflect "reflect"
    16  	sync "sync"
    17  )
    18  
    19  const (
    20  	// Verify that this generated code is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    22  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    24  )
    25  
    26  // A Broadcast is a template to build messages to send to a number of machines.
    27  type Broadcast struct {
    28  	state         protoimpl.MessageState
    29  	sizeCache     protoimpl.SizeCache
    30  	unknownFields protoimpl.UnknownFields
    31  
    32  	BroadcastId []byte `protobuf:"bytes,1,opt,name=broadcast_id,json=broadcastId,proto3" json:"broadcast_id,omitempty"`
    33  	// The source of the broadcast, it should only be a server side service. The
    34  	// destinations for the resulting broadcast messages will be different clients
    35  	// with the same service name.
    36  	Source      *fleetspeak.Address `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
    37  	MessageType string              `protobuf:"bytes,3,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
    38  	// A client will only be sent this broadcast if it has been marked with all of
    39  	// the required labels.
    40  	RequiredLabels []*fleetspeak.Label `protobuf:"bytes,4,rep,name=required_labels,json=requiredLabels,proto3" json:"required_labels,omitempty"`
    41  	// A broadcast will stop being sent at this time.
    42  	ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
    43  	Data           *anypb.Any             `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
    44  }
    45  
    46  func (x *Broadcast) Reset() {
    47  	*x = Broadcast{}
    48  	if protoimpl.UnsafeEnabled {
    49  		mi := &file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_msgTypes[0]
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		ms.StoreMessageInfo(mi)
    52  	}
    53  }
    54  
    55  func (x *Broadcast) String() string {
    56  	return protoimpl.X.MessageStringOf(x)
    57  }
    58  
    59  func (*Broadcast) ProtoMessage() {}
    60  
    61  func (x *Broadcast) ProtoReflect() protoreflect.Message {
    62  	mi := &file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_msgTypes[0]
    63  	if protoimpl.UnsafeEnabled && x != nil {
    64  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    65  		if ms.LoadMessageInfo() == nil {
    66  			ms.StoreMessageInfo(mi)
    67  		}
    68  		return ms
    69  	}
    70  	return mi.MessageOf(x)
    71  }
    72  
    73  // Deprecated: Use Broadcast.ProtoReflect.Descriptor instead.
    74  func (*Broadcast) Descriptor() ([]byte, []int) {
    75  	return file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDescGZIP(), []int{0}
    76  }
    77  
    78  func (x *Broadcast) GetBroadcastId() []byte {
    79  	if x != nil {
    80  		return x.BroadcastId
    81  	}
    82  	return nil
    83  }
    84  
    85  func (x *Broadcast) GetSource() *fleetspeak.Address {
    86  	if x != nil {
    87  		return x.Source
    88  	}
    89  	return nil
    90  }
    91  
    92  func (x *Broadcast) GetMessageType() string {
    93  	if x != nil {
    94  		return x.MessageType
    95  	}
    96  	return ""
    97  }
    98  
    99  func (x *Broadcast) GetRequiredLabels() []*fleetspeak.Label {
   100  	if x != nil {
   101  		return x.RequiredLabels
   102  	}
   103  	return nil
   104  }
   105  
   106  func (x *Broadcast) GetExpirationTime() *timestamppb.Timestamp {
   107  	if x != nil {
   108  		return x.ExpirationTime
   109  	}
   110  	return nil
   111  }
   112  
   113  func (x *Broadcast) GetData() *anypb.Any {
   114  	if x != nil {
   115  		return x.Data
   116  	}
   117  	return nil
   118  }
   119  
   120  var File_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto protoreflect.FileDescriptor
   121  
   122  var file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDesc = []byte{
   123  	0x0a, 0x3e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x73, 0x72, 0x63,
   124  	0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x6c,
   125  	0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f,
   126  	0x62, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   127  	0x12, 0x11, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2e, 0x73, 0x65, 0x72,
   128  	0x76, 0x65, 0x72, 0x1a, 0x33, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f,
   129  	0x73, 0x72, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   130  	0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
   131  	0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   132  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72,
   133  	0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   134  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
   135  	0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x02, 0x0a, 0x09, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61,
   136  	0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x5f,
   137  	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63,
   138  	0x61, 0x73, 0x74, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18,
   139  	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65,
   140  	0x61, 0x6b, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72,
   141  	0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79,
   142  	0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
   143  	0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
   144  	0x64, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11,
   145  	0x2e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2e, 0x4c, 0x61, 0x62, 0x65,
   146  	0x6c, 0x52, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c,
   147  	0x73, 0x12, 0x43, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
   148  	0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
   149  	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
   150  	0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69,
   151  	0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06,
   152  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   153  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
   154  	0x42, 0x4c, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67,
   155  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b,
   156  	0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x73, 0x72, 0x63, 0x2f,
   157  	0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x6c, 0x65,
   158  	0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x62, 0x06,
   159  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   160  }
   161  
   162  var (
   163  	file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDescOnce sync.Once
   164  	file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDescData = file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDesc
   165  )
   166  
   167  func file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDescGZIP() []byte {
   168  	file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDescOnce.Do(func() {
   169  		file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDescData = protoimpl.X.CompressGZIP(file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDescData)
   170  	})
   171  	return file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDescData
   172  }
   173  
   174  var file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   175  var file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_goTypes = []interface{}{
   176  	(*Broadcast)(nil),             // 0: fleetspeak.server.Broadcast
   177  	(*fleetspeak.Address)(nil),    // 1: fleetspeak.Address
   178  	(*fleetspeak.Label)(nil),      // 2: fleetspeak.Label
   179  	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
   180  	(*anypb.Any)(nil),             // 4: google.protobuf.Any
   181  }
   182  var file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_depIdxs = []int32{
   183  	1, // 0: fleetspeak.server.Broadcast.source:type_name -> fleetspeak.Address
   184  	2, // 1: fleetspeak.server.Broadcast.required_labels:type_name -> fleetspeak.Label
   185  	3, // 2: fleetspeak.server.Broadcast.expiration_time:type_name -> google.protobuf.Timestamp
   186  	4, // 3: fleetspeak.server.Broadcast.data:type_name -> google.protobuf.Any
   187  	4, // [4:4] is the sub-list for method output_type
   188  	4, // [4:4] is the sub-list for method input_type
   189  	4, // [4:4] is the sub-list for extension type_name
   190  	4, // [4:4] is the sub-list for extension extendee
   191  	0, // [0:4] is the sub-list for field type_name
   192  }
   193  
   194  func init() { file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_init() }
   195  func file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_init() {
   196  	if File_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto != nil {
   197  		return
   198  	}
   199  	if !protoimpl.UnsafeEnabled {
   200  		file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   201  			switch v := v.(*Broadcast); i {
   202  			case 0:
   203  				return &v.state
   204  			case 1:
   205  				return &v.sizeCache
   206  			case 2:
   207  				return &v.unknownFields
   208  			default:
   209  				return nil
   210  			}
   211  		}
   212  	}
   213  	type x struct{}
   214  	out := protoimpl.TypeBuilder{
   215  		File: protoimpl.DescBuilder{
   216  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   217  			RawDescriptor: file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDesc,
   218  			NumEnums:      0,
   219  			NumMessages:   1,
   220  			NumExtensions: 0,
   221  			NumServices:   0,
   222  		},
   223  		GoTypes:           file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_goTypes,
   224  		DependencyIndexes: file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_depIdxs,
   225  		MessageInfos:      file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_msgTypes,
   226  	}.Build()
   227  	File_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto = out.File
   228  	file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_rawDesc = nil
   229  	file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_goTypes = nil
   230  	file_fleetspeak_src_server_proto_fleetspeak_server_broadcasts_proto_depIdxs = nil
   231  }