...

Source file src/google.golang.org/genproto/googleapis/cloud/sql/v1beta4/cloud_sql_tiers.pb.go

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

     1  // Copyright 2022 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/v1beta4/cloud_sql_tiers.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  )
    35  
    36  const (
    37  	// Verify that this generated code is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    39  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    40  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    41  )
    42  
    43  type SqlTiersListRequest struct {
    44  	state         protoimpl.MessageState
    45  	sizeCache     protoimpl.SizeCache
    46  	unknownFields protoimpl.UnknownFields
    47  
    48  	// Project ID of the project for which to list tiers.
    49  	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
    50  }
    51  
    52  func (x *SqlTiersListRequest) Reset() {
    53  	*x = SqlTiersListRequest{}
    54  	if protoimpl.UnsafeEnabled {
    55  		mi := &file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes[0]
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		ms.StoreMessageInfo(mi)
    58  	}
    59  }
    60  
    61  func (x *SqlTiersListRequest) String() string {
    62  	return protoimpl.X.MessageStringOf(x)
    63  }
    64  
    65  func (*SqlTiersListRequest) ProtoMessage() {}
    66  
    67  func (x *SqlTiersListRequest) ProtoReflect() protoreflect.Message {
    68  	mi := &file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes[0]
    69  	if protoimpl.UnsafeEnabled && x != nil {
    70  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    71  		if ms.LoadMessageInfo() == nil {
    72  			ms.StoreMessageInfo(mi)
    73  		}
    74  		return ms
    75  	}
    76  	return mi.MessageOf(x)
    77  }
    78  
    79  // Deprecated: Use SqlTiersListRequest.ProtoReflect.Descriptor instead.
    80  func (*SqlTiersListRequest) Descriptor() ([]byte, []int) {
    81  	return file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDescGZIP(), []int{0}
    82  }
    83  
    84  func (x *SqlTiersListRequest) GetProject() string {
    85  	if x != nil {
    86  		return x.Project
    87  	}
    88  	return ""
    89  }
    90  
    91  // Tiers list response.
    92  type TiersListResponse struct {
    93  	state         protoimpl.MessageState
    94  	sizeCache     protoimpl.SizeCache
    95  	unknownFields protoimpl.UnknownFields
    96  
    97  	// This is always `sql#tiersList`.
    98  	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
    99  	// List of tiers.
   100  	Items []*Tier `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
   101  }
   102  
   103  func (x *TiersListResponse) Reset() {
   104  	*x = TiersListResponse{}
   105  	if protoimpl.UnsafeEnabled {
   106  		mi := &file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes[1]
   107  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   108  		ms.StoreMessageInfo(mi)
   109  	}
   110  }
   111  
   112  func (x *TiersListResponse) String() string {
   113  	return protoimpl.X.MessageStringOf(x)
   114  }
   115  
   116  func (*TiersListResponse) ProtoMessage() {}
   117  
   118  func (x *TiersListResponse) ProtoReflect() protoreflect.Message {
   119  	mi := &file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes[1]
   120  	if protoimpl.UnsafeEnabled && x != nil {
   121  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   122  		if ms.LoadMessageInfo() == nil {
   123  			ms.StoreMessageInfo(mi)
   124  		}
   125  		return ms
   126  	}
   127  	return mi.MessageOf(x)
   128  }
   129  
   130  // Deprecated: Use TiersListResponse.ProtoReflect.Descriptor instead.
   131  func (*TiersListResponse) Descriptor() ([]byte, []int) {
   132  	return file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDescGZIP(), []int{1}
   133  }
   134  
   135  func (x *TiersListResponse) GetKind() string {
   136  	if x != nil {
   137  		return x.Kind
   138  	}
   139  	return ""
   140  }
   141  
   142  func (x *TiersListResponse) GetItems() []*Tier {
   143  	if x != nil {
   144  		return x.Items
   145  	}
   146  	return nil
   147  }
   148  
   149  // A Google Cloud SQL service tier resource.
   150  type Tier struct {
   151  	state         protoimpl.MessageState
   152  	sizeCache     protoimpl.SizeCache
   153  	unknownFields protoimpl.UnknownFields
   154  
   155  	// An identifier for the machine type, for example, `db-custom-1-3840`. For
   156  	// related information, see [Pricing](/sql/pricing).
   157  	Tier string `protobuf:"bytes,1,opt,name=tier,proto3" json:"tier,omitempty"`
   158  	// The maximum RAM usage of this tier in bytes.
   159  	RAM int64 `protobuf:"varint,2,opt,name=RAM,proto3" json:"RAM,omitempty"`
   160  	// This is always `sql#tier`.
   161  	Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
   162  	// The maximum disk size of this tier in bytes.
   163  	Disk_Quota int64 `protobuf:"varint,4,opt,name=Disk_Quota,json=DiskQuota,proto3" json:"Disk_Quota,omitempty"`
   164  	// The applicable regions for this tier.
   165  	Region []string `protobuf:"bytes,5,rep,name=region,proto3" json:"region,omitempty"`
   166  }
   167  
   168  func (x *Tier) Reset() {
   169  	*x = Tier{}
   170  	if protoimpl.UnsafeEnabled {
   171  		mi := &file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes[2]
   172  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   173  		ms.StoreMessageInfo(mi)
   174  	}
   175  }
   176  
   177  func (x *Tier) String() string {
   178  	return protoimpl.X.MessageStringOf(x)
   179  }
   180  
   181  func (*Tier) ProtoMessage() {}
   182  
   183  func (x *Tier) ProtoReflect() protoreflect.Message {
   184  	mi := &file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes[2]
   185  	if protoimpl.UnsafeEnabled && x != nil {
   186  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   187  		if ms.LoadMessageInfo() == nil {
   188  			ms.StoreMessageInfo(mi)
   189  		}
   190  		return ms
   191  	}
   192  	return mi.MessageOf(x)
   193  }
   194  
   195  // Deprecated: Use Tier.ProtoReflect.Descriptor instead.
   196  func (*Tier) Descriptor() ([]byte, []int) {
   197  	return file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDescGZIP(), []int{2}
   198  }
   199  
   200  func (x *Tier) GetTier() string {
   201  	if x != nil {
   202  		return x.Tier
   203  	}
   204  	return ""
   205  }
   206  
   207  func (x *Tier) GetRAM() int64 {
   208  	if x != nil {
   209  		return x.RAM
   210  	}
   211  	return 0
   212  }
   213  
   214  func (x *Tier) GetKind() string {
   215  	if x != nil {
   216  		return x.Kind
   217  	}
   218  	return ""
   219  }
   220  
   221  func (x *Tier) GetDisk_Quota() int64 {
   222  	if x != nil {
   223  		return x.Disk_Quota
   224  	}
   225  	return 0
   226  }
   227  
   228  func (x *Tier) GetRegion() []string {
   229  	if x != nil {
   230  		return x.Region
   231  	}
   232  	return nil
   233  }
   234  
   235  var File_google_cloud_sql_v1beta4_cloud_sql_tiers_proto protoreflect.FileDescriptor
   236  
   237  var file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDesc = []byte{
   238  	0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
   239  	0x71, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
   240  	0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x74, 0x69, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   241  	0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
   242  	0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
   243  	0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
   244  	0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   245  	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   246  	0x6f, 0x22, 0x2f, 0x0a, 0x13, 0x53, 0x71, 0x6c, 0x54, 0x69, 0x65, 0x72, 0x73, 0x4c, 0x69, 0x73,
   247  	0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a,
   248  	0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,
   249  	0x63, 0x74, 0x22, 0x5d, 0x0a, 0x11, 0x54, 0x69, 0x65, 0x72, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52,
   250  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18,
   251  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x34, 0x0a, 0x05, 0x69,
   252  	0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f,
   253  	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31,
   254  	0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d,
   255  	0x73, 0x22, 0x77, 0x0a, 0x04, 0x54, 0x69, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x65,
   256  	0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x69, 0x65, 0x72, 0x12, 0x10, 0x0a,
   257  	0x03, 0x52, 0x41, 0x4d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x52, 0x41, 0x4d, 0x12,
   258  	0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b,
   259  	0x69, 0x6e, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x44, 0x69, 0x73, 0x6b, 0x5f, 0x51, 0x75, 0x6f, 0x74,
   260  	0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x44, 0x69, 0x73, 0x6b, 0x51, 0x75, 0x6f,
   261  	0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x03,
   262  	0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x32, 0xa3, 0x02, 0x0a, 0x0f, 0x53,
   263  	0x71, 0x6c, 0x54, 0x69, 0x65, 0x72, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x91,
   264  	0x01, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   265  	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
   266  	0x61, 0x34, 0x2e, 0x53, 0x71, 0x6c, 0x54, 0x69, 0x65, 0x72, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52,
   267  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   268  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   269  	0x34, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
   270  	0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x73, 0x71,
   271  	0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
   272  	0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x74, 0x69, 0x65,
   273  	0x72, 0x73, 0x1a, 0x7c, 0xca, 0x41, 0x17, 0x73, 0x71, 0x6c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e,
   274  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41,
   275  	0x5f, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f,
   276  	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68,
   277  	0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c,
   278  	0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   279  	0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f,
   280  	0x73, 0x71, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e,
   281  	0x42, 0x71, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
   282  	0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34,
   283  	0x42, 0x12, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x53, 0x71, 0x6c, 0x54, 0x69, 0x65, 0x72, 0x73, 0x50,
   284  	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
   285  	0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
   286  	0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c,
   287  	0x6f, 0x75, 0x64, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x3b,
   288  	0x73, 0x71, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   289  }
   290  
   291  var (
   292  	file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDescOnce sync.Once
   293  	file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDescData = file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDesc
   294  )
   295  
   296  func file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDescGZIP() []byte {
   297  	file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDescOnce.Do(func() {
   298  		file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDescData)
   299  	})
   300  	return file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDescData
   301  }
   302  
   303  var file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   304  var file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_goTypes = []interface{}{
   305  	(*SqlTiersListRequest)(nil), // 0: google.cloud.sql.v1beta4.SqlTiersListRequest
   306  	(*TiersListResponse)(nil),   // 1: google.cloud.sql.v1beta4.TiersListResponse
   307  	(*Tier)(nil),                // 2: google.cloud.sql.v1beta4.Tier
   308  }
   309  var file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_depIdxs = []int32{
   310  	2, // 0: google.cloud.sql.v1beta4.TiersListResponse.items:type_name -> google.cloud.sql.v1beta4.Tier
   311  	0, // 1: google.cloud.sql.v1beta4.SqlTiersService.List:input_type -> google.cloud.sql.v1beta4.SqlTiersListRequest
   312  	1, // 2: google.cloud.sql.v1beta4.SqlTiersService.List:output_type -> google.cloud.sql.v1beta4.TiersListResponse
   313  	2, // [2:3] is the sub-list for method output_type
   314  	1, // [1:2] is the sub-list for method input_type
   315  	1, // [1:1] is the sub-list for extension type_name
   316  	1, // [1:1] is the sub-list for extension extendee
   317  	0, // [0:1] is the sub-list for field type_name
   318  }
   319  
   320  func init() { file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_init() }
   321  func file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_init() {
   322  	if File_google_cloud_sql_v1beta4_cloud_sql_tiers_proto != nil {
   323  		return
   324  	}
   325  	if !protoimpl.UnsafeEnabled {
   326  		file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   327  			switch v := v.(*SqlTiersListRequest); i {
   328  			case 0:
   329  				return &v.state
   330  			case 1:
   331  				return &v.sizeCache
   332  			case 2:
   333  				return &v.unknownFields
   334  			default:
   335  				return nil
   336  			}
   337  		}
   338  		file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   339  			switch v := v.(*TiersListResponse); i {
   340  			case 0:
   341  				return &v.state
   342  			case 1:
   343  				return &v.sizeCache
   344  			case 2:
   345  				return &v.unknownFields
   346  			default:
   347  				return nil
   348  			}
   349  		}
   350  		file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   351  			switch v := v.(*Tier); i {
   352  			case 0:
   353  				return &v.state
   354  			case 1:
   355  				return &v.sizeCache
   356  			case 2:
   357  				return &v.unknownFields
   358  			default:
   359  				return nil
   360  			}
   361  		}
   362  	}
   363  	type x struct{}
   364  	out := protoimpl.TypeBuilder{
   365  		File: protoimpl.DescBuilder{
   366  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   367  			RawDescriptor: file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDesc,
   368  			NumEnums:      0,
   369  			NumMessages:   3,
   370  			NumExtensions: 0,
   371  			NumServices:   1,
   372  		},
   373  		GoTypes:           file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_goTypes,
   374  		DependencyIndexes: file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_depIdxs,
   375  		MessageInfos:      file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_msgTypes,
   376  	}.Build()
   377  	File_google_cloud_sql_v1beta4_cloud_sql_tiers_proto = out.File
   378  	file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_rawDesc = nil
   379  	file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_goTypes = nil
   380  	file_google_cloud_sql_v1beta4_cloud_sql_tiers_proto_depIdxs = nil
   381  }
   382  
   383  // Reference imports to suppress errors if they are not otherwise used.
   384  var _ context.Context
   385  var _ grpc.ClientConnInterface
   386  
   387  // This is a compile-time assertion to ensure that this generated file
   388  // is compatible with the grpc package it is being compiled against.
   389  const _ = grpc.SupportPackageIsVersion6
   390  
   391  // SqlTiersServiceClient is the client API for SqlTiersService service.
   392  //
   393  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   394  type SqlTiersServiceClient interface {
   395  	// Lists all available machine types (tiers) for Cloud SQL, for example,
   396  	// `db-custom-1-3840`. For related information, see [Pricing](/sql/pricing).
   397  	List(ctx context.Context, in *SqlTiersListRequest, opts ...grpc.CallOption) (*TiersListResponse, error)
   398  }
   399  
   400  type sqlTiersServiceClient struct {
   401  	cc grpc.ClientConnInterface
   402  }
   403  
   404  func NewSqlTiersServiceClient(cc grpc.ClientConnInterface) SqlTiersServiceClient {
   405  	return &sqlTiersServiceClient{cc}
   406  }
   407  
   408  func (c *sqlTiersServiceClient) List(ctx context.Context, in *SqlTiersListRequest, opts ...grpc.CallOption) (*TiersListResponse, error) {
   409  	out := new(TiersListResponse)
   410  	err := c.cc.Invoke(ctx, "/google.cloud.sql.v1beta4.SqlTiersService/List", in, out, opts...)
   411  	if err != nil {
   412  		return nil, err
   413  	}
   414  	return out, nil
   415  }
   416  
   417  // SqlTiersServiceServer is the server API for SqlTiersService service.
   418  type SqlTiersServiceServer interface {
   419  	// Lists all available machine types (tiers) for Cloud SQL, for example,
   420  	// `db-custom-1-3840`. For related information, see [Pricing](/sql/pricing).
   421  	List(context.Context, *SqlTiersListRequest) (*TiersListResponse, error)
   422  }
   423  
   424  // UnimplementedSqlTiersServiceServer can be embedded to have forward compatible implementations.
   425  type UnimplementedSqlTiersServiceServer struct {
   426  }
   427  
   428  func (*UnimplementedSqlTiersServiceServer) List(context.Context, *SqlTiersListRequest) (*TiersListResponse, error) {
   429  	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
   430  }
   431  
   432  func RegisterSqlTiersServiceServer(s *grpc.Server, srv SqlTiersServiceServer) {
   433  	s.RegisterService(&_SqlTiersService_serviceDesc, srv)
   434  }
   435  
   436  func _SqlTiersService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   437  	in := new(SqlTiersListRequest)
   438  	if err := dec(in); err != nil {
   439  		return nil, err
   440  	}
   441  	if interceptor == nil {
   442  		return srv.(SqlTiersServiceServer).List(ctx, in)
   443  	}
   444  	info := &grpc.UnaryServerInfo{
   445  		Server:     srv,
   446  		FullMethod: "/google.cloud.sql.v1beta4.SqlTiersService/List",
   447  	}
   448  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   449  		return srv.(SqlTiersServiceServer).List(ctx, req.(*SqlTiersListRequest))
   450  	}
   451  	return interceptor(ctx, in, info, handler)
   452  }
   453  
   454  var _SqlTiersService_serviceDesc = grpc.ServiceDesc{
   455  	ServiceName: "google.cloud.sql.v1beta4.SqlTiersService",
   456  	HandlerType: (*SqlTiersServiceServer)(nil),
   457  	Methods: []grpc.MethodDesc{
   458  		{
   459  			MethodName: "List",
   460  			Handler:    _SqlTiersService_List_Handler,
   461  		},
   462  	},
   463  	Streams:  []grpc.StreamDesc{},
   464  	Metadata: "google/cloud/sql/v1beta4/cloud_sql_tiers.proto",
   465  }
   466  

View as plain text