1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/spanner/admin/instance/v1/spanner_instance_admin.proto
5 Package instance is a generated protocol buffer package.
7 It is generated from these files:
8 google/spanner/admin/instance/v1/spanner_instance_admin.proto
10 It has these top-level messages:
13 ListInstanceConfigsRequest
14 ListInstanceConfigsResponse
15 GetInstanceConfigRequest
22 CreateInstanceMetadata
23 UpdateInstanceMetadata
27 import proto "github.com/golang/protobuf/proto"
30 import _ "google.golang.org/genproto/googleapis/api/annotations"
31 import _ "google.golang.org/genproto/googleapis/api/serviceconfig"
32 import google_iam_v11 "google.golang.org/genproto/googleapis/iam/v1"
33 import google_iam_v1 "google.golang.org/genproto/googleapis/iam/v1"
34 import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
35 import google_protobuf2 "github.com/golang/protobuf/ptypes/empty"
36 import google_protobuf3 "google.golang.org/genproto/protobuf/field_mask"
37 import google_protobuf4 "github.com/golang/protobuf/ptypes/timestamp"
40 context "golang.org/x/net/context"
41 grpc "google.golang.org/grpc"
44 // Reference imports to suppress errors if they are not otherwise used.
49 // This is a compile-time assertion to ensure that this generated file
50 // is compatible with the proto package it is being compiled against.
51 // A compilation error at this line likely means your copy of the
52 // proto package needs to be updated.
53 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
55 // Indicates the current state of the instance.
56 type Instance_State int32
60 Instance_STATE_UNSPECIFIED Instance_State = 0
61 // The instance is still being created. Resources may not be
62 // available yet, and operations such as database creation may not
64 Instance_CREATING Instance_State = 1
65 // The instance is fully created and ready to do work such as
66 // creating databases.
67 Instance_READY Instance_State = 2
70 var Instance_State_name = map[int32]string{
71 0: "STATE_UNSPECIFIED",
75 var Instance_State_value = map[string]int32{
76 "STATE_UNSPECIFIED": 0,
81 func (x Instance_State) String() string {
82 return proto.EnumName(Instance_State_name, int32(x))
84 func (Instance_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
86 // A possible configuration for a Cloud Spanner instance. Configurations
87 // define the geographic placement of nodes and their replication.
88 type InstanceConfig struct {
89 // A unique identifier for the instance configuration. Values
91 // `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`
92 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
93 // The name of this instance configuration as it appears in UIs.
94 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
97 func (m *InstanceConfig) Reset() { *m = InstanceConfig{} }
98 func (m *InstanceConfig) String() string { return proto.CompactTextString(m) }
99 func (*InstanceConfig) ProtoMessage() {}
100 func (*InstanceConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
102 func (m *InstanceConfig) GetName() string {
109 func (m *InstanceConfig) GetDisplayName() string {
116 // An isolated set of Cloud Spanner resources on which databases can be hosted.
117 type Instance struct {
118 // Required. A unique identifier for the instance, which cannot be changed
119 // after the instance is created. Values are of the form
120 // `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final
121 // segment of the name must be between 6 and 30 characters in length.
122 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
123 // Required. The name of the instance's configuration. Values are of the form
124 // `projects/<project>/instanceConfigs/<configuration>`. See
125 // also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and
126 // [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
127 Config string `protobuf:"bytes,2,opt,name=config" json:"config,omitempty"`
128 // Required. The descriptive name for this instance as it appears in UIs.
129 // Must be unique per project and between 4 and 30 characters in length.
130 DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
131 // Required. The number of nodes allocated to this instance.
132 NodeCount int32 `protobuf:"varint,5,opt,name=node_count,json=nodeCount" json:"node_count,omitempty"`
133 // Output only. The current instance state. For
134 // [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], the state must be
135 // either omitted or set to `CREATING`. For
136 // [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance], the state must be
137 // either omitted or set to `READY`.
138 State Instance_State `protobuf:"varint,6,opt,name=state,enum=google.spanner.admin.instance.v1.Instance_State" json:"state,omitempty"`
139 // Cloud Labels are a flexible and lightweight mechanism for organizing cloud
140 // resources into groups that reflect a customer's organizational needs and
141 // deployment strategies. Cloud Labels can be used to filter collections of
142 // resources. They can be used to control how resource metrics are aggregated.
143 // And they can be used as arguments to policy management rules (e.g. route,
144 // firewall, load balancing, etc.).
146 // * Label keys must be between 1 and 63 characters long and must conform to
147 // the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
148 // * Label values must be between 0 and 63 characters long and must conform
149 // to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
150 // * No more than 64 labels can be associated with a given resource.
152 // See https://goo.gl/xmQnxf for more information on and examples of labels.
154 // If you plan to use labels in your own code, please note that additional
155 // characters may be allowed in the future. And so you are advised to use an
156 // internal label representation, such as JSON, which doesn't rely upon
157 // specific characters being disallowed. For example, representing labels
158 // as the string: name + "_" + value would prove problematic if we were to
159 // allow "_" in a future release.
160 Labels map[string]string `protobuf:"bytes,7,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
163 func (m *Instance) Reset() { *m = Instance{} }
164 func (m *Instance) String() string { return proto.CompactTextString(m) }
165 func (*Instance) ProtoMessage() {}
166 func (*Instance) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
168 func (m *Instance) GetName() string {
175 func (m *Instance) GetConfig() string {
182 func (m *Instance) GetDisplayName() string {
189 func (m *Instance) GetNodeCount() int32 {
196 func (m *Instance) GetState() Instance_State {
200 return Instance_STATE_UNSPECIFIED
203 func (m *Instance) GetLabels() map[string]string {
210 // The request for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
211 type ListInstanceConfigsRequest struct {
212 // Required. The name of the project for which a list of supported instance
213 // configurations is requested. Values are of the form
214 // `projects/<project>`.
215 Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
216 // Number of instance configurations to be returned in the response. If 0 or
217 // less, defaults to the server's maximum allowed page size.
218 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
219 // If non-empty, `page_token` should contain a
220 // [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token]
221 // from a previous [ListInstanceConfigsResponse][google.spanner.admin.instance.v1.ListInstanceConfigsResponse].
222 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
225 func (m *ListInstanceConfigsRequest) Reset() { *m = ListInstanceConfigsRequest{} }
226 func (m *ListInstanceConfigsRequest) String() string { return proto.CompactTextString(m) }
227 func (*ListInstanceConfigsRequest) ProtoMessage() {}
228 func (*ListInstanceConfigsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
230 func (m *ListInstanceConfigsRequest) GetParent() string {
237 func (m *ListInstanceConfigsRequest) GetPageSize() int32 {
244 func (m *ListInstanceConfigsRequest) GetPageToken() string {
251 // The response for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
252 type ListInstanceConfigsResponse struct {
253 // The list of requested instance configurations.
254 InstanceConfigs []*InstanceConfig `protobuf:"bytes,1,rep,name=instance_configs,json=instanceConfigs" json:"instance_configs,omitempty"`
255 // `next_page_token` can be sent in a subsequent
256 // [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] call to
257 // fetch more of the matching instance configurations.
258 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
261 func (m *ListInstanceConfigsResponse) Reset() { *m = ListInstanceConfigsResponse{} }
262 func (m *ListInstanceConfigsResponse) String() string { return proto.CompactTextString(m) }
263 func (*ListInstanceConfigsResponse) ProtoMessage() {}
264 func (*ListInstanceConfigsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
266 func (m *ListInstanceConfigsResponse) GetInstanceConfigs() []*InstanceConfig {
268 return m.InstanceConfigs
273 func (m *ListInstanceConfigsResponse) GetNextPageToken() string {
275 return m.NextPageToken
281 // [GetInstanceConfigRequest][google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig].
282 type GetInstanceConfigRequest struct {
283 // Required. The name of the requested instance configuration. Values are of
284 // the form `projects/<project>/instanceConfigs/<config>`.
285 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
288 func (m *GetInstanceConfigRequest) Reset() { *m = GetInstanceConfigRequest{} }
289 func (m *GetInstanceConfigRequest) String() string { return proto.CompactTextString(m) }
290 func (*GetInstanceConfigRequest) ProtoMessage() {}
291 func (*GetInstanceConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
293 func (m *GetInstanceConfigRequest) GetName() string {
300 // The request for [GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance].
301 type GetInstanceRequest struct {
302 // Required. The name of the requested instance. Values are of the form
303 // `projects/<project>/instances/<instance>`.
304 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
307 func (m *GetInstanceRequest) Reset() { *m = GetInstanceRequest{} }
308 func (m *GetInstanceRequest) String() string { return proto.CompactTextString(m) }
309 func (*GetInstanceRequest) ProtoMessage() {}
310 func (*GetInstanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
312 func (m *GetInstanceRequest) GetName() string {
319 // The request for [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].
320 type CreateInstanceRequest struct {
321 // Required. The name of the project in which to create the instance. Values
322 // are of the form `projects/<project>`.
323 Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
324 // Required. The ID of the instance to create. Valid identifiers are of the
325 // form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 6 and 30 characters in
327 InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId" json:"instance_id,omitempty"`
328 // Required. The instance to create. The name may be omitted, but if
329 // specified must be `<parent>/instances/<instance_id>`.
330 Instance *Instance `protobuf:"bytes,3,opt,name=instance" json:"instance,omitempty"`
333 func (m *CreateInstanceRequest) Reset() { *m = CreateInstanceRequest{} }
334 func (m *CreateInstanceRequest) String() string { return proto.CompactTextString(m) }
335 func (*CreateInstanceRequest) ProtoMessage() {}
336 func (*CreateInstanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
338 func (m *CreateInstanceRequest) GetParent() string {
345 func (m *CreateInstanceRequest) GetInstanceId() string {
352 func (m *CreateInstanceRequest) GetInstance() *Instance {
359 // The request for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].
360 type ListInstancesRequest struct {
361 // Required. The name of the project for which a list of instances is
362 // requested. Values are of the form `projects/<project>`.
363 Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
364 // Number of instances to be returned in the response. If 0 or less, defaults
365 // to the server's maximum allowed page size.
366 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
367 // If non-empty, `page_token` should contain a
368 // [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] from a
369 // previous [ListInstancesResponse][google.spanner.admin.instance.v1.ListInstancesResponse].
370 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
371 // An expression for filtering the results of the request. Filter rules are
372 // case insensitive. The fields eligible for filtering are:
376 // * labels.key where key is the name of a label
378 // Some examples of using filters are:
380 // * name:* --> The instance has a name.
381 // * name:Howl --> The instance's name contains the string "howl".
382 // * name:HOWL --> Equivalent to above.
383 // * NAME:howl --> Equivalent to above.
384 // * labels.env:* --> The instance has the label "env".
385 // * labels.env:dev --> The instance has the label "env" and the value of
386 // the label contains the string "dev".
387 // * name:howl labels.env:dev --> The instance's name contains "howl" and
388 // it has the label "env" with its value
390 Filter string `protobuf:"bytes,4,opt,name=filter" json:"filter,omitempty"`
393 func (m *ListInstancesRequest) Reset() { *m = ListInstancesRequest{} }
394 func (m *ListInstancesRequest) String() string { return proto.CompactTextString(m) }
395 func (*ListInstancesRequest) ProtoMessage() {}
396 func (*ListInstancesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
398 func (m *ListInstancesRequest) GetParent() string {
405 func (m *ListInstancesRequest) GetPageSize() int32 {
412 func (m *ListInstancesRequest) GetPageToken() string {
419 func (m *ListInstancesRequest) GetFilter() string {
426 // The response for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].
427 type ListInstancesResponse struct {
428 // The list of requested instances.
429 Instances []*Instance `protobuf:"bytes,1,rep,name=instances" json:"instances,omitempty"`
430 // `next_page_token` can be sent in a subsequent
431 // [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more
432 // of the matching instances.
433 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
436 func (m *ListInstancesResponse) Reset() { *m = ListInstancesResponse{} }
437 func (m *ListInstancesResponse) String() string { return proto.CompactTextString(m) }
438 func (*ListInstancesResponse) ProtoMessage() {}
439 func (*ListInstancesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
441 func (m *ListInstancesResponse) GetInstances() []*Instance {
448 func (m *ListInstancesResponse) GetNextPageToken() string {
450 return m.NextPageToken
455 // The request for [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].
456 type UpdateInstanceRequest struct {
457 // Required. The instance to update, which must always include the instance
458 // name. Otherwise, only fields mentioned in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be included.
459 Instance *Instance `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
460 // Required. A mask specifying which fields in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.instance] should be updated.
461 // The field mask must always be specified; this prevents any future fields in
462 // [][google.spanner.admin.instance.v1.Instance] from being erased accidentally by clients that do not know
464 FieldMask *google_protobuf3.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask" json:"field_mask,omitempty"`
467 func (m *UpdateInstanceRequest) Reset() { *m = UpdateInstanceRequest{} }
468 func (m *UpdateInstanceRequest) String() string { return proto.CompactTextString(m) }
469 func (*UpdateInstanceRequest) ProtoMessage() {}
470 func (*UpdateInstanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
472 func (m *UpdateInstanceRequest) GetInstance() *Instance {
479 func (m *UpdateInstanceRequest) GetFieldMask() *google_protobuf3.FieldMask {
486 // The request for [DeleteInstance][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance].
487 type DeleteInstanceRequest struct {
488 // Required. The name of the instance to be deleted. Values are of the form
489 // `projects/<project>/instances/<instance>`
490 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
493 func (m *DeleteInstanceRequest) Reset() { *m = DeleteInstanceRequest{} }
494 func (m *DeleteInstanceRequest) String() string { return proto.CompactTextString(m) }
495 func (*DeleteInstanceRequest) ProtoMessage() {}
496 func (*DeleteInstanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
498 func (m *DeleteInstanceRequest) GetName() string {
505 // Metadata type for the operation returned by
506 // [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].
507 type CreateInstanceMetadata struct {
508 // The instance being created.
509 Instance *Instance `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
510 // The time at which the
511 // [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] request was
513 StartTime *google_protobuf4.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
514 // The time at which this operation was cancelled. If set, this operation is
515 // in the process of undoing itself (which is guaranteed to succeed) and
516 // cannot be cancelled again.
517 CancelTime *google_protobuf4.Timestamp `protobuf:"bytes,3,opt,name=cancel_time,json=cancelTime" json:"cancel_time,omitempty"`
518 // The time at which this operation failed or was completed successfully.
519 EndTime *google_protobuf4.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
522 func (m *CreateInstanceMetadata) Reset() { *m = CreateInstanceMetadata{} }
523 func (m *CreateInstanceMetadata) String() string { return proto.CompactTextString(m) }
524 func (*CreateInstanceMetadata) ProtoMessage() {}
525 func (*CreateInstanceMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
527 func (m *CreateInstanceMetadata) GetInstance() *Instance {
534 func (m *CreateInstanceMetadata) GetStartTime() *google_protobuf4.Timestamp {
541 func (m *CreateInstanceMetadata) GetCancelTime() *google_protobuf4.Timestamp {
548 func (m *CreateInstanceMetadata) GetEndTime() *google_protobuf4.Timestamp {
555 // Metadata type for the operation returned by
556 // [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].
557 type UpdateInstanceMetadata struct {
558 // The desired end state of the update.
559 Instance *Instance `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
560 // The time at which [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]
561 // request was received.
562 StartTime *google_protobuf4.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
563 // The time at which this operation was cancelled. If set, this operation is
564 // in the process of undoing itself (which is guaranteed to succeed) and
565 // cannot be cancelled again.
566 CancelTime *google_protobuf4.Timestamp `protobuf:"bytes,3,opt,name=cancel_time,json=cancelTime" json:"cancel_time,omitempty"`
567 // The time at which this operation failed or was completed successfully.
568 EndTime *google_protobuf4.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
571 func (m *UpdateInstanceMetadata) Reset() { *m = UpdateInstanceMetadata{} }
572 func (m *UpdateInstanceMetadata) String() string { return proto.CompactTextString(m) }
573 func (*UpdateInstanceMetadata) ProtoMessage() {}
574 func (*UpdateInstanceMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
576 func (m *UpdateInstanceMetadata) GetInstance() *Instance {
583 func (m *UpdateInstanceMetadata) GetStartTime() *google_protobuf4.Timestamp {
590 func (m *UpdateInstanceMetadata) GetCancelTime() *google_protobuf4.Timestamp {
597 func (m *UpdateInstanceMetadata) GetEndTime() *google_protobuf4.Timestamp {
605 proto.RegisterType((*InstanceConfig)(nil), "google.spanner.admin.instance.v1.InstanceConfig")
606 proto.RegisterType((*Instance)(nil), "google.spanner.admin.instance.v1.Instance")
607 proto.RegisterType((*ListInstanceConfigsRequest)(nil), "google.spanner.admin.instance.v1.ListInstanceConfigsRequest")
608 proto.RegisterType((*ListInstanceConfigsResponse)(nil), "google.spanner.admin.instance.v1.ListInstanceConfigsResponse")
609 proto.RegisterType((*GetInstanceConfigRequest)(nil), "google.spanner.admin.instance.v1.GetInstanceConfigRequest")
610 proto.RegisterType((*GetInstanceRequest)(nil), "google.spanner.admin.instance.v1.GetInstanceRequest")
611 proto.RegisterType((*CreateInstanceRequest)(nil), "google.spanner.admin.instance.v1.CreateInstanceRequest")
612 proto.RegisterType((*ListInstancesRequest)(nil), "google.spanner.admin.instance.v1.ListInstancesRequest")
613 proto.RegisterType((*ListInstancesResponse)(nil), "google.spanner.admin.instance.v1.ListInstancesResponse")
614 proto.RegisterType((*UpdateInstanceRequest)(nil), "google.spanner.admin.instance.v1.UpdateInstanceRequest")
615 proto.RegisterType((*DeleteInstanceRequest)(nil), "google.spanner.admin.instance.v1.DeleteInstanceRequest")
616 proto.RegisterType((*CreateInstanceMetadata)(nil), "google.spanner.admin.instance.v1.CreateInstanceMetadata")
617 proto.RegisterType((*UpdateInstanceMetadata)(nil), "google.spanner.admin.instance.v1.UpdateInstanceMetadata")
618 proto.RegisterEnum("google.spanner.admin.instance.v1.Instance_State", Instance_State_name, Instance_State_value)
621 // Reference imports to suppress errors if they are not otherwise used.
622 var _ context.Context
623 var _ grpc.ClientConn
625 // This is a compile-time assertion to ensure that this generated file
626 // is compatible with the grpc package it is being compiled against.
627 const _ = grpc.SupportPackageIsVersion4
629 // Client API for InstanceAdmin service
631 type InstanceAdminClient interface {
632 // Lists the supported instance configurations for a given project.
633 ListInstanceConfigs(ctx context.Context, in *ListInstanceConfigsRequest, opts ...grpc.CallOption) (*ListInstanceConfigsResponse, error)
634 // Gets information about a particular instance configuration.
635 GetInstanceConfig(ctx context.Context, in *GetInstanceConfigRequest, opts ...grpc.CallOption) (*InstanceConfig, error)
636 // Lists all instances in the given project.
637 ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error)
638 // Gets information about a particular instance.
639 GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
640 // Creates an instance and begins preparing it to begin serving. The
641 // returned [long-running operation][google.longrunning.Operation]
642 // can be used to track the progress of preparing the new
643 // instance. The instance name is assigned by the caller. If the
644 // named instance already exists, `CreateInstance` returns
647 // Immediately upon completion of this request:
649 // * The instance is readable via the API, with all requested attributes
650 // but no allocated resources. Its state is `CREATING`.
652 // Until completion of the returned operation:
654 // * Cancelling the operation renders the instance immediately unreadable
656 // * The instance can be deleted.
657 // * All other attempts to modify the instance are rejected.
659 // Upon completion of the returned operation:
661 // * Billing for all successfully-allocated resources begins (some types
662 // may have lower than the requested levels).
663 // * Databases can be created in the instance.
664 // * The instance's allocated resource levels are readable via the API.
665 // * The instance's state becomes `READY`.
667 // The returned [long-running operation][google.longrunning.Operation] will
668 // have a name of the format `<instance_name>/operations/<operation_id>` and
669 // can be used to track creation of the instance. The
670 // [metadata][google.longrunning.Operation.metadata] field type is
671 // [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
672 // The [response][google.longrunning.Operation.response] field type is
673 // [Instance][google.spanner.admin.instance.v1.Instance], if successful.
674 CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
675 // Updates an instance, and begins allocating or releasing resources
676 // as requested. The returned [long-running
677 // operation][google.longrunning.Operation] can be used to track the
678 // progress of updating the instance. If the named instance does not
679 // exist, returns `NOT_FOUND`.
681 // Immediately upon completion of this request:
683 // * For resource types for which a decrease in the instance's allocation
684 // has been requested, billing is based on the newly-requested level.
686 // Until completion of the returned operation:
688 // * Cancelling the operation sets its metadata's
689 // [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time], and begins
690 // restoring resources to their pre-request values. The operation
691 // is guaranteed to succeed at undoing all resource changes,
692 // after which point it terminates with a `CANCELLED` status.
693 // * All other attempts to modify the instance are rejected.
694 // * Reading the instance via the API continues to give the pre-request
697 // Upon completion of the returned operation:
699 // * Billing begins for all successfully-allocated resources (some types
700 // may have lower than the requested levels).
701 // * All newly-reserved resources are available for serving the instance's
703 // * The instance's new resource levels are readable via the API.
705 // The returned [long-running operation][google.longrunning.Operation] will
706 // have a name of the format `<instance_name>/operations/<operation_id>` and
707 // can be used to track the instance modification. The
708 // [metadata][google.longrunning.Operation.metadata] field type is
709 // [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
710 // The [response][google.longrunning.Operation.response] field type is
711 // [Instance][google.spanner.admin.instance.v1.Instance], if successful.
713 // Authorization requires `spanner.instances.update` permission on
714 // resource [name][google.spanner.admin.instance.v1.Instance.name].
715 UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
716 // Deletes an instance.
718 // Immediately upon completion of the request:
720 // * Billing ceases for all of the instance's reserved resources.
724 // * The instance and *all of its databases* immediately and
725 // irrevocably disappear from the API. All data in the databases
726 // is permanently deleted.
727 DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
728 // Sets the access control policy on an instance resource. Replaces any
731 // Authorization requires `spanner.instances.setIamPolicy` on
732 // [resource][google.iam.v1.SetIamPolicyRequest.resource].
733 SetIamPolicy(ctx context.Context, in *google_iam_v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error)
734 // Gets the access control policy for an instance resource. Returns an empty
735 // policy if an instance exists but does not have a policy set.
737 // Authorization requires `spanner.instances.getIamPolicy` on
738 // [resource][google.iam.v1.GetIamPolicyRequest.resource].
739 GetIamPolicy(ctx context.Context, in *google_iam_v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error)
740 // Returns permissions that the caller has on the specified instance resource.
742 // Attempting this RPC on a non-existent Cloud Spanner instance resource will
743 // result in a NOT_FOUND error if the user has `spanner.instances.list`
744 // permission on the containing Google Cloud Project. Otherwise returns an
745 // empty set of permissions.
746 TestIamPermissions(ctx context.Context, in *google_iam_v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*google_iam_v11.TestIamPermissionsResponse, error)
749 type instanceAdminClient struct {
753 func NewInstanceAdminClient(cc *grpc.ClientConn) InstanceAdminClient {
754 return &instanceAdminClient{cc}
757 func (c *instanceAdminClient) ListInstanceConfigs(ctx context.Context, in *ListInstanceConfigsRequest, opts ...grpc.CallOption) (*ListInstanceConfigsResponse, error) {
758 out := new(ListInstanceConfigsResponse)
759 err := grpc.Invoke(ctx, "/google.spanner.admin.instance.v1.InstanceAdmin/ListInstanceConfigs", in, out, c.cc, opts...)
766 func (c *instanceAdminClient) GetInstanceConfig(ctx context.Context, in *GetInstanceConfigRequest, opts ...grpc.CallOption) (*InstanceConfig, error) {
767 out := new(InstanceConfig)
768 err := grpc.Invoke(ctx, "/google.spanner.admin.instance.v1.InstanceAdmin/GetInstanceConfig", in, out, c.cc, opts...)
775 func (c *instanceAdminClient) ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error) {
776 out := new(ListInstancesResponse)
777 err := grpc.Invoke(ctx, "/google.spanner.admin.instance.v1.InstanceAdmin/ListInstances", in, out, c.cc, opts...)
784 func (c *instanceAdminClient) GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error) {
786 err := grpc.Invoke(ctx, "/google.spanner.admin.instance.v1.InstanceAdmin/GetInstance", in, out, c.cc, opts...)
793 func (c *instanceAdminClient) CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
794 out := new(google_longrunning.Operation)
795 err := grpc.Invoke(ctx, "/google.spanner.admin.instance.v1.InstanceAdmin/CreateInstance", in, out, c.cc, opts...)
802 func (c *instanceAdminClient) UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
803 out := new(google_longrunning.Operation)
804 err := grpc.Invoke(ctx, "/google.spanner.admin.instance.v1.InstanceAdmin/UpdateInstance", in, out, c.cc, opts...)
811 func (c *instanceAdminClient) DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) {
812 out := new(google_protobuf2.Empty)
813 err := grpc.Invoke(ctx, "/google.spanner.admin.instance.v1.InstanceAdmin/DeleteInstance", in, out, c.cc, opts...)
820 func (c *instanceAdminClient) SetIamPolicy(ctx context.Context, in *google_iam_v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error) {
821 out := new(google_iam_v1.Policy)
822 err := grpc.Invoke(ctx, "/google.spanner.admin.instance.v1.InstanceAdmin/SetIamPolicy", in, out, c.cc, opts...)
829 func (c *instanceAdminClient) GetIamPolicy(ctx context.Context, in *google_iam_v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error) {
830 out := new(google_iam_v1.Policy)
831 err := grpc.Invoke(ctx, "/google.spanner.admin.instance.v1.InstanceAdmin/GetIamPolicy", in, out, c.cc, opts...)
838 func (c *instanceAdminClient) TestIamPermissions(ctx context.Context, in *google_iam_v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*google_iam_v11.TestIamPermissionsResponse, error) {
839 out := new(google_iam_v11.TestIamPermissionsResponse)
840 err := grpc.Invoke(ctx, "/google.spanner.admin.instance.v1.InstanceAdmin/TestIamPermissions", in, out, c.cc, opts...)
847 // Server API for InstanceAdmin service
849 type InstanceAdminServer interface {
850 // Lists the supported instance configurations for a given project.
851 ListInstanceConfigs(context.Context, *ListInstanceConfigsRequest) (*ListInstanceConfigsResponse, error)
852 // Gets information about a particular instance configuration.
853 GetInstanceConfig(context.Context, *GetInstanceConfigRequest) (*InstanceConfig, error)
854 // Lists all instances in the given project.
855 ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)
856 // Gets information about a particular instance.
857 GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)
858 // Creates an instance and begins preparing it to begin serving. The
859 // returned [long-running operation][google.longrunning.Operation]
860 // can be used to track the progress of preparing the new
861 // instance. The instance name is assigned by the caller. If the
862 // named instance already exists, `CreateInstance` returns
865 // Immediately upon completion of this request:
867 // * The instance is readable via the API, with all requested attributes
868 // but no allocated resources. Its state is `CREATING`.
870 // Until completion of the returned operation:
872 // * Cancelling the operation renders the instance immediately unreadable
874 // * The instance can be deleted.
875 // * All other attempts to modify the instance are rejected.
877 // Upon completion of the returned operation:
879 // * Billing for all successfully-allocated resources begins (some types
880 // may have lower than the requested levels).
881 // * Databases can be created in the instance.
882 // * The instance's allocated resource levels are readable via the API.
883 // * The instance's state becomes `READY`.
885 // The returned [long-running operation][google.longrunning.Operation] will
886 // have a name of the format `<instance_name>/operations/<operation_id>` and
887 // can be used to track creation of the instance. The
888 // [metadata][google.longrunning.Operation.metadata] field type is
889 // [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
890 // The [response][google.longrunning.Operation.response] field type is
891 // [Instance][google.spanner.admin.instance.v1.Instance], if successful.
892 CreateInstance(context.Context, *CreateInstanceRequest) (*google_longrunning.Operation, error)
893 // Updates an instance, and begins allocating or releasing resources
894 // as requested. The returned [long-running
895 // operation][google.longrunning.Operation] can be used to track the
896 // progress of updating the instance. If the named instance does not
897 // exist, returns `NOT_FOUND`.
899 // Immediately upon completion of this request:
901 // * For resource types for which a decrease in the instance's allocation
902 // has been requested, billing is based on the newly-requested level.
904 // Until completion of the returned operation:
906 // * Cancelling the operation sets its metadata's
907 // [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time], and begins
908 // restoring resources to their pre-request values. The operation
909 // is guaranteed to succeed at undoing all resource changes,
910 // after which point it terminates with a `CANCELLED` status.
911 // * All other attempts to modify the instance are rejected.
912 // * Reading the instance via the API continues to give the pre-request
915 // Upon completion of the returned operation:
917 // * Billing begins for all successfully-allocated resources (some types
918 // may have lower than the requested levels).
919 // * All newly-reserved resources are available for serving the instance's
921 // * The instance's new resource levels are readable via the API.
923 // The returned [long-running operation][google.longrunning.Operation] will
924 // have a name of the format `<instance_name>/operations/<operation_id>` and
925 // can be used to track the instance modification. The
926 // [metadata][google.longrunning.Operation.metadata] field type is
927 // [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
928 // The [response][google.longrunning.Operation.response] field type is
929 // [Instance][google.spanner.admin.instance.v1.Instance], if successful.
931 // Authorization requires `spanner.instances.update` permission on
932 // resource [name][google.spanner.admin.instance.v1.Instance.name].
933 UpdateInstance(context.Context, *UpdateInstanceRequest) (*google_longrunning.Operation, error)
934 // Deletes an instance.
936 // Immediately upon completion of the request:
938 // * Billing ceases for all of the instance's reserved resources.
942 // * The instance and *all of its databases* immediately and
943 // irrevocably disappear from the API. All data in the databases
944 // is permanently deleted.
945 DeleteInstance(context.Context, *DeleteInstanceRequest) (*google_protobuf2.Empty, error)
946 // Sets the access control policy on an instance resource. Replaces any
949 // Authorization requires `spanner.instances.setIamPolicy` on
950 // [resource][google.iam.v1.SetIamPolicyRequest.resource].
951 SetIamPolicy(context.Context, *google_iam_v11.SetIamPolicyRequest) (*google_iam_v1.Policy, error)
952 // Gets the access control policy for an instance resource. Returns an empty
953 // policy if an instance exists but does not have a policy set.
955 // Authorization requires `spanner.instances.getIamPolicy` on
956 // [resource][google.iam.v1.GetIamPolicyRequest.resource].
957 GetIamPolicy(context.Context, *google_iam_v11.GetIamPolicyRequest) (*google_iam_v1.Policy, error)
958 // Returns permissions that the caller has on the specified instance resource.
960 // Attempting this RPC on a non-existent Cloud Spanner instance resource will
961 // result in a NOT_FOUND error if the user has `spanner.instances.list`
962 // permission on the containing Google Cloud Project. Otherwise returns an
963 // empty set of permissions.
964 TestIamPermissions(context.Context, *google_iam_v11.TestIamPermissionsRequest) (*google_iam_v11.TestIamPermissionsResponse, error)
967 func RegisterInstanceAdminServer(s *grpc.Server, srv InstanceAdminServer) {
968 s.RegisterService(&_InstanceAdmin_serviceDesc, srv)
971 func _InstanceAdmin_ListInstanceConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
972 in := new(ListInstanceConfigsRequest)
973 if err := dec(in); err != nil {
976 if interceptor == nil {
977 return srv.(InstanceAdminServer).ListInstanceConfigs(ctx, in)
979 info := &grpc.UnaryServerInfo{
981 FullMethod: "/google.spanner.admin.instance.v1.InstanceAdmin/ListInstanceConfigs",
983 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
984 return srv.(InstanceAdminServer).ListInstanceConfigs(ctx, req.(*ListInstanceConfigsRequest))
986 return interceptor(ctx, in, info, handler)
989 func _InstanceAdmin_GetInstanceConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
990 in := new(GetInstanceConfigRequest)
991 if err := dec(in); err != nil {
994 if interceptor == nil {
995 return srv.(InstanceAdminServer).GetInstanceConfig(ctx, in)
997 info := &grpc.UnaryServerInfo{
999 FullMethod: "/google.spanner.admin.instance.v1.InstanceAdmin/GetInstanceConfig",
1001 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1002 return srv.(InstanceAdminServer).GetInstanceConfig(ctx, req.(*GetInstanceConfigRequest))
1004 return interceptor(ctx, in, info, handler)
1007 func _InstanceAdmin_ListInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1008 in := new(ListInstancesRequest)
1009 if err := dec(in); err != nil {
1012 if interceptor == nil {
1013 return srv.(InstanceAdminServer).ListInstances(ctx, in)
1015 info := &grpc.UnaryServerInfo{
1017 FullMethod: "/google.spanner.admin.instance.v1.InstanceAdmin/ListInstances",
1019 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1020 return srv.(InstanceAdminServer).ListInstances(ctx, req.(*ListInstancesRequest))
1022 return interceptor(ctx, in, info, handler)
1025 func _InstanceAdmin_GetInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1026 in := new(GetInstanceRequest)
1027 if err := dec(in); err != nil {
1030 if interceptor == nil {
1031 return srv.(InstanceAdminServer).GetInstance(ctx, in)
1033 info := &grpc.UnaryServerInfo{
1035 FullMethod: "/google.spanner.admin.instance.v1.InstanceAdmin/GetInstance",
1037 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1038 return srv.(InstanceAdminServer).GetInstance(ctx, req.(*GetInstanceRequest))
1040 return interceptor(ctx, in, info, handler)
1043 func _InstanceAdmin_CreateInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1044 in := new(CreateInstanceRequest)
1045 if err := dec(in); err != nil {
1048 if interceptor == nil {
1049 return srv.(InstanceAdminServer).CreateInstance(ctx, in)
1051 info := &grpc.UnaryServerInfo{
1053 FullMethod: "/google.spanner.admin.instance.v1.InstanceAdmin/CreateInstance",
1055 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1056 return srv.(InstanceAdminServer).CreateInstance(ctx, req.(*CreateInstanceRequest))
1058 return interceptor(ctx, in, info, handler)
1061 func _InstanceAdmin_UpdateInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1062 in := new(UpdateInstanceRequest)
1063 if err := dec(in); err != nil {
1066 if interceptor == nil {
1067 return srv.(InstanceAdminServer).UpdateInstance(ctx, in)
1069 info := &grpc.UnaryServerInfo{
1071 FullMethod: "/google.spanner.admin.instance.v1.InstanceAdmin/UpdateInstance",
1073 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1074 return srv.(InstanceAdminServer).UpdateInstance(ctx, req.(*UpdateInstanceRequest))
1076 return interceptor(ctx, in, info, handler)
1079 func _InstanceAdmin_DeleteInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1080 in := new(DeleteInstanceRequest)
1081 if err := dec(in); err != nil {
1084 if interceptor == nil {
1085 return srv.(InstanceAdminServer).DeleteInstance(ctx, in)
1087 info := &grpc.UnaryServerInfo{
1089 FullMethod: "/google.spanner.admin.instance.v1.InstanceAdmin/DeleteInstance",
1091 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1092 return srv.(InstanceAdminServer).DeleteInstance(ctx, req.(*DeleteInstanceRequest))
1094 return interceptor(ctx, in, info, handler)
1097 func _InstanceAdmin_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1098 in := new(google_iam_v11.SetIamPolicyRequest)
1099 if err := dec(in); err != nil {
1102 if interceptor == nil {
1103 return srv.(InstanceAdminServer).SetIamPolicy(ctx, in)
1105 info := &grpc.UnaryServerInfo{
1107 FullMethod: "/google.spanner.admin.instance.v1.InstanceAdmin/SetIamPolicy",
1109 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1110 return srv.(InstanceAdminServer).SetIamPolicy(ctx, req.(*google_iam_v11.SetIamPolicyRequest))
1112 return interceptor(ctx, in, info, handler)
1115 func _InstanceAdmin_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1116 in := new(google_iam_v11.GetIamPolicyRequest)
1117 if err := dec(in); err != nil {
1120 if interceptor == nil {
1121 return srv.(InstanceAdminServer).GetIamPolicy(ctx, in)
1123 info := &grpc.UnaryServerInfo{
1125 FullMethod: "/google.spanner.admin.instance.v1.InstanceAdmin/GetIamPolicy",
1127 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1128 return srv.(InstanceAdminServer).GetIamPolicy(ctx, req.(*google_iam_v11.GetIamPolicyRequest))
1130 return interceptor(ctx, in, info, handler)
1133 func _InstanceAdmin_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1134 in := new(google_iam_v11.TestIamPermissionsRequest)
1135 if err := dec(in); err != nil {
1138 if interceptor == nil {
1139 return srv.(InstanceAdminServer).TestIamPermissions(ctx, in)
1141 info := &grpc.UnaryServerInfo{
1143 FullMethod: "/google.spanner.admin.instance.v1.InstanceAdmin/TestIamPermissions",
1145 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1146 return srv.(InstanceAdminServer).TestIamPermissions(ctx, req.(*google_iam_v11.TestIamPermissionsRequest))
1148 return interceptor(ctx, in, info, handler)
1151 var _InstanceAdmin_serviceDesc = grpc.ServiceDesc{
1152 ServiceName: "google.spanner.admin.instance.v1.InstanceAdmin",
1153 HandlerType: (*InstanceAdminServer)(nil),
1154 Methods: []grpc.MethodDesc{
1156 MethodName: "ListInstanceConfigs",
1157 Handler: _InstanceAdmin_ListInstanceConfigs_Handler,
1160 MethodName: "GetInstanceConfig",
1161 Handler: _InstanceAdmin_GetInstanceConfig_Handler,
1164 MethodName: "ListInstances",
1165 Handler: _InstanceAdmin_ListInstances_Handler,
1168 MethodName: "GetInstance",
1169 Handler: _InstanceAdmin_GetInstance_Handler,
1172 MethodName: "CreateInstance",
1173 Handler: _InstanceAdmin_CreateInstance_Handler,
1176 MethodName: "UpdateInstance",
1177 Handler: _InstanceAdmin_UpdateInstance_Handler,
1180 MethodName: "DeleteInstance",
1181 Handler: _InstanceAdmin_DeleteInstance_Handler,
1184 MethodName: "SetIamPolicy",
1185 Handler: _InstanceAdmin_SetIamPolicy_Handler,
1188 MethodName: "GetIamPolicy",
1189 Handler: _InstanceAdmin_GetIamPolicy_Handler,
1192 MethodName: "TestIamPermissions",
1193 Handler: _InstanceAdmin_TestIamPermissions_Handler,
1196 Streams: []grpc.StreamDesc{},
1197 Metadata: "google/spanner/admin/instance/v1/spanner_instance_admin.proto",
1201 proto.RegisterFile("google/spanner/admin/instance/v1/spanner_instance_admin.proto", fileDescriptor0)
1204 var fileDescriptor0 = []byte{
1205 // 1198 bytes of a gzipped FileDescriptorProto
1206 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x57, 0xcf, 0x8f, 0xdb, 0xc4,
1207 0x17, 0xff, 0xce, 0x6e, 0xb3, 0xdd, 0xbc, 0x6c, 0xb7, 0xdb, 0xf9, 0x36, 0x55, 0x48, 0x29, 0x4d,
1208 0x5d, 0x54, 0xd2, 0x80, 0x6c, 0x1a, 0xe8, 0xaf, 0x2d, 0x7b, 0xd8, 0xa6, 0xd9, 0x34, 0x52, 0xbb,
1209 0xac, 0x9c, 0x14, 0x09, 0x38, 0x44, 0xd3, 0x64, 0x36, 0x98, 0xb5, 0xc7, 0xc6, 0x33, 0xa9, 0xd8,
1210 0xa2, 0x5e, 0x2a, 0x0e, 0x20, 0x21, 0x71, 0x40, 0x42, 0xa8, 0x17, 0x24, 0x8e, 0x20, 0x71, 0xe0,
1211 0xc0, 0x3f, 0xc0, 0x9f, 0xc0, 0xbf, 0x80, 0xf8, 0x3b, 0xd0, 0x8c, 0x3d, 0x69, 0xec, 0x24, 0x9b,
1212 0xa4, 0xa2, 0x27, 0x6e, 0x9e, 0xf7, 0xf3, 0xe3, 0xcf, 0x7b, 0x7e, 0xcf, 0x03, 0x5b, 0x7d, 0xdf,
1213 0xef, 0xbb, 0xd4, 0xe2, 0x01, 0x61, 0x8c, 0x86, 0x16, 0xe9, 0x79, 0x0e, 0xb3, 0x1c, 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236 0x28, 0x17, 0xb2, 0x06, 0x01, 0x09, 0x29, 0x13, 0x31, 0x8a, 0xf8, 0x84, 0xcf, 0x42, 0x36, 0x20,
1237 0x7d, 0xda, 0xe1, 0xce, 0xe3, 0x08, 0x4c, 0xc6, 0x5e, 0x95, 0x82, 0x96, 0xf3, 0x58, 0xb1, 0xaf,
1238 0x94, 0xc2, 0x3f, 0xa0, 0x2c, 0x2e, 0x8f, 0x32, 0x6f, 0x4b, 0x81, 0xf1, 0x13, 0x82, 0xb3, 0x13,
1239 0x53, 0xf2, 0xc0, 0x67, 0x9c, 0xe2, 0x8f, 0x61, 0x63, 0xf8, 0x45, 0x46, 0x25, 0xe7, 0x05, 0xa4,
1240 0xf8, 0x5d, 0xa0, 0x50, 0x51, 0x50, 0xfb, 0xa4, 0x93, 0x4c, 0x82, 0x2f, 0xc1, 0x49, 0x46, 0x3f,
1241 0x17, 0x9d, 0x11, 0x80, 0x11, 0x97, 0x27, 0xa4, 0x78, 0x6f, 0x08, 0xd2, 0x84, 0x42, 0x83, 0xa6,
1242 0x20, 0x6a, 0x52, 0x26, 0x34, 0xab, 0x51, 0x06, 0x3c, 0x62, 0x7f, 0x94, 0xe5, 0x0f, 0x08, 0xf2,
1243 0xb5, 0x90, 0x12, 0x41, 0xd3, 0xd6, 0xd3, 0xc8, 0x3e, 0x0f, 0xb9, 0x21, 0x21, 0x4e, 0x2f, 0xc6,
1244 0x0b, 0x5a, 0xd4, 0xec, 0xe1, 0x1d, 0x58, 0xd5, 0x27, 0x45, 0x77, 0xae, 0x5a, 0x99, 0x9f, 0x29,
1245 0x7b, 0xe8, 0x6b, 0x3c, 0x45, 0x70, 0x7a, 0xb4, 0x32, 0x2f, 0xb3, 0x0d, 0x64, 0xcc, 0x7d, 0xc7,
1246 0x15, 0x34, 0x2c, 0x1c, 0x8b, 0x62, 0x46, 0x27, 0xe3, 0x6b, 0x04, 0xf9, 0x14, 0x88, 0xb8, 0x31,
1247 0xee, 0x42, 0x56, 0x43, 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0x3b, 0xf8, 0x5c, 0x10, 0x00, 0x00,