github.com/google/cloudprober@v0.11.3/surfacers/file/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/surfacers/file/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 SurfacerConf struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	// Where to write the results. If left unset, file surfacer writes to the
    29  	// standard output.
    30  	FilePath *string `protobuf:"bytes,1,opt,name=file_path,json=filePath" json:"file_path,omitempty"`
    31  	Prefix   *string `protobuf:"bytes,2,opt,name=prefix,def=cloudprober" json:"prefix,omitempty"`
    32  	// Compress data before writing to the file.
    33  	CompressionEnabled *bool `protobuf:"varint,3,opt,name=compression_enabled,json=compressionEnabled,def=0" json:"compression_enabled,omitempty"`
    34  }
    35  
    36  // Default values for SurfacerConf fields.
    37  const (
    38  	Default_SurfacerConf_Prefix             = string("cloudprober")
    39  	Default_SurfacerConf_CompressionEnabled = bool(false)
    40  )
    41  
    42  func (x *SurfacerConf) Reset() {
    43  	*x = SurfacerConf{}
    44  	if protoimpl.UnsafeEnabled {
    45  		mi := &file_github_com_google_cloudprober_surfacers_file_proto_config_proto_msgTypes[0]
    46  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    47  		ms.StoreMessageInfo(mi)
    48  	}
    49  }
    50  
    51  func (x *SurfacerConf) String() string {
    52  	return protoimpl.X.MessageStringOf(x)
    53  }
    54  
    55  func (*SurfacerConf) ProtoMessage() {}
    56  
    57  func (x *SurfacerConf) ProtoReflect() protoreflect.Message {
    58  	mi := &file_github_com_google_cloudprober_surfacers_file_proto_config_proto_msgTypes[0]
    59  	if protoimpl.UnsafeEnabled && x != nil {
    60  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    61  		if ms.LoadMessageInfo() == nil {
    62  			ms.StoreMessageInfo(mi)
    63  		}
    64  		return ms
    65  	}
    66  	return mi.MessageOf(x)
    67  }
    68  
    69  // Deprecated: Use SurfacerConf.ProtoReflect.Descriptor instead.
    70  func (*SurfacerConf) Descriptor() ([]byte, []int) {
    71  	return file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDescGZIP(), []int{0}
    72  }
    73  
    74  func (x *SurfacerConf) GetFilePath() string {
    75  	if x != nil && x.FilePath != nil {
    76  		return *x.FilePath
    77  	}
    78  	return ""
    79  }
    80  
    81  func (x *SurfacerConf) GetPrefix() string {
    82  	if x != nil && x.Prefix != nil {
    83  		return *x.Prefix
    84  	}
    85  	return Default_SurfacerConf_Prefix
    86  }
    87  
    88  func (x *SurfacerConf) GetCompressionEnabled() bool {
    89  	if x != nil && x.CompressionEnabled != nil {
    90  		return *x.CompressionEnabled
    91  	}
    92  	return Default_SurfacerConf_CompressionEnabled
    93  }
    94  
    95  var File_github_com_google_cloudprober_surfacers_file_proto_config_proto protoreflect.FileDescriptor
    96  
    97  var file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDesc = []byte{
    98  	0x0a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f,
    99  	0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f,
   100  	0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x70,
   101  	0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   102  	0x6f, 0x12, 0x19, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x73,
   103  	0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x88, 0x01, 0x0a,
   104  	0x0c, 0x53, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x1b, 0x0a,
   105  	0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   106  	0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x06, 0x70, 0x72,
   107  	0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x0b, 0x63, 0x6c, 0x6f, 0x75,
   108  	0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12,
   109  	0x36, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x65,
   110  	0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61,
   111  	0x6c, 0x73, 0x65, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
   112  	0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75,
   113  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f,
   114  	0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65,
   115  	0x72, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   116  }
   117  
   118  var (
   119  	file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDescOnce sync.Once
   120  	file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDescData = file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDesc
   121  )
   122  
   123  func file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDescGZIP() []byte {
   124  	file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDescOnce.Do(func() {
   125  		file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDescData)
   126  	})
   127  	return file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDescData
   128  }
   129  
   130  var file_github_com_google_cloudprober_surfacers_file_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   131  var file_github_com_google_cloudprober_surfacers_file_proto_config_proto_goTypes = []interface{}{
   132  	(*SurfacerConf)(nil), // 0: cloudprober.surfacer.file.SurfacerConf
   133  }
   134  var file_github_com_google_cloudprober_surfacers_file_proto_config_proto_depIdxs = []int32{
   135  	0, // [0:0] is the sub-list for method output_type
   136  	0, // [0:0] is the sub-list for method input_type
   137  	0, // [0:0] is the sub-list for extension type_name
   138  	0, // [0:0] is the sub-list for extension extendee
   139  	0, // [0:0] is the sub-list for field type_name
   140  }
   141  
   142  func init() { file_github_com_google_cloudprober_surfacers_file_proto_config_proto_init() }
   143  func file_github_com_google_cloudprober_surfacers_file_proto_config_proto_init() {
   144  	if File_github_com_google_cloudprober_surfacers_file_proto_config_proto != nil {
   145  		return
   146  	}
   147  	if !protoimpl.UnsafeEnabled {
   148  		file_github_com_google_cloudprober_surfacers_file_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   149  			switch v := v.(*SurfacerConf); i {
   150  			case 0:
   151  				return &v.state
   152  			case 1:
   153  				return &v.sizeCache
   154  			case 2:
   155  				return &v.unknownFields
   156  			default:
   157  				return nil
   158  			}
   159  		}
   160  	}
   161  	type x struct{}
   162  	out := protoimpl.TypeBuilder{
   163  		File: protoimpl.DescBuilder{
   164  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   165  			RawDescriptor: file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDesc,
   166  			NumEnums:      0,
   167  			NumMessages:   1,
   168  			NumExtensions: 0,
   169  			NumServices:   0,
   170  		},
   171  		GoTypes:           file_github_com_google_cloudprober_surfacers_file_proto_config_proto_goTypes,
   172  		DependencyIndexes: file_github_com_google_cloudprober_surfacers_file_proto_config_proto_depIdxs,
   173  		MessageInfos:      file_github_com_google_cloudprober_surfacers_file_proto_config_proto_msgTypes,
   174  	}.Build()
   175  	File_github_com_google_cloudprober_surfacers_file_proto_config_proto = out.File
   176  	file_github_com_google_cloudprober_surfacers_file_proto_config_proto_rawDesc = nil
   177  	file_github_com_google_cloudprober_surfacers_file_proto_config_proto_goTypes = nil
   178  	file_github_com_google_cloudprober_surfacers_file_proto_config_proto_depIdxs = nil
   179  }