// Copyright 2026 Google LLC
//
// 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.11
// 	protoc        v6.33.2
// source: google/cloud/dialogflow/v2/sip_trunk.proto

package dialogflowpb

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

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

// The state of Sip Trunk connection.
type Connection_State int32

const (
	// SIP Trunk connection state is Not specified.
	Connection_STATE_UNSPECIFIED Connection_State = 0
	// SIP Trunk connection is connected.
	Connection_CONNECTED Connection_State = 1
	// SIP Trunk connection is disconnected.
	Connection_DISCONNECTED Connection_State = 2
	// SIP Trunk connection has authentication error.
	Connection_AUTHENTICATION_FAILED Connection_State = 3
	// SIP Trunk connection is keepalive.
	Connection_KEEPALIVE Connection_State = 4
)

// Enum value maps for Connection_State.
var (
	Connection_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "CONNECTED",
		2: "DISCONNECTED",
		3: "AUTHENTICATION_FAILED",
		4: "KEEPALIVE",
	}
	Connection_State_value = map[string]int32{
		"STATE_UNSPECIFIED":     0,
		"CONNECTED":             1,
		"DISCONNECTED":          2,
		"AUTHENTICATION_FAILED": 3,
		"KEEPALIVE":             4,
	}
)

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

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

func (Connection_State) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_enumTypes[0].Descriptor()
}

func (Connection_State) Type() protoreflect.EnumType {
	return &file_google_cloud_dialogflow_v2_sip_trunk_proto_enumTypes[0]
}

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

// Deprecated: Use Connection_State.Descriptor instead.
func (Connection_State) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{7, 0}
}

// The state of Sip Trunk certificate authentication.
type Connection_CertificateState int32

const (
	// Certificate state is not specified.
	Connection_CERTIFICATE_STATE_UNSPECIFIED Connection_CertificateState = 0
	// Certificate is valid.
	Connection_CERTIFICATE_VALID Connection_CertificateState = 1
	// Catch all for any error not specified.
	Connection_CERTIFICATE_INVALID Connection_CertificateState = 2
	// Certificate leaf node has expired.
	Connection_CERTIFICATE_EXPIRED Connection_CertificateState = 3
	// There is no hostname defined to authenticate in SipTrunkingServer.
	Connection_CERTIFICATE_HOSTNAME_NOT_FOUND Connection_CertificateState = 4
	// No path found from the leaf certificate to any root.
	Connection_CERTIFICATE_UNAUTHENTICATED Connection_CertificateState = 5
	// Trust store does not exist.
	Connection_CERTIFICATE_TRUST_STORE_NOT_FOUND Connection_CertificateState = 6
	// Hostname has invalid format.
	Connection_CERTIFICATE_HOSTNAME_INVALID_FORMAT Connection_CertificateState = 7
	// Certificate has exhausted its quota.
	Connection_CERTIFICATE_QUOTA_EXCEEDED Connection_CertificateState = 8
)

// Enum value maps for Connection_CertificateState.
var (
	Connection_CertificateState_name = map[int32]string{
		0: "CERTIFICATE_STATE_UNSPECIFIED",
		1: "CERTIFICATE_VALID",
		2: "CERTIFICATE_INVALID",
		3: "CERTIFICATE_EXPIRED",
		4: "CERTIFICATE_HOSTNAME_NOT_FOUND",
		5: "CERTIFICATE_UNAUTHENTICATED",
		6: "CERTIFICATE_TRUST_STORE_NOT_FOUND",
		7: "CERTIFICATE_HOSTNAME_INVALID_FORMAT",
		8: "CERTIFICATE_QUOTA_EXCEEDED",
	}
	Connection_CertificateState_value = map[string]int32{
		"CERTIFICATE_STATE_UNSPECIFIED":       0,
		"CERTIFICATE_VALID":                   1,
		"CERTIFICATE_INVALID":                 2,
		"CERTIFICATE_EXPIRED":                 3,
		"CERTIFICATE_HOSTNAME_NOT_FOUND":      4,
		"CERTIFICATE_UNAUTHENTICATED":         5,
		"CERTIFICATE_TRUST_STORE_NOT_FOUND":   6,
		"CERTIFICATE_HOSTNAME_INVALID_FORMAT": 7,
		"CERTIFICATE_QUOTA_EXCEEDED":          8,
	}
)

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

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

func (Connection_CertificateState) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_enumTypes[1].Descriptor()
}

func (Connection_CertificateState) Type() protoreflect.EnumType {
	return &file_google_cloud_dialogflow_v2_sip_trunk_proto_enumTypes[1]
}

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

// Deprecated: Use Connection_CertificateState.Descriptor instead.
func (Connection_CertificateState) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{7, 1}
}

// The request message for
// [SipTrunks.CreateSipTrunk][google.cloud.dialogflow.v2.SipTrunks.CreateSipTrunk].
type CreateSipTrunkRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The location to create a SIP trunk for.
	// Format: `projects/<Project ID>/locations/<Location ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The SIP trunk to create.
	SipTrunk      *SipTrunk `protobuf:"bytes,2,opt,name=sip_trunk,json=sipTrunk,proto3" json:"sip_trunk,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateSipTrunkRequest) ProtoMessage() {}

func (x *CreateSipTrunkRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_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 CreateSipTrunkRequest.ProtoReflect.Descriptor instead.
func (*CreateSipTrunkRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{0}
}

func (x *CreateSipTrunkRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *CreateSipTrunkRequest) GetSipTrunk() *SipTrunk {
	if x != nil {
		return x.SipTrunk
	}
	return nil
}

// The request message for
// [SipTrunks.DeleteSipTrunk][google.cloud.dialogflow.v2.SipTrunks.DeleteSipTrunk].
type DeleteSipTrunkRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The name of the SIP trunk to delete.
	// Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk
	// ID>`.
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteSipTrunkRequest) ProtoMessage() {}

func (x *DeleteSipTrunkRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_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 DeleteSipTrunkRequest.ProtoReflect.Descriptor instead.
func (*DeleteSipTrunkRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{1}
}

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

// The request message for
// [SipTrunks.ListSipTrunks][google.cloud.dialogflow.v2.SipTrunks.ListSipTrunks].
type ListSipTrunksRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The location to list SIP trunks from.
	// Format: `projects/<Project ID>/locations/<Location ID>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of items to return in a single page. By
	// default 100 and at most 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The next_page_token value returned from a previous list request.
	PageToken     string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListSipTrunksRequest) ProtoMessage() {}

func (x *ListSipTrunksRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_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 ListSipTrunksRequest.ProtoReflect.Descriptor instead.
func (*ListSipTrunksRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{2}
}

func (x *ListSipTrunksRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *ListSipTrunksRequest) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListSipTrunksRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

// The response message for
// [SipTrunks.ListSipTrunks][google.cloud.dialogflow.v2.SipTrunks.ListSipTrunks].
type ListSipTrunksResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The list of SIP trunks.
	SipTrunks []*SipTrunk `protobuf:"bytes,1,rep,name=sip_trunks,json=sipTrunks,proto3" json:"sip_trunks,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no
	// more results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListSipTrunksResponse) ProtoMessage() {}

func (x *ListSipTrunksResponse) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_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 ListSipTrunksResponse.ProtoReflect.Descriptor instead.
func (*ListSipTrunksResponse) Descriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{3}
}

func (x *ListSipTrunksResponse) GetSipTrunks() []*SipTrunk {
	if x != nil {
		return x.SipTrunks
	}
	return nil
}

func (x *ListSipTrunksResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

// The request message for
// [SipTrunks.GetSipTrunk][google.cloud.dialogflow.v2.SipTrunks.GetSipTrunk].
type GetSipTrunkRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The name of the SIP trunk to delete.
	// Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk
	// ID>`.
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetSipTrunkRequest) ProtoMessage() {}

func (x *GetSipTrunkRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_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 GetSipTrunkRequest.ProtoReflect.Descriptor instead.
func (*GetSipTrunkRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{4}
}

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

// The request message for
// [SipTrunks.UpdateSipTrunk][google.cloud.dialogflow.v2.SipTrunks.UpdateSipTrunk].
type UpdateSipTrunkRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The SipTrunk to update.
	SipTrunk *SipTrunk `protobuf:"bytes,1,opt,name=sip_trunk,json=sipTrunk,proto3" json:"sip_trunk,omitempty"`
	// Optional. The mask to control which fields get updated. If the mask is not
	// present, all fields will be updated.
	UpdateMask    *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UpdateSipTrunkRequest) ProtoMessage() {}

func (x *UpdateSipTrunkRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_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 UpdateSipTrunkRequest.ProtoReflect.Descriptor instead.
func (*UpdateSipTrunkRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{5}
}

func (x *UpdateSipTrunkRequest) GetSipTrunk() *SipTrunk {
	if x != nil {
		return x.SipTrunk
	}
	return nil
}

func (x *UpdateSipTrunkRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
	if x != nil {
		return x.UpdateMask
	}
	return nil
}

// SipTrunk is the resource that represents a SIP trunk to connect to Google
// Telephony platform SIP trunking service.
type SipTrunk struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. The unique identifier of the SIP trunk.
	// Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk
	// ID>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The expected hostnames in the peer certificate from partner that
	// is used for TLS authentication.
	ExpectedHostname []string `protobuf:"bytes,2,rep,name=expected_hostname,json=expectedHostname,proto3" json:"expected_hostname,omitempty"`
	// Output only. Connections of the SIP trunk.
	Connections []*Connection `protobuf:"bytes,3,rep,name=connections,proto3" json:"connections,omitempty"`
	// Optional. Human readable alias for this trunk.
	DisplayName   string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SipTrunk) Reset() {
	*x = SipTrunk{}
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*SipTrunk) ProtoMessage() {}

func (x *SipTrunk) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_proto_msgTypes[6]
	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 SipTrunk.ProtoReflect.Descriptor instead.
func (*SipTrunk) Descriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{6}
}

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

func (x *SipTrunk) GetExpectedHostname() []string {
	if x != nil {
		return x.ExpectedHostname
	}
	return nil
}

func (x *SipTrunk) GetConnections() []*Connection {
	if x != nil {
		return x.Connections
	}
	return nil
}

func (x *SipTrunk) GetDisplayName() string {
	if x != nil {
		return x.DisplayName
	}
	return ""
}

// Represents a connection for SIP Trunk.
type Connection struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. The unique identifier of the SIP Trunk connection.
	ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	// Output only. State of the connection.
	State Connection_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.dialogflow.v2.Connection_State" json:"state,omitempty"`
	// Output only. When the connection status changed.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3,oneof" json:"update_time,omitempty"`
	// Output only. The error details for the connection. Only populated when
	// authentication errors occur.
	ErrorDetails  *Connection_ErrorDetails `protobuf:"bytes,4,opt,name=error_details,json=errorDetails,proto3,oneof" json:"error_details,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Connection) Reset() {
	*x = Connection{}
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Connection) ProtoMessage() {}

func (x *Connection) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_proto_msgTypes[7]
	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 Connection.ProtoReflect.Descriptor instead.
func (*Connection) Descriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{7}
}

func (x *Connection) GetConnectionId() string {
	if x != nil {
		return x.ConnectionId
	}
	return ""
}

func (x *Connection) GetState() Connection_State {
	if x != nil {
		return x.State
	}
	return Connection_STATE_UNSPECIFIED
}

func (x *Connection) GetUpdateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdateTime
	}
	return nil
}

func (x *Connection) GetErrorDetails() *Connection_ErrorDetails {
	if x != nil {
		return x.ErrorDetails
	}
	return nil
}

// The error details of Sip Trunk connection authentication.
type Connection_ErrorDetails struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. The status of the certificate authentication.
	CertificateState *Connection_CertificateState `protobuf:"varint,1,opt,name=certificate_state,json=certificateState,proto3,enum=google.cloud.dialogflow.v2.Connection_CertificateState,oneof" json:"certificate_state,omitempty"`
	// The error message provided from SIP trunking auth service
	ErrorMessage  *string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Connection_ErrorDetails) Reset() {
	*x = Connection_ErrorDetails{}
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Connection_ErrorDetails) ProtoMessage() {}

func (x *Connection_ErrorDetails) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_dialogflow_v2_sip_trunk_proto_msgTypes[8]
	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 Connection_ErrorDetails.ProtoReflect.Descriptor instead.
func (*Connection_ErrorDetails) Descriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP(), []int{7, 0}
}

func (x *Connection_ErrorDetails) GetCertificateState() Connection_CertificateState {
	if x != nil && x.CertificateState != nil {
		return *x.CertificateState
	}
	return Connection_CERTIFICATE_STATE_UNSPECIFIED
}

func (x *Connection_ErrorDetails) GetErrorMessage() string {
	if x != nil && x.ErrorMessage != nil {
		return *x.ErrorMessage
	}
	return ""
}

var File_google_cloud_dialogflow_v2_sip_trunk_proto protoreflect.FileDescriptor

const file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDesc = "" +
	"\n" +
	"*google/cloud/dialogflow/v2/sip_trunk.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x01\n" +
	"\x15CreateSipTrunkRequest\x12B\n" +
	"\x06parent\x18\x01 \x01(\tB*\xe0A\x02\xfaA$\x12\"dialogflow.googleapis.com/SipTrunkR\x06parent\x12F\n" +
	"\tsip_trunk\x18\x02 \x01(\v2$.google.cloud.dialogflow.v2.SipTrunkB\x03\xe0A\x02R\bsipTrunk\"W\n" +
	"\x15DeleteSipTrunkRequest\x12>\n" +
	"\x04name\x18\x01 \x01(\tB*\xe0A\x02\xfaA$\n" +
	"\"dialogflow.googleapis.com/SipTrunkR\x04name\"\xa0\x01\n" +
	"\x14ListSipTrunksRequest\x12B\n" +
	"\x06parent\x18\x01 \x01(\tB*\xe0A\x02\xfaA$\x12\"dialogflow.googleapis.com/SipTrunkR\x06parent\x12 \n" +
	"\tpage_size\x18\x02 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
	"\n" +
	"page_token\x18\x03 \x01(\tB\x03\xe0A\x01R\tpageToken\"\x84\x01\n" +
	"\x15ListSipTrunksResponse\x12C\n" +
	"\n" +
	"sip_trunks\x18\x01 \x03(\v2$.google.cloud.dialogflow.v2.SipTrunkR\tsipTrunks\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"T\n" +
	"\x12GetSipTrunkRequest\x12>\n" +
	"\x04name\x18\x01 \x01(\tB*\xe0A\x02\xfaA$\n" +
	"\"dialogflow.googleapis.com/SipTrunkR\x04name\"\xa1\x01\n" +
	"\x15UpdateSipTrunkRequest\x12F\n" +
	"\tsip_trunk\x18\x01 \x01(\v2$.google.cloud.dialogflow.v2.SipTrunkB\x03\xe0A\x02R\bsipTrunk\x12@\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x01R\n" +
	"updateMask\"\xc8\x02\n" +
	"\bSipTrunk\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x120\n" +
	"\x11expected_hostname\x18\x02 \x03(\tB\x03\xe0A\x02R\x10expectedHostname\x12M\n" +
	"\vconnections\x18\x03 \x03(\v2&.google.cloud.dialogflow.v2.ConnectionB\x03\xe0A\x03R\vconnections\x12&\n" +
	"\fdisplay_name\x18\x04 \x01(\tB\x03\xe0A\x01R\vdisplayName:z\xeaAw\n" +
	"\"dialogflow.googleapis.com/SipTrunk\x12<projects/{project}/locations/{location}/sipTrunks/{siptrunk}*\tsipTrunks2\bsipTrunk\"\xc0\a\n" +
	"\n" +
	"Connection\x12(\n" +
	"\rconnection_id\x18\x01 \x01(\tB\x03\xe0A\x03R\fconnectionId\x12G\n" +
	"\x05state\x18\x02 \x01(\x0e2,.google.cloud.dialogflow.v2.Connection.StateB\x03\xe0A\x03R\x05state\x12E\n" +
	"\vupdate_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03H\x00R\n" +
	"updateTime\x88\x01\x01\x12b\n" +
	"\rerror_details\x18\x04 \x01(\v23.google.cloud.dialogflow.v2.Connection.ErrorDetailsB\x03\xe0A\x03H\x01R\ferrorDetails\x88\x01\x01\x1a\xd0\x01\n" +
	"\fErrorDetails\x12n\n" +
	"\x11certificate_state\x18\x01 \x01(\x0e27.google.cloud.dialogflow.v2.Connection.CertificateStateB\x03\xe0A\x03H\x00R\x10certificateState\x88\x01\x01\x12(\n" +
	"\rerror_message\x18\x02 \x01(\tH\x01R\ferrorMessage\x88\x01\x01B\x14\n" +
	"\x12_certificate_stateB\x10\n" +
	"\x0e_error_message\"i\n" +
	"\x05State\x12\x15\n" +
	"\x11STATE_UNSPECIFIED\x10\x00\x12\r\n" +
	"\tCONNECTED\x10\x01\x12\x10\n" +
	"\fDISCONNECTED\x10\x02\x12\x19\n" +
	"\x15AUTHENTICATION_FAILED\x10\x03\x12\r\n" +
	"\tKEEPALIVE\x10\x04\"\xb3\x02\n" +
	"\x10CertificateState\x12!\n" +
	"\x1dCERTIFICATE_STATE_UNSPECIFIED\x10\x00\x12\x15\n" +
	"\x11CERTIFICATE_VALID\x10\x01\x12\x17\n" +
	"\x13CERTIFICATE_INVALID\x10\x02\x12\x17\n" +
	"\x13CERTIFICATE_EXPIRED\x10\x03\x12\"\n" +
	"\x1eCERTIFICATE_HOSTNAME_NOT_FOUND\x10\x04\x12\x1f\n" +
	"\x1bCERTIFICATE_UNAUTHENTICATED\x10\x05\x12%\n" +
	"!CERTIFICATE_TRUST_STORE_NOT_FOUND\x10\x06\x12'\n" +
	"#CERTIFICATE_HOSTNAME_INVALID_FORMAT\x10\a\x12\x1e\n" +
	"\x1aCERTIFICATE_QUOTA_EXCEEDED\x10\bB\x0e\n" +
	"\f_update_timeB\x10\n" +
	"\x0e_error_details2\x8d\b\n" +
	"\tSipTrunks\x12\xbe\x01\n" +
	"\x0eCreateSipTrunk\x121.google.cloud.dialogflow.v2.CreateSipTrunkRequest\x1a$.google.cloud.dialogflow.v2.SipTrunk\"S\xdaA\x10parent,sip_trunk\x82\xd3\xe4\x93\x02::\tsip_trunk\"-/v2/{parent=projects/*/locations/*}/sipTrunks\x12\x99\x01\n" +
	"\x0eDeleteSipTrunk\x121.google.cloud.dialogflow.v2.DeleteSipTrunkRequest\x1a\x16.google.protobuf.Empty\"<\xdaA\x04name\x82\xd3\xe4\x93\x02/*-/v2/{name=projects/*/locations/*/sipTrunks/*}\x12\xb4\x01\n" +
	"\rListSipTrunks\x120.google.cloud.dialogflow.v2.ListSipTrunksRequest\x1a1.google.cloud.dialogflow.v2.ListSipTrunksResponse\">\xdaA\x06parent\x82\xd3\xe4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/sipTrunks\x12\xa1\x01\n" +
	"\vGetSipTrunk\x12..google.cloud.dialogflow.v2.GetSipTrunkRequest\x1a$.google.cloud.dialogflow.v2.SipTrunk\"<\xdaA\x04name\x82\xd3\xe4\x93\x02/\x12-/v2/{name=projects/*/locations/*/sipTrunks/*}\x12\xcd\x01\n" +
	"\x0eUpdateSipTrunk\x121.google.cloud.dialogflow.v2.UpdateSipTrunkRequest\x1a$.google.cloud.dialogflow.v2.SipTrunk\"b\xdaA\x15sip_trunk,update_mask\x82\xd3\xe4\x93\x02D:\tsip_trunk27/v2/{sip_trunk.name=projects/*/locations/*/sipTrunks/*}\x1ax\xcaA\x19dialogflow.googleapis.com\xd2AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x93\x01\n" +
	"\x1ecom.google.cloud.dialogflow.v2B\rSipTrunkProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02DF\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"

var (
	file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescOnce sync.Once
	file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescData []byte
)

func file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescGZIP() []byte {
	file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescOnce.Do(func() {
		file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDesc), len(file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDesc)))
	})
	return file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDescData
}

var file_google_cloud_dialogflow_v2_sip_trunk_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_google_cloud_dialogflow_v2_sip_trunk_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_google_cloud_dialogflow_v2_sip_trunk_proto_goTypes = []any{
	(Connection_State)(0),            // 0: google.cloud.dialogflow.v2.Connection.State
	(Connection_CertificateState)(0), // 1: google.cloud.dialogflow.v2.Connection.CertificateState
	(*CreateSipTrunkRequest)(nil),    // 2: google.cloud.dialogflow.v2.CreateSipTrunkRequest
	(*DeleteSipTrunkRequest)(nil),    // 3: google.cloud.dialogflow.v2.DeleteSipTrunkRequest
	(*ListSipTrunksRequest)(nil),     // 4: google.cloud.dialogflow.v2.ListSipTrunksRequest
	(*ListSipTrunksResponse)(nil),    // 5: google.cloud.dialogflow.v2.ListSipTrunksResponse
	(*GetSipTrunkRequest)(nil),       // 6: google.cloud.dialogflow.v2.GetSipTrunkRequest
	(*UpdateSipTrunkRequest)(nil),    // 7: google.cloud.dialogflow.v2.UpdateSipTrunkRequest
	(*SipTrunk)(nil),                 // 8: google.cloud.dialogflow.v2.SipTrunk
	(*Connection)(nil),               // 9: google.cloud.dialogflow.v2.Connection
	(*Connection_ErrorDetails)(nil),  // 10: google.cloud.dialogflow.v2.Connection.ErrorDetails
	(*fieldmaskpb.FieldMask)(nil),    // 11: google.protobuf.FieldMask
	(*timestamppb.Timestamp)(nil),    // 12: google.protobuf.Timestamp
	(*emptypb.Empty)(nil),            // 13: google.protobuf.Empty
}
var file_google_cloud_dialogflow_v2_sip_trunk_proto_depIdxs = []int32{
	8,  // 0: google.cloud.dialogflow.v2.CreateSipTrunkRequest.sip_trunk:type_name -> google.cloud.dialogflow.v2.SipTrunk
	8,  // 1: google.cloud.dialogflow.v2.ListSipTrunksResponse.sip_trunks:type_name -> google.cloud.dialogflow.v2.SipTrunk
	8,  // 2: google.cloud.dialogflow.v2.UpdateSipTrunkRequest.sip_trunk:type_name -> google.cloud.dialogflow.v2.SipTrunk
	11, // 3: google.cloud.dialogflow.v2.UpdateSipTrunkRequest.update_mask:type_name -> google.protobuf.FieldMask
	9,  // 4: google.cloud.dialogflow.v2.SipTrunk.connections:type_name -> google.cloud.dialogflow.v2.Connection
	0,  // 5: google.cloud.dialogflow.v2.Connection.state:type_name -> google.cloud.dialogflow.v2.Connection.State
	12, // 6: google.cloud.dialogflow.v2.Connection.update_time:type_name -> google.protobuf.Timestamp
	10, // 7: google.cloud.dialogflow.v2.Connection.error_details:type_name -> google.cloud.dialogflow.v2.Connection.ErrorDetails
	1,  // 8: google.cloud.dialogflow.v2.Connection.ErrorDetails.certificate_state:type_name -> google.cloud.dialogflow.v2.Connection.CertificateState
	2,  // 9: google.cloud.dialogflow.v2.SipTrunks.CreateSipTrunk:input_type -> google.cloud.dialogflow.v2.CreateSipTrunkRequest
	3,  // 10: google.cloud.dialogflow.v2.SipTrunks.DeleteSipTrunk:input_type -> google.cloud.dialogflow.v2.DeleteSipTrunkRequest
	4,  // 11: google.cloud.dialogflow.v2.SipTrunks.ListSipTrunks:input_type -> google.cloud.dialogflow.v2.ListSipTrunksRequest
	6,  // 12: google.cloud.dialogflow.v2.SipTrunks.GetSipTrunk:input_type -> google.cloud.dialogflow.v2.GetSipTrunkRequest
	7,  // 13: google.cloud.dialogflow.v2.SipTrunks.UpdateSipTrunk:input_type -> google.cloud.dialogflow.v2.UpdateSipTrunkRequest
	8,  // 14: google.cloud.dialogflow.v2.SipTrunks.CreateSipTrunk:output_type -> google.cloud.dialogflow.v2.SipTrunk
	13, // 15: google.cloud.dialogflow.v2.SipTrunks.DeleteSipTrunk:output_type -> google.protobuf.Empty
	5,  // 16: google.cloud.dialogflow.v2.SipTrunks.ListSipTrunks:output_type -> google.cloud.dialogflow.v2.ListSipTrunksResponse
	8,  // 17: google.cloud.dialogflow.v2.SipTrunks.GetSipTrunk:output_type -> google.cloud.dialogflow.v2.SipTrunk
	8,  // 18: google.cloud.dialogflow.v2.SipTrunks.UpdateSipTrunk:output_type -> google.cloud.dialogflow.v2.SipTrunk
	14, // [14:19] is the sub-list for method output_type
	9,  // [9:14] is the sub-list for method input_type
	9,  // [9:9] is the sub-list for extension type_name
	9,  // [9:9] is the sub-list for extension extendee
	0,  // [0:9] is the sub-list for field type_name
}

func init() { file_google_cloud_dialogflow_v2_sip_trunk_proto_init() }
func file_google_cloud_dialogflow_v2_sip_trunk_proto_init() {
	if File_google_cloud_dialogflow_v2_sip_trunk_proto != nil {
		return
	}
	file_google_cloud_dialogflow_v2_sip_trunk_proto_msgTypes[7].OneofWrappers = []any{}
	file_google_cloud_dialogflow_v2_sip_trunk_proto_msgTypes[8].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDesc), len(file_google_cloud_dialogflow_v2_sip_trunk_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   9,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_google_cloud_dialogflow_v2_sip_trunk_proto_goTypes,
		DependencyIndexes: file_google_cloud_dialogflow_v2_sip_trunk_proto_depIdxs,
		EnumInfos:         file_google_cloud_dialogflow_v2_sip_trunk_proto_enumTypes,
		MessageInfos:      file_google_cloud_dialogflow_v2_sip_trunk_proto_msgTypes,
	}.Build()
	File_google_cloud_dialogflow_v2_sip_trunk_proto = out.File
	file_google_cloud_dialogflow_v2_sip_trunk_proto_goTypes = nil
	file_google_cloud_dialogflow_v2_sip_trunk_proto_depIdxs = nil
}
