Constants
ClientGatewaysService_ListClientGateways_FullMethodName, ClientGatewaysService_GetClientGateway_FullMethodName, ClientGatewaysService_CreateClientGateway_FullMethodName, ClientGatewaysService_DeleteClientGateway_FullMethodName
const (
ClientGatewaysService_ListClientGateways_FullMethodName = "/google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService/ListClientGateways"
ClientGatewaysService_GetClientGateway_FullMethodName = "/google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService/GetClientGateway"
ClientGatewaysService_CreateClientGateway_FullMethodName = "/google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService/CreateClientGateway"
ClientGatewaysService_DeleteClientGateway_FullMethodName = "/google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService/DeleteClientGateway"
)Variables
ClientGateway_State_name, ClientGateway_State_value
var (
ClientGateway_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "UPDATING",
3: "DELETING",
4: "RUNNING",
5: "DOWN",
6: "ERROR",
}
ClientGateway_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"UPDATING": 2,
"DELETING": 3,
"RUNNING": 4,
"DOWN": 5,
"ERROR": 6,
}
)Enum value maps for ClientGateway_State.
ClientGatewaysService_ServiceDesc
var ClientGatewaysService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService",
HandlerType: (*ClientGatewaysServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListClientGateways",
Handler: _ClientGatewaysService_ListClientGateways_Handler,
},
{
MethodName: "GetClientGateway",
Handler: _ClientGatewaysService_GetClientGateway_Handler,
},
{
MethodName: "CreateClientGateway",
Handler: _ClientGatewaysService_CreateClientGateway_Handler,
},
{
MethodName: "DeleteClientGateway",
Handler: _ClientGatewaysService_DeleteClientGateway_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/beyondcorp/clientgateways/v1/client_gateways_service.proto",
}ClientGatewaysService_ServiceDesc is the grpc.ServiceDesc for ClientGatewaysService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_beyondcorp_clientgateways_v1_client_gateways_service_proto
var File_google_cloud_beyondcorp_clientgateways_v1_client_gateways_service_proto protoreflect.FileDescriptorFunctions
func RegisterClientGatewaysServiceServer
func RegisterClientGatewaysServiceServer(s grpc.ServiceRegistrar, srv ClientGatewaysServiceServer)ClientGateway
type ClientGateway struct {
// Required. name of resource. The name is ignored during creation.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. [Output only] Create time stamp.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. [Output only] Update time stamp.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The operational state of the gateway.
State ClientGateway_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.beyondcorp.clientgateways.v1.ClientGateway_State" json:"state,omitempty"`
// Output only. A unique identifier for the instance generated by the system.
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
// Output only. The client connector service name that the client gateway is
// associated to. Client Connector Services, named as follows:
//
// `projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`.
ClientConnectorService string `protobuf:"bytes,6,opt,name=client_connector_service,json=clientConnectorService,proto3" json:"client_connector_service,omitempty"`
// contains filtered or unexported fields
}Message describing ClientGateway object.
func (*ClientGateway) Descriptor
func (*ClientGateway) Descriptor() ([]byte, []int)Deprecated: Use ClientGateway.ProtoReflect.Descriptor instead.
func (*ClientGateway) GetClientConnectorService
func (x *ClientGateway) GetClientConnectorService() stringfunc (*ClientGateway) GetCreateTime
func (x *ClientGateway) GetCreateTime() *timestamppb.Timestampfunc (*ClientGateway) GetId
func (x *ClientGateway) GetId() stringfunc (*ClientGateway) GetName
func (x *ClientGateway) GetName() stringfunc (*ClientGateway) GetState
func (x *ClientGateway) GetState() ClientGateway_Statefunc (*ClientGateway) GetUpdateTime
func (x *ClientGateway) GetUpdateTime() *timestamppb.Timestampfunc (*ClientGateway) ProtoMessage
func (*ClientGateway) ProtoMessage()func (*ClientGateway) ProtoReflect
func (x *ClientGateway) ProtoReflect() protoreflect.Messagefunc (*ClientGateway) Reset
func (x *ClientGateway) Reset()func (*ClientGateway) String
func (x *ClientGateway) String() stringClientGatewayOperationMetadata
type ClientGatewayOperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have been cancelled successfully
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}Represents the metadata of the long-running operation.
func (*ClientGatewayOperationMetadata) Descriptor
func (*ClientGatewayOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use ClientGatewayOperationMetadata.ProtoReflect.Descriptor instead.
func (*ClientGatewayOperationMetadata) GetApiVersion
func (x *ClientGatewayOperationMetadata) GetApiVersion() stringfunc (*ClientGatewayOperationMetadata) GetCreateTime
func (x *ClientGatewayOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*ClientGatewayOperationMetadata) GetEndTime
func (x *ClientGatewayOperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*ClientGatewayOperationMetadata) GetRequestedCancellation
func (x *ClientGatewayOperationMetadata) GetRequestedCancellation() boolfunc (*ClientGatewayOperationMetadata) GetStatusMessage
func (x *ClientGatewayOperationMetadata) GetStatusMessage() stringfunc (*ClientGatewayOperationMetadata) GetTarget
func (x *ClientGatewayOperationMetadata) GetTarget() stringfunc (*ClientGatewayOperationMetadata) GetVerb
func (x *ClientGatewayOperationMetadata) GetVerb() stringfunc (*ClientGatewayOperationMetadata) ProtoMessage
func (*ClientGatewayOperationMetadata) ProtoMessage()func (*ClientGatewayOperationMetadata) ProtoReflect
func (x *ClientGatewayOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*ClientGatewayOperationMetadata) Reset
func (x *ClientGatewayOperationMetadata) Reset()func (*ClientGatewayOperationMetadata) String
func (x *ClientGatewayOperationMetadata) String() stringClientGateway_State
type ClientGateway_State int32Represents the different states of a gateway.
ClientGateway_STATE_UNSPECIFIED, ClientGateway_CREATING, ClientGateway_UPDATING, ClientGateway_DELETING, ClientGateway_RUNNING, ClientGateway_DOWN, ClientGateway_ERROR
const (
// Default value. This value is unused.
ClientGateway_STATE_UNSPECIFIED ClientGateway_State = 0
// Gateway is being created.
ClientGateway_CREATING ClientGateway_State = 1
// Gateway is being updated.
ClientGateway_UPDATING ClientGateway_State = 2
// Gateway is being deleted.
ClientGateway_DELETING ClientGateway_State = 3
// Gateway is running.
ClientGateway_RUNNING ClientGateway_State = 4
// Gateway is down and may be restored in the future.
// This happens when CCFE sends ProjectState = OFF.
ClientGateway_DOWN ClientGateway_State = 5
// ClientGateway encountered an error and is in indeterministic state.
ClientGateway_ERROR ClientGateway_State = 6
)func (ClientGateway_State) Descriptor
func (ClientGateway_State) Descriptor() protoreflect.EnumDescriptorfunc (ClientGateway_State) Enum
func (x ClientGateway_State) Enum() *ClientGateway_Statefunc (ClientGateway_State) EnumDescriptor
func (ClientGateway_State) EnumDescriptor() ([]byte, []int)Deprecated: Use ClientGateway_State.Descriptor instead.
func (ClientGateway_State) Number
func (x ClientGateway_State) Number() protoreflect.EnumNumberfunc (ClientGateway_State) String
func (x ClientGateway_State) String() stringfunc (ClientGateway_State) Type
func (ClientGateway_State) Type() protoreflect.EnumTypeClientGatewaysServiceClient
type ClientGatewaysServiceClient interface {
// Lists ClientGateways in a given project and location.
ListClientGateways(ctx context.Context, in *ListClientGatewaysRequest, opts ...grpc.CallOption) (*ListClientGatewaysResponse, error)
// Gets details of a single ClientGateway.
GetClientGateway(ctx context.Context, in *GetClientGatewayRequest, opts ...grpc.CallOption) (*ClientGateway, error)
// Creates a new ClientGateway in a given project and location.
CreateClientGateway(ctx context.Context, in *CreateClientGatewayRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single ClientGateway.
DeleteClientGateway(ctx context.Context, in *DeleteClientGatewayRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}ClientGatewaysServiceClient is the client API for ClientGatewaysService service.
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.
func NewClientGatewaysServiceClient
func NewClientGatewaysServiceClient(cc grpc.ClientConnInterface) ClientGatewaysServiceClientClientGatewaysServiceServer
type ClientGatewaysServiceServer interface {
// Lists ClientGateways in a given project and location.
ListClientGateways(context.Context, *ListClientGatewaysRequest) (*ListClientGatewaysResponse, error)
// Gets details of a single ClientGateway.
GetClientGateway(context.Context, *GetClientGatewayRequest) (*ClientGateway, error)
// Creates a new ClientGateway in a given project and location.
CreateClientGateway(context.Context, *CreateClientGatewayRequest) (*longrunningpb.Operation, error)
// Deletes a single ClientGateway.
DeleteClientGateway(context.Context, *DeleteClientGatewayRequest) (*longrunningpb.Operation, error)
}ClientGatewaysServiceServer is the server API for ClientGatewaysService service. All implementations should embed UnimplementedClientGatewaysServiceServer for forward compatibility
CreateClientGatewayRequest
type CreateClientGatewayRequest struct {
// Required. Value for parent.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. User-settable client gateway resource ID.
// - Must start with a letter.
// - Must contain between 4-63 characters from `/[a-z][0-9]-/`.
// - Must end with a number or a letter.
ClientGatewayId string `protobuf:"bytes,2,opt,name=client_gateway_id,json=clientGatewayId,proto3" json:"client_gateway_id,omitempty"`
// Required. The resource being created.
ClientGateway *ClientGateway `protobuf:"bytes,3,opt,name=client_gateway,json=clientGateway,proto3" json:"client_gateway,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and t
// he request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Optional. If set, validates request by executing a dry-run which would not
// alter the resource in any way.
ValidateOnly bool `protobuf:"varint,5,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}Message for creating a ClientGateway.
func (*CreateClientGatewayRequest) Descriptor
func (*CreateClientGatewayRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateClientGatewayRequest.ProtoReflect.Descriptor instead.
func (*CreateClientGatewayRequest) GetClientGateway
func (x *CreateClientGatewayRequest) GetClientGateway() *ClientGatewayfunc (*CreateClientGatewayRequest) GetClientGatewayId
func (x *CreateClientGatewayRequest) GetClientGatewayId() stringfunc (*CreateClientGatewayRequest) GetParent
func (x *CreateClientGatewayRequest) GetParent() stringfunc (*CreateClientGatewayRequest) GetRequestId
func (x *CreateClientGatewayRequest) GetRequestId() stringfunc (*CreateClientGatewayRequest) GetValidateOnly
func (x *CreateClientGatewayRequest) GetValidateOnly() boolfunc (*CreateClientGatewayRequest) ProtoMessage
func (*CreateClientGatewayRequest) ProtoMessage()func (*CreateClientGatewayRequest) ProtoReflect
func (x *CreateClientGatewayRequest) ProtoReflect() protoreflect.Messagefunc (*CreateClientGatewayRequest) Reset
func (x *CreateClientGatewayRequest) Reset()func (*CreateClientGatewayRequest) String
func (x *CreateClientGatewayRequest) String() stringDeleteClientGatewayRequest
type DeleteClientGatewayRequest struct {
// Required. Name of the resource
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and t
// he request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Optional. If set, validates request by executing a dry-run which would not
// alter the resource in any way.
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}Message for deleting a ClientGateway
func (*DeleteClientGatewayRequest) Descriptor
func (*DeleteClientGatewayRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteClientGatewayRequest.ProtoReflect.Descriptor instead.
func (*DeleteClientGatewayRequest) GetName
func (x *DeleteClientGatewayRequest) GetName() stringfunc (*DeleteClientGatewayRequest) GetRequestId
func (x *DeleteClientGatewayRequest) GetRequestId() stringfunc (*DeleteClientGatewayRequest) GetValidateOnly
func (x *DeleteClientGatewayRequest) GetValidateOnly() boolfunc (*DeleteClientGatewayRequest) ProtoMessage
func (*DeleteClientGatewayRequest) ProtoMessage()func (*DeleteClientGatewayRequest) ProtoReflect
func (x *DeleteClientGatewayRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteClientGatewayRequest) Reset
func (x *DeleteClientGatewayRequest) Reset()func (*DeleteClientGatewayRequest) String
func (x *DeleteClientGatewayRequest) String() stringGetClientGatewayRequest
type GetClientGatewayRequest struct {
// Required. Name of the resource
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Message for getting a ClientGateway.
func (*GetClientGatewayRequest) Descriptor
func (*GetClientGatewayRequest) Descriptor() ([]byte, []int)Deprecated: Use GetClientGatewayRequest.ProtoReflect.Descriptor instead.
func (*GetClientGatewayRequest) GetName
func (x *GetClientGatewayRequest) GetName() stringfunc (*GetClientGatewayRequest) ProtoMessage
func (*GetClientGatewayRequest) ProtoMessage()func (*GetClientGatewayRequest) ProtoReflect
func (x *GetClientGatewayRequest) ProtoReflect() protoreflect.Messagefunc (*GetClientGatewayRequest) Reset
func (x *GetClientGatewayRequest) Reset()func (*GetClientGatewayRequest) String
func (x *GetClientGatewayRequest) String() stringListClientGatewaysRequest
type ListClientGatewaysRequest struct {
// Required. Parent value for ListClientGatewaysRequest.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filtering results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Hint for how to order the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of ClientGateways.
func (*ListClientGatewaysRequest) Descriptor
func (*ListClientGatewaysRequest) Descriptor() ([]byte, []int)Deprecated: Use ListClientGatewaysRequest.ProtoReflect.Descriptor instead.
func (*ListClientGatewaysRequest) GetFilter
func (x *ListClientGatewaysRequest) GetFilter() stringfunc (*ListClientGatewaysRequest) GetOrderBy
func (x *ListClientGatewaysRequest) GetOrderBy() stringfunc (*ListClientGatewaysRequest) GetPageSize
func (x *ListClientGatewaysRequest) GetPageSize() int32func (*ListClientGatewaysRequest) GetPageToken
func (x *ListClientGatewaysRequest) GetPageToken() stringfunc (*ListClientGatewaysRequest) GetParent
func (x *ListClientGatewaysRequest) GetParent() stringfunc (*ListClientGatewaysRequest) ProtoMessage
func (*ListClientGatewaysRequest) ProtoMessage()func (*ListClientGatewaysRequest) ProtoReflect
func (x *ListClientGatewaysRequest) ProtoReflect() protoreflect.Messagefunc (*ListClientGatewaysRequest) Reset
func (x *ListClientGatewaysRequest) Reset()func (*ListClientGatewaysRequest) String
func (x *ListClientGatewaysRequest) String() stringListClientGatewaysResponse
type ListClientGatewaysResponse struct {
// The list of ClientGateway.
ClientGateways []*ClientGateway `protobuf:"bytes,1,rep,name=client_gateways,json=clientGateways,proto3" json:"client_gateways,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Message for response to listing ClientGateways.
func (*ListClientGatewaysResponse) Descriptor
func (*ListClientGatewaysResponse) Descriptor() ([]byte, []int)Deprecated: Use ListClientGatewaysResponse.ProtoReflect.Descriptor instead.
func (*ListClientGatewaysResponse) GetClientGateways
func (x *ListClientGatewaysResponse) GetClientGateways() []*ClientGatewayfunc (*ListClientGatewaysResponse) GetNextPageToken
func (x *ListClientGatewaysResponse) GetNextPageToken() stringfunc (*ListClientGatewaysResponse) GetUnreachable
func (x *ListClientGatewaysResponse) GetUnreachable() []stringfunc (*ListClientGatewaysResponse) ProtoMessage
func (*ListClientGatewaysResponse) ProtoMessage()func (*ListClientGatewaysResponse) ProtoReflect
func (x *ListClientGatewaysResponse) ProtoReflect() protoreflect.Messagefunc (*ListClientGatewaysResponse) Reset
func (x *ListClientGatewaysResponse) Reset()func (*ListClientGatewaysResponse) String
func (x *ListClientGatewaysResponse) String() stringUnimplementedClientGatewaysServiceServer
type UnimplementedClientGatewaysServiceServer struct {
}UnimplementedClientGatewaysServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedClientGatewaysServiceServer) CreateClientGateway
func (UnimplementedClientGatewaysServiceServer) CreateClientGateway(context.Context, *CreateClientGatewayRequest) (*longrunningpb.Operation, error)func (UnimplementedClientGatewaysServiceServer) DeleteClientGateway
func (UnimplementedClientGatewaysServiceServer) DeleteClientGateway(context.Context, *DeleteClientGatewayRequest) (*longrunningpb.Operation, error)func (UnimplementedClientGatewaysServiceServer) GetClientGateway
func (UnimplementedClientGatewaysServiceServer) GetClientGateway(context.Context, *GetClientGatewayRequest) (*ClientGateway, error)func (UnimplementedClientGatewaysServiceServer) ListClientGateways
func (UnimplementedClientGatewaysServiceServer) ListClientGateways(context.Context, *ListClientGatewaysRequest) (*ListClientGatewaysResponse, error)UnsafeClientGatewaysServiceServer
type UnsafeClientGatewaysServiceServer interface {
// contains filtered or unexported methods
}UnsafeClientGatewaysServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClientGatewaysServiceServer will result in compilation errors.