Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
endpoint.proto74 linesDownload Raw Back to api
1// Copyright 2023 Google LLC2//3// Licensed under the Apache License, Version 2.0 (the "License");4// you may not use this file except in compliance with the License.5// You may obtain a copy of the License at6//7//     http://www.apache.org/licenses/LICENSE-2.08//9// Unless required by applicable law or agreed to in writing, software10// distributed under the License is distributed on an "AS IS" BASIS,11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12// See the License for the specific language governing permissions and13// limitations under the License.14 15syntax = "proto3";16 17package google.api;18 19option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";20option java_multiple_files = true;21option java_outer_classname = "EndpointProto";22option java_package = "com.google.api";23option objc_class_prefix = "GAPI";24 25// `Endpoint` describes a network address of a service that serves a set of26// APIs. It is commonly known as a service endpoint. A service may expose27// any number of service endpoints, and all service endpoints share the same28// service definition, such as quota limits and monitoring metrics.29//30// Example:31//32//     type: google.api.Service33//     name: library-example.googleapis.com34//     endpoints:35//       # Declares network address `https://library-example.googleapis.com`36//       # for service `library-example.googleapis.com`. The `https` scheme37//       # is implicit for all service endpoints. Other schemes may be38//       # supported in the future.39//     - name: library-example.googleapis.com40//       allow_cors: false41//     - name: content-staging-library-example.googleapis.com42//       # Allows HTTP OPTIONS calls to be passed to the API frontend, for it43//       # to decide whether the subsequent cross-origin request is allowed44//       # to proceed.45//       allow_cors: true46message Endpoint {47  // The canonical name of this endpoint.48  string name = 1;49 50  // Unimplemented. Dot not use.51  //52  // DEPRECATED: This field is no longer supported. Instead of using aliases,53  // please specify multiple [google.api.Endpoint][google.api.Endpoint] for each54  // of the intended aliases.55  //56  // Additional names that this endpoint will be hosted on.57  repeated string aliases = 2 [deprecated = true];58 59  // The specification of an Internet routable address of API frontend that will60  // handle requests to this [API61  // Endpoint](https://cloud.google.com/apis/design/glossary). It should be62  // either a valid IPv4 address or a fully-qualified domain name. For example,63  // "8.8.8.8" or "myservice.appspot.com".64  string target = 101;65 66  // Allowing67  // [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka68  // cross-domain traffic, would allow the backends served from this endpoint to69  // receive and respond to HTTP OPTIONS requests. The response will be used by70  // the browser to determine whether the subsequent cross-origin request is71  // allowed to proceed.72  bool allow_cors = 5;73}74 
codekingpro/portable-devtools · Team Ai