| // Copyright 2022 Google LLC |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.26.0 |
| // protoc v3.12.2 |
| // source: google/cloud/orgpolicy/v2/orgpolicy.proto |
| |
| package orgpolicypb |
| |
| import ( |
| context "context" |
| reflect "reflect" |
| sync "sync" |
| |
| empty "github.com/golang/protobuf/ptypes/empty" |
| timestamp "github.com/golang/protobuf/ptypes/timestamp" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| expr "google.golang.org/genproto/googleapis/type/expr" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // Defines a Cloud Organization `Policy` which is used to specify `Constraints` |
| // for configurations of Cloud Platform resources. |
| type Policy struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Immutable. The resource name of the Policy. Must be one of the following |
| // forms, where constraint_name is the name of the constraint which this |
| // Policy configures: |
| // * `projects/{project_number}/policies/{constraint_name}` |
| // * `folders/{folder_id}/policies/{constraint_name}` |
| // * `organizations/{organization_id}/policies/{constraint_name}` |
| // |
| // For example, "projects/123/policies/compute.disableSerialPortAccess". |
| // |
| // Note: `projects/{project_id}/policies/{constraint_name}` is also an |
| // acceptable name for API requests, but responses will return the name using |
| // the equivalent project number. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Basic information about the Organization Policy. |
| Spec *PolicySpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` |
| // Deprecated. |
| // |
| // Deprecated: Do not use. |
| Alternate *AlternatePolicySpec `protobuf:"bytes,3,opt,name=alternate,proto3" json:"alternate,omitempty"` |
| } |
| |
| func (x *Policy) Reset() { |
| *x = Policy{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *Policy) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Policy) ProtoMessage() {} |
| |
| func (x *Policy) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[0] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Policy.ProtoReflect.Descriptor instead. |
| func (*Policy) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *Policy) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *Policy) GetSpec() *PolicySpec { |
| if x != nil { |
| return x.Spec |
| } |
| return nil |
| } |
| |
| // Deprecated: Do not use. |
| func (x *Policy) GetAlternate() *AlternatePolicySpec { |
| if x != nil { |
| return x.Alternate |
| } |
| return nil |
| } |
| |
| // Similar to PolicySpec but with an extra 'launch' field for launch reference. |
| // The PolicySpec here is specific for dry-run/darklaunch. |
| type AlternatePolicySpec struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Reference to the launch that will be used while audit logging and to |
| // control the launch. |
| // Should be set only in the alternate policy. |
| Launch string `protobuf:"bytes,1,opt,name=launch,proto3" json:"launch,omitempty"` |
| // Specify `Constraint` for configurations of Cloud Platform resources. |
| Spec *PolicySpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` |
| } |
| |
| func (x *AlternatePolicySpec) Reset() { |
| *x = AlternatePolicySpec{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *AlternatePolicySpec) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*AlternatePolicySpec) ProtoMessage() {} |
| |
| func (x *AlternatePolicySpec) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[1] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use AlternatePolicySpec.ProtoReflect.Descriptor instead. |
| func (*AlternatePolicySpec) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *AlternatePolicySpec) GetLaunch() string { |
| if x != nil { |
| return x.Launch |
| } |
| return "" |
| } |
| |
| func (x *AlternatePolicySpec) GetSpec() *PolicySpec { |
| if x != nil { |
| return x.Spec |
| } |
| return nil |
| } |
| |
| // Defines a Cloud Organization `PolicySpec` which is used to specify |
| // `Constraints` for configurations of Cloud Platform resources. |
| type PolicySpec struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // An opaque tag indicating the current version of the `Policy`, used for |
| // concurrency control. |
| // |
| // This field is ignored if used in a `CreatePolicy` request. |
| // |
| // When the `Policy` is returned from either a `GetPolicy` or a |
| // `ListPolicies` request, this `etag` indicates the version of the |
| // current `Policy` to use when executing a read-modify-write loop. |
| // |
| // When the `Policy` is returned from a `GetEffectivePolicy` request, the |
| // `etag` will be unset. |
| Etag string `protobuf:"bytes,1,opt,name=etag,proto3" json:"etag,omitempty"` |
| // Output only. The time stamp this was previously updated. This |
| // represents the last time a call to `CreatePolicy` or `UpdatePolicy` was |
| // made for that `Policy`. |
| UpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` |
| // Up to 10 PolicyRules are allowed. |
| // |
| // In Policies for boolean constraints, the following requirements apply: |
| // - There must be one and only one PolicyRule where condition is unset. |
| // - BooleanPolicyRules with conditions must set `enforced` to the opposite |
| // of the PolicyRule without a condition. |
| // - During policy evaluation, PolicyRules with conditions that are |
| // true for a target resource take precedence. |
| Rules []*PolicySpec_PolicyRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"` |
| // Determines the inheritance behavior for this `Policy`. |
| // |
| // If `inherit_from_parent` is true, PolicyRules set higher up in the |
| // hierarchy (up to the closest root) are inherited and present in the |
| // effective policy. If it is false, then no rules are inherited, and this |
| // Policy becomes the new root for evaluation. |
| // This field can be set only for Policies which configure list constraints. |
| InheritFromParent bool `protobuf:"varint,4,opt,name=inherit_from_parent,json=inheritFromParent,proto3" json:"inherit_from_parent,omitempty"` |
| // Ignores policies set above this resource and restores the |
| // `constraint_default` enforcement behavior of the specific `Constraint` at |
| // this resource. |
| // This field can be set in policies for either list or boolean |
| // constraints. If set, `rules` must be empty and `inherit_from_parent` |
| // must be set to false. |
| Reset_ bool `protobuf:"varint,5,opt,name=reset,proto3" json:"reset,omitempty"` |
| } |
| |
| func (x *PolicySpec) Reset() { |
| *x = PolicySpec{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *PolicySpec) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*PolicySpec) ProtoMessage() {} |
| |
| func (x *PolicySpec) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[2] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use PolicySpec.ProtoReflect.Descriptor instead. |
| func (*PolicySpec) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *PolicySpec) GetEtag() string { |
| if x != nil { |
| return x.Etag |
| } |
| return "" |
| } |
| |
| func (x *PolicySpec) GetUpdateTime() *timestamp.Timestamp { |
| if x != nil { |
| return x.UpdateTime |
| } |
| return nil |
| } |
| |
| func (x *PolicySpec) GetRules() []*PolicySpec_PolicyRule { |
| if x != nil { |
| return x.Rules |
| } |
| return nil |
| } |
| |
| func (x *PolicySpec) GetInheritFromParent() bool { |
| if x != nil { |
| return x.InheritFromParent |
| } |
| return false |
| } |
| |
| func (x *PolicySpec) GetReset_() bool { |
| if x != nil { |
| return x.Reset_ |
| } |
| return false |
| } |
| |
| // The request sent to the [ListConstraints] |
| // [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method. |
| type ListConstraintsRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. The Cloud resource that parents the constraint. Must be in one of the |
| // following forms: |
| // * `projects/{project_number}` |
| // * `projects/{project_id}` |
| // * `folders/{folder_id}` |
| // * `organizations/{organization_id}` |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // Size of the pages to be returned. This is currently unsupported and will |
| // be ignored. The server may at any point start using this field to limit |
| // page size. |
| PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| // Page token used to retrieve the next page. This is currently unsupported |
| // and will be ignored. The server may at any point start using this field. |
| PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| } |
| |
| func (x *ListConstraintsRequest) Reset() { |
| *x = ListConstraintsRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ListConstraintsRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListConstraintsRequest) ProtoMessage() {} |
| |
| func (x *ListConstraintsRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[3] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListConstraintsRequest.ProtoReflect.Descriptor instead. |
| func (*ListConstraintsRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *ListConstraintsRequest) GetParent() string { |
| if x != nil { |
| return x.Parent |
| } |
| return "" |
| } |
| |
| func (x *ListConstraintsRequest) GetPageSize() int32 { |
| if x != nil { |
| return x.PageSize |
| } |
| return 0 |
| } |
| |
| func (x *ListConstraintsRequest) GetPageToken() string { |
| if x != nil { |
| return x.PageToken |
| } |
| return "" |
| } |
| |
| // The response returned from the [ListConstraints] |
| // [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method. |
| type ListConstraintsResponse struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The collection of constraints that are available on the targeted resource. |
| Constraints []*Constraint `protobuf:"bytes,1,rep,name=constraints,proto3" json:"constraints,omitempty"` |
| // Page token used to retrieve the next page. This is currently not used. |
| NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| } |
| |
| func (x *ListConstraintsResponse) Reset() { |
| *x = ListConstraintsResponse{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ListConstraintsResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListConstraintsResponse) ProtoMessage() {} |
| |
| func (x *ListConstraintsResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[4] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListConstraintsResponse.ProtoReflect.Descriptor instead. |
| func (*ListConstraintsResponse) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{4} |
| } |
| |
| func (x *ListConstraintsResponse) GetConstraints() []*Constraint { |
| if x != nil { |
| return x.Constraints |
| } |
| return nil |
| } |
| |
| func (x *ListConstraintsResponse) GetNextPageToken() string { |
| if x != nil { |
| return x.NextPageToken |
| } |
| return "" |
| } |
| |
| // The request sent to the [ListPolicies] |
| // [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method. |
| type ListPoliciesRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. The target Cloud resource that parents the set of constraints and policies |
| // that will be returned from this call. Must be in one of the following |
| // forms: |
| // * `projects/{project_number}` |
| // * `projects/{project_id}` |
| // * `folders/{folder_id}` |
| // * `organizations/{organization_id}` |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // Size of the pages to be returned. This is currently unsupported and will |
| // be ignored. The server may at any point start using this field to limit |
| // page size. |
| PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| // Page token used to retrieve the next page. This is currently unsupported |
| // and will be ignored. The server may at any point start using this field. |
| PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| } |
| |
| func (x *ListPoliciesRequest) Reset() { |
| *x = ListPoliciesRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ListPoliciesRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListPoliciesRequest) ProtoMessage() {} |
| |
| func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[5] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListPoliciesRequest.ProtoReflect.Descriptor instead. |
| func (*ListPoliciesRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{5} |
| } |
| |
| func (x *ListPoliciesRequest) GetParent() string { |
| if x != nil { |
| return x.Parent |
| } |
| return "" |
| } |
| |
| func (x *ListPoliciesRequest) GetPageSize() int32 { |
| if x != nil { |
| return x.PageSize |
| } |
| return 0 |
| } |
| |
| func (x *ListPoliciesRequest) GetPageToken() string { |
| if x != nil { |
| return x.PageToken |
| } |
| return "" |
| } |
| |
| // The response returned from the [ListPolicies] |
| // [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method. It will be empty |
| // if no `Policies` are set on the resource. |
| type ListPoliciesResponse struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // All `Policies` that exist on the resource. It will be empty if no |
| // `Policies` are set. |
| Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"` |
| // Page token used to retrieve the next page. This is currently not used, but |
| // the server may at any point start supplying a valid token. |
| NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| } |
| |
| func (x *ListPoliciesResponse) Reset() { |
| *x = ListPoliciesResponse{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[6] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ListPoliciesResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListPoliciesResponse) ProtoMessage() {} |
| |
| func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[6] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListPoliciesResponse.ProtoReflect.Descriptor instead. |
| func (*ListPoliciesResponse) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{6} |
| } |
| |
| func (x *ListPoliciesResponse) GetPolicies() []*Policy { |
| if x != nil { |
| return x.Policies |
| } |
| return nil |
| } |
| |
| func (x *ListPoliciesResponse) GetNextPageToken() string { |
| if x != nil { |
| return x.NextPageToken |
| } |
| return "" |
| } |
| |
| // The request sent to the [GetPolicy] |
| // [google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy] method. |
| type GetPolicyRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. Resource name of the policy. See `Policy` for naming requirements. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| } |
| |
| func (x *GetPolicyRequest) Reset() { |
| *x = GetPolicyRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[7] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *GetPolicyRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GetPolicyRequest) ProtoMessage() {} |
| |
| func (x *GetPolicyRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[7] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use GetPolicyRequest.ProtoReflect.Descriptor instead. |
| func (*GetPolicyRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{7} |
| } |
| |
| func (x *GetPolicyRequest) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| // The request sent to the [GetEffectivePolicy] |
| // [google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy] method. |
| type GetEffectivePolicyRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. The effective policy to compute. See `Policy` for naming rules. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| } |
| |
| func (x *GetEffectivePolicyRequest) Reset() { |
| *x = GetEffectivePolicyRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[8] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *GetEffectivePolicyRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GetEffectivePolicyRequest) ProtoMessage() {} |
| |
| func (x *GetEffectivePolicyRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[8] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use GetEffectivePolicyRequest.ProtoReflect.Descriptor instead. |
| func (*GetEffectivePolicyRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{8} |
| } |
| |
| func (x *GetEffectivePolicyRequest) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| // The request sent to the [CreatePolicyRequest] |
| // [google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy] method. |
| type CreatePolicyRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. The Cloud resource that will parent the new Policy. Must be in one of the |
| // following forms: |
| // * `projects/{project_number}` |
| // * `projects/{project_id}` |
| // * `folders/{folder_id}` |
| // * `organizations/{organization_id}` |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // Required. `Policy` to create. |
| Policy *Policy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"` |
| } |
| |
| func (x *CreatePolicyRequest) Reset() { |
| *x = CreatePolicyRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[9] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *CreatePolicyRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*CreatePolicyRequest) ProtoMessage() {} |
| |
| func (x *CreatePolicyRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[9] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use CreatePolicyRequest.ProtoReflect.Descriptor instead. |
| func (*CreatePolicyRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{9} |
| } |
| |
| func (x *CreatePolicyRequest) GetParent() string { |
| if x != nil { |
| return x.Parent |
| } |
| return "" |
| } |
| |
| func (x *CreatePolicyRequest) GetPolicy() *Policy { |
| if x != nil { |
| return x.Policy |
| } |
| return nil |
| } |
| |
| // The request sent to the [UpdatePolicyRequest] |
| // [google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy] method. |
| type UpdatePolicyRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. `Policy` to update. |
| Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` |
| } |
| |
| func (x *UpdatePolicyRequest) Reset() { |
| *x = UpdatePolicyRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[10] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *UpdatePolicyRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*UpdatePolicyRequest) ProtoMessage() {} |
| |
| func (x *UpdatePolicyRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[10] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use UpdatePolicyRequest.ProtoReflect.Descriptor instead. |
| func (*UpdatePolicyRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{10} |
| } |
| |
| func (x *UpdatePolicyRequest) GetPolicy() *Policy { |
| if x != nil { |
| return x.Policy |
| } |
| return nil |
| } |
| |
| // The request sent to the [DeletePolicy] |
| // [google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy] method. |
| type DeletePolicyRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Required. Name of the policy to delete. |
| // See `Policy` for naming rules. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| } |
| |
| func (x *DeletePolicyRequest) Reset() { |
| *x = DeletePolicyRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[11] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DeletePolicyRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DeletePolicyRequest) ProtoMessage() {} |
| |
| func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[11] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use DeletePolicyRequest.ProtoReflect.Descriptor instead. |
| func (*DeletePolicyRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{11} |
| } |
| |
| func (x *DeletePolicyRequest) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| // A rule used to express this policy. |
| type PolicySpec_PolicyRule struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Types that are assignable to Kind: |
| // |
| // *PolicySpec_PolicyRule_Values |
| // *PolicySpec_PolicyRule_AllowAll |
| // *PolicySpec_PolicyRule_DenyAll |
| // *PolicySpec_PolicyRule_Enforce |
| Kind isPolicySpec_PolicyRule_Kind `protobuf_oneof:"kind"` |
| // A condition which determines whether this rule is used |
| // in the evaluation of the policy. When set, the `expression` field in |
| // the `Expr' must include from 1 to 10 subexpressions, joined by the "||" |
| // or "&&" operators. Each subexpression must be of the form |
| // "resource.matchTag('<ORG_ID>/tag_key_short_name, |
| // 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', |
| // 'tagValues/value_id')". where key_name and value_name are the resource |
| // names for Label Keys and Values. These names are available from the Tag |
| // Manager Service. An example expression is: |
| // "resource.matchTag('123456789/environment, |
| // 'prod')". or "resource.matchTagId('tagKeys/123', |
| // 'tagValues/456')". |
| Condition *expr.Expr `protobuf:"bytes,5,opt,name=condition,proto3" json:"condition,omitempty"` |
| } |
| |
| func (x *PolicySpec_PolicyRule) Reset() { |
| *x = PolicySpec_PolicyRule{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[12] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *PolicySpec_PolicyRule) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*PolicySpec_PolicyRule) ProtoMessage() {} |
| |
| func (x *PolicySpec_PolicyRule) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[12] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use PolicySpec_PolicyRule.ProtoReflect.Descriptor instead. |
| func (*PolicySpec_PolicyRule) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{2, 0} |
| } |
| |
| func (m *PolicySpec_PolicyRule) GetKind() isPolicySpec_PolicyRule_Kind { |
| if m != nil { |
| return m.Kind |
| } |
| return nil |
| } |
| |
| func (x *PolicySpec_PolicyRule) GetValues() *PolicySpec_PolicyRule_StringValues { |
| if x, ok := x.GetKind().(*PolicySpec_PolicyRule_Values); ok { |
| return x.Values |
| } |
| return nil |
| } |
| |
| func (x *PolicySpec_PolicyRule) GetAllowAll() bool { |
| if x, ok := x.GetKind().(*PolicySpec_PolicyRule_AllowAll); ok { |
| return x.AllowAll |
| } |
| return false |
| } |
| |
| func (x *PolicySpec_PolicyRule) GetDenyAll() bool { |
| if x, ok := x.GetKind().(*PolicySpec_PolicyRule_DenyAll); ok { |
| return x.DenyAll |
| } |
| return false |
| } |
| |
| func (x *PolicySpec_PolicyRule) GetEnforce() bool { |
| if x, ok := x.GetKind().(*PolicySpec_PolicyRule_Enforce); ok { |
| return x.Enforce |
| } |
| return false |
| } |
| |
| func (x *PolicySpec_PolicyRule) GetCondition() *expr.Expr { |
| if x != nil { |
| return x.Condition |
| } |
| return nil |
| } |
| |
| type isPolicySpec_PolicyRule_Kind interface { |
| isPolicySpec_PolicyRule_Kind() |
| } |
| |
| type PolicySpec_PolicyRule_Values struct { |
| // List of values to be used for this PolicyRule. This field can be set |
| // only in Policies for list constraints. |
| Values *PolicySpec_PolicyRule_StringValues `protobuf:"bytes,1,opt,name=values,proto3,oneof"` |
| } |
| |
| type PolicySpec_PolicyRule_AllowAll struct { |
| // Setting this to true means that all values are allowed. This field can |
| // be set only in Policies for list constraints. |
| AllowAll bool `protobuf:"varint,2,opt,name=allow_all,json=allowAll,proto3,oneof"` |
| } |
| |
| type PolicySpec_PolicyRule_DenyAll struct { |
| // Setting this to true means that all values are denied. This field can |
| // be set only in Policies for list constraints. |
| DenyAll bool `protobuf:"varint,3,opt,name=deny_all,json=denyAll,proto3,oneof"` |
| } |
| |
| type PolicySpec_PolicyRule_Enforce struct { |
| // If `true`, then the `Policy` is enforced. If `false`, then any |
| // configuration is acceptable. |
| // This field can be set only in Policies for boolean constraints. |
| Enforce bool `protobuf:"varint,4,opt,name=enforce,proto3,oneof"` |
| } |
| |
| func (*PolicySpec_PolicyRule_Values) isPolicySpec_PolicyRule_Kind() {} |
| |
| func (*PolicySpec_PolicyRule_AllowAll) isPolicySpec_PolicyRule_Kind() {} |
| |
| func (*PolicySpec_PolicyRule_DenyAll) isPolicySpec_PolicyRule_Kind() {} |
| |
| func (*PolicySpec_PolicyRule_Enforce) isPolicySpec_PolicyRule_Kind() {} |
| |
| // A message that holds specific allowed and denied values. |
| // This message can define specific values and subtrees of Cloud Resource |
| // Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that |
| // are allowed or denied. This is achieved by using the `under:` and |
| // optional `is:` prefixes. |
| // The `under:` prefix is used to denote resource subtree values. |
| // The `is:` prefix is used to denote specific values, and is required only |
| // if the value contains a ":". Values prefixed with "is:" are treated the |
| // same as values with no prefix. |
| // Ancestry subtrees must be in one of the following formats: |
| // - "projects/<project-id>", e.g. "projects/tokyo-rain-123" |
| // - "folders/<folder-id>", e.g. "folders/1234" |
| // - "organizations/<organization-id>", e.g. "organizations/1234" |
| // |
| // The `supports_under` field of the associated `Constraint` defines |
| // whether ancestry prefixes can be used. |
| type PolicySpec_PolicyRule_StringValues struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // List of values allowed at this resource. |
| AllowedValues []string `protobuf:"bytes,1,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"` |
| // List of values denied at this resource. |
| DeniedValues []string `protobuf:"bytes,2,rep,name=denied_values,json=deniedValues,proto3" json:"denied_values,omitempty"` |
| } |
| |
| func (x *PolicySpec_PolicyRule_StringValues) Reset() { |
| *x = PolicySpec_PolicyRule_StringValues{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[13] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *PolicySpec_PolicyRule_StringValues) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*PolicySpec_PolicyRule_StringValues) ProtoMessage() {} |
| |
| func (x *PolicySpec_PolicyRule_StringValues) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[13] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use PolicySpec_PolicyRule_StringValues.ProtoReflect.Descriptor instead. |
| func (*PolicySpec_PolicyRule_StringValues) Descriptor() ([]byte, []int) { |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP(), []int{2, 0, 0} |
| } |
| |
| func (x *PolicySpec_PolicyRule_StringValues) GetAllowedValues() []string { |
| if x != nil { |
| return x.AllowedValues |
| } |
| return nil |
| } |
| |
| func (x *PolicySpec_PolicyRule_StringValues) GetDeniedValues() []string { |
| if x != nil { |
| return x.DeniedValues |
| } |
| return nil |
| } |
| |
| var File_google_cloud_orgpolicy_v2_orgpolicy_proto protoreflect.FileDescriptor |
| |
| var file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDesc = []byte{ |
| 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, |
| 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x6f, 0x72, 0x67, 0x70, |
| 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f, 0x6f, |
| 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, |
| 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, |
| 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, |
| 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, |
| 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, |
| 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, |
| 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, |
| 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, |
| 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, |
| 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x2e, |
| 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, |
| 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, |
| 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, |
| 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, |
| 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x02, 0x0a, 0x06, |
| 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, |
| 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, |
| 0x39, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, |
| 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, |
| 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x50, 0x0a, 0x09, 0x61, 0x6c, |
| 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, |
| 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, |
| 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x6e, |
| 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x70, 0x65, 0x63, 0x42, 0x02, 0x18, |
| 0x01, 0x52, 0x09, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x65, 0x3a, 0x9f, 0x01, 0xea, |
| 0x41, 0x9b, 0x01, 0x0a, 0x1f, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x67, |
| 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x6f, |
| 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, |
| 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, |
| 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x22, 0x66, 0x6f, 0x6c, 0x64, |
| 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, |
| 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x12, 0x2e, |
| 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6f, |
| 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, |
| 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x22, 0x68, |
| 0x0a, 0x13, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, |
| 0x79, 0x53, 0x70, 0x65, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x18, |
| 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x12, 0x39, 0x0a, |
| 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, |
| 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, |
| 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x70, |
| 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0xc5, 0x04, 0x0a, 0x0a, 0x50, 0x6f, 0x6c, |
| 0x69, 0x63, 0x79, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, |
| 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x40, 0x0a, 0x0b, 0x75, |
| 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, |
| 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
| 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, |
| 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x46, 0x0a, |
| 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, |
| 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, |
| 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, |
| 0x70, 0x65, 0x63, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, |
| 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, |
| 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, |
| 0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x50, |
| 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x05, |
| 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x1a, 0xd2, 0x02, 0x0a, 0x0a, |
| 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x57, 0x0a, 0x06, 0x76, 0x61, |
| 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, |
| 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, |
| 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x70, 0x65, |
| 0x63, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x72, |
| 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x48, 0x00, 0x52, 0x06, 0x76, 0x61, 0x6c, |
| 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x6c, 0x6c, |
| 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x41, |
| 0x6c, 0x6c, 0x12, 0x1b, 0x0a, 0x08, 0x64, 0x65, 0x6e, 0x79, 0x5f, 0x61, 0x6c, 0x6c, 0x18, 0x03, |
| 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x6e, 0x79, 0x41, 0x6c, 0x6c, 0x12, |
| 0x1a, 0x0a, 0x07, 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, |
| 0x48, 0x00, 0x52, 0x07, 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, |
| 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, |
| 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, |
| 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x5a, 0x0a, 0x0c, |
| 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, |
| 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, |
| 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, 0x61, 0x6c, |
| 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x5f, 0x76, 0x61, |
| 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x6e, 0x69, |
| 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, |
| 0x22, 0x99, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, |
| 0x69, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x70, |
| 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, |
| 0xfa, 0x41, 0x25, 0x12, 0x23, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x67, |
| 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, |
| 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, |
| 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, |
| 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, |
| 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8a, 0x01, 0x0a, |
| 0x17, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, |
| 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, |
| 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, |
| 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, |
| 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, |
| 0x61, 0x69, 0x6e, 0x74, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, |
| 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, |
| 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, |
| 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x13, 0x4c, 0x69, |
| 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x12, 0x1f, 0x6f, 0x72, 0x67, 0x70, 0x6f, |
| 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, |
| 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, |
| 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, |
| 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, |
| 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, |
| 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7d, |
| 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, |
| 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, |
| 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, |
| 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x08, 0x70, 0x6f, 0x6c, |
| 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, |
| 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, |
| 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x4f, 0x0a, |
| 0x10, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, |
| 0x63, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, |
| 0x6d, 0x2f, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x58, |
| 0x0a, 0x19, 0x47, 0x65, 0x74, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x6f, |
| 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, |
| 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, |
| 0x21, 0x0a, 0x1f, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x67, 0x6f, 0x6f, |
| 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x6f, 0x6c, 0x69, |
| 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, |
| 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x12, 0x1f, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, |
| 0x69, 0x63, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, |
| 0x6f, 0x6d, 0x2f, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, |
| 0x74, 0x12, 0x3e, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, |
| 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, |
| 0x79, 0x22, 0x55, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, |
| 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, |
| 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, |
| 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, |
| 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x52, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, |
| 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, |
| 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, |
| 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, |
| 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xbd, 0x0e, 0x0a, |
| 0x09, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x81, 0x02, 0x0a, 0x0f, 0x4c, |
| 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x31, |
| 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, |
| 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, |
| 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 0x74, 0x1a, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, |
| 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, |
| 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x86, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x77, 0x12, 0x23, |
| 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, |
| 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, |
| 0x6e, 0x74, 0x73, 0x5a, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, |
| 0x6e, 0x74, 0x3d, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6f, |
| 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x5a, 0x2a, 0x12, 0x28, 0x2f, 0x76, 0x32, |
| 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, |
| 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, |
| 0x61, 0x69, 0x6e, 0x74, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xee, |
| 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, |
| 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, |
| 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, |
| 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, |
| 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, |
| 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, |
| 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 0x22, 0x7d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6e, 0x12, 0x20, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, |
| 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, |
| 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x21, 0x12, 0x1f, 0x2f, 0x76, |
| 0x32, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, |
| 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x27, 0x12, |
| 0x25, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x6f, 0x72, 0x67, |
| 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, |
| 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, |
| 0xd8, 0x01, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2b, 0x2e, |
| 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, |
| 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, |
| 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f, |
| 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, |
| 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x7b, 0x82, |
| 0xd3, 0xe4, 0x93, 0x02, 0x6e, 0x12, 0x20, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, |
| 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, |
| 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x32, 0x2f, 0x7b, |
| 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x70, |
| 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x27, 0x12, 0x25, 0x2f, 0x76, |
| 0x32, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, |
| 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, |
| 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xa5, 0x02, 0x0a, 0x12, 0x47, |
| 0x65, 0x74, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, |
| 0x79, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, |
| 0x74, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xb5, 0x01, 0x82, 0xd3, 0xe4, |
| 0x93, 0x02, 0xa7, 0x01, 0x12, 0x33, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, |
| 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, |
| 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, |
| 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x34, 0x12, 0x32, 0x2f, 0x76, 0x32, |
| 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, |
| 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, |
| 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, |
| 0x3a, 0x12, 0x38, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6f, 0x72, 0x67, |
| 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, |
| 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x45, 0x66, 0x66, 0x65, |
| 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0xda, 0x41, 0x04, 0x6e, 0x61, |
| 0x6d, 0x65, 0x12, 0x81, 0x02, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, |
| 0x69, 0x63, 0x79, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, |
| 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, |
| 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, |
| 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x9d, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x86, 0x01, |
| 0x22, 0x20, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, |
| 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, |
| 0x65, 0x73, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x29, 0x22, 0x1f, 0x2f, 0x76, |
| 0x32, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, |
| 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x06, 0x70, |
| 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x2f, 0x22, 0x25, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x61, |
| 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, |
| 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x06, |
| 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, |
| 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x8f, 0x02, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, |
| 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xab, 0x01, 0x82, 0xd3, 0xe4, |
| 0x93, 0x02, 0x9b, 0x01, 0x32, 0x27, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, |
| 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, |
| 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x06, 0x70, |
| 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x30, 0x32, 0x26, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x6f, |
| 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, |
| 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, |
| 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x36, 0x32, 0x2c, 0x2f, 0x76, 0x32, 0x2f, 0x7b, |
| 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6f, 0x72, 0x67, 0x61, |
| 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, |
| 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0xda, |
| 0x41, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0xd3, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, |
| 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, |
| 0x63, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, |
| 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, |
| 0x79, 0x22, 0x7b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6e, 0x2a, 0x20, 0x2f, 0x76, 0x32, 0x2f, 0x7b, |
| 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, |
| 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x21, 0x2a, 0x1f, 0x2f, |
| 0x76, 0x32, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, |
| 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x27, |
| 0x2a, 0x25, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6f, 0x72, 0x67, 0x61, |
| 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, |
| 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x4c, |
| 0xca, 0x41, 0x18, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x67, 0x6f, 0x6f, |
| 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, |
| 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, |
| 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xcc, 0x01, 0x0a, |
| 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x0e, |
| 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, |
| 0x5a, 0x42, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, |
| 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, |
| 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, 0x72, |
| 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x76, 0x32, 0x3b, 0x6f, 0x72, 0x67, 0x70, 0x6f, |
| 0x6c, 0x69, 0x63, 0x79, 0xaa, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, |
| 0x6f, 0x75, 0x64, 0x2e, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x56, 0x32, |
| 0xca, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, |
| 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x1c, 0x47, |
| 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4f, 0x72, |
| 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, |
| 0x74, 0x6f, 0x33, |
| } |
| |
| var ( |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescOnce sync.Once |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescData = file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDesc |
| ) |
| |
| func file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescGZIP() []byte { |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescOnce.Do(func() { |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescData) |
| }) |
| return file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDescData |
| } |
| |
| var file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes = make([]protoimpl.MessageInfo, 14) |
| var file_google_cloud_orgpolicy_v2_orgpolicy_proto_goTypes = []interface{}{ |
| (*Policy)(nil), // 0: google.cloud.orgpolicy.v2.Policy |
| (*AlternatePolicySpec)(nil), // 1: google.cloud.orgpolicy.v2.AlternatePolicySpec |
| (*PolicySpec)(nil), // 2: google.cloud.orgpolicy.v2.PolicySpec |
| (*ListConstraintsRequest)(nil), // 3: google.cloud.orgpolicy.v2.ListConstraintsRequest |
| (*ListConstraintsResponse)(nil), // 4: google.cloud.orgpolicy.v2.ListConstraintsResponse |
| (*ListPoliciesRequest)(nil), // 5: google.cloud.orgpolicy.v2.ListPoliciesRequest |
| (*ListPoliciesResponse)(nil), // 6: google.cloud.orgpolicy.v2.ListPoliciesResponse |
| (*GetPolicyRequest)(nil), // 7: google.cloud.orgpolicy.v2.GetPolicyRequest |
| (*GetEffectivePolicyRequest)(nil), // 8: google.cloud.orgpolicy.v2.GetEffectivePolicyRequest |
| (*CreatePolicyRequest)(nil), // 9: google.cloud.orgpolicy.v2.CreatePolicyRequest |
| (*UpdatePolicyRequest)(nil), // 10: google.cloud.orgpolicy.v2.UpdatePolicyRequest |
| (*DeletePolicyRequest)(nil), // 11: google.cloud.orgpolicy.v2.DeletePolicyRequest |
| (*PolicySpec_PolicyRule)(nil), // 12: google.cloud.orgpolicy.v2.PolicySpec.PolicyRule |
| (*PolicySpec_PolicyRule_StringValues)(nil), // 13: google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues |
| (*timestamp.Timestamp)(nil), // 14: google.protobuf.Timestamp |
| (*Constraint)(nil), // 15: google.cloud.orgpolicy.v2.Constraint |
| (*expr.Expr)(nil), // 16: google.type.Expr |
| (*empty.Empty)(nil), // 17: google.protobuf.Empty |
| } |
| var file_google_cloud_orgpolicy_v2_orgpolicy_proto_depIdxs = []int32{ |
| 2, // 0: google.cloud.orgpolicy.v2.Policy.spec:type_name -> google.cloud.orgpolicy.v2.PolicySpec |
| 1, // 1: google.cloud.orgpolicy.v2.Policy.alternate:type_name -> google.cloud.orgpolicy.v2.AlternatePolicySpec |
| 2, // 2: google.cloud.orgpolicy.v2.AlternatePolicySpec.spec:type_name -> google.cloud.orgpolicy.v2.PolicySpec |
| 14, // 3: google.cloud.orgpolicy.v2.PolicySpec.update_time:type_name -> google.protobuf.Timestamp |
| 12, // 4: google.cloud.orgpolicy.v2.PolicySpec.rules:type_name -> google.cloud.orgpolicy.v2.PolicySpec.PolicyRule |
| 15, // 5: google.cloud.orgpolicy.v2.ListConstraintsResponse.constraints:type_name -> google.cloud.orgpolicy.v2.Constraint |
| 0, // 6: google.cloud.orgpolicy.v2.ListPoliciesResponse.policies:type_name -> google.cloud.orgpolicy.v2.Policy |
| 0, // 7: google.cloud.orgpolicy.v2.CreatePolicyRequest.policy:type_name -> google.cloud.orgpolicy.v2.Policy |
| 0, // 8: google.cloud.orgpolicy.v2.UpdatePolicyRequest.policy:type_name -> google.cloud.orgpolicy.v2.Policy |
| 13, // 9: google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.values:type_name -> google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues |
| 16, // 10: google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.condition:type_name -> google.type.Expr |
| 3, // 11: google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints:input_type -> google.cloud.orgpolicy.v2.ListConstraintsRequest |
| 5, // 12: google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies:input_type -> google.cloud.orgpolicy.v2.ListPoliciesRequest |
| 7, // 13: google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy:input_type -> google.cloud.orgpolicy.v2.GetPolicyRequest |
| 8, // 14: google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy:input_type -> google.cloud.orgpolicy.v2.GetEffectivePolicyRequest |
| 9, // 15: google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy:input_type -> google.cloud.orgpolicy.v2.CreatePolicyRequest |
| 10, // 16: google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy:input_type -> google.cloud.orgpolicy.v2.UpdatePolicyRequest |
| 11, // 17: google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy:input_type -> google.cloud.orgpolicy.v2.DeletePolicyRequest |
| 4, // 18: google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints:output_type -> google.cloud.orgpolicy.v2.ListConstraintsResponse |
| 6, // 19: google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies:output_type -> google.cloud.orgpolicy.v2.ListPoliciesResponse |
| 0, // 20: google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy:output_type -> google.cloud.orgpolicy.v2.Policy |
| 0, // 21: google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy:output_type -> google.cloud.orgpolicy.v2.Policy |
| 0, // 22: google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy:output_type -> google.cloud.orgpolicy.v2.Policy |
| 0, // 23: google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy:output_type -> google.cloud.orgpolicy.v2.Policy |
| 17, // 24: google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy:output_type -> google.protobuf.Empty |
| 18, // [18:25] is the sub-list for method output_type |
| 11, // [11:18] is the sub-list for method input_type |
| 11, // [11:11] is the sub-list for extension type_name |
| 11, // [11:11] is the sub-list for extension extendee |
| 0, // [0:11] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_cloud_orgpolicy_v2_orgpolicy_proto_init() } |
| func file_google_cloud_orgpolicy_v2_orgpolicy_proto_init() { |
| if File_google_cloud_orgpolicy_v2_orgpolicy_proto != nil { |
| return |
| } |
| file_google_cloud_orgpolicy_v2_constraint_proto_init() |
| if !protoimpl.UnsafeEnabled { |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*Policy); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*AlternatePolicySpec); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*PolicySpec); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ListConstraintsRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ListConstraintsResponse); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ListPoliciesRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ListPoliciesResponse); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*GetPolicyRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*GetEffectivePolicyRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*CreatePolicyRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*UpdatePolicyRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DeletePolicyRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*PolicySpec_PolicyRule); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*PolicySpec_PolicyRule_StringValues); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes[12].OneofWrappers = []interface{}{ |
| (*PolicySpec_PolicyRule_Values)(nil), |
| (*PolicySpec_PolicyRule_AllowAll)(nil), |
| (*PolicySpec_PolicyRule_DenyAll)(nil), |
| (*PolicySpec_PolicyRule_Enforce)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDesc, |
| NumEnums: 0, |
| NumMessages: 14, |
| NumExtensions: 0, |
| NumServices: 1, |
| }, |
| GoTypes: file_google_cloud_orgpolicy_v2_orgpolicy_proto_goTypes, |
| DependencyIndexes: file_google_cloud_orgpolicy_v2_orgpolicy_proto_depIdxs, |
| MessageInfos: file_google_cloud_orgpolicy_v2_orgpolicy_proto_msgTypes, |
| }.Build() |
| File_google_cloud_orgpolicy_v2_orgpolicy_proto = out.File |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_rawDesc = nil |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_goTypes = nil |
| file_google_cloud_orgpolicy_v2_orgpolicy_proto_depIdxs = nil |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConnInterface |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion6 |
| |
| // OrgPolicyClient is the client API for OrgPolicy service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type OrgPolicyClient interface { |
| // Lists `Constraints` that could be applied on the specified resource. |
| ListConstraints(ctx context.Context, in *ListConstraintsRequest, opts ...grpc.CallOption) (*ListConstraintsResponse, error) |
| // Retrieves all of the `Policies` that exist on a particular resource. |
| ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error) |
| // Gets a `Policy` on a resource. |
| // |
| // If no `Policy` is set on the resource, NOT_FOUND is returned. The |
| // `etag` value can be used with `UpdatePolicy()` to update a |
| // `Policy` during read-modify-write. |
| GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*Policy, error) |
| // Gets the effective `Policy` on a resource. This is the result of merging |
| // `Policies` in the resource hierarchy and evaluating conditions. The |
| // returned `Policy` will not have an `etag` or `condition` set because it is |
| // a computed `Policy` across multiple resources. |
| // Subtrees of Resource Manager resource hierarchy with 'under:' prefix will |
| // not be expanded. |
| GetEffectivePolicy(ctx context.Context, in *GetEffectivePolicyRequest, opts ...grpc.CallOption) (*Policy, error) |
| // Creates a Policy. |
| // |
| // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the |
| // constraint does not exist. |
| // Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the |
| // policy already exists on the given Cloud resource. |
| CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*Policy, error) |
| // Updates a Policy. |
| // |
| // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the |
| // constraint or the policy do not exist. |
| // Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag |
| // supplied in the request does not match the persisted etag of the policy |
| // |
| // Note: the supplied policy will perform a full overwrite of all |
| // fields. |
| UpdatePolicy(ctx context.Context, in *UpdatePolicyRequest, opts ...grpc.CallOption) (*Policy, error) |
| // Deletes a Policy. |
| // |
| // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the |
| // constraint or Org Policy does not exist. |
| DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) |
| } |
| |
| type orgPolicyClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewOrgPolicyClient(cc grpc.ClientConnInterface) OrgPolicyClient { |
| return &orgPolicyClient{cc} |
| } |
| |
| func (c *orgPolicyClient) ListConstraints(ctx context.Context, in *ListConstraintsRequest, opts ...grpc.CallOption) (*ListConstraintsResponse, error) { |
| out := new(ListConstraintsResponse) |
| err := c.cc.Invoke(ctx, "/google.cloud.orgpolicy.v2.OrgPolicy/ListConstraints", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *orgPolicyClient) ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error) { |
| out := new(ListPoliciesResponse) |
| err := c.cc.Invoke(ctx, "/google.cloud.orgpolicy.v2.OrgPolicy/ListPolicies", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *orgPolicyClient) GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*Policy, error) { |
| out := new(Policy) |
| err := c.cc.Invoke(ctx, "/google.cloud.orgpolicy.v2.OrgPolicy/GetPolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *orgPolicyClient) GetEffectivePolicy(ctx context.Context, in *GetEffectivePolicyRequest, opts ...grpc.CallOption) (*Policy, error) { |
| out := new(Policy) |
| err := c.cc.Invoke(ctx, "/google.cloud.orgpolicy.v2.OrgPolicy/GetEffectivePolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *orgPolicyClient) CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*Policy, error) { |
| out := new(Policy) |
| err := c.cc.Invoke(ctx, "/google.cloud.orgpolicy.v2.OrgPolicy/CreatePolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *orgPolicyClient) UpdatePolicy(ctx context.Context, in *UpdatePolicyRequest, opts ...grpc.CallOption) (*Policy, error) { |
| out := new(Policy) |
| err := c.cc.Invoke(ctx, "/google.cloud.orgpolicy.v2.OrgPolicy/UpdatePolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *orgPolicyClient) DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/google.cloud.orgpolicy.v2.OrgPolicy/DeletePolicy", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // OrgPolicyServer is the server API for OrgPolicy service. |
| type OrgPolicyServer interface { |
| // Lists `Constraints` that could be applied on the specified resource. |
| ListConstraints(context.Context, *ListConstraintsRequest) (*ListConstraintsResponse, error) |
| // Retrieves all of the `Policies` that exist on a particular resource. |
| ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) |
| // Gets a `Policy` on a resource. |
| // |
| // If no `Policy` is set on the resource, NOT_FOUND is returned. The |
| // `etag` value can be used with `UpdatePolicy()` to update a |
| // `Policy` during read-modify-write. |
| GetPolicy(context.Context, *GetPolicyRequest) (*Policy, error) |
| // Gets the effective `Policy` on a resource. This is the result of merging |
| // `Policies` in the resource hierarchy and evaluating conditions. The |
| // returned `Policy` will not have an `etag` or `condition` set because it is |
| // a computed `Policy` across multiple resources. |
| // Subtrees of Resource Manager resource hierarchy with 'under:' prefix will |
| // not be expanded. |
| GetEffectivePolicy(context.Context, *GetEffectivePolicyRequest) (*Policy, error) |
| // Creates a Policy. |
| // |
| // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the |
| // constraint does not exist. |
| // Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the |
| // policy already exists on the given Cloud resource. |
| CreatePolicy(context.Context, *CreatePolicyRequest) (*Policy, error) |
| // Updates a Policy. |
| // |
| // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the |
| // constraint or the policy do not exist. |
| // Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag |
| // supplied in the request does not match the persisted etag of the policy |
| // |
| // Note: the supplied policy will perform a full overwrite of all |
| // fields. |
| UpdatePolicy(context.Context, *UpdatePolicyRequest) (*Policy, error) |
| // Deletes a Policy. |
| // |
| // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the |
| // constraint or Org Policy does not exist. |
| DeletePolicy(context.Context, *DeletePolicyRequest) (*empty.Empty, error) |
| } |
| |
| // UnimplementedOrgPolicyServer can be embedded to have forward compatible implementations. |
| type UnimplementedOrgPolicyServer struct { |
| } |
| |
| func (*UnimplementedOrgPolicyServer) ListConstraints(context.Context, *ListConstraintsRequest) (*ListConstraintsResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListConstraints not implemented") |
| } |
| func (*UnimplementedOrgPolicyServer) ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListPolicies not implemented") |
| } |
| func (*UnimplementedOrgPolicyServer) GetPolicy(context.Context, *GetPolicyRequest) (*Policy, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetPolicy not implemented") |
| } |
| func (*UnimplementedOrgPolicyServer) GetEffectivePolicy(context.Context, *GetEffectivePolicyRequest) (*Policy, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetEffectivePolicy not implemented") |
| } |
| func (*UnimplementedOrgPolicyServer) CreatePolicy(context.Context, *CreatePolicyRequest) (*Policy, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CreatePolicy not implemented") |
| } |
| func (*UnimplementedOrgPolicyServer) UpdatePolicy(context.Context, *UpdatePolicyRequest) (*Policy, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdatePolicy not implemented") |
| } |
| func (*UnimplementedOrgPolicyServer) DeletePolicy(context.Context, *DeletePolicyRequest) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DeletePolicy not implemented") |
| } |
| |
| func RegisterOrgPolicyServer(s *grpc.Server, srv OrgPolicyServer) { |
| s.RegisterService(&_OrgPolicy_serviceDesc, srv) |
| } |
| |
| func _OrgPolicy_ListConstraints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListConstraintsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OrgPolicyServer).ListConstraints(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.orgpolicy.v2.OrgPolicy/ListConstraints", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OrgPolicyServer).ListConstraints(ctx, req.(*ListConstraintsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OrgPolicy_ListPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListPoliciesRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OrgPolicyServer).ListPolicies(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.orgpolicy.v2.OrgPolicy/ListPolicies", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OrgPolicyServer).ListPolicies(ctx, req.(*ListPoliciesRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OrgPolicy_GetPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetPolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OrgPolicyServer).GetPolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.orgpolicy.v2.OrgPolicy/GetPolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OrgPolicyServer).GetPolicy(ctx, req.(*GetPolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OrgPolicy_GetEffectivePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetEffectivePolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OrgPolicyServer).GetEffectivePolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.orgpolicy.v2.OrgPolicy/GetEffectivePolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OrgPolicyServer).GetEffectivePolicy(ctx, req.(*GetEffectivePolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OrgPolicy_CreatePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CreatePolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OrgPolicyServer).CreatePolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.orgpolicy.v2.OrgPolicy/CreatePolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OrgPolicyServer).CreatePolicy(ctx, req.(*CreatePolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OrgPolicy_UpdatePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(UpdatePolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OrgPolicyServer).UpdatePolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.orgpolicy.v2.OrgPolicy/UpdatePolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OrgPolicyServer).UpdatePolicy(ctx, req.(*UpdatePolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OrgPolicy_DeletePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(DeletePolicyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OrgPolicyServer).DeletePolicy(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.orgpolicy.v2.OrgPolicy/DeletePolicy", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OrgPolicyServer).DeletePolicy(ctx, req.(*DeletePolicyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _OrgPolicy_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.cloud.orgpolicy.v2.OrgPolicy", |
| HandlerType: (*OrgPolicyServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "ListConstraints", |
| Handler: _OrgPolicy_ListConstraints_Handler, |
| }, |
| { |
| MethodName: "ListPolicies", |
| Handler: _OrgPolicy_ListPolicies_Handler, |
| }, |
| { |
| MethodName: "GetPolicy", |
| Handler: _OrgPolicy_GetPolicy_Handler, |
| }, |
| { |
| MethodName: "GetEffectivePolicy", |
| Handler: _OrgPolicy_GetEffectivePolicy_Handler, |
| }, |
| { |
| MethodName: "CreatePolicy", |
| Handler: _OrgPolicy_CreatePolicy_Handler, |
| }, |
| { |
| MethodName: "UpdatePolicy", |
| Handler: _OrgPolicy_UpdatePolicy_Handler, |
| }, |
| { |
| MethodName: "DeletePolicy", |
| Handler: _OrgPolicy_DeletePolicy_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/cloud/orgpolicy/v2/orgpolicy.proto", |
| } |