...

Source file src/github.com/google/certificate-transparency-go/client/configpb/multilog.pb.go

Documentation: github.com/google/certificate-transparency-go/client/configpb

     1  // Copyright 2017 Google LLC. All Rights Reserved.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.28.1
    18  // 	protoc        v3.20.1
    19  // source: client/configpb/multilog.proto
    20  
    21  package configpb
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    27  	reflect "reflect"
    28  	sync "sync"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // TemporalLogConfig is a set of LogShardConfig messages, whose
    39  // time limits should be contiguous.
    40  type TemporalLogConfig struct {
    41  	state         protoimpl.MessageState
    42  	sizeCache     protoimpl.SizeCache
    43  	unknownFields protoimpl.UnknownFields
    44  
    45  	Shard []*LogShardConfig `protobuf:"bytes,1,rep,name=shard,proto3" json:"shard,omitempty"`
    46  }
    47  
    48  func (x *TemporalLogConfig) Reset() {
    49  	*x = TemporalLogConfig{}
    50  	if protoimpl.UnsafeEnabled {
    51  		mi := &file_client_configpb_multilog_proto_msgTypes[0]
    52  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53  		ms.StoreMessageInfo(mi)
    54  	}
    55  }
    56  
    57  func (x *TemporalLogConfig) String() string {
    58  	return protoimpl.X.MessageStringOf(x)
    59  }
    60  
    61  func (*TemporalLogConfig) ProtoMessage() {}
    62  
    63  func (x *TemporalLogConfig) ProtoReflect() protoreflect.Message {
    64  	mi := &file_client_configpb_multilog_proto_msgTypes[0]
    65  	if protoimpl.UnsafeEnabled && x != nil {
    66  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    67  		if ms.LoadMessageInfo() == nil {
    68  			ms.StoreMessageInfo(mi)
    69  		}
    70  		return ms
    71  	}
    72  	return mi.MessageOf(x)
    73  }
    74  
    75  // Deprecated: Use TemporalLogConfig.ProtoReflect.Descriptor instead.
    76  func (*TemporalLogConfig) Descriptor() ([]byte, []int) {
    77  	return file_client_configpb_multilog_proto_rawDescGZIP(), []int{0}
    78  }
    79  
    80  func (x *TemporalLogConfig) GetShard() []*LogShardConfig {
    81  	if x != nil {
    82  		return x.Shard
    83  	}
    84  	return nil
    85  }
    86  
    87  // LogShardConfig describes the acceptable date range for a single shard of a temporal
    88  // log.
    89  type LogShardConfig struct {
    90  	state         protoimpl.MessageState
    91  	sizeCache     protoimpl.SizeCache
    92  	unknownFields protoimpl.UnknownFields
    93  
    94  	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
    95  	// The log's public key in DER-encoded PKIX form.
    96  	PublicKeyDer []byte `protobuf:"bytes,2,opt,name=public_key_der,json=publicKeyDer,proto3" json:"public_key_der,omitempty"`
    97  	// not_after_start defines the start of the range of acceptable NotAfter
    98  	// values, inclusive.
    99  	// Leaving this unset implies no lower bound to the range.
   100  	NotAfterStart *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=not_after_start,json=notAfterStart,proto3" json:"not_after_start,omitempty"`
   101  	// not_after_limit defines the end of the range of acceptable NotAfter values,
   102  	// exclusive.
   103  	// Leaving this unset implies no upper bound to the range.
   104  	NotAfterLimit *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=not_after_limit,json=notAfterLimit,proto3" json:"not_after_limit,omitempty"`
   105  }
   106  
   107  func (x *LogShardConfig) Reset() {
   108  	*x = LogShardConfig{}
   109  	if protoimpl.UnsafeEnabled {
   110  		mi := &file_client_configpb_multilog_proto_msgTypes[1]
   111  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   112  		ms.StoreMessageInfo(mi)
   113  	}
   114  }
   115  
   116  func (x *LogShardConfig) String() string {
   117  	return protoimpl.X.MessageStringOf(x)
   118  }
   119  
   120  func (*LogShardConfig) ProtoMessage() {}
   121  
   122  func (x *LogShardConfig) ProtoReflect() protoreflect.Message {
   123  	mi := &file_client_configpb_multilog_proto_msgTypes[1]
   124  	if protoimpl.UnsafeEnabled && x != nil {
   125  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   126  		if ms.LoadMessageInfo() == nil {
   127  			ms.StoreMessageInfo(mi)
   128  		}
   129  		return ms
   130  	}
   131  	return mi.MessageOf(x)
   132  }
   133  
   134  // Deprecated: Use LogShardConfig.ProtoReflect.Descriptor instead.
   135  func (*LogShardConfig) Descriptor() ([]byte, []int) {
   136  	return file_client_configpb_multilog_proto_rawDescGZIP(), []int{1}
   137  }
   138  
   139  func (x *LogShardConfig) GetUri() string {
   140  	if x != nil {
   141  		return x.Uri
   142  	}
   143  	return ""
   144  }
   145  
   146  func (x *LogShardConfig) GetPublicKeyDer() []byte {
   147  	if x != nil {
   148  		return x.PublicKeyDer
   149  	}
   150  	return nil
   151  }
   152  
   153  func (x *LogShardConfig) GetNotAfterStart() *timestamppb.Timestamp {
   154  	if x != nil {
   155  		return x.NotAfterStart
   156  	}
   157  	return nil
   158  }
   159  
   160  func (x *LogShardConfig) GetNotAfterLimit() *timestamppb.Timestamp {
   161  	if x != nil {
   162  		return x.NotAfterLimit
   163  	}
   164  	return nil
   165  }
   166  
   167  var File_client_configpb_multilog_proto protoreflect.FileDescriptor
   168  
   169  var file_client_configpb_multilog_proto_rawDesc = []byte{
   170  	0x0a, 0x1e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70,
   171  	0x62, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   172  	0x12, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
   173  	0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
   174  	0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x11, 0x54,
   175  	0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x6c, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   176  	0x12, 0x2e, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
   177  	0x18, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x67, 0x53, 0x68,
   178  	0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64,
   179  	0x22, 0xd0, 0x01, 0x0a, 0x0e, 0x4c, 0x6f, 0x67, 0x53, 0x68, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e,
   180  	0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   181  	0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f,
   182  	0x6b, 0x65, 0x79, 0x5f, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70,
   183  	0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x44, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x0f, 0x6e,
   184  	0x6f, 0x74, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03,
   185  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   186  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
   187  	0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x41, 0x66, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12,
   188  	0x42, 0x0a, 0x0f, 0x6e, 0x6f, 0x74, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x6c, 0x69, 0x6d,
   189  	0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   190  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
   191  	0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x41, 0x66, 0x74, 0x65, 0x72, 0x4c, 0x69,
   192  	0x6d, 0x69, 0x74, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
   193  	0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
   194  	0x63, 0x61, 0x74, 0x65, 0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63,
   195  	0x79, 0x2d, 0x67, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x6d, 0x75, 0x6c, 0x74,
   196  	0x69, 0x6c, 0x6f, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70,
   197  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   198  }
   199  
   200  var (
   201  	file_client_configpb_multilog_proto_rawDescOnce sync.Once
   202  	file_client_configpb_multilog_proto_rawDescData = file_client_configpb_multilog_proto_rawDesc
   203  )
   204  
   205  func file_client_configpb_multilog_proto_rawDescGZIP() []byte {
   206  	file_client_configpb_multilog_proto_rawDescOnce.Do(func() {
   207  		file_client_configpb_multilog_proto_rawDescData = protoimpl.X.CompressGZIP(file_client_configpb_multilog_proto_rawDescData)
   208  	})
   209  	return file_client_configpb_multilog_proto_rawDescData
   210  }
   211  
   212  var file_client_configpb_multilog_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   213  var file_client_configpb_multilog_proto_goTypes = []interface{}{
   214  	(*TemporalLogConfig)(nil),     // 0: configpb.TemporalLogConfig
   215  	(*LogShardConfig)(nil),        // 1: configpb.LogShardConfig
   216  	(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
   217  }
   218  var file_client_configpb_multilog_proto_depIdxs = []int32{
   219  	1, // 0: configpb.TemporalLogConfig.shard:type_name -> configpb.LogShardConfig
   220  	2, // 1: configpb.LogShardConfig.not_after_start:type_name -> google.protobuf.Timestamp
   221  	2, // 2: configpb.LogShardConfig.not_after_limit:type_name -> google.protobuf.Timestamp
   222  	3, // [3:3] is the sub-list for method output_type
   223  	3, // [3:3] is the sub-list for method input_type
   224  	3, // [3:3] is the sub-list for extension type_name
   225  	3, // [3:3] is the sub-list for extension extendee
   226  	0, // [0:3] is the sub-list for field type_name
   227  }
   228  
   229  func init() { file_client_configpb_multilog_proto_init() }
   230  func file_client_configpb_multilog_proto_init() {
   231  	if File_client_configpb_multilog_proto != nil {
   232  		return
   233  	}
   234  	if !protoimpl.UnsafeEnabled {
   235  		file_client_configpb_multilog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   236  			switch v := v.(*TemporalLogConfig); i {
   237  			case 0:
   238  				return &v.state
   239  			case 1:
   240  				return &v.sizeCache
   241  			case 2:
   242  				return &v.unknownFields
   243  			default:
   244  				return nil
   245  			}
   246  		}
   247  		file_client_configpb_multilog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   248  			switch v := v.(*LogShardConfig); i {
   249  			case 0:
   250  				return &v.state
   251  			case 1:
   252  				return &v.sizeCache
   253  			case 2:
   254  				return &v.unknownFields
   255  			default:
   256  				return nil
   257  			}
   258  		}
   259  	}
   260  	type x struct{}
   261  	out := protoimpl.TypeBuilder{
   262  		File: protoimpl.DescBuilder{
   263  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   264  			RawDescriptor: file_client_configpb_multilog_proto_rawDesc,
   265  			NumEnums:      0,
   266  			NumMessages:   2,
   267  			NumExtensions: 0,
   268  			NumServices:   0,
   269  		},
   270  		GoTypes:           file_client_configpb_multilog_proto_goTypes,
   271  		DependencyIndexes: file_client_configpb_multilog_proto_depIdxs,
   272  		MessageInfos:      file_client_configpb_multilog_proto_msgTypes,
   273  	}.Build()
   274  	File_client_configpb_multilog_proto = out.File
   275  	file_client_configpb_multilog_proto_rawDesc = nil
   276  	file_client_configpb_multilog_proto_goTypes = nil
   277  	file_client_configpb_multilog_proto_depIdxs = nil
   278  }
   279  

View as plain text