...

Source file src/google.golang.org/genproto/googleapis/cloud/sql/v1/cloud_sql_connect.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/sql/v1

     1  // Copyright 2021 Google LLC
     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.26.0
    18  // 	protoc        v3.12.2
    19  // source: google/cloud/sql/v1/cloud_sql_connect.proto
    20  
    21  package sql
    22  
    23  import (
    24  	context "context"
    25  	reflect "reflect"
    26  	sync "sync"
    27  
    28  	_ "google.golang.org/genproto/googleapis/api/annotations"
    29  	grpc "google.golang.org/grpc"
    30  	codes "google.golang.org/grpc/codes"
    31  	status "google.golang.org/grpc/status"
    32  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    33  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    34  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    35  )
    36  
    37  const (
    38  	// Verify that this generated code is sufficiently up-to-date.
    39  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    40  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    41  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    42  )
    43  
    44  // Connect settings retrieval request.
    45  type GetConnectSettingsRequest struct {
    46  	state         protoimpl.MessageState
    47  	sizeCache     protoimpl.SizeCache
    48  	unknownFields protoimpl.UnknownFields
    49  
    50  	// Cloud SQL instance ID. This does not include the project ID.
    51  	Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
    52  	// Project ID of the project that contains the instance.
    53  	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    54  	// Optional. Optional snapshot read timestamp to trade freshness for performance.
    55  	ReadTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
    56  }
    57  
    58  func (x *GetConnectSettingsRequest) Reset() {
    59  	*x = GetConnectSettingsRequest{}
    60  	if protoimpl.UnsafeEnabled {
    61  		mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[0]
    62  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    63  		ms.StoreMessageInfo(mi)
    64  	}
    65  }
    66  
    67  func (x *GetConnectSettingsRequest) String() string {
    68  	return protoimpl.X.MessageStringOf(x)
    69  }
    70  
    71  func (*GetConnectSettingsRequest) ProtoMessage() {}
    72  
    73  func (x *GetConnectSettingsRequest) ProtoReflect() protoreflect.Message {
    74  	mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[0]
    75  	if protoimpl.UnsafeEnabled && x != nil {
    76  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    77  		if ms.LoadMessageInfo() == nil {
    78  			ms.StoreMessageInfo(mi)
    79  		}
    80  		return ms
    81  	}
    82  	return mi.MessageOf(x)
    83  }
    84  
    85  // Deprecated: Use GetConnectSettingsRequest.ProtoReflect.Descriptor instead.
    86  func (*GetConnectSettingsRequest) Descriptor() ([]byte, []int) {
    87  	return file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescGZIP(), []int{0}
    88  }
    89  
    90  func (x *GetConnectSettingsRequest) GetInstance() string {
    91  	if x != nil {
    92  		return x.Instance
    93  	}
    94  	return ""
    95  }
    96  
    97  func (x *GetConnectSettingsRequest) GetProject() string {
    98  	if x != nil {
    99  		return x.Project
   100  	}
   101  	return ""
   102  }
   103  
   104  func (x *GetConnectSettingsRequest) GetReadTime() *timestamppb.Timestamp {
   105  	if x != nil {
   106  		return x.ReadTime
   107  	}
   108  	return nil
   109  }
   110  
   111  // Connect settings retrieval response.
   112  type ConnectSettings struct {
   113  	state         protoimpl.MessageState
   114  	sizeCache     protoimpl.SizeCache
   115  	unknownFields protoimpl.UnknownFields
   116  
   117  	// This is always `sql#connectSettings`.
   118  	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
   119  	// SSL configuration.
   120  	ServerCaCert *SslCert `protobuf:"bytes,2,opt,name=server_ca_cert,json=serverCaCert,proto3" json:"server_ca_cert,omitempty"`
   121  	// The assigned IP addresses for the instance.
   122  	IpAddresses []*IpMapping `protobuf:"bytes,3,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"`
   123  	// The cloud region for the instance. e.g. **us-central1**, **europe-west1**.
   124  	// The region cannot be changed after instance creation.
   125  	Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
   126  	// The database engine type and version. The **databaseVersion**
   127  	// field cannot be changed after instance creation.
   128  	//   MySQL instances: **MYSQL_8_0**, **MYSQL_5_7** (default),
   129  	// or **MYSQL_5_6**.
   130  	//   PostgreSQL instances: **POSTGRES_9_6**, **POSTGRES_10**,
   131  	// **POSTGRES_11** or **POSTGRES_12** (default).
   132  	//   SQL Server instances: **SQLSERVER_2017_STANDARD** (default),
   133  	// **SQLSERVER_2017_ENTERPRISE**, **SQLSERVER_2017_EXPRESS**, or
   134  	// **SQLSERVER_2017_WEB**.
   135  	DatabaseVersion SqlDatabaseVersion `protobuf:"varint,31,opt,name=database_version,json=databaseVersion,proto3,enum=google.cloud.sql.v1.SqlDatabaseVersion" json:"database_version,omitempty"`
   136  	// **SECOND_GEN**: Cloud SQL database instance.
   137  	// **EXTERNAL**: A database server that is not managed by Google.
   138  	// This property is read-only; use the **tier** property in the **settings**
   139  	// object to determine the database type.
   140  	BackendType SqlBackendType `protobuf:"varint,32,opt,name=backend_type,json=backendType,proto3,enum=google.cloud.sql.v1.SqlBackendType" json:"backend_type,omitempty"`
   141  }
   142  
   143  func (x *ConnectSettings) Reset() {
   144  	*x = ConnectSettings{}
   145  	if protoimpl.UnsafeEnabled {
   146  		mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[1]
   147  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   148  		ms.StoreMessageInfo(mi)
   149  	}
   150  }
   151  
   152  func (x *ConnectSettings) String() string {
   153  	return protoimpl.X.MessageStringOf(x)
   154  }
   155  
   156  func (*ConnectSettings) ProtoMessage() {}
   157  
   158  func (x *ConnectSettings) ProtoReflect() protoreflect.Message {
   159  	mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[1]
   160  	if protoimpl.UnsafeEnabled && x != nil {
   161  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   162  		if ms.LoadMessageInfo() == nil {
   163  			ms.StoreMessageInfo(mi)
   164  		}
   165  		return ms
   166  	}
   167  	return mi.MessageOf(x)
   168  }
   169  
   170  // Deprecated: Use ConnectSettings.ProtoReflect.Descriptor instead.
   171  func (*ConnectSettings) Descriptor() ([]byte, []int) {
   172  	return file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescGZIP(), []int{1}
   173  }
   174  
   175  func (x *ConnectSettings) GetKind() string {
   176  	if x != nil {
   177  		return x.Kind
   178  	}
   179  	return ""
   180  }
   181  
   182  func (x *ConnectSettings) GetServerCaCert() *SslCert {
   183  	if x != nil {
   184  		return x.ServerCaCert
   185  	}
   186  	return nil
   187  }
   188  
   189  func (x *ConnectSettings) GetIpAddresses() []*IpMapping {
   190  	if x != nil {
   191  		return x.IpAddresses
   192  	}
   193  	return nil
   194  }
   195  
   196  func (x *ConnectSettings) GetRegion() string {
   197  	if x != nil {
   198  		return x.Region
   199  	}
   200  	return ""
   201  }
   202  
   203  func (x *ConnectSettings) GetDatabaseVersion() SqlDatabaseVersion {
   204  	if x != nil {
   205  		return x.DatabaseVersion
   206  	}
   207  	return SqlDatabaseVersion_SQL_DATABASE_VERSION_UNSPECIFIED
   208  }
   209  
   210  func (x *ConnectSettings) GetBackendType() SqlBackendType {
   211  	if x != nil {
   212  		return x.BackendType
   213  	}
   214  	return SqlBackendType_SQL_BACKEND_TYPE_UNSPECIFIED
   215  }
   216  
   217  // Ephemeral certificate creation request.
   218  type GenerateEphemeralCertRequest struct {
   219  	state         protoimpl.MessageState
   220  	sizeCache     protoimpl.SizeCache
   221  	unknownFields protoimpl.UnknownFields
   222  
   223  	// Cloud SQL instance ID. This does not include the project ID.
   224  	Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
   225  	// Project ID of the project that contains the instance.
   226  	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
   227  	// PEM encoded public key to include in the signed certificate.
   228  	PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
   229  	// Optional. Access token to include in the signed certificate.
   230  	AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
   231  	// Optional. Optional snapshot read timestamp to trade freshness for performance.
   232  	ReadTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
   233  }
   234  
   235  func (x *GenerateEphemeralCertRequest) Reset() {
   236  	*x = GenerateEphemeralCertRequest{}
   237  	if protoimpl.UnsafeEnabled {
   238  		mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[2]
   239  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   240  		ms.StoreMessageInfo(mi)
   241  	}
   242  }
   243  
   244  func (x *GenerateEphemeralCertRequest) String() string {
   245  	return protoimpl.X.MessageStringOf(x)
   246  }
   247  
   248  func (*GenerateEphemeralCertRequest) ProtoMessage() {}
   249  
   250  func (x *GenerateEphemeralCertRequest) ProtoReflect() protoreflect.Message {
   251  	mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[2]
   252  	if protoimpl.UnsafeEnabled && x != nil {
   253  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   254  		if ms.LoadMessageInfo() == nil {
   255  			ms.StoreMessageInfo(mi)
   256  		}
   257  		return ms
   258  	}
   259  	return mi.MessageOf(x)
   260  }
   261  
   262  // Deprecated: Use GenerateEphemeralCertRequest.ProtoReflect.Descriptor instead.
   263  func (*GenerateEphemeralCertRequest) Descriptor() ([]byte, []int) {
   264  	return file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescGZIP(), []int{2}
   265  }
   266  
   267  func (x *GenerateEphemeralCertRequest) GetInstance() string {
   268  	if x != nil {
   269  		return x.Instance
   270  	}
   271  	return ""
   272  }
   273  
   274  func (x *GenerateEphemeralCertRequest) GetProject() string {
   275  	if x != nil {
   276  		return x.Project
   277  	}
   278  	return ""
   279  }
   280  
   281  func (x *GenerateEphemeralCertRequest) GetPublicKey() string {
   282  	if x != nil {
   283  		return x.PublicKey
   284  	}
   285  	return ""
   286  }
   287  
   288  func (x *GenerateEphemeralCertRequest) GetAccessToken() string {
   289  	if x != nil {
   290  		return x.AccessToken
   291  	}
   292  	return ""
   293  }
   294  
   295  func (x *GenerateEphemeralCertRequest) GetReadTime() *timestamppb.Timestamp {
   296  	if x != nil {
   297  		return x.ReadTime
   298  	}
   299  	return nil
   300  }
   301  
   302  // Ephemeral certificate creation request.
   303  type GenerateEphemeralCertResponse struct {
   304  	state         protoimpl.MessageState
   305  	sizeCache     protoimpl.SizeCache
   306  	unknownFields protoimpl.UnknownFields
   307  
   308  	// Generated cert
   309  	EphemeralCert *SslCert `protobuf:"bytes,1,opt,name=ephemeral_cert,json=ephemeralCert,proto3" json:"ephemeral_cert,omitempty"`
   310  }
   311  
   312  func (x *GenerateEphemeralCertResponse) Reset() {
   313  	*x = GenerateEphemeralCertResponse{}
   314  	if protoimpl.UnsafeEnabled {
   315  		mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[3]
   316  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   317  		ms.StoreMessageInfo(mi)
   318  	}
   319  }
   320  
   321  func (x *GenerateEphemeralCertResponse) String() string {
   322  	return protoimpl.X.MessageStringOf(x)
   323  }
   324  
   325  func (*GenerateEphemeralCertResponse) ProtoMessage() {}
   326  
   327  func (x *GenerateEphemeralCertResponse) ProtoReflect() protoreflect.Message {
   328  	mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[3]
   329  	if protoimpl.UnsafeEnabled && x != nil {
   330  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   331  		if ms.LoadMessageInfo() == nil {
   332  			ms.StoreMessageInfo(mi)
   333  		}
   334  		return ms
   335  	}
   336  	return mi.MessageOf(x)
   337  }
   338  
   339  // Deprecated: Use GenerateEphemeralCertResponse.ProtoReflect.Descriptor instead.
   340  func (*GenerateEphemeralCertResponse) Descriptor() ([]byte, []int) {
   341  	return file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescGZIP(), []int{3}
   342  }
   343  
   344  func (x *GenerateEphemeralCertResponse) GetEphemeralCert() *SslCert {
   345  	if x != nil {
   346  		return x.EphemeralCert
   347  	}
   348  	return nil
   349  }
   350  
   351  var File_google_cloud_sql_v1_cloud_sql_connect_proto protoreflect.FileDescriptor
   352  
   353  var file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDesc = []byte{
   354  	0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
   355  	0x71, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73, 0x71, 0x6c, 0x5f,
   356  	0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67,
   357  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e,
   358  	0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
   359  	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   360  	0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
   361  	0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   362  	0x6f, 0x1a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
   363  	0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73, 0x71, 0x6c,
   364  	0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   365  	0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   366  	0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   367  	0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c,
   368  	0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x01, 0x0a, 0x19, 0x47,
   369  	0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
   370  	0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74,
   371  	0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74,
   372  	0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18,
   373  	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3c,
   374  	0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
   375  	0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   376  	0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0,
   377  	0x41, 0x01, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xe0, 0x02, 0x0a,
   378  	0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
   379  	0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
   380  	0x6b, 0x69, 0x6e, 0x64, 0x12, 0x42, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63,
   381  	0x61, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67,
   382  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e,
   383  	0x76, 0x31, 0x2e, 0x53, 0x73, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x76,
   384  	0x65, 0x72, 0x43, 0x61, 0x43, 0x65, 0x72, 0x74, 0x12, 0x41, 0x0a, 0x0c, 0x69, 0x70, 0x5f, 0x61,
   385  	0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e,
   386  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71,
   387  	0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x70, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0b,
   388  	0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72,
   389  	0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67,
   390  	0x69, 0x6f, 0x6e, 0x12, 0x52, 0x0a, 0x10, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,
   391  	0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e,
   392  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c,
   393  	0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x56,
   394  	0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
   395  	0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0c, 0x62, 0x61, 0x63, 0x6b, 0x65,
   396  	0x6e, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x20, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e,
   397  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c,
   398  	0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x54, 0x79,
   399  	0x70, 0x65, 0x52, 0x0b, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x22,
   400  	0xd9, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65,
   401  	0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   402  	0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
   403  	0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07,
   404  	0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70,
   405  	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
   406  	0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c,
   407  	0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f,
   408  	0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,
   409  	0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x3c, 0x0a,
   410  	0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
   411  	0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   412  	0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41,
   413  	0x01, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x64, 0x0a, 0x1d, 0x47,
   414  	0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c,
   415  	0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0e,
   416  	0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x01,
   417  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
   418  	0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x73, 0x6c, 0x43, 0x65,
   419  	0x72, 0x74, 0x52, 0x0d, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43, 0x65, 0x72,
   420  	0x74, 0x32, 0x92, 0x04, 0x0a, 0x11, 0x53, 0x71, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,
   421  	0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xaf, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43,
   422  	0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2e,
   423  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71,
   424  	0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53,
   425  	0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24,
   426  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71,
   427  	0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53, 0x65, 0x74, 0x74,
   428  	0x69, 0x6e, 0x67, 0x73, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x76,
   429  	0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a,
   430  	0x65, 0x63, 0x74, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b,
   431  	0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
   432  	0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0xcc, 0x01, 0x0a, 0x15, 0x47, 0x65,
   433  	0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43,
   434  	0x65, 0x72, 0x74, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
   435  	0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61,
   436  	0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x52,
   437  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   438  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e,
   439  	0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43, 0x65,
   440  	0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 0x93,
   441  	0x02, 0x46, 0x22, 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
   442  	0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61,
   443  	0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x3a,
   444  	0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61,
   445  	0x6c, 0x43, 0x65, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0x1a, 0x7c, 0xca, 0x41, 0x17, 0x73, 0x71, 0x6c,
   446  	0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
   447  	0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77,
   448  	0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
   449  	0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61,
   450  	0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77,
   451  	0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
   452  	0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x71, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
   453  	0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x69, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
   454  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76,
   455  	0x31, 0x42, 0x14, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x53, 0x71, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65,
   456  	0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   457  	0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
   458  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
   459  	0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x71,
   460  	0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   461  }
   462  
   463  var (
   464  	file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescOnce sync.Once
   465  	file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescData = file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDesc
   466  )
   467  
   468  func file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescGZIP() []byte {
   469  	file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescOnce.Do(func() {
   470  		file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescData)
   471  	})
   472  	return file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescData
   473  }
   474  
   475  var file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   476  var file_google_cloud_sql_v1_cloud_sql_connect_proto_goTypes = []interface{}{
   477  	(*GetConnectSettingsRequest)(nil),     // 0: google.cloud.sql.v1.GetConnectSettingsRequest
   478  	(*ConnectSettings)(nil),               // 1: google.cloud.sql.v1.ConnectSettings
   479  	(*GenerateEphemeralCertRequest)(nil),  // 2: google.cloud.sql.v1.GenerateEphemeralCertRequest
   480  	(*GenerateEphemeralCertResponse)(nil), // 3: google.cloud.sql.v1.GenerateEphemeralCertResponse
   481  	(*timestamppb.Timestamp)(nil),         // 4: google.protobuf.Timestamp
   482  	(*SslCert)(nil),                       // 5: google.cloud.sql.v1.SslCert
   483  	(*IpMapping)(nil),                     // 6: google.cloud.sql.v1.IpMapping
   484  	(SqlDatabaseVersion)(0),               // 7: google.cloud.sql.v1.SqlDatabaseVersion
   485  	(SqlBackendType)(0),                   // 8: google.cloud.sql.v1.SqlBackendType
   486  }
   487  var file_google_cloud_sql_v1_cloud_sql_connect_proto_depIdxs = []int32{
   488  	4, // 0: google.cloud.sql.v1.GetConnectSettingsRequest.read_time:type_name -> google.protobuf.Timestamp
   489  	5, // 1: google.cloud.sql.v1.ConnectSettings.server_ca_cert:type_name -> google.cloud.sql.v1.SslCert
   490  	6, // 2: google.cloud.sql.v1.ConnectSettings.ip_addresses:type_name -> google.cloud.sql.v1.IpMapping
   491  	7, // 3: google.cloud.sql.v1.ConnectSettings.database_version:type_name -> google.cloud.sql.v1.SqlDatabaseVersion
   492  	8, // 4: google.cloud.sql.v1.ConnectSettings.backend_type:type_name -> google.cloud.sql.v1.SqlBackendType
   493  	4, // 5: google.cloud.sql.v1.GenerateEphemeralCertRequest.read_time:type_name -> google.protobuf.Timestamp
   494  	5, // 6: google.cloud.sql.v1.GenerateEphemeralCertResponse.ephemeral_cert:type_name -> google.cloud.sql.v1.SslCert
   495  	0, // 7: google.cloud.sql.v1.SqlConnectService.GetConnectSettings:input_type -> google.cloud.sql.v1.GetConnectSettingsRequest
   496  	2, // 8: google.cloud.sql.v1.SqlConnectService.GenerateEphemeralCert:input_type -> google.cloud.sql.v1.GenerateEphemeralCertRequest
   497  	1, // 9: google.cloud.sql.v1.SqlConnectService.GetConnectSettings:output_type -> google.cloud.sql.v1.ConnectSettings
   498  	3, // 10: google.cloud.sql.v1.SqlConnectService.GenerateEphemeralCert:output_type -> google.cloud.sql.v1.GenerateEphemeralCertResponse
   499  	9, // [9:11] is the sub-list for method output_type
   500  	7, // [7:9] is the sub-list for method input_type
   501  	7, // [7:7] is the sub-list for extension type_name
   502  	7, // [7:7] is the sub-list for extension extendee
   503  	0, // [0:7] is the sub-list for field type_name
   504  }
   505  
   506  func init() { file_google_cloud_sql_v1_cloud_sql_connect_proto_init() }
   507  func file_google_cloud_sql_v1_cloud_sql_connect_proto_init() {
   508  	if File_google_cloud_sql_v1_cloud_sql_connect_proto != nil {
   509  		return
   510  	}
   511  	file_google_cloud_sql_v1_cloud_sql_resources_proto_init()
   512  	if !protoimpl.UnsafeEnabled {
   513  		file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   514  			switch v := v.(*GetConnectSettingsRequest); i {
   515  			case 0:
   516  				return &v.state
   517  			case 1:
   518  				return &v.sizeCache
   519  			case 2:
   520  				return &v.unknownFields
   521  			default:
   522  				return nil
   523  			}
   524  		}
   525  		file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   526  			switch v := v.(*ConnectSettings); i {
   527  			case 0:
   528  				return &v.state
   529  			case 1:
   530  				return &v.sizeCache
   531  			case 2:
   532  				return &v.unknownFields
   533  			default:
   534  				return nil
   535  			}
   536  		}
   537  		file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   538  			switch v := v.(*GenerateEphemeralCertRequest); i {
   539  			case 0:
   540  				return &v.state
   541  			case 1:
   542  				return &v.sizeCache
   543  			case 2:
   544  				return &v.unknownFields
   545  			default:
   546  				return nil
   547  			}
   548  		}
   549  		file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   550  			switch v := v.(*GenerateEphemeralCertResponse); i {
   551  			case 0:
   552  				return &v.state
   553  			case 1:
   554  				return &v.sizeCache
   555  			case 2:
   556  				return &v.unknownFields
   557  			default:
   558  				return nil
   559  			}
   560  		}
   561  	}
   562  	type x struct{}
   563  	out := protoimpl.TypeBuilder{
   564  		File: protoimpl.DescBuilder{
   565  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   566  			RawDescriptor: file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDesc,
   567  			NumEnums:      0,
   568  			NumMessages:   4,
   569  			NumExtensions: 0,
   570  			NumServices:   1,
   571  		},
   572  		GoTypes:           file_google_cloud_sql_v1_cloud_sql_connect_proto_goTypes,
   573  		DependencyIndexes: file_google_cloud_sql_v1_cloud_sql_connect_proto_depIdxs,
   574  		MessageInfos:      file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes,
   575  	}.Build()
   576  	File_google_cloud_sql_v1_cloud_sql_connect_proto = out.File
   577  	file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDesc = nil
   578  	file_google_cloud_sql_v1_cloud_sql_connect_proto_goTypes = nil
   579  	file_google_cloud_sql_v1_cloud_sql_connect_proto_depIdxs = nil
   580  }
   581  
   582  // Reference imports to suppress errors if they are not otherwise used.
   583  var _ context.Context
   584  var _ grpc.ClientConnInterface
   585  
   586  // This is a compile-time assertion to ensure that this generated file
   587  // is compatible with the grpc package it is being compiled against.
   588  const _ = grpc.SupportPackageIsVersion6
   589  
   590  // SqlConnectServiceClient is the client API for SqlConnectService service.
   591  //
   592  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   593  type SqlConnectServiceClient interface {
   594  	// Retrieves connect settings about a Cloud SQL instance.
   595  	GetConnectSettings(ctx context.Context, in *GetConnectSettingsRequest, opts ...grpc.CallOption) (*ConnectSettings, error)
   596  	// Generates a short-lived X509 certificate containing the provided public key
   597  	// and signed by a private key specific to the target instance. Users may use
   598  	// the certificate to authenticate as themselves when connecting to the
   599  	// database.
   600  	GenerateEphemeralCert(ctx context.Context, in *GenerateEphemeralCertRequest, opts ...grpc.CallOption) (*GenerateEphemeralCertResponse, error)
   601  }
   602  
   603  type sqlConnectServiceClient struct {
   604  	cc grpc.ClientConnInterface
   605  }
   606  
   607  func NewSqlConnectServiceClient(cc grpc.ClientConnInterface) SqlConnectServiceClient {
   608  	return &sqlConnectServiceClient{cc}
   609  }
   610  
   611  func (c *sqlConnectServiceClient) GetConnectSettings(ctx context.Context, in *GetConnectSettingsRequest, opts ...grpc.CallOption) (*ConnectSettings, error) {
   612  	out := new(ConnectSettings)
   613  	err := c.cc.Invoke(ctx, "/google.cloud.sql.v1.SqlConnectService/GetConnectSettings", in, out, opts...)
   614  	if err != nil {
   615  		return nil, err
   616  	}
   617  	return out, nil
   618  }
   619  
   620  func (c *sqlConnectServiceClient) GenerateEphemeralCert(ctx context.Context, in *GenerateEphemeralCertRequest, opts ...grpc.CallOption) (*GenerateEphemeralCertResponse, error) {
   621  	out := new(GenerateEphemeralCertResponse)
   622  	err := c.cc.Invoke(ctx, "/google.cloud.sql.v1.SqlConnectService/GenerateEphemeralCert", in, out, opts...)
   623  	if err != nil {
   624  		return nil, err
   625  	}
   626  	return out, nil
   627  }
   628  
   629  // SqlConnectServiceServer is the server API for SqlConnectService service.
   630  type SqlConnectServiceServer interface {
   631  	// Retrieves connect settings about a Cloud SQL instance.
   632  	GetConnectSettings(context.Context, *GetConnectSettingsRequest) (*ConnectSettings, error)
   633  	// Generates a short-lived X509 certificate containing the provided public key
   634  	// and signed by a private key specific to the target instance. Users may use
   635  	// the certificate to authenticate as themselves when connecting to the
   636  	// database.
   637  	GenerateEphemeralCert(context.Context, *GenerateEphemeralCertRequest) (*GenerateEphemeralCertResponse, error)
   638  }
   639  
   640  // UnimplementedSqlConnectServiceServer can be embedded to have forward compatible implementations.
   641  type UnimplementedSqlConnectServiceServer struct {
   642  }
   643  
   644  func (*UnimplementedSqlConnectServiceServer) GetConnectSettings(context.Context, *GetConnectSettingsRequest) (*ConnectSettings, error) {
   645  	return nil, status.Errorf(codes.Unimplemented, "method GetConnectSettings not implemented")
   646  }
   647  func (*UnimplementedSqlConnectServiceServer) GenerateEphemeralCert(context.Context, *GenerateEphemeralCertRequest) (*GenerateEphemeralCertResponse, error) {
   648  	return nil, status.Errorf(codes.Unimplemented, "method GenerateEphemeralCert not implemented")
   649  }
   650  
   651  func RegisterSqlConnectServiceServer(s *grpc.Server, srv SqlConnectServiceServer) {
   652  	s.RegisterService(&_SqlConnectService_serviceDesc, srv)
   653  }
   654  
   655  func _SqlConnectService_GetConnectSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   656  	in := new(GetConnectSettingsRequest)
   657  	if err := dec(in); err != nil {
   658  		return nil, err
   659  	}
   660  	if interceptor == nil {
   661  		return srv.(SqlConnectServiceServer).GetConnectSettings(ctx, in)
   662  	}
   663  	info := &grpc.UnaryServerInfo{
   664  		Server:     srv,
   665  		FullMethod: "/google.cloud.sql.v1.SqlConnectService/GetConnectSettings",
   666  	}
   667  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   668  		return srv.(SqlConnectServiceServer).GetConnectSettings(ctx, req.(*GetConnectSettingsRequest))
   669  	}
   670  	return interceptor(ctx, in, info, handler)
   671  }
   672  
   673  func _SqlConnectService_GenerateEphemeralCert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   674  	in := new(GenerateEphemeralCertRequest)
   675  	if err := dec(in); err != nil {
   676  		return nil, err
   677  	}
   678  	if interceptor == nil {
   679  		return srv.(SqlConnectServiceServer).GenerateEphemeralCert(ctx, in)
   680  	}
   681  	info := &grpc.UnaryServerInfo{
   682  		Server:     srv,
   683  		FullMethod: "/google.cloud.sql.v1.SqlConnectService/GenerateEphemeralCert",
   684  	}
   685  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   686  		return srv.(SqlConnectServiceServer).GenerateEphemeralCert(ctx, req.(*GenerateEphemeralCertRequest))
   687  	}
   688  	return interceptor(ctx, in, info, handler)
   689  }
   690  
   691  var _SqlConnectService_serviceDesc = grpc.ServiceDesc{
   692  	ServiceName: "google.cloud.sql.v1.SqlConnectService",
   693  	HandlerType: (*SqlConnectServiceServer)(nil),
   694  	Methods: []grpc.MethodDesc{
   695  		{
   696  			MethodName: "GetConnectSettings",
   697  			Handler:    _SqlConnectService_GetConnectSettings_Handler,
   698  		},
   699  		{
   700  			MethodName: "GenerateEphemeralCert",
   701  			Handler:    _SqlConnectService_GenerateEphemeralCert_Handler,
   702  		},
   703  	},
   704  	Streams:  []grpc.StreamDesc{},
   705  	Metadata: "google/cloud/sql/v1/cloud_sql_connect.proto",
   706  }
   707  

View as plain text