// Copyright 2017 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v3.20.1
// source: trillian/ctfe/configpb/config.proto

package configpb

import (
	keyspb "github.com/google/trillian/crypto/keyspb"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	anypb "google.golang.org/protobuf/types/known/anypb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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)
)

// An optional storage backend for the issuance chain in ExtraData.
// By default, the storage backend is Trillian GRPC. To use CTFE as the
// storage backend, the CTFE storage connection string needs to be specified.
// Do not change this value during the log's lifetime.
type LogConfig_IssuanceChainStorageBackend int32

const (
	LogConfig_ISSUANCE_CHAIN_STORAGE_BACKEND_TRILLIAN_GRPC LogConfig_IssuanceChainStorageBackend = 0
	LogConfig_ISSUANCE_CHAIN_STORAGE_BACKEND_CTFE          LogConfig_IssuanceChainStorageBackend = 1
)

// Enum value maps for LogConfig_IssuanceChainStorageBackend.
var (
	LogConfig_IssuanceChainStorageBackend_name = map[int32]string{
		0: "ISSUANCE_CHAIN_STORAGE_BACKEND_TRILLIAN_GRPC",
		1: "ISSUANCE_CHAIN_STORAGE_BACKEND_CTFE",
	}
	LogConfig_IssuanceChainStorageBackend_value = map[string]int32{
		"ISSUANCE_CHAIN_STORAGE_BACKEND_TRILLIAN_GRPC": 0,
		"ISSUANCE_CHAIN_STORAGE_BACKEND_CTFE":          1,
	}
)

func (x LogConfig_IssuanceChainStorageBackend) Enum() *LogConfig_IssuanceChainStorageBackend {
	p := new(LogConfig_IssuanceChainStorageBackend)
	*p = x
	return p
}

func (x LogConfig_IssuanceChainStorageBackend) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (LogConfig_IssuanceChainStorageBackend) Descriptor() protoreflect.EnumDescriptor {
	return file_trillian_ctfe_configpb_config_proto_enumTypes[0].Descriptor()
}

func (LogConfig_IssuanceChainStorageBackend) Type() protoreflect.EnumType {
	return &file_trillian_ctfe_configpb_config_proto_enumTypes[0]
}

func (x LogConfig_IssuanceChainStorageBackend) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use LogConfig_IssuanceChainStorageBackend.Descriptor instead.
func (LogConfig_IssuanceChainStorageBackend) EnumDescriptor() ([]byte, []int) {
	return file_trillian_ctfe_configpb_config_proto_rawDescGZIP(), []int{3, 0}
}

type LogBackend struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// name defines the name of the log backend for use in LogConfig messages and must be unique.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// backend_spec defines the RPC endpoint that clients should use to send requests
	// to this log backend. These should be in the same format as rpcBackendFlag in the
	// CTFE main and must not be an empty string.
	BackendSpec   string `protobuf:"bytes,2,opt,name=backend_spec,json=backendSpec,proto3" json:"backend_spec,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LogBackend) Reset() {
	*x = LogBackend{}
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LogBackend) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LogBackend) ProtoMessage() {}

func (x *LogBackend) ProtoReflect() protoreflect.Message {
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LogBackend.ProtoReflect.Descriptor instead.
func (*LogBackend) Descriptor() ([]byte, []int) {
	return file_trillian_ctfe_configpb_config_proto_rawDescGZIP(), []int{0}
}

func (x *LogBackend) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *LogBackend) GetBackendSpec() string {
	if x != nil {
		return x.BackendSpec
	}
	return ""
}

// LogBackendSet supports a configuration where a single set of frontends handle
// requests for multiple backends. For example this could be used to run different
// backends in different geographic regions.
type LogBackendSet struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Backend       []*LogBackend          `protobuf:"bytes,1,rep,name=backend,proto3" json:"backend,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LogBackendSet) Reset() {
	*x = LogBackendSet{}
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LogBackendSet) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LogBackendSet) ProtoMessage() {}

func (x *LogBackendSet) ProtoReflect() protoreflect.Message {
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LogBackendSet.ProtoReflect.Descriptor instead.
func (*LogBackendSet) Descriptor() ([]byte, []int) {
	return file_trillian_ctfe_configpb_config_proto_rawDescGZIP(), []int{1}
}

func (x *LogBackendSet) GetBackend() []*LogBackend {
	if x != nil {
		return x.Backend
	}
	return nil
}

// LogConfigSet is a set of LogConfig messages.
type LogConfigSet struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Config        []*LogConfig           `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LogConfigSet) Reset() {
	*x = LogConfigSet{}
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LogConfigSet) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LogConfigSet) ProtoMessage() {}

func (x *LogConfigSet) ProtoReflect() protoreflect.Message {
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LogConfigSet.ProtoReflect.Descriptor instead.
func (*LogConfigSet) Descriptor() ([]byte, []int) {
	return file_trillian_ctfe_configpb_config_proto_rawDescGZIP(), []int{2}
}

func (x *LogConfigSet) GetConfig() []*LogConfig {
	if x != nil {
		return x.Config
	}
	return nil
}

// LogConfig describes the configuration options for a log instance.
//
// NEXT_ID: 22
type LogConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The ID of a Trillian tree that stores the log data. The tree type must be
	// LOG for regular CT logs. For mirror logs it must be either PREORDERED_LOG
	// or LOG, and can change at runtime. CTFE in mirror mode uses only read API
	// which is common for both types.
	LogId int64 `protobuf:"varint,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
	// prefix is the name of the log. It will come after the global or
	// override handler prefix. For example if the handler prefix is "/logs"
	// and prefix is "vogon" the get-sth handler for this log will be
	// available at "/logs/vogon/ct/v1/get-sth". The prefix cannot be empty
	// and must not include "/" path separator characters.
	Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// override_handler_prefix if set to a non empty value overrides the global
	// handler prefix for an individual log. For example this field is set to
	// "/otherlogs" then a log with prefix "vogon" will make it's get-sth handler
	// available at "/otherlogs/vogon/ct/v1/get-sth" regardless of what the
	// global prefix is. Can be set to '/' to make the get-sth handler register
	// at "/vogon/ct/v1/get-sth".
	OverrideHandlerPrefix string `protobuf:"bytes,13,opt,name=override_handler_prefix,json=overrideHandlerPrefix,proto3" json:"override_handler_prefix,omitempty"`
	// Paths to the files containing root certificates that are acceptable to the
	// log. The certs are served through get-roots endpoint. Optional in mirrors.
	RootsPemFile []string `protobuf:"bytes,3,rep,name=roots_pem_file,json=rootsPemFile,proto3" json:"roots_pem_file,omitempty"`
	// The private key used for signing STHs etc. Not required for mirrors.
	PrivateKey *anypb.Any `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// The public key matching the above private key (if both are present). It is
	// used only by mirror logs for verifying the source log's signatures, but can
	// be specified for regular logs as well for the convenience of test tools.
	PublicKey *keyspb.PublicKey `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// If reject_expired is true then the certificate validity period will be
	// checked against the current time during the validation of submissions.
	// This will cause expired certificates to be rejected.
	RejectExpired bool `protobuf:"varint,6,opt,name=reject_expired,json=rejectExpired,proto3" json:"reject_expired,omitempty"`
	// If reject_unexpired is true then CTFE rejects certificates that are either
	// currently valid or not yet valid.
	RejectUnexpired bool `protobuf:"varint,17,opt,name=reject_unexpired,json=rejectUnexpired,proto3" json:"reject_unexpired,omitempty"`
	// If set, ext_key_usages will restrict the set of such usages that the
	// server will accept. By default all are accepted. The values specified
	// must be ones known to the x509 package.
	ExtKeyUsages []string `protobuf:"bytes,7,rep,name=ext_key_usages,json=extKeyUsages,proto3" json:"ext_key_usages,omitempty"`
	// not_after_start defines the start of the range of acceptable NotAfter
	// values, inclusive.
	// Leaving this unset implies no lower bound to the range.
	NotAfterStart *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=not_after_start,json=notAfterStart,proto3" json:"not_after_start,omitempty"`
	// not_after_limit defines the end of the range of acceptable NotAfter values,
	// exclusive.
	// Leaving this unset implies no upper bound to the range.
	NotAfterLimit *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=not_after_limit,json=notAfterLimit,proto3" json:"not_after_limit,omitempty"`
	// accept_only_ca controls whether or not *only* certificates with the CA bit
	// set will be accepted.
	AcceptOnlyCa bool `protobuf:"varint,10,opt,name=accept_only_ca,json=acceptOnlyCa,proto3" json:"accept_only_ca,omitempty"`
	// backend_name if set indicates which backend serves this log. The name must be
	// one of those defined in the LogBackendSet.
	LogBackendName string `protobuf:"bytes,11,opt,name=log_backend_name,json=logBackendName,proto3" json:"log_backend_name,omitempty"`
	// If set, the log is a mirror, i.e. it serves the data of another (source)
	// log. It doesn't handle write requests (add-chain, etc.), so it's not a
	// fully fledged RFC-6962 log, but the tree read requests like get-entries and
	// get-consistency-proof are compatible. A mirror doesn't have the source
	// log's key and can't sign STHs. Consequently, the log operator must ensure
	// to channel source log's STHs into CTFE.
	IsMirror bool `protobuf:"varint,12,opt,name=is_mirror,json=isMirror,proto3" json:"is_mirror,omitempty"`
	// If set, the log serves only read endpoints, and rejects writes through the
	// add-[pre-]chain endpoint.
	IsReadonly bool `protobuf:"varint,19,opt,name=is_readonly,json=isReadonly,proto3" json:"is_readonly,omitempty"`
	// The Maximum Merge Delay (MMD) of this log in seconds. See RFC6962 section 3
	// for definition of MMD. If zero, the log does not provide an MMD guarantee
	// (for example, it is a frozen log).
	MaxMergeDelaySec int32 `protobuf:"varint,14,opt,name=max_merge_delay_sec,json=maxMergeDelaySec,proto3" json:"max_merge_delay_sec,omitempty"`
	// The merge delay that the underlying log implementation is able/targeting to
	// provide. This option is exposed in CTFE metrics, and can be particularly
	// useful to catch when the log is behind but has not yet violated the strict
	// MMD limit.
	// Log operator should decide what exactly EMD means for them. For example, it
	// can be a 99-th percentile of merge delays that they observe, and they can
	// alert on the actual merge delay going above a certain multiple of this EMD.
	ExpectedMergeDelaySec int32 `protobuf:"varint,15,opt,name=expected_merge_delay_sec,json=expectedMergeDelaySec,proto3" json:"expected_merge_delay_sec,omitempty"`
	// The STH that this log will serve permanently (if present). Frozen STH must
	// be signed by this log's private key, and will be verified using the public
	// key specified in this config.
	FrozenSth *SignedTreeHead `protobuf:"bytes,16,opt,name=frozen_sth,json=frozenSth,proto3" json:"frozen_sth,omitempty"`
	// A list of X.509 extension OIDs, in dotted string form (e.g. "2.3.4.5")
	// which should cause submissions to be rejected.
	RejectExtensions []string `protobuf:"bytes,18,rep,name=reject_extensions,json=rejectExtensions,proto3" json:"reject_extensions,omitempty"`
	// CTFE storage connection string in the following format in general:
	// driver://[username[:password]@][protocol[(host[:port])]][/[schema|database][?options]]
	//
	// MySQL/MariaDB:
	// mysql://[username[:password]@][protocol[(address)]]/dbname[?param1=value1&...&paramN=valueN]
	//
	// PostgreSQL:
	// postgresql://[username[:password]@][host][:port][/dbname][?param1=value1&...&paramN=valueN]
	//
	// This is required when the issuance chain storage backend is CTFE.
	//
	// Warning: CT log operators are advised not to re-use the same connection
	// string across multiple LogConfigs due to the log lifecycle.
	CtfeStorageConnectionString          string                                `protobuf:"bytes,20,opt,name=ctfe_storage_connection_string,json=ctfeStorageConnectionString,proto3" json:"ctfe_storage_connection_string,omitempty"`
	ExtraDataIssuanceChainStorageBackend LogConfig_IssuanceChainStorageBackend `protobuf:"varint,21,opt,name=extra_data_issuance_chain_storage_backend,json=extraDataIssuanceChainStorageBackend,proto3,enum=configpb.LogConfig_IssuanceChainStorageBackend" json:"extra_data_issuance_chain_storage_backend,omitempty"`
	// The "url" string to be emitted by the /log.v3.json endpoint.
	// If this string is empty (the default), the /log.v3.json endpoint will not be served.
	Logv3Url      string `protobuf:"bytes,22,opt,name=logv3_url,json=logv3Url,proto3" json:"logv3_url,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LogConfig) Reset() {
	*x = LogConfig{}
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LogConfig) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LogConfig) ProtoMessage() {}

func (x *LogConfig) ProtoReflect() protoreflect.Message {
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LogConfig.ProtoReflect.Descriptor instead.
func (*LogConfig) Descriptor() ([]byte, []int) {
	return file_trillian_ctfe_configpb_config_proto_rawDescGZIP(), []int{3}
}

func (x *LogConfig) GetLogId() int64 {
	if x != nil {
		return x.LogId
	}
	return 0
}

func (x *LogConfig) GetPrefix() string {
	if x != nil {
		return x.Prefix
	}
	return ""
}

func (x *LogConfig) GetOverrideHandlerPrefix() string {
	if x != nil {
		return x.OverrideHandlerPrefix
	}
	return ""
}

func (x *LogConfig) GetRootsPemFile() []string {
	if x != nil {
		return x.RootsPemFile
	}
	return nil
}

func (x *LogConfig) GetPrivateKey() *anypb.Any {
	if x != nil {
		return x.PrivateKey
	}
	return nil
}

func (x *LogConfig) GetPublicKey() *keyspb.PublicKey {
	if x != nil {
		return x.PublicKey
	}
	return nil
}

func (x *LogConfig) GetRejectExpired() bool {
	if x != nil {
		return x.RejectExpired
	}
	return false
}

func (x *LogConfig) GetRejectUnexpired() bool {
	if x != nil {
		return x.RejectUnexpired
	}
	return false
}

func (x *LogConfig) GetExtKeyUsages() []string {
	if x != nil {
		return x.ExtKeyUsages
	}
	return nil
}

func (x *LogConfig) GetNotAfterStart() *timestamppb.Timestamp {
	if x != nil {
		return x.NotAfterStart
	}
	return nil
}

func (x *LogConfig) GetNotAfterLimit() *timestamppb.Timestamp {
	if x != nil {
		return x.NotAfterLimit
	}
	return nil
}

func (x *LogConfig) GetAcceptOnlyCa() bool {
	if x != nil {
		return x.AcceptOnlyCa
	}
	return false
}

func (x *LogConfig) GetLogBackendName() string {
	if x != nil {
		return x.LogBackendName
	}
	return ""
}

func (x *LogConfig) GetIsMirror() bool {
	if x != nil {
		return x.IsMirror
	}
	return false
}

func (x *LogConfig) GetIsReadonly() bool {
	if x != nil {
		return x.IsReadonly
	}
	return false
}

func (x *LogConfig) GetMaxMergeDelaySec() int32 {
	if x != nil {
		return x.MaxMergeDelaySec
	}
	return 0
}

func (x *LogConfig) GetExpectedMergeDelaySec() int32 {
	if x != nil {
		return x.ExpectedMergeDelaySec
	}
	return 0
}

func (x *LogConfig) GetFrozenSth() *SignedTreeHead {
	if x != nil {
		return x.FrozenSth
	}
	return nil
}

func (x *LogConfig) GetRejectExtensions() []string {
	if x != nil {
		return x.RejectExtensions
	}
	return nil
}

func (x *LogConfig) GetCtfeStorageConnectionString() string {
	if x != nil {
		return x.CtfeStorageConnectionString
	}
	return ""
}

func (x *LogConfig) GetExtraDataIssuanceChainStorageBackend() LogConfig_IssuanceChainStorageBackend {
	if x != nil {
		return x.ExtraDataIssuanceChainStorageBackend
	}
	return LogConfig_ISSUANCE_CHAIN_STORAGE_BACKEND_TRILLIAN_GRPC
}

func (x *LogConfig) GetLogv3Url() string {
	if x != nil {
		return x.Logv3Url
	}
	return ""
}

// LogMultiConfig wraps up a LogBackendSet and corresponding LogConfigSet so
// that they can easily be parsed as a single proto.
type LogMultiConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The set of backends that this configuration will use to send requests to.
	// The names of the backends in the LogBackendSet must all be distinct.
	Backends *LogBackendSet `protobuf:"bytes,1,opt,name=backends,proto3" json:"backends,omitempty"`
	// The set of logs that will use the above backends. All the protos in this
	// LogConfigSet must set a valid log_backend_name for the config to be usable.
	LogConfigs    *LogConfigSet `protobuf:"bytes,2,opt,name=log_configs,json=logConfigs,proto3" json:"log_configs,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LogMultiConfig) Reset() {
	*x = LogMultiConfig{}
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LogMultiConfig) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LogMultiConfig) ProtoMessage() {}

func (x *LogMultiConfig) ProtoReflect() protoreflect.Message {
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LogMultiConfig.ProtoReflect.Descriptor instead.
func (*LogMultiConfig) Descriptor() ([]byte, []int) {
	return file_trillian_ctfe_configpb_config_proto_rawDescGZIP(), []int{4}
}

func (x *LogMultiConfig) GetBackends() *LogBackendSet {
	if x != nil {
		return x.Backends
	}
	return nil
}

func (x *LogMultiConfig) GetLogConfigs() *LogConfigSet {
	if x != nil {
		return x.LogConfigs
	}
	return nil
}

// SignedTreeHead represents the structure returned by the get-sth CT method.
// See RFC6962 sections 3.5 and 4.3 for reference.
// TODO(pavelkalinnikov): Find a better place for this type.
type SignedTreeHead struct {
	state             protoimpl.MessageState `protogen:"open.v1"`
	TreeSize          int64                  `protobuf:"varint,1,opt,name=tree_size,json=treeSize,proto3" json:"tree_size,omitempty"`
	Timestamp         int64                  `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Sha256RootHash    []byte                 `protobuf:"bytes,3,opt,name=sha256_root_hash,json=sha256RootHash,proto3" json:"sha256_root_hash,omitempty"`
	TreeHeadSignature []byte                 `protobuf:"bytes,4,opt,name=tree_head_signature,json=treeHeadSignature,proto3" json:"tree_head_signature,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

func (x *SignedTreeHead) Reset() {
	*x = SignedTreeHead{}
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *SignedTreeHead) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SignedTreeHead) ProtoMessage() {}

func (x *SignedTreeHead) ProtoReflect() protoreflect.Message {
	mi := &file_trillian_ctfe_configpb_config_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SignedTreeHead.ProtoReflect.Descriptor instead.
func (*SignedTreeHead) Descriptor() ([]byte, []int) {
	return file_trillian_ctfe_configpb_config_proto_rawDescGZIP(), []int{5}
}

func (x *SignedTreeHead) GetTreeSize() int64 {
	if x != nil {
		return x.TreeSize
	}
	return 0
}

func (x *SignedTreeHead) GetTimestamp() int64 {
	if x != nil {
		return x.Timestamp
	}
	return 0
}

func (x *SignedTreeHead) GetSha256RootHash() []byte {
	if x != nil {
		return x.Sha256RootHash
	}
	return nil
}

func (x *SignedTreeHead) GetTreeHeadSignature() []byte {
	if x != nil {
		return x.TreeHeadSignature
	}
	return nil
}

var File_trillian_ctfe_configpb_config_proto protoreflect.FileDescriptor

const file_trillian_ctfe_configpb_config_proto_rawDesc = "" +
	"\n" +
	"#trillian/ctfe/configpb/config.proto\x12\bconfigpb\x1a\x1acrypto/keyspb/keyspb.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"C\n" +
	"\n" +
	"LogBackend\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12!\n" +
	"\fbackend_spec\x18\x02 \x01(\tR\vbackendSpec\"?\n" +
	"\rLogBackendSet\x12.\n" +
	"\abackend\x18\x01 \x03(\v2\x14.configpb.LogBackendR\abackend\";\n" +
	"\fLogConfigSet\x12+\n" +
	"\x06config\x18\x01 \x03(\v2\x13.configpb.LogConfigR\x06config\"\xc4\t\n" +
	"\tLogConfig\x12\x15\n" +
	"\x06log_id\x18\x01 \x01(\x03R\x05logId\x12\x16\n" +
	"\x06prefix\x18\x02 \x01(\tR\x06prefix\x126\n" +
	"\x17override_handler_prefix\x18\r \x01(\tR\x15overrideHandlerPrefix\x12$\n" +
	"\x0eroots_pem_file\x18\x03 \x03(\tR\frootsPemFile\x125\n" +
	"\vprivate_key\x18\x04 \x01(\v2\x14.google.protobuf.AnyR\n" +
	"privateKey\x120\n" +
	"\n" +
	"public_key\x18\x05 \x01(\v2\x11.keyspb.PublicKeyR\tpublicKey\x12%\n" +
	"\x0ereject_expired\x18\x06 \x01(\bR\rrejectExpired\x12)\n" +
	"\x10reject_unexpired\x18\x11 \x01(\bR\x0frejectUnexpired\x12$\n" +
	"\x0eext_key_usages\x18\a \x03(\tR\fextKeyUsages\x12B\n" +
	"\x0fnot_after_start\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\rnotAfterStart\x12B\n" +
	"\x0fnot_after_limit\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\rnotAfterLimit\x12$\n" +
	"\x0eaccept_only_ca\x18\n" +
	" \x01(\bR\facceptOnlyCa\x12(\n" +
	"\x10log_backend_name\x18\v \x01(\tR\x0elogBackendName\x12\x1b\n" +
	"\tis_mirror\x18\f \x01(\bR\bisMirror\x12\x1f\n" +
	"\vis_readonly\x18\x13 \x01(\bR\n" +
	"isReadonly\x12-\n" +
	"\x13max_merge_delay_sec\x18\x0e \x01(\x05R\x10maxMergeDelaySec\x127\n" +
	"\x18expected_merge_delay_sec\x18\x0f \x01(\x05R\x15expectedMergeDelaySec\x127\n" +
	"\n" +
	"frozen_sth\x18\x10 \x01(\v2\x18.configpb.SignedTreeHeadR\tfrozenSth\x12+\n" +
	"\x11reject_extensions\x18\x12 \x03(\tR\x10rejectExtensions\x12C\n" +
	"\x1ectfe_storage_connection_string\x18\x14 \x01(\tR\x1bctfeStorageConnectionString\x12\x88\x01\n" +
	")extra_data_issuance_chain_storage_backend\x18\x15 \x01(\x0e2/.configpb.LogConfig.IssuanceChainStorageBackendR$extraDataIssuanceChainStorageBackend\x12\x1b\n" +
	"\tlogv3_url\x18\x16 \x01(\tR\blogv3Url\"x\n" +
	"\x1bIssuanceChainStorageBackend\x120\n" +
	",ISSUANCE_CHAIN_STORAGE_BACKEND_TRILLIAN_GRPC\x10\x00\x12'\n" +
	"#ISSUANCE_CHAIN_STORAGE_BACKEND_CTFE\x10\x01\"~\n" +
	"\x0eLogMultiConfig\x123\n" +
	"\bbackends\x18\x01 \x01(\v2\x17.configpb.LogBackendSetR\bbackends\x127\n" +
	"\vlog_configs\x18\x02 \x01(\v2\x16.configpb.LogConfigSetR\n" +
	"logConfigs\"\xa5\x01\n" +
	"\x0eSignedTreeHead\x12\x1b\n" +
	"\ttree_size\x18\x01 \x01(\x03R\btreeSize\x12\x1c\n" +
	"\ttimestamp\x18\x02 \x01(\x03R\ttimestamp\x12(\n" +
	"\x10sha256_root_hash\x18\x03 \x01(\fR\x0esha256RootHash\x12.\n" +
	"\x13tree_head_signature\x18\x04 \x01(\fR\x11treeHeadSignatureBFZDgithub.com/google/certificate-transparency-go/trillian/ctfe/configpbb\x06proto3"

var (
	file_trillian_ctfe_configpb_config_proto_rawDescOnce sync.Once
	file_trillian_ctfe_configpb_config_proto_rawDescData []byte
)

func file_trillian_ctfe_configpb_config_proto_rawDescGZIP() []byte {
	file_trillian_ctfe_configpb_config_proto_rawDescOnce.Do(func() {
		file_trillian_ctfe_configpb_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_trillian_ctfe_configpb_config_proto_rawDesc), len(file_trillian_ctfe_configpb_config_proto_rawDesc)))
	})
	return file_trillian_ctfe_configpb_config_proto_rawDescData
}

var file_trillian_ctfe_configpb_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_trillian_ctfe_configpb_config_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_trillian_ctfe_configpb_config_proto_goTypes = []any{
	(LogConfig_IssuanceChainStorageBackend)(0), // 0: configpb.LogConfig.IssuanceChainStorageBackend
	(*LogBackend)(nil),                         // 1: configpb.LogBackend
	(*LogBackendSet)(nil),                      // 2: configpb.LogBackendSet
	(*LogConfigSet)(nil),                       // 3: configpb.LogConfigSet
	(*LogConfig)(nil),                          // 4: configpb.LogConfig
	(*LogMultiConfig)(nil),                     // 5: configpb.LogMultiConfig
	(*SignedTreeHead)(nil),                     // 6: configpb.SignedTreeHead
	(*anypb.Any)(nil),                          // 7: google.protobuf.Any
	(*keyspb.PublicKey)(nil),                   // 8: keyspb.PublicKey
	(*timestamppb.Timestamp)(nil),              // 9: google.protobuf.Timestamp
}
var file_trillian_ctfe_configpb_config_proto_depIdxs = []int32{
	1,  // 0: configpb.LogBackendSet.backend:type_name -> configpb.LogBackend
	4,  // 1: configpb.LogConfigSet.config:type_name -> configpb.LogConfig
	7,  // 2: configpb.LogConfig.private_key:type_name -> google.protobuf.Any
	8,  // 3: configpb.LogConfig.public_key:type_name -> keyspb.PublicKey
	9,  // 4: configpb.LogConfig.not_after_start:type_name -> google.protobuf.Timestamp
	9,  // 5: configpb.LogConfig.not_after_limit:type_name -> google.protobuf.Timestamp
	6,  // 6: configpb.LogConfig.frozen_sth:type_name -> configpb.SignedTreeHead
	0,  // 7: configpb.LogConfig.extra_data_issuance_chain_storage_backend:type_name -> configpb.LogConfig.IssuanceChainStorageBackend
	2,  // 8: configpb.LogMultiConfig.backends:type_name -> configpb.LogBackendSet
	3,  // 9: configpb.LogMultiConfig.log_configs:type_name -> configpb.LogConfigSet
	10, // [10:10] is the sub-list for method output_type
	10, // [10:10] is the sub-list for method input_type
	10, // [10:10] is the sub-list for extension type_name
	10, // [10:10] is the sub-list for extension extendee
	0,  // [0:10] is the sub-list for field type_name
}

func init() { file_trillian_ctfe_configpb_config_proto_init() }
func file_trillian_ctfe_configpb_config_proto_init() {
	if File_trillian_ctfe_configpb_config_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_trillian_ctfe_configpb_config_proto_rawDesc), len(file_trillian_ctfe_configpb_config_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_trillian_ctfe_configpb_config_proto_goTypes,
		DependencyIndexes: file_trillian_ctfe_configpb_config_proto_depIdxs,
		EnumInfos:         file_trillian_ctfe_configpb_config_proto_enumTypes,
		MessageInfos:      file_trillian_ctfe_configpb_config_proto_msgTypes,
	}.Build()
	File_trillian_ctfe_configpb_config_proto = out.File
	file_trillian_ctfe_configpb_config_proto_goTypes = nil
	file_trillian_ctfe_configpb_config_proto_depIdxs = nil
}
