| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// - protoc-gen-go-grpc v1.3.0 |
| 18 |
// - protoc v4.25.7 |
| 19 |
// source: google/cloud/dialogflow/cx/v3beta1/security_settings.proto |
| 20 |
|
| 21 |
package cxpb |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
grpc "google.golang.org/grpc" |
| 26 |
codes "google.golang.org/grpc/codes" |
| 27 |
status "google.golang.org/grpc/status" |
| 28 |
emptypb "google.golang.org/protobuf/types/known/emptypb" |
| 29 |
) |
| 30 |
|
| 31 |
// This is a compile-time assertion to ensure that this generated file |
| 32 |
// is compatible with the grpc package it is being compiled against. |
| 33 |
// Requires gRPC-Go v1.32.0 or later. |
| 34 |
const _ = grpc.SupportPackageIsVersion7 |
| 35 |
|
| 36 |
const ( |
| 37 |
SecuritySettingsService_CreateSecuritySettings_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService/CreateSecuritySettings" |
| 38 |
SecuritySettingsService_GetSecuritySettings_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService/GetSecuritySettings" |
| 39 |
SecuritySettingsService_UpdateSecuritySettings_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService/UpdateSecuritySettings" |
| 40 |
SecuritySettingsService_ListSecuritySettings_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService/ListSecuritySettings" |
| 41 |
SecuritySettingsService_DeleteSecuritySettings_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService/DeleteSecuritySettings" |
| 42 |
) |
| 43 |
|
| 44 |
// SecuritySettingsServiceClient is the client API for SecuritySettingsService service. |
| 45 |
// |
| 46 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| 47 |
type SecuritySettingsServiceClient interface { |
| 48 |
// Create security settings in the specified location. |
| 49 |
CreateSecuritySettings(ctx context.Context, in *CreateSecuritySettingsRequest, opts ...grpc.CallOption) (*SecuritySettings, error) |
| 50 |
// Retrieves the specified |
| 51 |
// [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. |
| 52 |
// The returned settings may be stale by up to 1 minute. |
| 53 |
GetSecuritySettings(ctx context.Context, in *GetSecuritySettingsRequest, opts ...grpc.CallOption) (*SecuritySettings, error) |
| 54 |
// Updates the specified |
| 55 |
// [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. |
| 56 |
UpdateSecuritySettings(ctx context.Context, in *UpdateSecuritySettingsRequest, opts ...grpc.CallOption) (*SecuritySettings, error) |
| 57 |
// Returns the list of all security settings in the specified location. |
| 58 |
ListSecuritySettings(ctx context.Context, in *ListSecuritySettingsRequest, opts ...grpc.CallOption) (*ListSecuritySettingsResponse, error) |
| 59 |
// Deletes the specified |
| 60 |
// [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. |
| 61 |
DeleteSecuritySettings(ctx context.Context, in *DeleteSecuritySettingsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| 62 |
} |
| 63 |
|
| 64 |
type securitySettingsServiceClient struct { |
| 65 |
cc grpc.ClientConnInterface |
| 66 |
} |
| 67 |
|
| 68 |
func NewSecuritySettingsServiceClient(cc grpc.ClientConnInterface) SecuritySettingsServiceClient { |
| 69 |
return &securitySettingsServiceClient{cc} |
| 70 |
} |
| 71 |
|
| 72 |
func (c *securitySettingsServiceClient) CreateSecuritySettings(ctx context.Context, in *CreateSecuritySettingsRequest, opts ...grpc.CallOption) (*SecuritySettings, error) { |
| 73 |
out := new(SecuritySettings) |
| 74 |
err := c.cc.Invoke(ctx, SecuritySettingsService_CreateSecuritySettings_FullMethodName, in, out, opts...) |
| 75 |
if err != nil { |
| 76 |
return nil, err |
| 77 |
} |
| 78 |
return out, nil |
| 79 |
} |
| 80 |
|
| 81 |
func (c *securitySettingsServiceClient) GetSecuritySettings(ctx context.Context, in *GetSecuritySettingsRequest, opts ...grpc.CallOption) (*SecuritySettings, error) { |
| 82 |
out := new(SecuritySettings) |
| 83 |
err := c.cc.Invoke(ctx, SecuritySettingsService_GetSecuritySettings_FullMethodName, in, out, opts...) |
| 84 |
if err != nil { |
| 85 |
return nil, err |
| 86 |
} |
| 87 |
return out, nil |
| 88 |
} |
| 89 |
|
| 90 |
func (c *securitySettingsServiceClient) UpdateSecuritySettings(ctx context.Context, in *UpdateSecuritySettingsRequest, opts ...grpc.CallOption) (*SecuritySettings, error) { |
| 91 |
out := new(SecuritySettings) |
| 92 |
err := c.cc.Invoke(ctx, SecuritySettingsService_UpdateSecuritySettings_FullMethodName, in, out, opts...) |
| 93 |
if err != nil { |
| 94 |
return nil, err |
| 95 |
} |
| 96 |
return out, nil |
| 97 |
} |
| 98 |
|
| 99 |
func (c *securitySettingsServiceClient) ListSecuritySettings(ctx context.Context, in *ListSecuritySettingsRequest, opts ...grpc.CallOption) (*ListSecuritySettingsResponse, error) { |
| 100 |
out := new(ListSecuritySettingsResponse) |
| 101 |
err := c.cc.Invoke(ctx, SecuritySettingsService_ListSecuritySettings_FullMethodName, in, out, opts...) |
| 102 |
if err != nil { |
| 103 |
return nil, err |
| 104 |
} |
| 105 |
return out, nil |
| 106 |
} |
| 107 |
|
| 108 |
func (c *securitySettingsServiceClient) DeleteSecuritySettings(ctx context.Context, in *DeleteSecuritySettingsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| 109 |
out := new(emptypb.Empty) |
| 110 |
err := c.cc.Invoke(ctx, SecuritySettingsService_DeleteSecuritySettings_FullMethodName, in, out, opts...) |
| 111 |
if err != nil { |
| 112 |
return nil, err |
| 113 |
} |
| 114 |
return out, nil |
| 115 |
} |
| 116 |
|
| 117 |
// SecuritySettingsServiceServer is the server API for SecuritySettingsService service. |
| 118 |
// All implementations should embed UnimplementedSecuritySettingsServiceServer |
| 119 |
// for forward compatibility |
| 120 |
type SecuritySettingsServiceServer interface { |
| 121 |
// Create security settings in the specified location. |
| 122 |
CreateSecuritySettings(context.Context, *CreateSecuritySettingsRequest) (*SecuritySettings, error) |
| 123 |
// Retrieves the specified |
| 124 |
// [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. |
| 125 |
// The returned settings may be stale by up to 1 minute. |
| 126 |
GetSecuritySettings(context.Context, *GetSecuritySettingsRequest) (*SecuritySettings, error) |
| 127 |
// Updates the specified |
| 128 |
// [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. |
| 129 |
UpdateSecuritySettings(context.Context, *UpdateSecuritySettingsRequest) (*SecuritySettings, error) |
| 130 |
// Returns the list of all security settings in the specified location. |
| 131 |
ListSecuritySettings(context.Context, *ListSecuritySettingsRequest) (*ListSecuritySettingsResponse, error) |
| 132 |
// Deletes the specified |
| 133 |
// [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. |
| 134 |
DeleteSecuritySettings(context.Context, *DeleteSecuritySettingsRequest) (*emptypb.Empty, error) |
| 135 |
} |
| 136 |
|
| 137 |
// UnimplementedSecuritySettingsServiceServer should be embedded to have forward compatible implementations. |
| 138 |
type UnimplementedSecuritySettingsServiceServer struct { |
| 139 |
} |
| 140 |
|
| 141 |
func (UnimplementedSecuritySettingsServiceServer) CreateSecuritySettings(context.Context, *CreateSecuritySettingsRequest) (*SecuritySettings, error) { |
| 142 |
return nil, status.Errorf(codes.Unimplemented, "method CreateSecuritySettings not implemented") |
| 143 |
} |
| 144 |
func (UnimplementedSecuritySettingsServiceServer) GetSecuritySettings(context.Context, *GetSecuritySettingsRequest) (*SecuritySettings, error) { |
| 145 |
return nil, status.Errorf(codes.Unimplemented, "method GetSecuritySettings not implemented") |
| 146 |
} |
| 147 |
func (UnimplementedSecuritySettingsServiceServer) UpdateSecuritySettings(context.Context, *UpdateSecuritySettingsRequest) (*SecuritySettings, error) { |
| 148 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateSecuritySettings not implemented") |
| 149 |
} |
| 150 |
func (UnimplementedSecuritySettingsServiceServer) ListSecuritySettings(context.Context, *ListSecuritySettingsRequest) (*ListSecuritySettingsResponse, error) { |
| 151 |
return nil, status.Errorf(codes.Unimplemented, "method ListSecuritySettings not implemented") |
| 152 |
} |
| 153 |
func (UnimplementedSecuritySettingsServiceServer) DeleteSecuritySettings(context.Context, *DeleteSecuritySettingsRequest) (*emptypb.Empty, error) { |
| 154 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteSecuritySettings not implemented") |
| 155 |
} |
| 156 |
|
| 157 |
// UnsafeSecuritySettingsServiceServer may be embedded to opt out of forward compatibility for this service. |
| 158 |
// Use of this interface is not recommended, as added methods to SecuritySettingsServiceServer will |
| 159 |
// result in compilation errors. |
| 160 |
type UnsafeSecuritySettingsServiceServer interface { |
| 161 |
mustEmbedUnimplementedSecuritySettingsServiceServer() |
| 162 |
} |
| 163 |
|
| 164 |
func RegisterSecuritySettingsServiceServer(s grpc.ServiceRegistrar, srv SecuritySettingsServiceServer) { |
| 165 |
s.RegisterService(&SecuritySettingsService_ServiceDesc, srv) |
| 166 |
} |
| 167 |
|
| 168 |
func _SecuritySettingsService_CreateSecuritySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 169 |
in := new(CreateSecuritySettingsRequest) |
| 170 |
if err := dec(in); err != nil { |
| 171 |
return nil, err |
| 172 |
} |
| 173 |
if interceptor == nil { |
| 174 |
return srv.(SecuritySettingsServiceServer).CreateSecuritySettings(ctx, in) |
| 175 |
} |
| 176 |
info := &grpc.UnaryServerInfo{ |
| 177 |
Server: srv, |
| 178 |
FullMethod: SecuritySettingsService_CreateSecuritySettings_FullMethodName, |
| 179 |
} |
| 180 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 181 |
return srv.(SecuritySettingsServiceServer).CreateSecuritySettings(ctx, req.(*CreateSecuritySettingsRequest)) |
| 182 |
} |
| 183 |
return interceptor(ctx, in, info, handler) |
| 184 |
} |
| 185 |
|
| 186 |
func _SecuritySettingsService_GetSecuritySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 187 |
in := new(GetSecuritySettingsRequest) |
| 188 |
if err := dec(in); err != nil { |
| 189 |
return nil, err |
| 190 |
} |
| 191 |
if interceptor == nil { |
| 192 |
return srv.(SecuritySettingsServiceServer).GetSecuritySettings(ctx, in) |
| 193 |
} |
| 194 |
info := &grpc.UnaryServerInfo{ |
| 195 |
Server: srv, |
| 196 |
FullMethod: SecuritySettingsService_GetSecuritySettings_FullMethodName, |
| 197 |
} |
| 198 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 199 |
return srv.(SecuritySettingsServiceServer).GetSecuritySettings(ctx, req.(*GetSecuritySettingsRequest)) |
| 200 |
} |
| 201 |
return interceptor(ctx, in, info, handler) |
| 202 |
} |
| 203 |
|
| 204 |
func _SecuritySettingsService_UpdateSecuritySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 205 |
in := new(UpdateSecuritySettingsRequest) |
| 206 |
if err := dec(in); err != nil { |
| 207 |
return nil, err |
| 208 |
} |
| 209 |
if interceptor == nil { |
| 210 |
return srv.(SecuritySettingsServiceServer).UpdateSecuritySettings(ctx, in) |
| 211 |
} |
| 212 |
info := &grpc.UnaryServerInfo{ |
| 213 |
Server: srv, |
| 214 |
FullMethod: SecuritySettingsService_UpdateSecuritySettings_FullMethodName, |
| 215 |
} |
| 216 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 217 |
return srv.(SecuritySettingsServiceServer).UpdateSecuritySettings(ctx, req.(*UpdateSecuritySettingsRequest)) |
| 218 |
} |
| 219 |
return interceptor(ctx, in, info, handler) |
| 220 |
} |
| 221 |
|
| 222 |
func _SecuritySettingsService_ListSecuritySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 223 |
in := new(ListSecuritySettingsRequest) |
| 224 |
if err := dec(in); err != nil { |
| 225 |
return nil, err |
| 226 |
} |
| 227 |
if interceptor == nil { |
| 228 |
return srv.(SecuritySettingsServiceServer).ListSecuritySettings(ctx, in) |
| 229 |
} |
| 230 |
info := &grpc.UnaryServerInfo{ |
| 231 |
Server: srv, |
| 232 |
FullMethod: SecuritySettingsService_ListSecuritySettings_FullMethodName, |
| 233 |
} |
| 234 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 235 |
return srv.(SecuritySettingsServiceServer).ListSecuritySettings(ctx, req.(*ListSecuritySettingsRequest)) |
| 236 |
} |
| 237 |
return interceptor(ctx, in, info, handler) |
| 238 |
} |
| 239 |
|
| 240 |
func _SecuritySettingsService_DeleteSecuritySettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 241 |
in := new(DeleteSecuritySettingsRequest) |
| 242 |
if err := dec(in); err != nil { |
| 243 |
return nil, err |
| 244 |
} |
| 245 |
if interceptor == nil { |
| 246 |
return srv.(SecuritySettingsServiceServer).DeleteSecuritySettings(ctx, in) |
| 247 |
} |
| 248 |
info := &grpc.UnaryServerInfo{ |
| 249 |
Server: srv, |
| 250 |
FullMethod: SecuritySettingsService_DeleteSecuritySettings_FullMethodName, |
| 251 |
} |
| 252 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 253 |
return srv.(SecuritySettingsServiceServer).DeleteSecuritySettings(ctx, req.(*DeleteSecuritySettingsRequest)) |
| 254 |
} |
| 255 |
return interceptor(ctx, in, info, handler) |
| 256 |
} |
| 257 |
|
| 258 |
// SecuritySettingsService_ServiceDesc is the grpc.ServiceDesc for SecuritySettingsService service. |
| 259 |
// It's only intended for direct use with grpc.RegisterService, |
| 260 |
// and not to be introspected or modified (even as a copy) |
| 261 |
var SecuritySettingsService_ServiceDesc = grpc.ServiceDesc{ |
| 262 |
ServiceName: "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService", |
| 263 |
HandlerType: (*SecuritySettingsServiceServer)(nil), |
| 264 |
Methods: []grpc.MethodDesc{ |
| 265 |
{ |
| 266 |
MethodName: "CreateSecuritySettings", |
| 267 |
Handler: _SecuritySettingsService_CreateSecuritySettings_Handler, |
| 268 |
}, |
| 269 |
{ |
| 270 |
MethodName: "GetSecuritySettings", |
| 271 |
Handler: _SecuritySettingsService_GetSecuritySettings_Handler, |
| 272 |
}, |
| 273 |
{ |
| 274 |
MethodName: "UpdateSecuritySettings", |
| 275 |
Handler: _SecuritySettingsService_UpdateSecuritySettings_Handler, |
| 276 |
}, |
| 277 |
{ |
| 278 |
MethodName: "ListSecuritySettings", |
| 279 |
Handler: _SecuritySettingsService_ListSecuritySettings_Handler, |
| 280 |
}, |
| 281 |
{ |
| 282 |
MethodName: "DeleteSecuritySettings", |
| 283 |
Handler: _SecuritySettingsService_DeleteSecuritySettings_Handler, |
| 284 |
}, |
| 285 |
}, |
| 286 |
Streams: []grpc.StreamDesc{}, |
| 287 |
Metadata: "google/cloud/dialogflow/cx/v3beta1/security_settings.proto", |
| 288 |
} |