Enum value maps for EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria.
var ( EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria_name = map[int32]string{ 0: "METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED", 1: "MATCH_ANY", 2: "MATCH_ALL", } EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria_value = map[string]int32{ "METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED": 0, "MATCH_ANY": 1, "MATCH_ALL": 2, } )
Enum value maps for EndpointPolicy_EndpointPolicyType.
var ( EndpointPolicy_EndpointPolicyType_name = map[int32]string{ 0: "ENDPOINT_POLICY_TYPE_UNSPECIFIED", 1: "SIDECAR_PROXY", 2: "GRPC_SERVER", } EndpointPolicy_EndpointPolicyType_value = map[string]int32{ "ENDPOINT_POLICY_TYPE_UNSPECIFIED": 0, "SIDECAR_PROXY": 1, "GRPC_SERVER": 2, } )
Enum value maps for Gateway_Type.
var ( Gateway_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "OPEN_MESH", 2: "SECURE_WEB_GATEWAY", } Gateway_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "OPEN_MESH": 1, "SECURE_WEB_GATEWAY": 2, } )
Enum value maps for GrpcRoute_MethodMatch_Type.
var ( GrpcRoute_MethodMatch_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "EXACT", 2: "REGULAR_EXPRESSION", } GrpcRoute_MethodMatch_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "EXACT": 1, "REGULAR_EXPRESSION": 2, } )
Enum value maps for GrpcRoute_HeaderMatch_Type.
var ( GrpcRoute_HeaderMatch_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "EXACT", 2: "REGULAR_EXPRESSION", } GrpcRoute_HeaderMatch_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "EXACT": 1, "REGULAR_EXPRESSION": 2, } )
Enum value maps for HttpRoute_Redirect_ResponseCode.
var ( HttpRoute_Redirect_ResponseCode_name = map[int32]string{ 0: "RESPONSE_CODE_UNSPECIFIED", 1: "MOVED_PERMANENTLY_DEFAULT", 2: "FOUND", 3: "SEE_OTHER", 4: "TEMPORARY_REDIRECT", 5: "PERMANENT_REDIRECT", } HttpRoute_Redirect_ResponseCode_value = map[string]int32{ "RESPONSE_CODE_UNSPECIFIED": 0, "MOVED_PERMANENTLY_DEFAULT": 1, "FOUND": 2, "SEE_OTHER": 3, "TEMPORARY_REDIRECT": 4, "PERMANENT_REDIRECT": 5, } )
var File_google_cloud_networkservices_v1_common_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1_endpoint_policy_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1_gateway_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1_grpc_route_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1_http_route_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1_mesh_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1_network_services_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1_service_binding_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1_tcp_route_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1_tls_route_proto protoreflect.FileDescriptor
func RegisterNetworkServicesServer(s *grpc.Server, srv NetworkServicesServer)
Request used with the CreateEndpointPolicy method.
type CreateEndpointPolicyRequest struct { // Required. The parent resource of the EndpointPolicy. Must be in the // format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. Short name of the EndpointPolicy resource to be created. // E.g. "CustomECS". EndpointPolicyId string `protobuf:"bytes,2,opt,name=endpoint_policy_id,json=endpointPolicyId,proto3" json:"endpoint_policy_id,omitempty"` // Required. EndpointPolicy resource to be created. EndpointPolicy *EndpointPolicy `protobuf:"bytes,3,opt,name=endpoint_policy,json=endpointPolicy,proto3" json:"endpoint_policy,omitempty"` // contains filtered or unexported fields }
func (*CreateEndpointPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateEndpointPolicyRequest.ProtoReflect.Descriptor instead.
func (x *CreateEndpointPolicyRequest) GetEndpointPolicy() *EndpointPolicy
func (x *CreateEndpointPolicyRequest) GetEndpointPolicyId() string
func (x *CreateEndpointPolicyRequest) GetParent() string
func (*CreateEndpointPolicyRequest) ProtoMessage()
func (x *CreateEndpointPolicyRequest) ProtoReflect() protoreflect.Message
func (x *CreateEndpointPolicyRequest) Reset()
func (x *CreateEndpointPolicyRequest) String() string
Request used by the CreateGateway method.
type CreateGatewayRequest struct { // Required. The parent resource of the Gateway. Must be in the // format `projects/*/locations/*`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. Short name of the Gateway resource to be created. GatewayId string `protobuf:"bytes,2,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"` // Required. Gateway resource to be created. Gateway *Gateway `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"` // contains filtered or unexported fields }
func (*CreateGatewayRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGatewayRequest.ProtoReflect.Descriptor instead.
func (x *CreateGatewayRequest) GetGateway() *Gateway
func (x *CreateGatewayRequest) GetGatewayId() string
func (x *CreateGatewayRequest) GetParent() string
func (*CreateGatewayRequest) ProtoMessage()
func (x *CreateGatewayRequest) ProtoReflect() protoreflect.Message
func (x *CreateGatewayRequest) Reset()
func (x *CreateGatewayRequest) String() string
Request used by the CreateGrpcRoute method.
type CreateGrpcRouteRequest struct { // Required. The parent resource of the GrpcRoute. Must be in the // format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. Short name of the GrpcRoute resource to be created. GrpcRouteId string `protobuf:"bytes,2,opt,name=grpc_route_id,json=grpcRouteId,proto3" json:"grpc_route_id,omitempty"` // Required. GrpcRoute resource to be created. GrpcRoute *GrpcRoute `protobuf:"bytes,3,opt,name=grpc_route,json=grpcRoute,proto3" json:"grpc_route,omitempty"` // contains filtered or unexported fields }
func (*CreateGrpcRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGrpcRouteRequest.ProtoReflect.Descriptor instead.
func (x *CreateGrpcRouteRequest) GetGrpcRoute() *GrpcRoute
func (x *CreateGrpcRouteRequest) GetGrpcRouteId() string
func (x *CreateGrpcRouteRequest) GetParent() string
func (*CreateGrpcRouteRequest) ProtoMessage()
func (x *CreateGrpcRouteRequest) ProtoReflect() protoreflect.Message
func (x *CreateGrpcRouteRequest) Reset()
func (x *CreateGrpcRouteRequest) String() string
Request used by the HttpRoute method.
type CreateHttpRouteRequest struct { // Required. The parent resource of the HttpRoute. Must be in the // format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. Short name of the HttpRoute resource to be created. HttpRouteId string `protobuf:"bytes,2,opt,name=http_route_id,json=httpRouteId,proto3" json:"http_route_id,omitempty"` // Required. HttpRoute resource to be created. HttpRoute *HttpRoute `protobuf:"bytes,3,opt,name=http_route,json=httpRoute,proto3" json:"http_route,omitempty"` // contains filtered or unexported fields }
func (*CreateHttpRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateHttpRouteRequest.ProtoReflect.Descriptor instead.
func (x *CreateHttpRouteRequest) GetHttpRoute() *HttpRoute
func (x *CreateHttpRouteRequest) GetHttpRouteId() string
func (x *CreateHttpRouteRequest) GetParent() string
func (*CreateHttpRouteRequest) ProtoMessage()
func (x *CreateHttpRouteRequest) ProtoReflect() protoreflect.Message
func (x *CreateHttpRouteRequest) Reset()
func (x *CreateHttpRouteRequest) String() string
Request used by the CreateMesh method.
type CreateMeshRequest struct { // Required. The parent resource of the Mesh. Must be in the // format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. Short name of the Mesh resource to be created. MeshId string `protobuf:"bytes,2,opt,name=mesh_id,json=meshId,proto3" json:"mesh_id,omitempty"` // Required. Mesh resource to be created. Mesh *Mesh `protobuf:"bytes,3,opt,name=mesh,proto3" json:"mesh,omitempty"` // contains filtered or unexported fields }
func (*CreateMeshRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMeshRequest.ProtoReflect.Descriptor instead.
func (x *CreateMeshRequest) GetMesh() *Mesh
func (x *CreateMeshRequest) GetMeshId() string
func (x *CreateMeshRequest) GetParent() string
func (*CreateMeshRequest) ProtoMessage()
func (x *CreateMeshRequest) ProtoReflect() protoreflect.Message
func (x *CreateMeshRequest) Reset()
func (x *CreateMeshRequest) String() string
Request used by the ServiceBinding method.
type CreateServiceBindingRequest struct { // Required. The parent resource of the ServiceBinding. Must be in the // format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. Short name of the ServiceBinding resource to be created. ServiceBindingId string `protobuf:"bytes,2,opt,name=service_binding_id,json=serviceBindingId,proto3" json:"service_binding_id,omitempty"` // Required. ServiceBinding resource to be created. ServiceBinding *ServiceBinding `protobuf:"bytes,3,opt,name=service_binding,json=serviceBinding,proto3" json:"service_binding,omitempty"` // contains filtered or unexported fields }
func (*CreateServiceBindingRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateServiceBindingRequest.ProtoReflect.Descriptor instead.
func (x *CreateServiceBindingRequest) GetParent() string
func (x *CreateServiceBindingRequest) GetServiceBinding() *ServiceBinding
func (x *CreateServiceBindingRequest) GetServiceBindingId() string
func (*CreateServiceBindingRequest) ProtoMessage()
func (x *CreateServiceBindingRequest) ProtoReflect() protoreflect.Message
func (x *CreateServiceBindingRequest) Reset()
func (x *CreateServiceBindingRequest) String() string
Request used by the TcpRoute method.
type CreateTcpRouteRequest struct { // Required. The parent resource of the TcpRoute. Must be in the // format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. Short name of the TcpRoute resource to be created. E.g. TODO(Add an // example). TcpRouteId string `protobuf:"bytes,2,opt,name=tcp_route_id,json=tcpRouteId,proto3" json:"tcp_route_id,omitempty"` // Required. TcpRoute resource to be created. TcpRoute *TcpRoute `protobuf:"bytes,3,opt,name=tcp_route,json=tcpRoute,proto3" json:"tcp_route,omitempty"` // contains filtered or unexported fields }
func (*CreateTcpRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTcpRouteRequest.ProtoReflect.Descriptor instead.
func (x *CreateTcpRouteRequest) GetParent() string
func (x *CreateTcpRouteRequest) GetTcpRoute() *TcpRoute
func (x *CreateTcpRouteRequest) GetTcpRouteId() string
func (*CreateTcpRouteRequest) ProtoMessage()
func (x *CreateTcpRouteRequest) ProtoReflect() protoreflect.Message
func (x *CreateTcpRouteRequest) Reset()
func (x *CreateTcpRouteRequest) String() string
Request used by the TlsRoute method.
type CreateTlsRouteRequest struct { // Required. The parent resource of the TlsRoute. Must be in the // format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an // example). TlsRouteId string `protobuf:"bytes,2,opt,name=tls_route_id,json=tlsRouteId,proto3" json:"tls_route_id,omitempty"` // Required. TlsRoute resource to be created. TlsRoute *TlsRoute `protobuf:"bytes,3,opt,name=tls_route,json=tlsRoute,proto3" json:"tls_route,omitempty"` // contains filtered or unexported fields }
func (*CreateTlsRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTlsRouteRequest.ProtoReflect.Descriptor instead.
func (x *CreateTlsRouteRequest) GetParent() string
func (x *CreateTlsRouteRequest) GetTlsRoute() *TlsRoute
func (x *CreateTlsRouteRequest) GetTlsRouteId() string
func (*CreateTlsRouteRequest) ProtoMessage()
func (x *CreateTlsRouteRequest) ProtoReflect() protoreflect.Message
func (x *CreateTlsRouteRequest) Reset()
func (x *CreateTlsRouteRequest) String() string
Request used with the DeleteEndpointPolicy method.
type DeleteEndpointPolicyRequest struct { // Required. A name of the EndpointPolicy to delete. Must be in the format // `projects/*/locations/global/endpointPolicies/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteEndpointPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteEndpointPolicyRequest.ProtoReflect.Descriptor instead.
func (x *DeleteEndpointPolicyRequest) GetName() string
func (*DeleteEndpointPolicyRequest) ProtoMessage()
func (x *DeleteEndpointPolicyRequest) ProtoReflect() protoreflect.Message
func (x *DeleteEndpointPolicyRequest) Reset()
func (x *DeleteEndpointPolicyRequest) String() string
Request used by the DeleteGateway method.
type DeleteGatewayRequest struct { // Required. A name of the Gateway to delete. Must be in the format // `projects/*/locations/*/gateways/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteGatewayRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGatewayRequest.ProtoReflect.Descriptor instead.
func (x *DeleteGatewayRequest) GetName() string
func (*DeleteGatewayRequest) ProtoMessage()
func (x *DeleteGatewayRequest) ProtoReflect() protoreflect.Message
func (x *DeleteGatewayRequest) Reset()
func (x *DeleteGatewayRequest) String() string
Request used by the DeleteGrpcRoute method.
type DeleteGrpcRouteRequest struct { // Required. A name of the GrpcRoute to delete. Must be in the format // `projects/*/locations/global/grpcRoutes/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteGrpcRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGrpcRouteRequest.ProtoReflect.Descriptor instead.
func (x *DeleteGrpcRouteRequest) GetName() string
func (*DeleteGrpcRouteRequest) ProtoMessage()
func (x *DeleteGrpcRouteRequest) ProtoReflect() protoreflect.Message
func (x *DeleteGrpcRouteRequest) Reset()
func (x *DeleteGrpcRouteRequest) String() string
Request used by the DeleteHttpRoute method.
type DeleteHttpRouteRequest struct { // Required. A name of the HttpRoute to delete. Must be in the format // `projects/*/locations/global/httpRoutes/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteHttpRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteHttpRouteRequest.ProtoReflect.Descriptor instead.
func (x *DeleteHttpRouteRequest) GetName() string
func (*DeleteHttpRouteRequest) ProtoMessage()
func (x *DeleteHttpRouteRequest) ProtoReflect() protoreflect.Message
func (x *DeleteHttpRouteRequest) Reset()
func (x *DeleteHttpRouteRequest) String() string
Request used by the DeleteMesh method.
type DeleteMeshRequest struct { // Required. A name of the Mesh to delete. Must be in the format // `projects/*/locations/global/meshes/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteMeshRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMeshRequest.ProtoReflect.Descriptor instead.
func (x *DeleteMeshRequest) GetName() string
func (*DeleteMeshRequest) ProtoMessage()
func (x *DeleteMeshRequest) ProtoReflect() protoreflect.Message
func (x *DeleteMeshRequest) Reset()
func (x *DeleteMeshRequest) String() string
Request used by the DeleteServiceBinding method.
type DeleteServiceBindingRequest struct { // Required. A name of the ServiceBinding to delete. Must be in the format // `projects/*/locations/global/serviceBindings/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteServiceBindingRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteServiceBindingRequest.ProtoReflect.Descriptor instead.
func (x *DeleteServiceBindingRequest) GetName() string
func (*DeleteServiceBindingRequest) ProtoMessage()
func (x *DeleteServiceBindingRequest) ProtoReflect() protoreflect.Message
func (x *DeleteServiceBindingRequest) Reset()
func (x *DeleteServiceBindingRequest) String() string
Request used by the DeleteTcpRoute method.
type DeleteTcpRouteRequest struct { // Required. A name of the TcpRoute to delete. Must be in the format // `projects/*/locations/global/tcpRoutes/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteTcpRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTcpRouteRequest.ProtoReflect.Descriptor instead.
func (x *DeleteTcpRouteRequest) GetName() string
func (*DeleteTcpRouteRequest) ProtoMessage()
func (x *DeleteTcpRouteRequest) ProtoReflect() protoreflect.Message
func (x *DeleteTcpRouteRequest) Reset()
func (x *DeleteTcpRouteRequest) String() string
Request used by the DeleteTlsRoute method.
type DeleteTlsRouteRequest struct { // Required. A name of the TlsRoute to delete. Must be in the format // `projects/*/locations/global/tlsRoutes/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteTlsRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTlsRouteRequest.ProtoReflect.Descriptor instead.
func (x *DeleteTlsRouteRequest) GetName() string
func (*DeleteTlsRouteRequest) ProtoMessage()
func (x *DeleteTlsRouteRequest) ProtoReflect() protoreflect.Message
func (x *DeleteTlsRouteRequest) Reset()
func (x *DeleteTlsRouteRequest) String() string
A definition of a matcher that selects endpoints to which the policies should be applied.
type EndpointMatcher struct { // Specifies type of the matcher used for this endpoint matcher. // // Types that are assignable to MatcherType: // *EndpointMatcher_MetadataLabelMatcher_ MatcherType isEndpointMatcher_MatcherType `protobuf_oneof:"matcher_type"` // contains filtered or unexported fields }
func (*EndpointMatcher) Descriptor() ([]byte, []int)
Deprecated: Use EndpointMatcher.ProtoReflect.Descriptor instead.
func (m *EndpointMatcher) GetMatcherType() isEndpointMatcher_MatcherType
func (x *EndpointMatcher) GetMetadataLabelMatcher() *EndpointMatcher_MetadataLabelMatcher
func (*EndpointMatcher) ProtoMessage()
func (x *EndpointMatcher) ProtoReflect() protoreflect.Message
func (x *EndpointMatcher) Reset()
func (x *EndpointMatcher) String() string
The matcher that is based on node metadata presented by xDS clients.
type EndpointMatcher_MetadataLabelMatcher struct { // Specifies how matching should be done. // // Supported values are: // MATCH_ANY: At least one of the Labels specified in the // matcher should match the metadata presented by xDS client. // MATCH_ALL: The metadata presented by the xDS client should // contain all of the labels specified here. // // The selection is determined based on the best match. For // example, suppose there are three EndpointPolicy // resources P1, P2 and P3 and if P1 has a the matcher as // MATCH_ANY <A:1, B:1>, P2 has MATCH_ALL <A:1,B:1>, and P3 has // MATCH_ALL <A:1,B:1,C:1>. // // If a client with label <A:1> connects, the config from P1 // will be selected. // // If a client with label <A:1,B:1> connects, the config from P2 // will be selected. // // If a client with label <A:1,B:1,C:1> connects, the config // from P3 will be selected. // // If there is more than one best match, (for example, if a // config P4 with selector <A:1,D:1> exists and if a client with // label <A:1,B:1,D:1> connects), an error will be thrown. MetadataLabelMatchCriteria EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria `protobuf:"varint,1,opt,name=metadata_label_match_criteria,json=metadataLabelMatchCriteria,proto3,enum=google.cloud.networkservices.v1.EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria" json:"metadata_label_match_criteria,omitempty"` // The list of label value pairs that must match labels in the // provided metadata based on filterMatchCriteria This list can // have at most 64 entries. The list can be empty if the match // criteria is MATCH_ANY, to specify a wildcard match (i.e this // matches any client). MetadataLabels []*EndpointMatcher_MetadataLabelMatcher_MetadataLabels `protobuf:"bytes,2,rep,name=metadata_labels,json=metadataLabels,proto3" json:"metadata_labels,omitempty"` // contains filtered or unexported fields }
func (*EndpointMatcher_MetadataLabelMatcher) Descriptor() ([]byte, []int)
Deprecated: Use EndpointMatcher_MetadataLabelMatcher.ProtoReflect.Descriptor instead.
func (x *EndpointMatcher_MetadataLabelMatcher) GetMetadataLabelMatchCriteria() EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria
func (x *EndpointMatcher_MetadataLabelMatcher) GetMetadataLabels() []*EndpointMatcher_MetadataLabelMatcher_MetadataLabels
func (*EndpointMatcher_MetadataLabelMatcher) ProtoMessage()
func (x *EndpointMatcher_MetadataLabelMatcher) ProtoReflect() protoreflect.Message
func (x *EndpointMatcher_MetadataLabelMatcher) Reset()
func (x *EndpointMatcher_MetadataLabelMatcher) String() string
type EndpointMatcher_MetadataLabelMatcher_ struct { // The matcher is based on node metadata presented by xDS clients. MetadataLabelMatcher *EndpointMatcher_MetadataLabelMatcher `protobuf:"bytes,1,opt,name=metadata_label_matcher,json=metadataLabelMatcher,proto3,oneof"` }
Possible criteria values that define logic of how matching is made.
type EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria int32
const ( // Default value. Should not be used. EndpointMatcher_MetadataLabelMatcher_METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria = 0 // At least one of the Labels specified in the matcher should match the // metadata presented by xDS client. EndpointMatcher_MetadataLabelMatcher_MATCH_ANY EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria = 1 // The metadata presented by the xDS client should contain all of the // labels specified here. EndpointMatcher_MetadataLabelMatcher_MATCH_ALL EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria = 2 )
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Descriptor() protoreflect.EnumDescriptor
func (x EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Enum() *EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) EnumDescriptor() ([]byte, []int)
Deprecated: Use EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria.Descriptor instead.
func (x EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Number() protoreflect.EnumNumber
func (x EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) String() string
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Type() protoreflect.EnumType
Defines a name-pair value for a single label.
type EndpointMatcher_MetadataLabelMatcher_MetadataLabels struct { // Required. Label name presented as key in xDS Node Metadata. LabelName string `protobuf:"bytes,1,opt,name=label_name,json=labelName,proto3" json:"label_name,omitempty"` // Required. Label value presented as value corresponding to the above // key, in xDS Node Metadata. LabelValue string `protobuf:"bytes,2,opt,name=label_value,json=labelValue,proto3" json:"label_value,omitempty"` // contains filtered or unexported fields }
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) Descriptor() ([]byte, []int)
Deprecated: Use EndpointMatcher_MetadataLabelMatcher_MetadataLabels.ProtoReflect.Descriptor instead.
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) GetLabelName() string
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) GetLabelValue() string
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) ProtoMessage()
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) ProtoReflect() protoreflect.Message
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) Reset()
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) String() string
EndpointPolicy is a resource that helps apply desired configuration on the endpoints that match specific criteria. For example, this resource can be used to apply "authentication config" an all endpoints that serve on port 8080.
type EndpointPolicy struct { // Required. Name of the EndpointPolicy resource. It matches pattern // `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The timestamp when the resource was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Set of label tags associated with the EndpointPolicy resource. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. The type of endpoint policy. This is primarily used to validate // the configuration. Type EndpointPolicy_EndpointPolicyType `protobuf:"varint,5,opt,name=type,proto3,enum=google.cloud.networkservices.v1.EndpointPolicy_EndpointPolicyType" json:"type,omitempty"` // Optional. This field specifies the URL of AuthorizationPolicy resource that // applies authorization policies to the inbound traffic at the // matched endpoints. Refer to Authorization. If this field is not // specified, authorization is disabled(no authz checks) for this // endpoint. AuthorizationPolicy string `protobuf:"bytes,7,opt,name=authorization_policy,json=authorizationPolicy,proto3" json:"authorization_policy,omitempty"` // Required. A matcher that selects endpoints to which the policies should be applied. EndpointMatcher *EndpointMatcher `protobuf:"bytes,9,opt,name=endpoint_matcher,json=endpointMatcher,proto3" json:"endpoint_matcher,omitempty"` // Optional. Port selector for the (matched) endpoints. If no port selector is // provided, the matched config is applied to all ports. TrafficPortSelector *TrafficPortSelector `protobuf:"bytes,10,opt,name=traffic_port_selector,json=trafficPortSelector,proto3" json:"traffic_port_selector,omitempty"` // Optional. A free-text description of the resource. Max length 1024 characters. Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"` // Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to // determine the authentication policy to be applied to terminate the inbound // traffic at the identified backends. If this field is not set, // authentication is disabled(open) for this endpoint. ServerTlsPolicy string `protobuf:"bytes,12,opt,name=server_tls_policy,json=serverTlsPolicy,proto3" json:"server_tls_policy,omitempty"` // Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set // to specify the authentication for traffic from the proxy to the actual // endpoints. More specifically, it is applied to the outgoing traffic from // the proxy to the endpoint. This is typically used for sidecar model where // the proxy identifies itself as endpoint to the control plane, with the // connection between sidecar and endpoint requiring authentication. If this // field is not set, authentication is disabled(open). Applicable only when // EndpointPolicyType is SIDECAR_PROXY. ClientTlsPolicy string `protobuf:"bytes,13,opt,name=client_tls_policy,json=clientTlsPolicy,proto3" json:"client_tls_policy,omitempty"` // contains filtered or unexported fields }
func (*EndpointPolicy) Descriptor() ([]byte, []int)
Deprecated: Use EndpointPolicy.ProtoReflect.Descriptor instead.
func (x *EndpointPolicy) GetAuthorizationPolicy() string
func (x *EndpointPolicy) GetClientTlsPolicy() string
func (x *EndpointPolicy) GetCreateTime() *timestamppb.Timestamp
func (x *EndpointPolicy) GetDescription() string
func (x *EndpointPolicy) GetEndpointMatcher() *EndpointMatcher
func (x *EndpointPolicy) GetLabels() map[string]string
func (x *EndpointPolicy) GetName() string
func (x *EndpointPolicy) GetServerTlsPolicy() string
func (x *EndpointPolicy) GetTrafficPortSelector() *TrafficPortSelector
func (x *EndpointPolicy) GetType() EndpointPolicy_EndpointPolicyType
func (x *EndpointPolicy) GetUpdateTime() *timestamppb.Timestamp
func (*EndpointPolicy) ProtoMessage()
func (x *EndpointPolicy) ProtoReflect() protoreflect.Message
func (x *EndpointPolicy) Reset()
func (x *EndpointPolicy) String() string
The type of endpoint policy.
type EndpointPolicy_EndpointPolicyType int32
const ( // Default value. Must not be used. EndpointPolicy_ENDPOINT_POLICY_TYPE_UNSPECIFIED EndpointPolicy_EndpointPolicyType = 0 // Represents a proxy deployed as a sidecar. EndpointPolicy_SIDECAR_PROXY EndpointPolicy_EndpointPolicyType = 1 // Represents a proxyless gRPC backend. EndpointPolicy_GRPC_SERVER EndpointPolicy_EndpointPolicyType = 2 )
func (EndpointPolicy_EndpointPolicyType) Descriptor() protoreflect.EnumDescriptor
func (x EndpointPolicy_EndpointPolicyType) Enum() *EndpointPolicy_EndpointPolicyType
func (EndpointPolicy_EndpointPolicyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use EndpointPolicy_EndpointPolicyType.Descriptor instead.
func (x EndpointPolicy_EndpointPolicyType) Number() protoreflect.EnumNumber
func (x EndpointPolicy_EndpointPolicyType) String() string
func (EndpointPolicy_EndpointPolicyType) Type() protoreflect.EnumType
Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway.
type Gateway struct { // Required. Name of the Gateway resource. It matches pattern // `projects/*/locations/*/gateways/<gateway_name>`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Server-defined URL of this resource SelfLink string `protobuf:"bytes,13,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // Output only. The timestamp when the resource was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Set of label tags associated with the Gateway resource. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. A free-text description of the resource. Max length 1024 characters. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Immutable. The type of the customer managed gateway. // This field is required. If unspecified, an error is returned. Type Gateway_Type `protobuf:"varint,6,opt,name=type,proto3,enum=google.cloud.networkservices.v1.Gateway_Type" json:"type,omitempty"` // Required. One or more ports that the Gateway must receive traffic on. The proxy binds // to the ports specified. Gateway listen on 0.0.0.0 on the ports specified // below. Ports []int32 `protobuf:"varint,11,rep,packed,name=ports,proto3" json:"ports,omitempty"` // Required. Immutable. Scope determines how configuration across multiple Gateway instances are // merged. The configuration for multiple Gateway instances with the same // scope will be merged as presented as a single coniguration to the // proxy/load balancer. // // Max length 64 characters. // Scope should start with a letter and can only have letters, numbers, // hyphens. Scope string `protobuf:"bytes,8,opt,name=scope,proto3" json:"scope,omitempty"` // Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS // traffic is terminated. If empty, TLS termination is disabled. ServerTlsPolicy string `protobuf:"bytes,9,opt,name=server_tls_policy,json=serverTlsPolicy,proto3" json:"server_tls_policy,omitempty"` // contains filtered or unexported fields }
func (*Gateway) Descriptor() ([]byte, []int)
Deprecated: Use Gateway.ProtoReflect.Descriptor instead.
func (x *Gateway) GetCreateTime() *timestamppb.Timestamp
func (x *Gateway) GetDescription() string
func (x *Gateway) GetLabels() map[string]string
func (x *Gateway) GetName() string
func (x *Gateway) GetPorts() []int32
func (x *Gateway) GetScope() string
func (x *Gateway) GetSelfLink() string
func (x *Gateway) GetServerTlsPolicy() string
func (x *Gateway) GetType() Gateway_Type
func (x *Gateway) GetUpdateTime() *timestamppb.Timestamp
func (*Gateway) ProtoMessage()
func (x *Gateway) ProtoReflect() protoreflect.Message
func (x *Gateway) Reset()
func (x *Gateway) String() string
The type of the customer-managed gateway. Possible values are: * OPEN_MESH * SECURE_WEB_GATEWAY
type Gateway_Type int32
const ( // The type of the customer managed gateway is unspecified. Gateway_TYPE_UNSPECIFIED Gateway_Type = 0 // The type of the customer managed gateway is TrafficDirector Open // Mesh. Gateway_OPEN_MESH Gateway_Type = 1 // The type of the customer managed gateway is SecureWebGateway (SWG). Gateway_SECURE_WEB_GATEWAY Gateway_Type = 2 )
func (Gateway_Type) Descriptor() protoreflect.EnumDescriptor
func (x Gateway_Type) Enum() *Gateway_Type
func (Gateway_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Gateway_Type.Descriptor instead.
func (x Gateway_Type) Number() protoreflect.EnumNumber
func (x Gateway_Type) String() string
func (Gateway_Type) Type() protoreflect.EnumType
Request used with the GetEndpointPolicy method.
type GetEndpointPolicyRequest struct { // Required. A name of the EndpointPolicy to get. Must be in the format // `projects/*/locations/global/endpointPolicies/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetEndpointPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEndpointPolicyRequest.ProtoReflect.Descriptor instead.
func (x *GetEndpointPolicyRequest) GetName() string
func (*GetEndpointPolicyRequest) ProtoMessage()
func (x *GetEndpointPolicyRequest) ProtoReflect() protoreflect.Message
func (x *GetEndpointPolicyRequest) Reset()
func (x *GetEndpointPolicyRequest) String() string
Request used by the GetGateway method.
type GetGatewayRequest struct { // Required. A name of the Gateway to get. Must be in the format // `projects/*/locations/*/gateways/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetGatewayRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGatewayRequest.ProtoReflect.Descriptor instead.
func (x *GetGatewayRequest) GetName() string
func (*GetGatewayRequest) ProtoMessage()
func (x *GetGatewayRequest) ProtoReflect() protoreflect.Message
func (x *GetGatewayRequest) Reset()
func (x *GetGatewayRequest) String() string
Request used by the GetGrpcRoute method.
type GetGrpcRouteRequest struct { // Required. A name of the GrpcRoute to get. Must be in the format // `projects/*/locations/global/grpcRoutes/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetGrpcRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGrpcRouteRequest.ProtoReflect.Descriptor instead.
func (x *GetGrpcRouteRequest) GetName() string
func (*GetGrpcRouteRequest) ProtoMessage()
func (x *GetGrpcRouteRequest) ProtoReflect() protoreflect.Message
func (x *GetGrpcRouteRequest) Reset()
func (x *GetGrpcRouteRequest) String() string
Request used by the GetHttpRoute method.
type GetHttpRouteRequest struct { // Required. A name of the HttpRoute to get. Must be in the format // `projects/*/locations/global/httpRoutes/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetHttpRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHttpRouteRequest.ProtoReflect.Descriptor instead.
func (x *GetHttpRouteRequest) GetName() string
func (*GetHttpRouteRequest) ProtoMessage()
func (x *GetHttpRouteRequest) ProtoReflect() protoreflect.Message
func (x *GetHttpRouteRequest) Reset()
func (x *GetHttpRouteRequest) String() string
Request used by the GetMesh method.
type GetMeshRequest struct { // Required. A name of the Mesh to get. Must be in the format // `projects/*/locations/global/meshes/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetMeshRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMeshRequest.ProtoReflect.Descriptor instead.
func (x *GetMeshRequest) GetName() string
func (*GetMeshRequest) ProtoMessage()
func (x *GetMeshRequest) ProtoReflect() protoreflect.Message
func (x *GetMeshRequest) Reset()
func (x *GetMeshRequest) String() string
Request used by the GetServiceBinding method.
type GetServiceBindingRequest struct { // Required. A name of the ServiceBinding to get. Must be in the format // `projects/*/locations/global/serviceBindings/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetServiceBindingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServiceBindingRequest.ProtoReflect.Descriptor instead.
func (x *GetServiceBindingRequest) GetName() string
func (*GetServiceBindingRequest) ProtoMessage()
func (x *GetServiceBindingRequest) ProtoReflect() protoreflect.Message
func (x *GetServiceBindingRequest) Reset()
func (x *GetServiceBindingRequest) String() string
Request used by the GetTcpRoute method.
type GetTcpRouteRequest struct { // Required. A name of the TcpRoute to get. Must be in the format // `projects/*/locations/global/tcpRoutes/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetTcpRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTcpRouteRequest.ProtoReflect.Descriptor instead.
func (x *GetTcpRouteRequest) GetName() string
func (*GetTcpRouteRequest) ProtoMessage()
func (x *GetTcpRouteRequest) ProtoReflect() protoreflect.Message
func (x *GetTcpRouteRequest) Reset()
func (x *GetTcpRouteRequest) String() string
Request used by the GetTlsRoute method.
type GetTlsRouteRequest struct { // Required. A name of the TlsRoute to get. Must be in the format // `projects/*/locations/global/tlsRoutes/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetTlsRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTlsRouteRequest.ProtoReflect.Descriptor instead.
func (x *GetTlsRouteRequest) GetName() string
func (*GetTlsRouteRequest) ProtoMessage()
func (x *GetTlsRouteRequest) ProtoReflect() protoreflect.Message
func (x *GetTlsRouteRequest) Reset()
func (x *GetTlsRouteRequest) String() string
GrpcRoute is the resource defining how gRPC traffic routed by a Mesh or Gateway resource is routed.
type GrpcRoute struct { // Required. Name of the GrpcRoute resource. It matches pattern // `projects/*/locations/global/grpcRoutes/<grpc_route_name>` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Server-defined URL of this resource SelfLink string `protobuf:"bytes,12,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // Output only. The timestamp when the resource was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Set of label tags associated with the GrpcRoute resource. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. A free-text description of the resource. Max length 1024 characters. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Required. Service hostnames with an optional port for which this route describes // traffic. // // Format: <hostname>[:<port>] // // Hostname is the fully qualified domain name of a network host. This matches // the RFC 1123 definition of a hostname with 2 notable exceptions: // - IPs are not allowed. // - A hostname may be prefixed with a wildcard label (*.). The wildcard // label must appear by itself as the first label. // // Hostname can be "precise" which is a domain name without the terminating // dot of a network host (e.g. "foo.example.com") or "wildcard", which is a // domain name prefixed with a single wildcard label (e.g. *.example.com). // // Note that as per RFC1035 and RFC1123, a label must consist of lower case // alphanumeric characters or '-', and must start and end with an alphanumeric // character. No other punctuation is allowed. // // The routes associated with a Mesh or Gateway must have unique hostnames. If // you attempt to attach multiple routes with conflicting hostnames, the // configuration will be rejected. // // For example, while it is acceptable for routes for the hostnames // "*.foo.bar.com" and "*.bar.com" to be associated with the same route, it is // not possible to associate two routes both with "*.bar.com" or both with // "bar.com". // // If a port is specified, then gRPC clients must use the channel URI with the // port to match this rule (i.e. "xds:///service:123"), otherwise they must // supply the URI without a port (i.e. "xds:///service"). Hostnames []string `protobuf:"bytes,6,rep,name=hostnames,proto3" json:"hostnames,omitempty"` // Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as one of // the routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: // `projects/*/locations/global/meshes/<mesh_name>` Meshes []string `protobuf:"bytes,9,rep,name=meshes,proto3" json:"meshes,omitempty"` // Optional. Gateways defines a list of gateways this GrpcRoute is attached to, as one // of the routing rules to route the requests served by the gateway. // // Each gateway reference should match the pattern: // `projects/*/locations/global/gateways/<gateway_name>` Gateways []string `protobuf:"bytes,10,rep,name=gateways,proto3" json:"gateways,omitempty"` // Required. A list of detailed rules defining how to route traffic. // // Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the // first matching GrpcRoute.RouteRule will be executed. At least one rule // must be supplied. Rules []*GrpcRoute_RouteRule `protobuf:"bytes,7,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute.ProtoReflect.Descriptor instead.
func (x *GrpcRoute) GetCreateTime() *timestamppb.Timestamp
func (x *GrpcRoute) GetDescription() string
func (x *GrpcRoute) GetGateways() []string
func (x *GrpcRoute) GetHostnames() []string
func (x *GrpcRoute) GetLabels() map[string]string
func (x *GrpcRoute) GetMeshes() []string
func (x *GrpcRoute) GetName() string
func (x *GrpcRoute) GetRules() []*GrpcRoute_RouteRule
func (x *GrpcRoute) GetSelfLink() string
func (x *GrpcRoute) GetUpdateTime() *timestamppb.Timestamp
func (*GrpcRoute) ProtoMessage()
func (x *GrpcRoute) ProtoReflect() protoreflect.Message
func (x *GrpcRoute) Reset()
func (x *GrpcRoute) String() string
The destination to which traffic will be routed.
type GrpcRoute_Destination struct { // Specifies the kind of destination to which traffic will be routed. // // Types that are assignable to DestinationType: // *GrpcRoute_Destination_ServiceName DestinationType isGrpcRoute_Destination_DestinationType `protobuf_oneof:"destination_type"` // Optional. Specifies the proportion of requests forwarded to the backend referenced // by the serviceName field. This is computed as: // weight/Sum(weights in this destination list). // For non-zero values, there may be some epsilon from the exact proportion // defined here depending on the precision an implementation supports. // // If only one serviceName is specified and it has a weight greater than 0, // 100% of the traffic is forwarded to that backend. // // If weights are specified for any one service name, they need to be // specified for all of them. // // If weights are unspecified for all services, then, traffic is distributed // in equal proportions to all of them. Weight *int32 `protobuf:"varint,2,opt,name=weight,proto3,oneof" json:"weight,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute_Destination) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_Destination.ProtoReflect.Descriptor instead.
func (m *GrpcRoute_Destination) GetDestinationType() isGrpcRoute_Destination_DestinationType
func (x *GrpcRoute_Destination) GetServiceName() string
func (x *GrpcRoute_Destination) GetWeight() int32
func (*GrpcRoute_Destination) ProtoMessage()
func (x *GrpcRoute_Destination) ProtoReflect() protoreflect.Message
func (x *GrpcRoute_Destination) Reset()
func (x *GrpcRoute_Destination) String() string
type GrpcRoute_Destination_ServiceName struct { // Required. The URL of a destination service to which to route traffic. Must refer // to either a BackendService or ServiceDirectoryService. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3,oneof"` }
The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests.
type GrpcRoute_FaultInjectionPolicy struct { // The specification for injecting delay to client requests. Delay *GrpcRoute_FaultInjectionPolicy_Delay `protobuf:"bytes,1,opt,name=delay,proto3,oneof" json:"delay,omitempty"` // The specification for aborting to client requests. Abort *GrpcRoute_FaultInjectionPolicy_Abort `protobuf:"bytes,2,opt,name=abort,proto3,oneof" json:"abort,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute_FaultInjectionPolicy) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_FaultInjectionPolicy.ProtoReflect.Descriptor instead.
func (x *GrpcRoute_FaultInjectionPolicy) GetAbort() *GrpcRoute_FaultInjectionPolicy_Abort
func (x *GrpcRoute_FaultInjectionPolicy) GetDelay() *GrpcRoute_FaultInjectionPolicy_Delay
func (*GrpcRoute_FaultInjectionPolicy) ProtoMessage()
func (x *GrpcRoute_FaultInjectionPolicy) ProtoReflect() protoreflect.Message
func (x *GrpcRoute_FaultInjectionPolicy) Reset()
func (x *GrpcRoute_FaultInjectionPolicy) String() string
Specification of how client requests are aborted as part of fault injection before being sent to a destination.
type GrpcRoute_FaultInjectionPolicy_Abort struct { // The HTTP status code used to abort the request. // // The value must be between 200 and 599 inclusive. HttpStatus *int32 `protobuf:"varint,1,opt,name=http_status,json=httpStatus,proto3,oneof" json:"http_status,omitempty"` // The percentage of traffic which will be aborted. // // The value must be between [0, 100] Percentage *int32 `protobuf:"varint,2,opt,name=percentage,proto3,oneof" json:"percentage,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute_FaultInjectionPolicy_Abort) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_FaultInjectionPolicy_Abort.ProtoReflect.Descriptor instead.
func (x *GrpcRoute_FaultInjectionPolicy_Abort) GetHttpStatus() int32
func (x *GrpcRoute_FaultInjectionPolicy_Abort) GetPercentage() int32
func (*GrpcRoute_FaultInjectionPolicy_Abort) ProtoMessage()
func (x *GrpcRoute_FaultInjectionPolicy_Abort) ProtoReflect() protoreflect.Message
func (x *GrpcRoute_FaultInjectionPolicy_Abort) Reset()
func (x *GrpcRoute_FaultInjectionPolicy_Abort) String() string
Specification of how client requests are delayed as part of fault injection before being sent to a destination.
type GrpcRoute_FaultInjectionPolicy_Delay struct { // Specify a fixed delay before forwarding the request. FixedDelay *durationpb.Duration `protobuf:"bytes,1,opt,name=fixed_delay,json=fixedDelay,proto3,oneof" json:"fixed_delay,omitempty"` // The percentage of traffic on which delay will be injected. // // The value must be between [0, 100] Percentage *int32 `protobuf:"varint,2,opt,name=percentage,proto3,oneof" json:"percentage,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute_FaultInjectionPolicy_Delay) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_FaultInjectionPolicy_Delay.ProtoReflect.Descriptor instead.
func (x *GrpcRoute_FaultInjectionPolicy_Delay) GetFixedDelay() *durationpb.Duration
func (x *GrpcRoute_FaultInjectionPolicy_Delay) GetPercentage() int32
func (*GrpcRoute_FaultInjectionPolicy_Delay) ProtoMessage()
func (x *GrpcRoute_FaultInjectionPolicy_Delay) ProtoReflect() protoreflect.Message
func (x *GrpcRoute_FaultInjectionPolicy_Delay) Reset()
func (x *GrpcRoute_FaultInjectionPolicy_Delay) String() string
A match against a collection of headers.
type GrpcRoute_HeaderMatch struct { // Optional. Specifies how to match against the value of the header. If not // specified, a default value of EXACT is used. Type GrpcRoute_HeaderMatch_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.networkservices.v1.GrpcRoute_HeaderMatch_Type" json:"type,omitempty"` // Required. The key of the header. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // Required. The value of the header. Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute_HeaderMatch) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_HeaderMatch.ProtoReflect.Descriptor instead.
func (x *GrpcRoute_HeaderMatch) GetKey() string
func (x *GrpcRoute_HeaderMatch) GetType() GrpcRoute_HeaderMatch_Type
func (x *GrpcRoute_HeaderMatch) GetValue() string
func (*GrpcRoute_HeaderMatch) ProtoMessage()
func (x *GrpcRoute_HeaderMatch) ProtoReflect() protoreflect.Message
func (x *GrpcRoute_HeaderMatch) Reset()
func (x *GrpcRoute_HeaderMatch) String() string
The type of match.
type GrpcRoute_HeaderMatch_Type int32
const ( // Unspecified. GrpcRoute_HeaderMatch_TYPE_UNSPECIFIED GrpcRoute_HeaderMatch_Type = 0 // Will only match the exact value provided. GrpcRoute_HeaderMatch_EXACT GrpcRoute_HeaderMatch_Type = 1 // Will match paths conforming to the prefix specified by value. RE2 // syntax is supported. GrpcRoute_HeaderMatch_REGULAR_EXPRESSION GrpcRoute_HeaderMatch_Type = 2 )
func (GrpcRoute_HeaderMatch_Type) Descriptor() protoreflect.EnumDescriptor
func (x GrpcRoute_HeaderMatch_Type) Enum() *GrpcRoute_HeaderMatch_Type
func (GrpcRoute_HeaderMatch_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_HeaderMatch_Type.Descriptor instead.
func (x GrpcRoute_HeaderMatch_Type) Number() protoreflect.EnumNumber
func (x GrpcRoute_HeaderMatch_Type) String() string
func (GrpcRoute_HeaderMatch_Type) Type() protoreflect.EnumType
Specifies a match against a method.
type GrpcRoute_MethodMatch struct { // Optional. Specifies how to match against the name. If not specified, a default // value of "EXACT" is used. Type GrpcRoute_MethodMatch_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.networkservices.v1.GrpcRoute_MethodMatch_Type" json:"type,omitempty"` // Required. Name of the service to match against. If unspecified, will match all // services. GrpcService string `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` // Required. Name of the method to match against. If unspecified, will match all // methods. GrpcMethod string `protobuf:"bytes,3,opt,name=grpc_method,json=grpcMethod,proto3" json:"grpc_method,omitempty"` // Optional. Specifies that matches are case sensitive. The default value is true. // case_sensitive must not be used with a type of REGULAR_EXPRESSION. CaseSensitive *bool `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3,oneof" json:"case_sensitive,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute_MethodMatch) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_MethodMatch.ProtoReflect.Descriptor instead.
func (x *GrpcRoute_MethodMatch) GetCaseSensitive() bool
func (x *GrpcRoute_MethodMatch) GetGrpcMethod() string
func (x *GrpcRoute_MethodMatch) GetGrpcService() string
func (x *GrpcRoute_MethodMatch) GetType() GrpcRoute_MethodMatch_Type
func (*GrpcRoute_MethodMatch) ProtoMessage()
func (x *GrpcRoute_MethodMatch) ProtoReflect() protoreflect.Message
func (x *GrpcRoute_MethodMatch) Reset()
func (x *GrpcRoute_MethodMatch) String() string
The type of the match.
type GrpcRoute_MethodMatch_Type int32
const ( // Unspecified. GrpcRoute_MethodMatch_TYPE_UNSPECIFIED GrpcRoute_MethodMatch_Type = 0 // Will only match the exact name provided. GrpcRoute_MethodMatch_EXACT GrpcRoute_MethodMatch_Type = 1 // Will interpret grpc_method and grpc_service as regexes. RE2 syntax is // supported. GrpcRoute_MethodMatch_REGULAR_EXPRESSION GrpcRoute_MethodMatch_Type = 2 )
func (GrpcRoute_MethodMatch_Type) Descriptor() protoreflect.EnumDescriptor
func (x GrpcRoute_MethodMatch_Type) Enum() *GrpcRoute_MethodMatch_Type
func (GrpcRoute_MethodMatch_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_MethodMatch_Type.Descriptor instead.
func (x GrpcRoute_MethodMatch_Type) Number() protoreflect.EnumNumber
func (x GrpcRoute_MethodMatch_Type) String() string
func (GrpcRoute_MethodMatch_Type) Type() protoreflect.EnumType
The specifications for retries.
type GrpcRoute_RetryPolicy struct { // - connect-failure: Router will retry on failures connecting to Backend // Services, for example due to connection timeouts. // - refused-stream: Router will retry if the backend service resets the // stream // with a REFUSED_STREAM error code. This reset type indicates that it is // safe to retry. // - cancelled: Router will retry if the gRPC status code in the response // header // is set to cancelled // - deadline-exceeded: Router will retry if the gRPC status code in the // response // header is set to deadline-exceeded // - resource-exhausted: Router will retry if the gRPC status code in the // response header is set to resource-exhausted // - unavailable: Router will retry if the gRPC status code in the response // header is set to unavailable RetryConditions []string `protobuf:"bytes,1,rep,name=retry_conditions,json=retryConditions,proto3" json:"retry_conditions,omitempty"` // Specifies the allowed number of retries. This number must be > 0. If not // specified, default to 1. NumRetries uint32 `protobuf:"varint,2,opt,name=num_retries,json=numRetries,proto3" json:"num_retries,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute_RetryPolicy) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_RetryPolicy.ProtoReflect.Descriptor instead.
func (x *GrpcRoute_RetryPolicy) GetNumRetries() uint32
func (x *GrpcRoute_RetryPolicy) GetRetryConditions() []string
func (*GrpcRoute_RetryPolicy) ProtoMessage()
func (x *GrpcRoute_RetryPolicy) ProtoReflect() protoreflect.Message
func (x *GrpcRoute_RetryPolicy) Reset()
func (x *GrpcRoute_RetryPolicy) String() string
Specifies how to route matched traffic.
type GrpcRoute_RouteAction struct { // Optional. The destination services to which traffic should be forwarded. If // multiple destinations are specified, traffic will be split between // Backend Service(s) according to the weight field of these destinations. Destinations []*GrpcRoute_Destination `protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"` // Optional. The specification for fault injection introduced into traffic to test the // resiliency of clients to destination service failure. As part of fault // injection, when clients send requests to a destination, delays can be // introduced on a percentage of requests before sending those requests to // the destination service. Similarly requests from clients can be aborted // by for a percentage of requests. // // timeout and retry_policy will be ignored by clients that are configured // with a fault_injection_policy FaultInjectionPolicy *GrpcRoute_FaultInjectionPolicy `protobuf:"bytes,3,opt,name=fault_injection_policy,json=faultInjectionPolicy,proto3" json:"fault_injection_policy,omitempty"` // Optional. Specifies the timeout for selected route. Timeout is computed from the // time the request has been fully processed (i.e. end of stream) up until // the response has been completely processed. Timeout includes all retries. Timeout *durationpb.Duration `protobuf:"bytes,7,opt,name=timeout,proto3" json:"timeout,omitempty"` // Optional. Specifies the retry policy associated with this route. RetryPolicy *GrpcRoute_RetryPolicy `protobuf:"bytes,8,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute_RouteAction) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_RouteAction.ProtoReflect.Descriptor instead.
func (x *GrpcRoute_RouteAction) GetDestinations() []*GrpcRoute_Destination
func (x *GrpcRoute_RouteAction) GetFaultInjectionPolicy() *GrpcRoute_FaultInjectionPolicy
func (x *GrpcRoute_RouteAction) GetRetryPolicy() *GrpcRoute_RetryPolicy
func (x *GrpcRoute_RouteAction) GetTimeout() *durationpb.Duration
func (*GrpcRoute_RouteAction) ProtoMessage()
func (x *GrpcRoute_RouteAction) ProtoReflect() protoreflect.Message
func (x *GrpcRoute_RouteAction) Reset()
func (x *GrpcRoute_RouteAction) String() string
Criteria for matching traffic. A RouteMatch will be considered to match when all supplied fields match.
type GrpcRoute_RouteMatch struct { // Optional. A gRPC method to match against. If this field is empty or omitted, will // match all methods. Method *GrpcRoute_MethodMatch `protobuf:"bytes,1,opt,name=method,proto3,oneof" json:"method,omitempty"` // Optional. Specifies a collection of headers to match. Headers []*GrpcRoute_HeaderMatch `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute_RouteMatch) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_RouteMatch.ProtoReflect.Descriptor instead.
func (x *GrpcRoute_RouteMatch) GetHeaders() []*GrpcRoute_HeaderMatch
func (x *GrpcRoute_RouteMatch) GetMethod() *GrpcRoute_MethodMatch
func (*GrpcRoute_RouteMatch) ProtoMessage()
func (x *GrpcRoute_RouteMatch) ProtoReflect() protoreflect.Message
func (x *GrpcRoute_RouteMatch) Reset()
func (x *GrpcRoute_RouteMatch) String() string
Describes how to route traffic.
type GrpcRoute_RouteRule struct { // Optional. Matches define conditions used for matching the rule against incoming // gRPC requests. Each match is independent, i.e. this rule will be matched // if ANY one of the matches is satisfied. If no matches field is // specified, this rule will unconditionally match traffic. Matches []*GrpcRoute_RouteMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` // Required. A detailed rule defining how to route traffic. This field is required. Action *GrpcRoute_RouteAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
func (*GrpcRoute_RouteRule) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRoute_RouteRule.ProtoReflect.Descriptor instead.
func (x *GrpcRoute_RouteRule) GetAction() *GrpcRoute_RouteAction
func (x *GrpcRoute_RouteRule) GetMatches() []*GrpcRoute_RouteMatch
func (*GrpcRoute_RouteRule) ProtoMessage()
func (x *GrpcRoute_RouteRule) ProtoReflect() protoreflect.Message
func (x *GrpcRoute_RouteRule) Reset()
func (x *GrpcRoute_RouteRule) String() string
HttpRoute is the resource defining how HTTP traffic should be routed by a Mesh or Gateway resource.
type HttpRoute struct { // Required. Name of the HttpRoute resource. It matches pattern // `projects/*/locations/global/httpRoutes/http_route_name>`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Server-defined URL of this resource SelfLink string `protobuf:"bytes,11,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // Optional. A free-text description of the resource. Max length 1024 characters. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Output only. The timestamp when the resource was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Required. Hostnames define a set of hosts that should match against the HTTP host // header to select a HttpRoute to process the request. Hostname is the fully // qualified domain name of a network host, as defined by RFC 1123 with the // exception that: // - IPs are not allowed. // - A hostname may be prefixed with a wildcard label (*.). The wildcard // label must appear by itself as the first label. // // Hostname can be "precise" which is a domain name without the terminating // dot of a network host (e.g. "foo.example.com") or "wildcard", which is a // domain name prefixed with a single wildcard label (e.g. *.example.com). // // Note that as per RFC1035 and RFC1123, a label must consist of lower case // alphanumeric characters or '-', and must start and end with an alphanumeric // character. No other punctuation is allowed. // // The routes associated with a Mesh or Gateways must have unique hostnames. // If you attempt to attach multiple routes with conflicting hostnames, // the configuration will be rejected. // // For example, while it is acceptable for routes for the hostnames // "*.foo.bar.com" and "*.bar.com" to be associated with the same Mesh (or // Gateways under the same scope), it is not possible to associate two routes // both with "*.bar.com" or both with "bar.com". Hostnames []string `protobuf:"bytes,5,rep,name=hostnames,proto3" json:"hostnames,omitempty"` // Optional. Meshes defines a list of meshes this HttpRoute is attached to, as one of // the routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: // `projects/*/locations/global/meshes/<mesh_name>` // // The attached Mesh should be of a type SIDECAR Meshes []string `protobuf:"bytes,8,rep,name=meshes,proto3" json:"meshes,omitempty"` // Optional. Gateways defines a list of gateways this HttpRoute is attached to, as one // of the routing rules to route the requests served by the gateway. // // Each gateway reference should match the pattern: // `projects/*/locations/global/gateways/<gateway_name>` Gateways []string `protobuf:"bytes,9,rep,name=gateways,proto3" json:"gateways,omitempty"` // Optional. Set of label tags associated with the HttpRoute resource. Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. Rules that define how traffic is routed and handled. // Rules will be matched sequentially based on the RouteMatch specified for // the rule. Rules []*HttpRoute_RouteRule `protobuf:"bytes,6,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute.ProtoReflect.Descriptor instead.
func (x *HttpRoute) GetCreateTime() *timestamppb.Timestamp
func (x *HttpRoute) GetDescription() string
func (x *HttpRoute) GetGateways() []string
func (x *HttpRoute) GetHostnames() []string
func (x *HttpRoute) GetLabels() map[string]string
func (x *HttpRoute) GetMeshes() []string
func (x *HttpRoute) GetName() string
func (x *HttpRoute) GetRules() []*HttpRoute_RouteRule
func (x *HttpRoute) GetSelfLink() string
func (x *HttpRoute) GetUpdateTime() *timestamppb.Timestamp
func (*HttpRoute) ProtoMessage()
func (x *HttpRoute) ProtoReflect() protoreflect.Message
func (x *HttpRoute) Reset()
func (x *HttpRoute) String() string
The Specification for allowing client side cross-origin requests.
type HttpRoute_CorsPolicy struct { // Specifies the list of origins that will be allowed to do CORS requests. // An origin is allowed if it matches either an item in allow_origins or // an item in allow_origin_regexes. AllowOrigins []string `protobuf:"bytes,1,rep,name=allow_origins,json=allowOrigins,proto3" json:"allow_origins,omitempty"` // Specifies the regular expression patterns that match allowed origins. For // regular expression grammar, please see // https://github.com/google/re2/wiki/Syntax. AllowOriginRegexes []string `protobuf:"bytes,2,rep,name=allow_origin_regexes,json=allowOriginRegexes,proto3" json:"allow_origin_regexes,omitempty"` // Specifies the content for Access-Control-Allow-Methods header. AllowMethods []string `protobuf:"bytes,3,rep,name=allow_methods,json=allowMethods,proto3" json:"allow_methods,omitempty"` // Specifies the content for Access-Control-Allow-Headers header. AllowHeaders []string `protobuf:"bytes,4,rep,name=allow_headers,json=allowHeaders,proto3" json:"allow_headers,omitempty"` // Specifies the content for Access-Control-Expose-Headers header. ExposeHeaders []string `protobuf:"bytes,5,rep,name=expose_headers,json=exposeHeaders,proto3" json:"expose_headers,omitempty"` // Specifies how long result of a preflight request can be cached in // seconds. This translates to the Access-Control-Max-Age header. MaxAge string `protobuf:"bytes,6,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` // In response to a preflight request, setting this to true indicates that // the actual request can include user credentials. This translates to the // Access-Control-Allow-Credentials header. // // Default value is false. AllowCredentials bool `protobuf:"varint,7,opt,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"` // If true, the CORS policy is disabled. The default value is false, which // indicates that the CORS policy is in effect. Disabled bool `protobuf:"varint,8,opt,name=disabled,proto3" json:"disabled,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_CorsPolicy) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_CorsPolicy.ProtoReflect.Descriptor instead.
func (x *HttpRoute_CorsPolicy) GetAllowCredentials() bool
func (x *HttpRoute_CorsPolicy) GetAllowHeaders() []string
func (x *HttpRoute_CorsPolicy) GetAllowMethods() []string
func (x *HttpRoute_CorsPolicy) GetAllowOriginRegexes() []string
func (x *HttpRoute_CorsPolicy) GetAllowOrigins() []string
func (x *HttpRoute_CorsPolicy) GetDisabled() bool
func (x *HttpRoute_CorsPolicy) GetExposeHeaders() []string
func (x *HttpRoute_CorsPolicy) GetMaxAge() string
func (*HttpRoute_CorsPolicy) ProtoMessage()
func (x *HttpRoute_CorsPolicy) ProtoReflect() protoreflect.Message
func (x *HttpRoute_CorsPolicy) Reset()
func (x *HttpRoute_CorsPolicy) String() string
Specifications of a destination to which the request should be routed to.
type HttpRoute_Destination struct { // The URL of a BackendService to route traffic to. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // Specifies the proportion of requests forwarded to the backend referenced // by the serviceName field. This is computed as: // weight/Sum(weights in this destination list). // For non-zero values, there may be some epsilon from the exact proportion // defined here depending on the precision an implementation supports. // // If only one serviceName is specified and it has a weight greater than 0, // 100% of the traffic is forwarded to that backend. // // If weights are specified for any one service name, they need to be // specified for all of them. // // If weights are unspecified for all services, then, traffic is distributed // in equal proportions to all of them. Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_Destination) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_Destination.ProtoReflect.Descriptor instead.
func (x *HttpRoute_Destination) GetServiceName() string
func (x *HttpRoute_Destination) GetWeight() int32
func (*HttpRoute_Destination) ProtoMessage()
func (x *HttpRoute_Destination) ProtoReflect() protoreflect.Message
func (x *HttpRoute_Destination) Reset()
func (x *HttpRoute_Destination) String() string
The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced by client proxy on a percentage of requests before sending those requests to the destination service. Similarly requests can be aborted by client proxy for a percentage of requests.
type HttpRoute_FaultInjectionPolicy struct { // The specification for injecting delay to client requests. Delay *HttpRoute_FaultInjectionPolicy_Delay `protobuf:"bytes,1,opt,name=delay,proto3" json:"delay,omitempty"` // The specification for aborting to client requests. Abort *HttpRoute_FaultInjectionPolicy_Abort `protobuf:"bytes,2,opt,name=abort,proto3" json:"abort,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_FaultInjectionPolicy) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_FaultInjectionPolicy.ProtoReflect.Descriptor instead.
func (x *HttpRoute_FaultInjectionPolicy) GetAbort() *HttpRoute_FaultInjectionPolicy_Abort
func (x *HttpRoute_FaultInjectionPolicy) GetDelay() *HttpRoute_FaultInjectionPolicy_Delay
func (*HttpRoute_FaultInjectionPolicy) ProtoMessage()
func (x *HttpRoute_FaultInjectionPolicy) ProtoReflect() protoreflect.Message
func (x *HttpRoute_FaultInjectionPolicy) Reset()
func (x *HttpRoute_FaultInjectionPolicy) String() string
Specification of how client requests are aborted as part of fault injection before being sent to a destination.
type HttpRoute_FaultInjectionPolicy_Abort struct { // The HTTP status code used to abort the request. // // The value must be between 200 and 599 inclusive. HttpStatus int32 `protobuf:"varint,1,opt,name=http_status,json=httpStatus,proto3" json:"http_status,omitempty"` // The percentage of traffic which will be aborted. // // The value must be between [0, 100] Percentage int32 `protobuf:"varint,2,opt,name=percentage,proto3" json:"percentage,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_FaultInjectionPolicy_Abort) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_FaultInjectionPolicy_Abort.ProtoReflect.Descriptor instead.
func (x *HttpRoute_FaultInjectionPolicy_Abort) GetHttpStatus() int32
func (x *HttpRoute_FaultInjectionPolicy_Abort) GetPercentage() int32
func (*HttpRoute_FaultInjectionPolicy_Abort) ProtoMessage()
func (x *HttpRoute_FaultInjectionPolicy_Abort) ProtoReflect() protoreflect.Message
func (x *HttpRoute_FaultInjectionPolicy_Abort) Reset()
func (x *HttpRoute_FaultInjectionPolicy_Abort) String() string
Specification of how client requests are delayed as part of fault injection before being sent to a destination.
type HttpRoute_FaultInjectionPolicy_Delay struct { // Specify a fixed delay before forwarding the request. FixedDelay *durationpb.Duration `protobuf:"bytes,1,opt,name=fixed_delay,json=fixedDelay,proto3" json:"fixed_delay,omitempty"` // The percentage of traffic on which delay will be injected. // // The value must be between [0, 100] Percentage int32 `protobuf:"varint,2,opt,name=percentage,proto3" json:"percentage,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_FaultInjectionPolicy_Delay) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_FaultInjectionPolicy_Delay.ProtoReflect.Descriptor instead.
func (x *HttpRoute_FaultInjectionPolicy_Delay) GetFixedDelay() *durationpb.Duration
func (x *HttpRoute_FaultInjectionPolicy_Delay) GetPercentage() int32
func (*HttpRoute_FaultInjectionPolicy_Delay) ProtoMessage()
func (x *HttpRoute_FaultInjectionPolicy_Delay) ProtoReflect() protoreflect.Message
func (x *HttpRoute_FaultInjectionPolicy_Delay) Reset()
func (x *HttpRoute_FaultInjectionPolicy_Delay) String() string
Specifies how to select a route rule based on HTTP request headers.
type HttpRoute_HeaderMatch struct { // Types that are assignable to MatchType: // *HttpRoute_HeaderMatch_ExactMatch // *HttpRoute_HeaderMatch_RegexMatch // *HttpRoute_HeaderMatch_PrefixMatch // *HttpRoute_HeaderMatch_PresentMatch // *HttpRoute_HeaderMatch_SuffixMatch // *HttpRoute_HeaderMatch_RangeMatch MatchType isHttpRoute_HeaderMatch_MatchType `protobuf_oneof:"MatchType"` // The name of the HTTP header to match against. Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // If specified, the match result will be inverted before checking. Default // value is set to false. InvertMatch bool `protobuf:"varint,8,opt,name=invert_match,json=invertMatch,proto3" json:"invert_match,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_HeaderMatch) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_HeaderMatch.ProtoReflect.Descriptor instead.
func (x *HttpRoute_HeaderMatch) GetExactMatch() string
func (x *HttpRoute_HeaderMatch) GetHeader() string
func (x *HttpRoute_HeaderMatch) GetInvertMatch() bool
func (m *HttpRoute_HeaderMatch) GetMatchType() isHttpRoute_HeaderMatch_MatchType
func (x *HttpRoute_HeaderMatch) GetPrefixMatch() string
func (x *HttpRoute_HeaderMatch) GetPresentMatch() bool
func (x *HttpRoute_HeaderMatch) GetRangeMatch() *HttpRoute_HeaderMatch_IntegerRange
func (x *HttpRoute_HeaderMatch) GetRegexMatch() string
func (x *HttpRoute_HeaderMatch) GetSuffixMatch() string
func (*HttpRoute_HeaderMatch) ProtoMessage()
func (x *HttpRoute_HeaderMatch) ProtoReflect() protoreflect.Message
func (x *HttpRoute_HeaderMatch) Reset()
func (x *HttpRoute_HeaderMatch) String() string
type HttpRoute_HeaderMatch_ExactMatch struct { // The value of the header should match exactly the content of // exact_match. ExactMatch string `protobuf:"bytes,2,opt,name=exact_match,json=exactMatch,proto3,oneof"` }
Represents an integer value range.
type HttpRoute_HeaderMatch_IntegerRange struct { // Start of the range (inclusive) Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` // End of the range (exclusive) End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_HeaderMatch_IntegerRange) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_HeaderMatch_IntegerRange.ProtoReflect.Descriptor instead.
func (x *HttpRoute_HeaderMatch_IntegerRange) GetEnd() int32
func (x *HttpRoute_HeaderMatch_IntegerRange) GetStart() int32
func (*HttpRoute_HeaderMatch_IntegerRange) ProtoMessage()
func (x *HttpRoute_HeaderMatch_IntegerRange) ProtoReflect() protoreflect.Message
func (x *HttpRoute_HeaderMatch_IntegerRange) Reset()
func (x *HttpRoute_HeaderMatch_IntegerRange) String() string
type HttpRoute_HeaderMatch_PrefixMatch struct { // The value of the header must start with the contents of prefix_match. PrefixMatch string `protobuf:"bytes,4,opt,name=prefix_match,json=prefixMatch,proto3,oneof"` }
type HttpRoute_HeaderMatch_PresentMatch struct { // A header with header_name must exist. The match takes place whether or // not the header has a value. PresentMatch bool `protobuf:"varint,5,opt,name=present_match,json=presentMatch,proto3,oneof"` }
type HttpRoute_HeaderMatch_RangeMatch struct { // If specified, the rule will match if the request header value is within // the range. RangeMatch *HttpRoute_HeaderMatch_IntegerRange `protobuf:"bytes,7,opt,name=range_match,json=rangeMatch,proto3,oneof"` }
type HttpRoute_HeaderMatch_RegexMatch struct { // The value of the header must match the regular expression specified in // regex_match. For regular expression grammar, please see: // https://github.com/google/re2/wiki/Syntax RegexMatch string `protobuf:"bytes,3,opt,name=regex_match,json=regexMatch,proto3,oneof"` }
type HttpRoute_HeaderMatch_SuffixMatch struct { // The value of the header must end with the contents of suffix_match. SuffixMatch string `protobuf:"bytes,6,opt,name=suffix_match,json=suffixMatch,proto3,oneof"` }
The specification for modifying HTTP header in HTTP request and HTTP response.
type HttpRoute_HeaderModifier struct { // Completely overwrite/replace the headers with given map where key is the // name of the header, value is the value of the header. Set map[string]string `protobuf:"bytes,1,rep,name=set,proto3" json:"set,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Add the headers with given map where key is the name of the header, value // is the value of the header. Add map[string]string `protobuf:"bytes,2,rep,name=add,proto3" json:"add,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Remove headers (matching by header names) specified in the list. Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_HeaderModifier) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_HeaderModifier.ProtoReflect.Descriptor instead.
func (x *HttpRoute_HeaderModifier) GetAdd() map[string]string
func (x *HttpRoute_HeaderModifier) GetRemove() []string
func (x *HttpRoute_HeaderModifier) GetSet() map[string]string
func (*HttpRoute_HeaderModifier) ProtoMessage()
func (x *HttpRoute_HeaderModifier) ProtoReflect() protoreflect.Message
func (x *HttpRoute_HeaderModifier) Reset()
func (x *HttpRoute_HeaderModifier) String() string
Specifications to match a query parameter in the request.
type HttpRoute_QueryParameterMatch struct { // Types that are assignable to MatchType: // *HttpRoute_QueryParameterMatch_ExactMatch // *HttpRoute_QueryParameterMatch_RegexMatch // *HttpRoute_QueryParameterMatch_PresentMatch MatchType isHttpRoute_QueryParameterMatch_MatchType `protobuf_oneof:"MatchType"` // The name of the query parameter to match. QueryParameter string `protobuf:"bytes,1,opt,name=query_parameter,json=queryParameter,proto3" json:"query_parameter,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_QueryParameterMatch) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_QueryParameterMatch.ProtoReflect.Descriptor instead.
func (x *HttpRoute_QueryParameterMatch) GetExactMatch() string
func (m *HttpRoute_QueryParameterMatch) GetMatchType() isHttpRoute_QueryParameterMatch_MatchType
func (x *HttpRoute_QueryParameterMatch) GetPresentMatch() bool
func (x *HttpRoute_QueryParameterMatch) GetQueryParameter() string
func (x *HttpRoute_QueryParameterMatch) GetRegexMatch() string
func (*HttpRoute_QueryParameterMatch) ProtoMessage()
func (x *HttpRoute_QueryParameterMatch) ProtoReflect() protoreflect.Message
func (x *HttpRoute_QueryParameterMatch) Reset()
func (x *HttpRoute_QueryParameterMatch) String() string
type HttpRoute_QueryParameterMatch_ExactMatch struct { // The value of the query parameter must exactly match the contents of // exact_match. // // Only one of exact_match, regex_match, or present_match must be set. ExactMatch string `protobuf:"bytes,2,opt,name=exact_match,json=exactMatch,proto3,oneof"` }
type HttpRoute_QueryParameterMatch_PresentMatch struct { // Specifies that the QueryParameterMatcher matches if request contains // query parameter, irrespective of whether the parameter has a value or // not. // // Only one of exact_match, regex_match, or present_match must be set. PresentMatch bool `protobuf:"varint,4,opt,name=present_match,json=presentMatch,proto3,oneof"` }
type HttpRoute_QueryParameterMatch_RegexMatch struct { // The value of the query parameter must match the regular expression // specified by regex_match. For regular expression grammar, please see // https://github.com/google/re2/wiki/Syntax // // Only one of exact_match, regex_match, or present_match must be set. RegexMatch string `protobuf:"bytes,3,opt,name=regex_match,json=regexMatch,proto3,oneof"` }
The specification for redirecting traffic.
type HttpRoute_Redirect struct { // The host that will be used in the redirect response instead of the one // that was supplied in the request. HostRedirect string `protobuf:"bytes,1,opt,name=host_redirect,json=hostRedirect,proto3" json:"host_redirect,omitempty"` // The path that will be used in the redirect response instead of the one // that was supplied in the request. // path_redirect can not be supplied together with prefix_redirect. Supply // one alone or neither. If neither is supplied, the path of the original // request will be used for the redirect. PathRedirect string `protobuf:"bytes,2,opt,name=path_redirect,json=pathRedirect,proto3" json:"path_redirect,omitempty"` // Indicates that during redirection, the matched prefix (or path) should be // swapped with this value. This option allows URLs be dynamically created // based on the request. PrefixRewrite string `protobuf:"bytes,3,opt,name=prefix_rewrite,json=prefixRewrite,proto3" json:"prefix_rewrite,omitempty"` // The HTTP Status code to use for the redirect. ResponseCode HttpRoute_Redirect_ResponseCode `protobuf:"varint,4,opt,name=response_code,json=responseCode,proto3,enum=google.cloud.networkservices.v1.HttpRoute_Redirect_ResponseCode" json:"response_code,omitempty"` // If set to true, the URL scheme in the redirected request is set to https. // If set to false, the URL scheme of the redirected request will remain the // same as that of the request. // // The default is set to false. HttpsRedirect bool `protobuf:"varint,5,opt,name=https_redirect,json=httpsRedirect,proto3" json:"https_redirect,omitempty"` // if set to true, any accompanying query portion of the original URL is // removed prior to redirecting the request. If set to false, the query // portion of the original URL is retained. // // The default is set to false. StripQuery bool `protobuf:"varint,6,opt,name=strip_query,json=stripQuery,proto3" json:"strip_query,omitempty"` // The port that will be used in the redirected request instead of the one // that was supplied in the request. PortRedirect int32 `protobuf:"varint,7,opt,name=port_redirect,json=portRedirect,proto3" json:"port_redirect,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_Redirect) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_Redirect.ProtoReflect.Descriptor instead.
func (x *HttpRoute_Redirect) GetHostRedirect() string
func (x *HttpRoute_Redirect) GetHttpsRedirect() bool
func (x *HttpRoute_Redirect) GetPathRedirect() string
func (x *HttpRoute_Redirect) GetPortRedirect() int32
func (x *HttpRoute_Redirect) GetPrefixRewrite() string
func (x *HttpRoute_Redirect) GetResponseCode() HttpRoute_Redirect_ResponseCode
func (x *HttpRoute_Redirect) GetStripQuery() bool
func (*HttpRoute_Redirect) ProtoMessage()
func (x *HttpRoute_Redirect) ProtoReflect() protoreflect.Message
func (x *HttpRoute_Redirect) Reset()
func (x *HttpRoute_Redirect) String() string
Supported HTTP response code.
type HttpRoute_Redirect_ResponseCode int32
const ( // Default value HttpRoute_Redirect_RESPONSE_CODE_UNSPECIFIED HttpRoute_Redirect_ResponseCode = 0 // Corresponds to 301. HttpRoute_Redirect_MOVED_PERMANENTLY_DEFAULT HttpRoute_Redirect_ResponseCode = 1 // Corresponds to 302. HttpRoute_Redirect_FOUND HttpRoute_Redirect_ResponseCode = 2 // Corresponds to 303. HttpRoute_Redirect_SEE_OTHER HttpRoute_Redirect_ResponseCode = 3 // Corresponds to 307. In this case, the request method will be retained. HttpRoute_Redirect_TEMPORARY_REDIRECT HttpRoute_Redirect_ResponseCode = 4 // Corresponds to 308. In this case, the request method will be retained. HttpRoute_Redirect_PERMANENT_REDIRECT HttpRoute_Redirect_ResponseCode = 5 )
func (HttpRoute_Redirect_ResponseCode) Descriptor() protoreflect.EnumDescriptor
func (x HttpRoute_Redirect_ResponseCode) Enum() *HttpRoute_Redirect_ResponseCode
func (HttpRoute_Redirect_ResponseCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use HttpRoute_Redirect_ResponseCode.Descriptor instead.
func (x HttpRoute_Redirect_ResponseCode) Number() protoreflect.EnumNumber
func (x HttpRoute_Redirect_ResponseCode) String() string
func (HttpRoute_Redirect_ResponseCode) Type() protoreflect.EnumType
Specifies the policy on how requests are shadowed to a separate mirrored destination service. The proxy does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow.
type HttpRoute_RequestMirrorPolicy struct { // The destination the requests will be mirrored to. The weight of the // destination will be ignored. Destination *HttpRoute_Destination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_RequestMirrorPolicy) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_RequestMirrorPolicy.ProtoReflect.Descriptor instead.
func (x *HttpRoute_RequestMirrorPolicy) GetDestination() *HttpRoute_Destination
func (*HttpRoute_RequestMirrorPolicy) ProtoMessage()
func (x *HttpRoute_RequestMirrorPolicy) ProtoReflect() protoreflect.Message
func (x *HttpRoute_RequestMirrorPolicy) Reset()
func (x *HttpRoute_RequestMirrorPolicy) String() string
The specifications for retries.
type HttpRoute_RetryPolicy struct { // Specifies one or more conditions when this retry policy applies. Valid // values are: // 5xx: Proxy will attempt a retry if the destination service responds // with any 5xx response code, of if the destination service does not // respond at all, example: disconnect, reset, read timeout, connection // failure and refused streams. // // gateway-error: Similar to 5xx, but only applies to response codes 502, // 503, 504. // // reset: Proxy will attempt a retry if the destination service does not // respond at all (disconnect/reset/read timeout) // // connect-failure: Proxy will retry on failures connecting to destination // for example due to connection timeouts. // // retriable-4xx: Proxy will retry fro retriable 4xx response codes. // Currently the only retriable error supported is 409. // // refused-stream: Proxy will retry if the destination resets the stream // with a REFUSED_STREAM error code. This reset type indicates that it // is safe to retry. RetryConditions []string `protobuf:"bytes,1,rep,name=retry_conditions,json=retryConditions,proto3" json:"retry_conditions,omitempty"` // Specifies the allowed number of retries. This number must be > 0. If not // specified, default to 1. NumRetries int32 `protobuf:"varint,2,opt,name=num_retries,json=numRetries,proto3" json:"num_retries,omitempty"` // Specifies a non-zero timeout per retry attempt. PerTryTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=per_try_timeout,json=perTryTimeout,proto3" json:"per_try_timeout,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_RetryPolicy) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_RetryPolicy.ProtoReflect.Descriptor instead.
func (x *HttpRoute_RetryPolicy) GetNumRetries() int32
func (x *HttpRoute_RetryPolicy) GetPerTryTimeout() *durationpb.Duration
func (x *HttpRoute_RetryPolicy) GetRetryConditions() []string
func (*HttpRoute_RetryPolicy) ProtoMessage()
func (x *HttpRoute_RetryPolicy) ProtoReflect() protoreflect.Message
func (x *HttpRoute_RetryPolicy) Reset()
func (x *HttpRoute_RetryPolicy) String() string
The specifications for routing traffic and applying associated policies.
type HttpRoute_RouteAction struct { // The destination to which traffic should be forwarded. Destinations []*HttpRoute_Destination `protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"` // If set, the request is directed as configured by this field. Redirect *HttpRoute_Redirect `protobuf:"bytes,2,opt,name=redirect,proto3" json:"redirect,omitempty"` // The specification for fault injection introduced into traffic to test the // resiliency of clients to backend service failure. As part of fault // injection, when clients send requests to a backend service, delays can be // introduced on a percentage of requests before sending those requests to // the backend service. Similarly requests from clients can be aborted for a // percentage of requests. // // timeout and retry_policy will be ignored by clients that are configured // with a fault_injection_policy FaultInjectionPolicy *HttpRoute_FaultInjectionPolicy `protobuf:"bytes,4,opt,name=fault_injection_policy,json=faultInjectionPolicy,proto3" json:"fault_injection_policy,omitempty"` // The specification for modifying the headers of a matching request prior // to delivery of the request to the destination. RequestHeaderModifier *HttpRoute_HeaderModifier `protobuf:"bytes,5,opt,name=request_header_modifier,json=requestHeaderModifier,proto3" json:"request_header_modifier,omitempty"` // The specification for modifying the headers of a response prior to // sending the response back to the client. ResponseHeaderModifier *HttpRoute_HeaderModifier `protobuf:"bytes,6,opt,name=response_header_modifier,json=responseHeaderModifier,proto3" json:"response_header_modifier,omitempty"` // The specification for rewrite URL before forwarding requests to the // destination. UrlRewrite *HttpRoute_URLRewrite `protobuf:"bytes,7,opt,name=url_rewrite,json=urlRewrite,proto3" json:"url_rewrite,omitempty"` // Specifies the timeout for selected route. Timeout is computed from the // time the request has been fully processed (i.e. end of stream) up until // the response has been completely processed. Timeout includes all retries. Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` // Specifies the retry policy associated with this route. RetryPolicy *HttpRoute_RetryPolicy `protobuf:"bytes,9,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` // Specifies the policy on how requests intended for the routes destination // are shadowed to a separate mirrored destination. Proxy will not wait for // the shadow destination to respond before returning the response. Prior to // sending traffic to the shadow service, the host/authority header is // suffixed with -shadow. RequestMirrorPolicy *HttpRoute_RequestMirrorPolicy `protobuf:"bytes,10,opt,name=request_mirror_policy,json=requestMirrorPolicy,proto3" json:"request_mirror_policy,omitempty"` // The specification for allowing client side cross-origin requests. CorsPolicy *HttpRoute_CorsPolicy `protobuf:"bytes,11,opt,name=cors_policy,json=corsPolicy,proto3" json:"cors_policy,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_RouteAction) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_RouteAction.ProtoReflect.Descriptor instead.
func (x *HttpRoute_RouteAction) GetCorsPolicy() *HttpRoute_CorsPolicy
func (x *HttpRoute_RouteAction) GetDestinations() []*HttpRoute_Destination
func (x *HttpRoute_RouteAction) GetFaultInjectionPolicy() *HttpRoute_FaultInjectionPolicy
func (x *HttpRoute_RouteAction) GetRedirect() *HttpRoute_Redirect
func (x *HttpRoute_RouteAction) GetRequestHeaderModifier() *HttpRoute_HeaderModifier
func (x *HttpRoute_RouteAction) GetRequestMirrorPolicy() *HttpRoute_RequestMirrorPolicy
func (x *HttpRoute_RouteAction) GetResponseHeaderModifier() *HttpRoute_HeaderModifier
func (x *HttpRoute_RouteAction) GetRetryPolicy() *HttpRoute_RetryPolicy
func (x *HttpRoute_RouteAction) GetTimeout() *durationpb.Duration
func (x *HttpRoute_RouteAction) GetUrlRewrite() *HttpRoute_URLRewrite
func (*HttpRoute_RouteAction) ProtoMessage()
func (x *HttpRoute_RouteAction) ProtoReflect() protoreflect.Message
func (x *HttpRoute_RouteAction) Reset()
func (x *HttpRoute_RouteAction) String() string
RouteMatch defines specifications used to match requests. If multiple match types are set, this RouteMatch will match if ALL type of matches are matched.
type HttpRoute_RouteMatch struct { // Types that are assignable to PathMatch: // *HttpRoute_RouteMatch_FullPathMatch // *HttpRoute_RouteMatch_PrefixMatch // *HttpRoute_RouteMatch_RegexMatch PathMatch isHttpRoute_RouteMatch_PathMatch `protobuf_oneof:"PathMatch"` // Specifies if prefix_match and full_path_match matches are case sensitive. // The default value is false. IgnoreCase bool `protobuf:"varint,4,opt,name=ignore_case,json=ignoreCase,proto3" json:"ignore_case,omitempty"` // Specifies a list of HTTP request headers to match against. ALL of the // supplied headers must be matched. Headers []*HttpRoute_HeaderMatch `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"` // Specifies a list of query parameters to match against. ALL of the query // parameters must be matched. QueryParameters []*HttpRoute_QueryParameterMatch `protobuf:"bytes,6,rep,name=query_parameters,json=queryParameters,proto3" json:"query_parameters,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_RouteMatch) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_RouteMatch.ProtoReflect.Descriptor instead.
func (x *HttpRoute_RouteMatch) GetFullPathMatch() string
func (x *HttpRoute_RouteMatch) GetHeaders() []*HttpRoute_HeaderMatch
func (x *HttpRoute_RouteMatch) GetIgnoreCase() bool
func (m *HttpRoute_RouteMatch) GetPathMatch() isHttpRoute_RouteMatch_PathMatch
func (x *HttpRoute_RouteMatch) GetPrefixMatch() string
func (x *HttpRoute_RouteMatch) GetQueryParameters() []*HttpRoute_QueryParameterMatch
func (x *HttpRoute_RouteMatch) GetRegexMatch() string
func (*HttpRoute_RouteMatch) ProtoMessage()
func (x *HttpRoute_RouteMatch) ProtoReflect() protoreflect.Message
func (x *HttpRoute_RouteMatch) Reset()
func (x *HttpRoute_RouteMatch) String() string
type HttpRoute_RouteMatch_FullPathMatch struct { // The HTTP request path value should exactly match this value. // // Only one of full_path_match, prefix_match, or regex_match should be // used. FullPathMatch string `protobuf:"bytes,1,opt,name=full_path_match,json=fullPathMatch,proto3,oneof"` }
type HttpRoute_RouteMatch_PrefixMatch struct { // The HTTP request path value must begin with specified prefix_match. // prefix_match must begin with a /. // // Only one of full_path_match, prefix_match, or regex_match should be // used. PrefixMatch string `protobuf:"bytes,2,opt,name=prefix_match,json=prefixMatch,proto3,oneof"` }
type HttpRoute_RouteMatch_RegexMatch struct { // The HTTP request path value must satisfy the regular expression // specified by regex_match after removing any query parameters and anchor // supplied with the original URL. For regular expression grammar, please // see https://github.com/google/re2/wiki/Syntax // // Only one of full_path_match, prefix_match, or regex_match should be // used. RegexMatch string `protobuf:"bytes,3,opt,name=regex_match,json=regexMatch,proto3,oneof"` }
Specifies how to match traffic and how to route traffic when traffic is matched.
type HttpRoute_RouteRule struct { // A list of matches define conditions used for matching the rule against // incoming HTTP requests. Each match is independent, i.e. this rule will be // matched if ANY one of the matches is satisfied. // // If no matches field is specified, this rule will unconditionally match // traffic. // // If a default rule is desired to be configured, add a rule with no matches // specified to the end of the rules list. Matches []*HttpRoute_RouteMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` // The detailed rule defining how to route matched traffic. Action *HttpRoute_RouteAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_RouteRule) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_RouteRule.ProtoReflect.Descriptor instead.
func (x *HttpRoute_RouteRule) GetAction() *HttpRoute_RouteAction
func (x *HttpRoute_RouteRule) GetMatches() []*HttpRoute_RouteMatch
func (*HttpRoute_RouteRule) ProtoMessage()
func (x *HttpRoute_RouteRule) ProtoReflect() protoreflect.Message
func (x *HttpRoute_RouteRule) Reset()
func (x *HttpRoute_RouteRule) String() string
The specification for modifying the URL of the request, prior to forwarding the request to the destination.
type HttpRoute_URLRewrite struct { // Prior to forwarding the request to the selected destination, the matching // portion of the requests path is replaced by this value. PathPrefixRewrite string `protobuf:"bytes,1,opt,name=path_prefix_rewrite,json=pathPrefixRewrite,proto3" json:"path_prefix_rewrite,omitempty"` // Prior to forwarding the request to the selected destination, the requests // host header is replaced by this value. HostRewrite string `protobuf:"bytes,2,opt,name=host_rewrite,json=hostRewrite,proto3" json:"host_rewrite,omitempty"` // contains filtered or unexported fields }
func (*HttpRoute_URLRewrite) Descriptor() ([]byte, []int)
Deprecated: Use HttpRoute_URLRewrite.ProtoReflect.Descriptor instead.
func (x *HttpRoute_URLRewrite) GetHostRewrite() string
func (x *HttpRoute_URLRewrite) GetPathPrefixRewrite() string
func (*HttpRoute_URLRewrite) ProtoMessage()
func (x *HttpRoute_URLRewrite) ProtoReflect() protoreflect.Message
func (x *HttpRoute_URLRewrite) Reset()
func (x *HttpRoute_URLRewrite) String() string
Request used with the ListEndpointPolicies method.
type ListEndpointPoliciesRequest struct { // Required. The project and location from which the EndpointPolicies should be // listed, specified in the format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of EndpointPolicies to return per call. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListEndpointPoliciesResponse` // Indicates that this is a continuation of a prior // `ListEndpointPolicies` call, and that the system should return the // next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListEndpointPoliciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListEndpointPoliciesRequest.ProtoReflect.Descriptor instead.
func (x *ListEndpointPoliciesRequest) GetPageSize() int32
func (x *ListEndpointPoliciesRequest) GetPageToken() string
func (x *ListEndpointPoliciesRequest) GetParent() string
func (*ListEndpointPoliciesRequest) ProtoMessage()
func (x *ListEndpointPoliciesRequest) ProtoReflect() protoreflect.Message
func (x *ListEndpointPoliciesRequest) Reset()
func (x *ListEndpointPoliciesRequest) String() string
Response returned by the ListEndpointPolicies method.
type ListEndpointPoliciesResponse struct { // List of EndpointPolicy resources. EndpointPolicies []*EndpointPolicy `protobuf:"bytes,1,rep,name=endpoint_policies,json=endpointPolicies,proto3" json:"endpoint_policies,omitempty"` // If there might be more results than those appearing in this response, then // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListEndpointPoliciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListEndpointPoliciesResponse.ProtoReflect.Descriptor instead.
func (x *ListEndpointPoliciesResponse) GetEndpointPolicies() []*EndpointPolicy
func (x *ListEndpointPoliciesResponse) GetNextPageToken() string
func (*ListEndpointPoliciesResponse) ProtoMessage()
func (x *ListEndpointPoliciesResponse) ProtoReflect() protoreflect.Message
func (x *ListEndpointPoliciesResponse) Reset()
func (x *ListEndpointPoliciesResponse) String() string
Request used with the ListGateways method.
type ListGatewaysRequest struct { // Required. The project and location from which the Gateways should be // listed, specified in the format `projects/*/locations/*`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of Gateways to return per call. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListGatewaysResponse` // Indicates that this is a continuation of a prior `ListGateways` call, // and that the system should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListGatewaysRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGatewaysRequest.ProtoReflect.Descriptor instead.
func (x *ListGatewaysRequest) GetPageSize() int32
func (x *ListGatewaysRequest) GetPageToken() string
func (x *ListGatewaysRequest) GetParent() string
func (*ListGatewaysRequest) ProtoMessage()
func (x *ListGatewaysRequest) ProtoReflect() protoreflect.Message
func (x *ListGatewaysRequest) Reset()
func (x *ListGatewaysRequest) String() string
Response returned by the ListGateways method.
type ListGatewaysResponse struct { // List of Gateway resources. Gateways []*Gateway `protobuf:"bytes,1,rep,name=gateways,proto3" json:"gateways,omitempty"` // If there might be more results than those appearing in this response, then // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListGatewaysResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGatewaysResponse.ProtoReflect.Descriptor instead.
func (x *ListGatewaysResponse) GetGateways() []*Gateway
func (x *ListGatewaysResponse) GetNextPageToken() string
func (*ListGatewaysResponse) ProtoMessage()
func (x *ListGatewaysResponse) ProtoReflect() protoreflect.Message
func (x *ListGatewaysResponse) Reset()
func (x *ListGatewaysResponse) String() string
Request used with the ListGrpcRoutes method.
type ListGrpcRoutesRequest struct { // Required. The project and location from which the GrpcRoutes should be // listed, specified in the format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of GrpcRoutes to return per call. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListGrpcRoutesResponse` // Indicates that this is a continuation of a prior `ListGrpcRoutes` call, // and that the system should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListGrpcRoutesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGrpcRoutesRequest.ProtoReflect.Descriptor instead.
func (x *ListGrpcRoutesRequest) GetPageSize() int32
func (x *ListGrpcRoutesRequest) GetPageToken() string
func (x *ListGrpcRoutesRequest) GetParent() string
func (*ListGrpcRoutesRequest) ProtoMessage()
func (x *ListGrpcRoutesRequest) ProtoReflect() protoreflect.Message
func (x *ListGrpcRoutesRequest) Reset()
func (x *ListGrpcRoutesRequest) String() string
Response returned by the ListGrpcRoutes method.
type ListGrpcRoutesResponse struct { // List of GrpcRoute resources. GrpcRoutes []*GrpcRoute `protobuf:"bytes,1,rep,name=grpc_routes,json=grpcRoutes,proto3" json:"grpc_routes,omitempty"` // If there might be more results than those appearing in this response, then // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListGrpcRoutesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGrpcRoutesResponse.ProtoReflect.Descriptor instead.
func (x *ListGrpcRoutesResponse) GetGrpcRoutes() []*GrpcRoute
func (x *ListGrpcRoutesResponse) GetNextPageToken() string
func (*ListGrpcRoutesResponse) ProtoMessage()
func (x *ListGrpcRoutesResponse) ProtoReflect() protoreflect.Message
func (x *ListGrpcRoutesResponse) Reset()
func (x *ListGrpcRoutesResponse) String() string
Request used with the ListHttpRoutes method.
type ListHttpRoutesRequest struct { // Required. The project and location from which the HttpRoutes should be // listed, specified in the format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of HttpRoutes to return per call. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListHttpRoutesResponse` // Indicates that this is a continuation of a prior `ListHttpRoutes` call, // and that the system should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListHttpRoutesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListHttpRoutesRequest.ProtoReflect.Descriptor instead.
func (x *ListHttpRoutesRequest) GetPageSize() int32
func (x *ListHttpRoutesRequest) GetPageToken() string
func (x *ListHttpRoutesRequest) GetParent() string
func (*ListHttpRoutesRequest) ProtoMessage()
func (x *ListHttpRoutesRequest) ProtoReflect() protoreflect.Message
func (x *ListHttpRoutesRequest) Reset()
func (x *ListHttpRoutesRequest) String() string
Response returned by the ListHttpRoutes method.
type ListHttpRoutesResponse struct { // List of HttpRoute resources. HttpRoutes []*HttpRoute `protobuf:"bytes,1,rep,name=http_routes,json=httpRoutes,proto3" json:"http_routes,omitempty"` // If there might be more results than those appearing in this response, then // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListHttpRoutesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListHttpRoutesResponse.ProtoReflect.Descriptor instead.
func (x *ListHttpRoutesResponse) GetHttpRoutes() []*HttpRoute
func (x *ListHttpRoutesResponse) GetNextPageToken() string
func (*ListHttpRoutesResponse) ProtoMessage()
func (x *ListHttpRoutesResponse) ProtoReflect() protoreflect.Message
func (x *ListHttpRoutesResponse) Reset()
func (x *ListHttpRoutesResponse) String() string
Request used with the ListMeshes method.
type ListMeshesRequest struct { // Required. The project and location from which the Meshes should be // listed, specified in the format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of Meshes to return per call. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListMeshesResponse` // Indicates that this is a continuation of a prior `ListMeshes` call, // and that the system should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListMeshesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMeshesRequest.ProtoReflect.Descriptor instead.
func (x *ListMeshesRequest) GetPageSize() int32
func (x *ListMeshesRequest) GetPageToken() string
func (x *ListMeshesRequest) GetParent() string
func (*ListMeshesRequest) ProtoMessage()
func (x *ListMeshesRequest) ProtoReflect() protoreflect.Message
func (x *ListMeshesRequest) Reset()
func (x *ListMeshesRequest) String() string
Response returned by the ListMeshes method.
type ListMeshesResponse struct { // List of Mesh resources. Meshes []*Mesh `protobuf:"bytes,1,rep,name=meshes,proto3" json:"meshes,omitempty"` // If there might be more results than those appearing in this response, then // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListMeshesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMeshesResponse.ProtoReflect.Descriptor instead.
func (x *ListMeshesResponse) GetMeshes() []*Mesh
func (x *ListMeshesResponse) GetNextPageToken() string
func (*ListMeshesResponse) ProtoMessage()
func (x *ListMeshesResponse) ProtoReflect() protoreflect.Message
func (x *ListMeshesResponse) Reset()
func (x *ListMeshesResponse) String() string
Request used with the ListServiceBindings method.
type ListServiceBindingsRequest struct { // Required. The project and location from which the ServiceBindings should be // listed, specified in the format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of ServiceBindings to return per call. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListServiceBindingsResponse` // Indicates that this is a continuation of a prior `ListRouters` call, // and that the system should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListServiceBindingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListServiceBindingsRequest.ProtoReflect.Descriptor instead.
func (x *ListServiceBindingsRequest) GetPageSize() int32
func (x *ListServiceBindingsRequest) GetPageToken() string
func (x *ListServiceBindingsRequest) GetParent() string
func (*ListServiceBindingsRequest) ProtoMessage()
func (x *ListServiceBindingsRequest) ProtoReflect() protoreflect.Message
func (x *ListServiceBindingsRequest) Reset()
func (x *ListServiceBindingsRequest) String() string
Response returned by the ListServiceBindings method.
type ListServiceBindingsResponse struct { // List of ServiceBinding resources. ServiceBindings []*ServiceBinding `protobuf:"bytes,1,rep,name=service_bindings,json=serviceBindings,proto3" json:"service_bindings,omitempty"` // If there might be more results than those appearing in this response, then // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListServiceBindingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListServiceBindingsResponse.ProtoReflect.Descriptor instead.
func (x *ListServiceBindingsResponse) GetNextPageToken() string
func (x *ListServiceBindingsResponse) GetServiceBindings() []*ServiceBinding
func (*ListServiceBindingsResponse) ProtoMessage()
func (x *ListServiceBindingsResponse) ProtoReflect() protoreflect.Message
func (x *ListServiceBindingsResponse) Reset()
func (x *ListServiceBindingsResponse) String() string
Request used with the ListTcpRoutes method.
type ListTcpRoutesRequest struct { // Required. The project and location from which the TcpRoutes should be // listed, specified in the format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of TcpRoutes to return per call. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListTcpRoutesResponse` // Indicates that this is a continuation of a prior `ListTcpRoutes` call, // and that the system should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListTcpRoutesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTcpRoutesRequest.ProtoReflect.Descriptor instead.
func (x *ListTcpRoutesRequest) GetPageSize() int32
func (x *ListTcpRoutesRequest) GetPageToken() string
func (x *ListTcpRoutesRequest) GetParent() string
func (*ListTcpRoutesRequest) ProtoMessage()
func (x *ListTcpRoutesRequest) ProtoReflect() protoreflect.Message
func (x *ListTcpRoutesRequest) Reset()
func (x *ListTcpRoutesRequest) String() string
Response returned by the ListTcpRoutes method.
type ListTcpRoutesResponse struct { // List of TcpRoute resources. TcpRoutes []*TcpRoute `protobuf:"bytes,1,rep,name=tcp_routes,json=tcpRoutes,proto3" json:"tcp_routes,omitempty"` // If there might be more results than those appearing in this response, then // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListTcpRoutesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTcpRoutesResponse.ProtoReflect.Descriptor instead.
func (x *ListTcpRoutesResponse) GetNextPageToken() string
func (x *ListTcpRoutesResponse) GetTcpRoutes() []*TcpRoute
func (*ListTcpRoutesResponse) ProtoMessage()
func (x *ListTcpRoutesResponse) ProtoReflect() protoreflect.Message
func (x *ListTcpRoutesResponse) Reset()
func (x *ListTcpRoutesResponse) String() string
Request used with the ListTlsRoutes method.
type ListTlsRoutesRequest struct { // Required. The project and location from which the TlsRoutes should be // listed, specified in the format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of TlsRoutes to return per call. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListTlsRoutesResponse` // Indicates that this is a continuation of a prior `ListTlsRoutes` call, // and that the system should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListTlsRoutesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTlsRoutesRequest.ProtoReflect.Descriptor instead.
func (x *ListTlsRoutesRequest) GetPageSize() int32
func (x *ListTlsRoutesRequest) GetPageToken() string
func (x *ListTlsRoutesRequest) GetParent() string
func (*ListTlsRoutesRequest) ProtoMessage()
func (x *ListTlsRoutesRequest) ProtoReflect() protoreflect.Message
func (x *ListTlsRoutesRequest) Reset()
func (x *ListTlsRoutesRequest) String() string
Response returned by the ListTlsRoutes method.
type ListTlsRoutesResponse struct { // List of TlsRoute resources. TlsRoutes []*TlsRoute `protobuf:"bytes,1,rep,name=tls_routes,json=tlsRoutes,proto3" json:"tls_routes,omitempty"` // If there might be more results than those appearing in this response, then // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListTlsRoutesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTlsRoutesResponse.ProtoReflect.Descriptor instead.
func (x *ListTlsRoutesResponse) GetNextPageToken() string
func (x *ListTlsRoutesResponse) GetTlsRoutes() []*TlsRoute
func (*ListTlsRoutesResponse) ProtoMessage()
func (x *ListTlsRoutesResponse) ProtoReflect() protoreflect.Message
func (x *ListTlsRoutesResponse) Reset()
func (x *ListTlsRoutesResponse) String() string
Mesh represents a logical configuration grouping for workload to workload communication within a service mesh. Routes that point to mesh dictate how requests are routed within this logical mesh boundary.
type Mesh struct { // Required. Name of the Mesh resource. It matches pattern // `projects/*/locations/global/meshes/<mesh_name>`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Server-defined URL of this resource SelfLink string `protobuf:"bytes,9,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // Output only. The timestamp when the resource was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Set of label tags associated with the Mesh resource. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional. A free-text description of the resource. Max length 1024 characters. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen // on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy // will expect all traffic to be redirected to this port regardless of its // actual ip:port destination. If unset, a port '15001' is used as the // interception port. This will is applicable only for sidecar proxy // deployments. InterceptionPort int32 `protobuf:"varint,8,opt,name=interception_port,json=interceptionPort,proto3" json:"interception_port,omitempty"` // contains filtered or unexported fields }
func (*Mesh) Descriptor() ([]byte, []int)
Deprecated: Use Mesh.ProtoReflect.Descriptor instead.
func (x *Mesh) GetCreateTime() *timestamppb.Timestamp
func (x *Mesh) GetDescription() string
func (x *Mesh) GetInterceptionPort() int32
func (x *Mesh) GetLabels() map[string]string
func (x *Mesh) GetName() string
func (x *Mesh) GetSelfLink() string
func (x *Mesh) GetUpdateTime() *timestamppb.Timestamp
func (*Mesh) ProtoMessage()
func (x *Mesh) ProtoReflect() protoreflect.Message
func (x *Mesh) Reset()
func (x *Mesh) String() string
NetworkServicesClient is the client API for NetworkServices service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NetworkServicesClient interface { // Lists EndpointPolicies in a given project and location. ListEndpointPolicies(ctx context.Context, in *ListEndpointPoliciesRequest, opts ...grpc.CallOption) (*ListEndpointPoliciesResponse, error) // Gets details of a single EndpointPolicy. GetEndpointPolicy(ctx context.Context, in *GetEndpointPolicyRequest, opts ...grpc.CallOption) (*EndpointPolicy, error) // Creates a new EndpointPolicy in a given project and location. CreateEndpointPolicy(ctx context.Context, in *CreateEndpointPolicyRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Updates the parameters of a single EndpointPolicy. UpdateEndpointPolicy(ctx context.Context, in *UpdateEndpointPolicyRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a single EndpointPolicy. DeleteEndpointPolicy(ctx context.Context, in *DeleteEndpointPolicyRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists Gateways in a given project and location. ListGateways(ctx context.Context, in *ListGatewaysRequest, opts ...grpc.CallOption) (*ListGatewaysResponse, error) // Gets details of a single Gateway. GetGateway(ctx context.Context, in *GetGatewayRequest, opts ...grpc.CallOption) (*Gateway, error) // Creates a new Gateway in a given project and location. CreateGateway(ctx context.Context, in *CreateGatewayRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Updates the parameters of a single Gateway. UpdateGateway(ctx context.Context, in *UpdateGatewayRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a single Gateway. DeleteGateway(ctx context.Context, in *DeleteGatewayRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists GrpcRoutes in a given project and location. ListGrpcRoutes(ctx context.Context, in *ListGrpcRoutesRequest, opts ...grpc.CallOption) (*ListGrpcRoutesResponse, error) // Gets details of a single GrpcRoute. GetGrpcRoute(ctx context.Context, in *GetGrpcRouteRequest, opts ...grpc.CallOption) (*GrpcRoute, error) // Creates a new GrpcRoute in a given project and location. CreateGrpcRoute(ctx context.Context, in *CreateGrpcRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Updates the parameters of a single GrpcRoute. UpdateGrpcRoute(ctx context.Context, in *UpdateGrpcRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a single GrpcRoute. DeleteGrpcRoute(ctx context.Context, in *DeleteGrpcRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists HttpRoute in a given project and location. ListHttpRoutes(ctx context.Context, in *ListHttpRoutesRequest, opts ...grpc.CallOption) (*ListHttpRoutesResponse, error) // Gets details of a single HttpRoute. GetHttpRoute(ctx context.Context, in *GetHttpRouteRequest, opts ...grpc.CallOption) (*HttpRoute, error) // Creates a new HttpRoute in a given project and location. CreateHttpRoute(ctx context.Context, in *CreateHttpRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Updates the parameters of a single HttpRoute. UpdateHttpRoute(ctx context.Context, in *UpdateHttpRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a single HttpRoute. DeleteHttpRoute(ctx context.Context, in *DeleteHttpRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists TcpRoute in a given project and location. ListTcpRoutes(ctx context.Context, in *ListTcpRoutesRequest, opts ...grpc.CallOption) (*ListTcpRoutesResponse, error) // Gets details of a single TcpRoute. GetTcpRoute(ctx context.Context, in *GetTcpRouteRequest, opts ...grpc.CallOption) (*TcpRoute, error) // Creates a new TcpRoute in a given project and location. CreateTcpRoute(ctx context.Context, in *CreateTcpRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Updates the parameters of a single TcpRoute. UpdateTcpRoute(ctx context.Context, in *UpdateTcpRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a single TcpRoute. DeleteTcpRoute(ctx context.Context, in *DeleteTcpRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists TlsRoute in a given project and location. ListTlsRoutes(ctx context.Context, in *ListTlsRoutesRequest, opts ...grpc.CallOption) (*ListTlsRoutesResponse, error) // Gets details of a single TlsRoute. GetTlsRoute(ctx context.Context, in *GetTlsRouteRequest, opts ...grpc.CallOption) (*TlsRoute, error) // Creates a new TlsRoute in a given project and location. CreateTlsRoute(ctx context.Context, in *CreateTlsRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Updates the parameters of a single TlsRoute. UpdateTlsRoute(ctx context.Context, in *UpdateTlsRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a single TlsRoute. DeleteTlsRoute(ctx context.Context, in *DeleteTlsRouteRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists ServiceBinding in a given project and location. ListServiceBindings(ctx context.Context, in *ListServiceBindingsRequest, opts ...grpc.CallOption) (*ListServiceBindingsResponse, error) // Gets details of a single ServiceBinding. GetServiceBinding(ctx context.Context, in *GetServiceBindingRequest, opts ...grpc.CallOption) (*ServiceBinding, error) // Creates a new ServiceBinding in a given project and location. CreateServiceBinding(ctx context.Context, in *CreateServiceBindingRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a single ServiceBinding. DeleteServiceBinding(ctx context.Context, in *DeleteServiceBindingRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists Meshes in a given project and location. ListMeshes(ctx context.Context, in *ListMeshesRequest, opts ...grpc.CallOption) (*ListMeshesResponse, error) // Gets details of a single Mesh. GetMesh(ctx context.Context, in *GetMeshRequest, opts ...grpc.CallOption) (*Mesh, error) // Creates a new Mesh in a given project and location. CreateMesh(ctx context.Context, in *CreateMeshRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Updates the parameters of a single Mesh. UpdateMesh(ctx context.Context, in *UpdateMeshRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a single Mesh. DeleteMesh(ctx context.Context, in *DeleteMeshRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) }
func NewNetworkServicesClient(cc grpc.ClientConnInterface) NetworkServicesClient
NetworkServicesServer is the server API for NetworkServices service.
type NetworkServicesServer interface { // Lists EndpointPolicies in a given project and location. ListEndpointPolicies(context.Context, *ListEndpointPoliciesRequest) (*ListEndpointPoliciesResponse, error) // Gets details of a single EndpointPolicy. GetEndpointPolicy(context.Context, *GetEndpointPolicyRequest) (*EndpointPolicy, error) // Creates a new EndpointPolicy in a given project and location. CreateEndpointPolicy(context.Context, *CreateEndpointPolicyRequest) (*longrunning.Operation, error) // Updates the parameters of a single EndpointPolicy. UpdateEndpointPolicy(context.Context, *UpdateEndpointPolicyRequest) (*longrunning.Operation, error) // Deletes a single EndpointPolicy. DeleteEndpointPolicy(context.Context, *DeleteEndpointPolicyRequest) (*longrunning.Operation, error) // Lists Gateways in a given project and location. ListGateways(context.Context, *ListGatewaysRequest) (*ListGatewaysResponse, error) // Gets details of a single Gateway. GetGateway(context.Context, *GetGatewayRequest) (*Gateway, error) // Creates a new Gateway in a given project and location. CreateGateway(context.Context, *CreateGatewayRequest) (*longrunning.Operation, error) // Updates the parameters of a single Gateway. UpdateGateway(context.Context, *UpdateGatewayRequest) (*longrunning.Operation, error) // Deletes a single Gateway. DeleteGateway(context.Context, *DeleteGatewayRequest) (*longrunning.Operation, error) // Lists GrpcRoutes in a given project and location. ListGrpcRoutes(context.Context, *ListGrpcRoutesRequest) (*ListGrpcRoutesResponse, error) // Gets details of a single GrpcRoute. GetGrpcRoute(context.Context, *GetGrpcRouteRequest) (*GrpcRoute, error) // Creates a new GrpcRoute in a given project and location. CreateGrpcRoute(context.Context, *CreateGrpcRouteRequest) (*longrunning.Operation, error) // Updates the parameters of a single GrpcRoute. UpdateGrpcRoute(context.Context, *UpdateGrpcRouteRequest) (*longrunning.Operation, error) // Deletes a single GrpcRoute. DeleteGrpcRoute(context.Context, *DeleteGrpcRouteRequest) (*longrunning.Operation, error) // Lists HttpRoute in a given project and location. ListHttpRoutes(context.Context, *ListHttpRoutesRequest) (*ListHttpRoutesResponse, error) // Gets details of a single HttpRoute. GetHttpRoute(context.Context, *GetHttpRouteRequest) (*HttpRoute, error) // Creates a new HttpRoute in a given project and location. CreateHttpRoute(context.Context, *CreateHttpRouteRequest) (*longrunning.Operation, error) // Updates the parameters of a single HttpRoute. UpdateHttpRoute(context.Context, *UpdateHttpRouteRequest) (*longrunning.Operation, error) // Deletes a single HttpRoute. DeleteHttpRoute(context.Context, *DeleteHttpRouteRequest) (*longrunning.Operation, error) // Lists TcpRoute in a given project and location. ListTcpRoutes(context.Context, *ListTcpRoutesRequest) (*ListTcpRoutesResponse, error) // Gets details of a single TcpRoute. GetTcpRoute(context.Context, *GetTcpRouteRequest) (*TcpRoute, error) // Creates a new TcpRoute in a given project and location. CreateTcpRoute(context.Context, *CreateTcpRouteRequest) (*longrunning.Operation, error) // Updates the parameters of a single TcpRoute. UpdateTcpRoute(context.Context, *UpdateTcpRouteRequest) (*longrunning.Operation, error) // Deletes a single TcpRoute. DeleteTcpRoute(context.Context, *DeleteTcpRouteRequest) (*longrunning.Operation, error) // Lists TlsRoute in a given project and location. ListTlsRoutes(context.Context, *ListTlsRoutesRequest) (*ListTlsRoutesResponse, error) // Gets details of a single TlsRoute. GetTlsRoute(context.Context, *GetTlsRouteRequest) (*TlsRoute, error) // Creates a new TlsRoute in a given project and location. CreateTlsRoute(context.Context, *CreateTlsRouteRequest) (*longrunning.Operation, error) // Updates the parameters of a single TlsRoute. UpdateTlsRoute(context.Context, *UpdateTlsRouteRequest) (*longrunning.Operation, error) // Deletes a single TlsRoute. DeleteTlsRoute(context.Context, *DeleteTlsRouteRequest) (*longrunning.Operation, error) // Lists ServiceBinding in a given project and location. ListServiceBindings(context.Context, *ListServiceBindingsRequest) (*ListServiceBindingsResponse, error) // Gets details of a single ServiceBinding. GetServiceBinding(context.Context, *GetServiceBindingRequest) (*ServiceBinding, error) // Creates a new ServiceBinding in a given project and location. CreateServiceBinding(context.Context, *CreateServiceBindingRequest) (*longrunning.Operation, error) // Deletes a single ServiceBinding. DeleteServiceBinding(context.Context, *DeleteServiceBindingRequest) (*longrunning.Operation, error) // Lists Meshes in a given project and location. ListMeshes(context.Context, *ListMeshesRequest) (*ListMeshesResponse, error) // Gets details of a single Mesh. GetMesh(context.Context, *GetMeshRequest) (*Mesh, error) // Creates a new Mesh in a given project and location. CreateMesh(context.Context, *CreateMeshRequest) (*longrunning.Operation, error) // Updates the parameters of a single Mesh. UpdateMesh(context.Context, *UpdateMeshRequest) (*longrunning.Operation, error) // Deletes a single Mesh. DeleteMesh(context.Context, *DeleteMeshRequest) (*longrunning.Operation, error) }
Represents the metadata of the long-running operation.
type OperationMetadata 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 successfully been cancelled // 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 }
func (*OperationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (x *OperationMetadata) GetApiVersion() string
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp
func (x *OperationMetadata) GetRequestedCancellation() bool
func (x *OperationMetadata) GetStatusMessage() string
func (x *OperationMetadata) GetTarget() string
func (x *OperationMetadata) GetVerb() string
func (*OperationMetadata) ProtoMessage()
func (x *OperationMetadata) ProtoReflect() protoreflect.Message
func (x *OperationMetadata) Reset()
func (x *OperationMetadata) String() string
ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.
type ServiceBinding struct { // Required. Name of the ServiceBinding resource. It matches pattern // `projects/*/locations/global/serviceBindings/service_binding_name>`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Optional. A free-text description of the resource. Max length 1024 characters. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Output only. The timestamp when the resource was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Required. The full service directory service name of the format // /projects/*/locations/*/namespaces/*/services/* Service string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"` // Optional. Set of label tags associated with the ServiceBinding resource. Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*ServiceBinding) Descriptor() ([]byte, []int)
Deprecated: Use ServiceBinding.ProtoReflect.Descriptor instead.
func (x *ServiceBinding) GetCreateTime() *timestamppb.Timestamp
func (x *ServiceBinding) GetDescription() string
func (x *ServiceBinding) GetLabels() map[string]string
func (x *ServiceBinding) GetName() string
func (x *ServiceBinding) GetService() string
func (x *ServiceBinding) GetUpdateTime() *timestamppb.Timestamp
func (*ServiceBinding) ProtoMessage()
func (x *ServiceBinding) ProtoReflect() protoreflect.Message
func (x *ServiceBinding) Reset()
func (x *ServiceBinding) String() string
TcpRoute is the resource defining how TCP traffic should be routed by a Mesh/Gateway resource.
type TcpRoute struct { // Required. Name of the TcpRoute resource. It matches pattern // `projects/*/locations/global/tcpRoutes/tcp_route_name>`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Server-defined URL of this resource SelfLink string `protobuf:"bytes,11,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // Output only. The timestamp when the resource was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. A free-text description of the resource. Max length 1024 characters. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // Required. Rules that define how traffic is routed and handled. At least one RouteRule // must be supplied. If there are multiple rules then the action taken will be // the first rule to match. Rules []*TcpRoute_RouteRule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"` // Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the // routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: // `projects/*/locations/global/meshes/<mesh_name>` // // The attached Mesh should be of a type SIDECAR Meshes []string `protobuf:"bytes,8,rep,name=meshes,proto3" json:"meshes,omitempty"` // Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of // the routing rules to route the requests served by the gateway. // // Each gateway reference should match the pattern: // `projects/*/locations/global/gateways/<gateway_name>` Gateways []string `protobuf:"bytes,9,rep,name=gateways,proto3" json:"gateways,omitempty"` // Optional. Set of label tags associated with the TcpRoute resource. Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*TcpRoute) Descriptor() ([]byte, []int)
Deprecated: Use TcpRoute.ProtoReflect.Descriptor instead.
func (x *TcpRoute) GetCreateTime() *timestamppb.Timestamp
func (x *TcpRoute) GetDescription() string
func (x *TcpRoute) GetGateways() []string
func (x *TcpRoute) GetLabels() map[string]string
func (x *TcpRoute) GetMeshes() []string
func (x *TcpRoute) GetName() string
func (x *TcpRoute) GetRules() []*TcpRoute_RouteRule
func (x *TcpRoute) GetSelfLink() string
func (x *TcpRoute) GetUpdateTime() *timestamppb.Timestamp
func (*TcpRoute) ProtoMessage()
func (x *TcpRoute) ProtoReflect() protoreflect.Message
func (x *TcpRoute) Reset()
func (x *TcpRoute) String() string
The specifications for routing traffic and applying associated policies.
type TcpRoute_RouteAction struct { // Optional. The destination services to which traffic should be forwarded. At least // one destination service is required. Destinations []*TcpRoute_RouteDestination `protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"` // Optional. If true, Router will use the destination IP and port of the original // connection as the destination of the request. Default is false. OriginalDestination bool `protobuf:"varint,3,opt,name=original_destination,json=originalDestination,proto3" json:"original_destination,omitempty"` // contains filtered or unexported fields }
func (*TcpRoute_RouteAction) Descriptor() ([]byte, []int)
Deprecated: Use TcpRoute_RouteAction.ProtoReflect.Descriptor instead.
func (x *TcpRoute_RouteAction) GetDestinations() []*TcpRoute_RouteDestination
func (x *TcpRoute_RouteAction) GetOriginalDestination() bool
func (*TcpRoute_RouteAction) ProtoMessage()
func (x *TcpRoute_RouteAction) ProtoReflect() protoreflect.Message
func (x *TcpRoute_RouteAction) Reset()
func (x *TcpRoute_RouteAction) String() string
Describe the destination for traffic to be routed to.
type TcpRoute_RouteDestination struct { // Required. The URL of a BackendService to route traffic to. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // Optional. Specifies the proportion of requests forwarded to the backend referenced // by the serviceName field. This is computed as: // weight/Sum(weights in this destination list). // For non-zero values, there may be some epsilon from the exact proportion // defined here depending on the precision an implementation supports. // // If only one serviceName is specified and it has a weight greater than 0, // 100% of the traffic is forwarded to that backend. // // If weights are specified for any one service name, they need to be // specified for all of them. // // If weights are unspecified for all services, then, traffic is distributed // in equal proportions to all of them. Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"` // contains filtered or unexported fields }
func (*TcpRoute_RouteDestination) Descriptor() ([]byte, []int)
Deprecated: Use TcpRoute_RouteDestination.ProtoReflect.Descriptor instead.
func (x *TcpRoute_RouteDestination) GetServiceName() string
func (x *TcpRoute_RouteDestination) GetWeight() int32
func (*TcpRoute_RouteDestination) ProtoMessage()
func (x *TcpRoute_RouteDestination) ProtoReflect() protoreflect.Message
func (x *TcpRoute_RouteDestination) Reset()
func (x *TcpRoute_RouteDestination) String() string
RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
type TcpRoute_RouteMatch struct { // Required. Must be specified in the CIDR range format. A CIDR range consists of an // IP Address and a prefix length to construct the subnet mask. By default, // the prefix length is 32 (i.e. matches a single IP address). Only IPV4 // addresses are supported. // Examples: // "10.0.0.1" - matches against this exact IP address. // "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet // and 255.255.255.0 mask. // "0.0.0.0/0" - matches against any IP address'. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Required. Specifies the destination port to match against. Port string `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*TcpRoute_RouteMatch) Descriptor() ([]byte, []int)
Deprecated: Use TcpRoute_RouteMatch.ProtoReflect.Descriptor instead.
func (x *TcpRoute_RouteMatch) GetAddress() string
func (x *TcpRoute_RouteMatch) GetPort() string
func (*TcpRoute_RouteMatch) ProtoMessage()
func (x *TcpRoute_RouteMatch) ProtoReflect() protoreflect.Message
func (x *TcpRoute_RouteMatch) Reset()
func (x *TcpRoute_RouteMatch) String() string
Specifies how to match traffic and how to route traffic when traffic is matched.
type TcpRoute_RouteRule struct { // Optional. RouteMatch defines the predicate used to match requests to a given // action. Multiple match types are "OR"ed for evaluation. // If no routeMatch field is specified, this rule will unconditionally match // traffic. Matches []*TcpRoute_RouteMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` // Required. The detailed rule defining how to route matched traffic. Action *TcpRoute_RouteAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
func (*TcpRoute_RouteRule) Descriptor() ([]byte, []int)
Deprecated: Use TcpRoute_RouteRule.ProtoReflect.Descriptor instead.
func (x *TcpRoute_RouteRule) GetAction() *TcpRoute_RouteAction
func (x *TcpRoute_RouteRule) GetMatches() []*TcpRoute_RouteMatch
func (*TcpRoute_RouteRule) ProtoMessage()
func (x *TcpRoute_RouteRule) ProtoReflect() protoreflect.Message
func (x *TcpRoute_RouteRule) Reset()
func (x *TcpRoute_RouteRule) String() string
TlsRoute defines how traffic should be routed based on SNI and other matching L3 attributes.
type TlsRoute struct { // Required. Name of the TlsRoute resource. It matches pattern // `projects/*/locations/global/tlsRoutes/tls_route_name>`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Server-defined URL of this resource SelfLink string `protobuf:"bytes,8,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // Output only. The timestamp when the resource was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. A free-text description of the resource. Max length 1024 characters. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // Required. Rules that define how traffic is routed and handled. At least one RouteRule // must be supplied. If there are multiple rules then the action taken will be // the first rule to match. Rules []*TlsRoute_RouteRule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"` // Optional. Meshes defines a list of meshes this TlsRoute is attached to, as one of the // routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: // `projects/*/locations/global/meshes/<mesh_name>` // // The attached Mesh should be of a type SIDECAR Meshes []string `protobuf:"bytes,6,rep,name=meshes,proto3" json:"meshes,omitempty"` // Optional. Gateways defines a list of gateways this TlsRoute is attached to, as one of // the routing rules to route the requests served by the gateway. // // Each gateway reference should match the pattern: // `projects/*/locations/global/gateways/<gateway_name>` Gateways []string `protobuf:"bytes,7,rep,name=gateways,proto3" json:"gateways,omitempty"` // contains filtered or unexported fields }
func (*TlsRoute) Descriptor() ([]byte, []int)
Deprecated: Use TlsRoute.ProtoReflect.Descriptor instead.
func (x *TlsRoute) GetCreateTime() *timestamppb.Timestamp
func (x *TlsRoute) GetDescription() string
func (x *TlsRoute) GetGateways() []string
func (x *TlsRoute) GetMeshes() []string
func (x *TlsRoute) GetName() string
func (x *TlsRoute) GetRules() []*TlsRoute_RouteRule
func (x *TlsRoute) GetSelfLink() string
func (x *TlsRoute) GetUpdateTime() *timestamppb.Timestamp
func (*TlsRoute) ProtoMessage()
func (x *TlsRoute) ProtoReflect() protoreflect.Message
func (x *TlsRoute) Reset()
func (x *TlsRoute) String() string
The specifications for routing traffic and applying associated policies.
type TlsRoute_RouteAction struct { // Required. The destination services to which traffic should be forwarded. At least // one destination service is required. Destinations []*TlsRoute_RouteDestination `protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"` // contains filtered or unexported fields }
func (*TlsRoute_RouteAction) Descriptor() ([]byte, []int)
Deprecated: Use TlsRoute_RouteAction.ProtoReflect.Descriptor instead.
func (x *TlsRoute_RouteAction) GetDestinations() []*TlsRoute_RouteDestination
func (*TlsRoute_RouteAction) ProtoMessage()
func (x *TlsRoute_RouteAction) ProtoReflect() protoreflect.Message
func (x *TlsRoute_RouteAction) Reset()
func (x *TlsRoute_RouteAction) String() string
Describe the destination for traffic to be routed to.
type TlsRoute_RouteDestination struct { // Required. The URL of a BackendService to route traffic to. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // Optional. Specifies the proportion of requests forwareded to the backend referenced // by the service_name field. This is computed as: // weight/Sum(weights in destinations) // Weights in all destinations does not need to sum up to 100. Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"` // contains filtered or unexported fields }
func (*TlsRoute_RouteDestination) Descriptor() ([]byte, []int)
Deprecated: Use TlsRoute_RouteDestination.ProtoReflect.Descriptor instead.
func (x *TlsRoute_RouteDestination) GetServiceName() string
func (x *TlsRoute_RouteDestination) GetWeight() int32
func (*TlsRoute_RouteDestination) ProtoMessage()
func (x *TlsRoute_RouteDestination) ProtoReflect() protoreflect.Message
func (x *TlsRoute_RouteDestination) Reset()
func (x *TlsRoute_RouteDestination) String() string
RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "AND"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
type TlsRoute_RouteMatch struct { // Optional. SNI (server name indicator) to match against. // SNI will be matched against all wildcard domains, i.e. www.example.com // will be first matched against www.example.com, then *.example.com, then // *.com. // Partial wildcards are not supported, and values like *w.example.com are // invalid. // At least one of sni_host and alpn is required. // Up to 5 sni hosts across all matches can be set. SniHost []string `protobuf:"bytes,1,rep,name=sni_host,json=sniHost,proto3" json:"sni_host,omitempty"` // Optional. ALPN (Application-Layer Protocol Negotiation) to match against. // Examples: "http/1.1", "h2". // At least one of sni_host and alpn is required. // Up to 5 alpns across all matches can be set. Alpn []string `protobuf:"bytes,2,rep,name=alpn,proto3" json:"alpn,omitempty"` // contains filtered or unexported fields }
func (*TlsRoute_RouteMatch) Descriptor() ([]byte, []int)
Deprecated: Use TlsRoute_RouteMatch.ProtoReflect.Descriptor instead.
func (x *TlsRoute_RouteMatch) GetAlpn() []string
func (x *TlsRoute_RouteMatch) GetSniHost() []string
func (*TlsRoute_RouteMatch) ProtoMessage()
func (x *TlsRoute_RouteMatch) ProtoReflect() protoreflect.Message
func (x *TlsRoute_RouteMatch) Reset()
func (x *TlsRoute_RouteMatch) String() string
Specifies how to match traffic and how to route traffic when traffic is matched.
type TlsRoute_RouteRule struct { // Required. RouteMatch defines the predicate used to match requests to a given // action. Multiple match types are "OR"ed for evaluation. Matches []*TlsRoute_RouteMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` // Required. The detailed rule defining how to route matched traffic. Action *TlsRoute_RouteAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
func (*TlsRoute_RouteRule) Descriptor() ([]byte, []int)
Deprecated: Use TlsRoute_RouteRule.ProtoReflect.Descriptor instead.
func (x *TlsRoute_RouteRule) GetAction() *TlsRoute_RouteAction
func (x *TlsRoute_RouteRule) GetMatches() []*TlsRoute_RouteMatch
func (*TlsRoute_RouteRule) ProtoMessage()
func (x *TlsRoute_RouteRule) ProtoReflect() protoreflect.Message
func (x *TlsRoute_RouteRule) Reset()
func (x *TlsRoute_RouteRule) String() string
Specification of a port-based selector.
type TrafficPortSelector struct { // Optional. A list of ports. Can be port numbers or port range // (example, [80-90] specifies all ports from 80 to 90, including // 80 and 90) or named ports or * to specify all ports. If the // list is empty, all ports are selected. Ports []string `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"` // contains filtered or unexported fields }
func (*TrafficPortSelector) Descriptor() ([]byte, []int)
Deprecated: Use TrafficPortSelector.ProtoReflect.Descriptor instead.
func (x *TrafficPortSelector) GetPorts() []string
func (*TrafficPortSelector) ProtoMessage()
func (x *TrafficPortSelector) ProtoReflect() protoreflect.Message
func (x *TrafficPortSelector) Reset()
func (x *TrafficPortSelector) String() string
UnimplementedNetworkServicesServer can be embedded to have forward compatible implementations.
type UnimplementedNetworkServicesServer struct { }
func (*UnimplementedNetworkServicesServer) CreateEndpointPolicy(context.Context, *CreateEndpointPolicyRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) CreateGateway(context.Context, *CreateGatewayRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) CreateGrpcRoute(context.Context, *CreateGrpcRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) CreateHttpRoute(context.Context, *CreateHttpRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) CreateMesh(context.Context, *CreateMeshRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) CreateServiceBinding(context.Context, *CreateServiceBindingRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) CreateTcpRoute(context.Context, *CreateTcpRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) CreateTlsRoute(context.Context, *CreateTlsRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) DeleteEndpointPolicy(context.Context, *DeleteEndpointPolicyRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) DeleteGateway(context.Context, *DeleteGatewayRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) DeleteGrpcRoute(context.Context, *DeleteGrpcRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) DeleteHttpRoute(context.Context, *DeleteHttpRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) DeleteMesh(context.Context, *DeleteMeshRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) DeleteServiceBinding(context.Context, *DeleteServiceBindingRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) DeleteTcpRoute(context.Context, *DeleteTcpRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) DeleteTlsRoute(context.Context, *DeleteTlsRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) GetEndpointPolicy(context.Context, *GetEndpointPolicyRequest) (*EndpointPolicy, error)
func (*UnimplementedNetworkServicesServer) GetGateway(context.Context, *GetGatewayRequest) (*Gateway, error)
func (*UnimplementedNetworkServicesServer) GetGrpcRoute(context.Context, *GetGrpcRouteRequest) (*GrpcRoute, error)
func (*UnimplementedNetworkServicesServer) GetHttpRoute(context.Context, *GetHttpRouteRequest) (*HttpRoute, error)
func (*UnimplementedNetworkServicesServer) GetMesh(context.Context, *GetMeshRequest) (*Mesh, error)
func (*UnimplementedNetworkServicesServer) GetServiceBinding(context.Context, *GetServiceBindingRequest) (*ServiceBinding, error)
func (*UnimplementedNetworkServicesServer) GetTcpRoute(context.Context, *GetTcpRouteRequest) (*TcpRoute, error)
func (*UnimplementedNetworkServicesServer) GetTlsRoute(context.Context, *GetTlsRouteRequest) (*TlsRoute, error)
func (*UnimplementedNetworkServicesServer) ListEndpointPolicies(context.Context, *ListEndpointPoliciesRequest) (*ListEndpointPoliciesResponse, error)
func (*UnimplementedNetworkServicesServer) ListGateways(context.Context, *ListGatewaysRequest) (*ListGatewaysResponse, error)
func (*UnimplementedNetworkServicesServer) ListGrpcRoutes(context.Context, *ListGrpcRoutesRequest) (*ListGrpcRoutesResponse, error)
func (*UnimplementedNetworkServicesServer) ListHttpRoutes(context.Context, *ListHttpRoutesRequest) (*ListHttpRoutesResponse, error)
func (*UnimplementedNetworkServicesServer) ListMeshes(context.Context, *ListMeshesRequest) (*ListMeshesResponse, error)
func (*UnimplementedNetworkServicesServer) ListServiceBindings(context.Context, *ListServiceBindingsRequest) (*ListServiceBindingsResponse, error)
func (*UnimplementedNetworkServicesServer) ListTcpRoutes(context.Context, *ListTcpRoutesRequest) (*ListTcpRoutesResponse, error)
func (*UnimplementedNetworkServicesServer) ListTlsRoutes(context.Context, *ListTlsRoutesRequest) (*ListTlsRoutesResponse, error)
func (*UnimplementedNetworkServicesServer) UpdateEndpointPolicy(context.Context, *UpdateEndpointPolicyRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) UpdateGateway(context.Context, *UpdateGatewayRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) UpdateGrpcRoute(context.Context, *UpdateGrpcRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) UpdateHttpRoute(context.Context, *UpdateHttpRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) UpdateMesh(context.Context, *UpdateMeshRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) UpdateTcpRoute(context.Context, *UpdateTcpRouteRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) UpdateTlsRoute(context.Context, *UpdateTlsRouteRequest) (*longrunning.Operation, error)
Request used with the UpdateEndpointPolicy method.
type UpdateEndpointPolicyRequest struct { // Optional. Field mask is used to specify the fields to be overwritten in the // EndpointPolicy resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Updated EndpointPolicy resource. EndpointPolicy *EndpointPolicy `protobuf:"bytes,2,opt,name=endpoint_policy,json=endpointPolicy,proto3" json:"endpoint_policy,omitempty"` // contains filtered or unexported fields }
func (*UpdateEndpointPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEndpointPolicyRequest.ProtoReflect.Descriptor instead.
func (x *UpdateEndpointPolicyRequest) GetEndpointPolicy() *EndpointPolicy
func (x *UpdateEndpointPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateEndpointPolicyRequest) ProtoMessage()
func (x *UpdateEndpointPolicyRequest) ProtoReflect() protoreflect.Message
func (x *UpdateEndpointPolicyRequest) Reset()
func (x *UpdateEndpointPolicyRequest) String() string
Request used by the UpdateGateway method.
type UpdateGatewayRequest struct { // Optional. Field mask is used to specify the fields to be overwritten in the // Gateway resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Updated Gateway resource. Gateway *Gateway `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"` // contains filtered or unexported fields }
func (*UpdateGatewayRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGatewayRequest.ProtoReflect.Descriptor instead.
func (x *UpdateGatewayRequest) GetGateway() *Gateway
func (x *UpdateGatewayRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateGatewayRequest) ProtoMessage()
func (x *UpdateGatewayRequest) ProtoReflect() protoreflect.Message
func (x *UpdateGatewayRequest) Reset()
func (x *UpdateGatewayRequest) String() string
Request used by the UpdateGrpcRoute method.
type UpdateGrpcRouteRequest struct { // Optional. Field mask is used to specify the fields to be overwritten in the // GrpcRoute resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Updated GrpcRoute resource. GrpcRoute *GrpcRoute `protobuf:"bytes,2,opt,name=grpc_route,json=grpcRoute,proto3" json:"grpc_route,omitempty"` // contains filtered or unexported fields }
func (*UpdateGrpcRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGrpcRouteRequest.ProtoReflect.Descriptor instead.
func (x *UpdateGrpcRouteRequest) GetGrpcRoute() *GrpcRoute
func (x *UpdateGrpcRouteRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateGrpcRouteRequest) ProtoMessage()
func (x *UpdateGrpcRouteRequest) ProtoReflect() protoreflect.Message
func (x *UpdateGrpcRouteRequest) Reset()
func (x *UpdateGrpcRouteRequest) String() string
Request used by the UpdateHttpRoute method.
type UpdateHttpRouteRequest struct { // Optional. Field mask is used to specify the fields to be overwritten in the // HttpRoute resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Updated HttpRoute resource. HttpRoute *HttpRoute `protobuf:"bytes,2,opt,name=http_route,json=httpRoute,proto3" json:"http_route,omitempty"` // contains filtered or unexported fields }
func (*UpdateHttpRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateHttpRouteRequest.ProtoReflect.Descriptor instead.
func (x *UpdateHttpRouteRequest) GetHttpRoute() *HttpRoute
func (x *UpdateHttpRouteRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateHttpRouteRequest) ProtoMessage()
func (x *UpdateHttpRouteRequest) ProtoReflect() protoreflect.Message
func (x *UpdateHttpRouteRequest) Reset()
func (x *UpdateHttpRouteRequest) String() string
Request used by the UpdateMesh method.
type UpdateMeshRequest struct { // Optional. Field mask is used to specify the fields to be overwritten in the // Mesh resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Updated Mesh resource. Mesh *Mesh `protobuf:"bytes,2,opt,name=mesh,proto3" json:"mesh,omitempty"` // contains filtered or unexported fields }
func (*UpdateMeshRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMeshRequest.ProtoReflect.Descriptor instead.
func (x *UpdateMeshRequest) GetMesh() *Mesh
func (x *UpdateMeshRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateMeshRequest) ProtoMessage()
func (x *UpdateMeshRequest) ProtoReflect() protoreflect.Message
func (x *UpdateMeshRequest) Reset()
func (x *UpdateMeshRequest) String() string
Request used by the UpdateTcpRoute method.
type UpdateTcpRouteRequest struct { // Optional. Field mask is used to specify the fields to be overwritten in the // TcpRoute resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Updated TcpRoute resource. TcpRoute *TcpRoute `protobuf:"bytes,2,opt,name=tcp_route,json=tcpRoute,proto3" json:"tcp_route,omitempty"` // contains filtered or unexported fields }
func (*UpdateTcpRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTcpRouteRequest.ProtoReflect.Descriptor instead.
func (x *UpdateTcpRouteRequest) GetTcpRoute() *TcpRoute
func (x *UpdateTcpRouteRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateTcpRouteRequest) ProtoMessage()
func (x *UpdateTcpRouteRequest) ProtoReflect() protoreflect.Message
func (x *UpdateTcpRouteRequest) Reset()
func (x *UpdateTcpRouteRequest) String() string
Request used by the UpdateTlsRoute method.
type UpdateTlsRouteRequest struct { // Optional. Field mask is used to specify the fields to be overwritten in the // TlsRoute resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Updated TlsRoute resource. TlsRoute *TlsRoute `protobuf:"bytes,2,opt,name=tls_route,json=tlsRoute,proto3" json:"tls_route,omitempty"` // contains filtered or unexported fields }
func (*UpdateTlsRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTlsRouteRequest.ProtoReflect.Descriptor instead.
func (x *UpdateTlsRouteRequest) GetTlsRoute() *TlsRoute
func (x *UpdateTlsRouteRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateTlsRouteRequest) ProtoMessage()
func (x *UpdateTlsRouteRequest) ProtoReflect() protoreflect.Message
func (x *UpdateTlsRouteRequest) Reset()
func (x *UpdateTlsRouteRequest) String() string