blob: 705539fd1cb899f39b63a7a249923159c23441fc [file] [log] [blame]
// Copyright 2020 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.1
// source: chromiumos/config/public_replication/public_replication.proto
package public_replication
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Configures which fields in a ConfigBundle are made public.
//
// Any message in a ConfigBundle that has a PublicReplication message as a field
// will have the fields specified by the public_fields FieldMask made public.
// For example, consider the ConfigBundle:
//
// software_configs {
// audio_configs {
// card_name: "testcard"
// private_field: "secretA"
// public_replication {
// public_fields {
// paths: "card_name"
// }
// }
// }
// }
//
// "card_name" will be made public, "private_field" will not be.
//
// A few notes:
// - Currently PublicReplication just wraps a FieldMask. This is done so that
// it can be discovered via proto reflection without accidentally using
// FieldMasks that are not meant to control public fields.
// - In FieldMasks a repeated field is only allowed in the last position of a
// path (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask).
// Using a single FieldMask for a ConfigBundle would not be very useful, since
// more granularity is needed (i.e. saying all or none of
// "software_configs" is public is not useful). Thus, FieldMasks to control
// public fields are specified in child messages of ConfigBundle.
type PublicReplication struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PublicFields *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=public_fields,json=publicFields,proto3" json:"public_fields,omitempty"`
}
func (x *PublicReplication) Reset() {
*x = PublicReplication{}
if protoimpl.UnsafeEnabled {
mi := &file_chromiumos_config_public_replication_public_replication_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PublicReplication) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PublicReplication) ProtoMessage() {}
func (x *PublicReplication) ProtoReflect() protoreflect.Message {
mi := &file_chromiumos_config_public_replication_public_replication_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PublicReplication.ProtoReflect.Descriptor instead.
func (*PublicReplication) Descriptor() ([]byte, []int) {
return file_chromiumos_config_public_replication_public_replication_proto_rawDescGZIP(), []int{0}
}
func (x *PublicReplication) GetPublicFields() *fieldmaskpb.FieldMask {
if x != nil {
return x.PublicFields
}
return nil
}
var File_chromiumos_config_public_replication_public_replication_proto protoreflect.FileDescriptor
var file_chromiumos_config_public_replication_public_replication_proto_rawDesc = []byte{
0x0a, 0x3d, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x65,
0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x24, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73,
0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x54, 0x0a, 0x11, 0x50, 0x75, 0x62, 0x6c, 0x69,
0x63, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x0d,
0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52,
0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x42, 0x39, 0x5a,
0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x70,
0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_chromiumos_config_public_replication_public_replication_proto_rawDescOnce sync.Once
file_chromiumos_config_public_replication_public_replication_proto_rawDescData = file_chromiumos_config_public_replication_public_replication_proto_rawDesc
)
func file_chromiumos_config_public_replication_public_replication_proto_rawDescGZIP() []byte {
file_chromiumos_config_public_replication_public_replication_proto_rawDescOnce.Do(func() {
file_chromiumos_config_public_replication_public_replication_proto_rawDescData = protoimpl.X.CompressGZIP(file_chromiumos_config_public_replication_public_replication_proto_rawDescData)
})
return file_chromiumos_config_public_replication_public_replication_proto_rawDescData
}
var file_chromiumos_config_public_replication_public_replication_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_chromiumos_config_public_replication_public_replication_proto_goTypes = []interface{}{
(*PublicReplication)(nil), // 0: chromiumos.config.public_replication.PublicReplication
(*fieldmaskpb.FieldMask)(nil), // 1: google.protobuf.FieldMask
}
var file_chromiumos_config_public_replication_public_replication_proto_depIdxs = []int32{
1, // 0: chromiumos.config.public_replication.PublicReplication.public_fields:type_name -> google.protobuf.FieldMask
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_chromiumos_config_public_replication_public_replication_proto_init() }
func file_chromiumos_config_public_replication_public_replication_proto_init() {
if File_chromiumos_config_public_replication_public_replication_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_chromiumos_config_public_replication_public_replication_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PublicReplication); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_chromiumos_config_public_replication_public_replication_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_chromiumos_config_public_replication_public_replication_proto_goTypes,
DependencyIndexes: file_chromiumos_config_public_replication_public_replication_proto_depIdxs,
MessageInfos: file_chromiumos_config_public_replication_public_replication_proto_msgTypes,
}.Build()
File_chromiumos_config_public_replication_public_replication_proto = out.File
file_chromiumos_config_public_replication_public_replication_proto_rawDesc = nil
file_chromiumos_config_public_replication_public_replication_proto_goTypes = nil
file_chromiumos_config_public_replication_public_replication_proto_depIdxs = nil
}