Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class Service.
A Service resource is a logical component of an application that can share
state and communicate in a secure fashion with other services.
For example, an application that handles customer requests might
include separate services to handle tasks such as backend data
analysis or API requests from mobile devices. Each service has a
collection of versions that define a specific set of code used to
implement the functionality of that service.
Generated from protobuf messagegoogle.appengine.v1.Service
Namespace
Google \ Cloud \ AppEngine \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Full path to the Service resource in the API. Example:apps/myapp/services/default. @OutputOnly
↳ id
string
Relative name of the service within the application. Example:default. @OutputOnly
A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa").
Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.
A set of labels to apply to this service. Labels are key/value pairs that
describe the service and all resources that belong to it (e.g.,
versions). The labels can be used to search and group resources, and are
propagated to the usage and billing reports, enabling fine-grain analysis
of costs. An example of using labels is to tag resources belonging to
different environments (e.g., "env=prod", "env=qa").
Label keys and values can be no longer than 63 characters and can only
contain lowercase letters, numeric characters, underscores, dashes, and
international characters. Label keys must start with a lowercase letter
or an international character. Each service can have at most 32 labels.
A set of labels to apply to this service. Labels are key/value pairs that
describe the service and all resources that belong to it (e.g.,
versions). The labels can be used to search and group resources, and are
propagated to the usage and billing reports, enabling fine-grain analysis
of costs. An example of using labels is to tag resources belonging to
different environments (e.g., "env=prod", "env=qa").
Label keys and values can be no longer than 63 characters and can only
contain lowercase letters, numeric characters, underscores, dashes, and
international characters. Label keys must start with a lowercase letter
or an international character. Each service can have at most 32 labels.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Appengine Admin V1 Client - Class Service (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-appengine-admin/latest/V1.Service)\n- [2.0.3](/php/docs/reference/cloud-appengine-admin/2.0.3/V1.Service)\n- [1.3.5](/php/docs/reference/cloud-appengine-admin/1.3.5/V1.Service)\n- [1.2.2](/php/docs/reference/cloud-appengine-admin/1.2.2/V1.Service)\n- [1.1.1](/php/docs/reference/cloud-appengine-admin/1.1.1/V1.Service)\n- [1.0.6](/php/docs/reference/cloud-appengine-admin/1.0.6/V1.Service) \nReference documentation and code samples for the Google Cloud Appengine Admin V1 Client class Service.\n\nA Service resource is a logical component of an application that can share\nstate and communicate in a secure fashion with other services.\n\nFor example, an application that handles customer requests might\ninclude separate services to handle tasks such as backend data\nanalysis or API requests from mobile devices. Each service has a\ncollection of versions that define a specific set of code used to\nimplement the functionality of that service.\n\nGenerated from protobuf message `google.appengine.v1.Service`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AppEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nFull path to the Service resource in the API.\n\nExample: `apps/myapp/services/default`.\n@OutputOnly\n\n### setName\n\nFull path to the Service resource in the API.\n\nExample: `apps/myapp/services/default`.\n@OutputOnly\n\n### getId\n\nRelative name of the service within the application.\n\nExample: `default`.\n@OutputOnly\n\n### setId\n\nRelative name of the service within the application.\n\nExample: `default`.\n@OutputOnly\n\n### getSplit\n\nMapping that defines fractional HTTP traffic diversion to\ndifferent versions within the service.\n\n### hasSplit\n\n### clearSplit\n\n### setSplit\n\nMapping that defines fractional HTTP traffic diversion to\ndifferent versions within the service.\n\n### getLabels\n\nA set of labels to apply to this service. Labels are key/value pairs that\ndescribe the service and all resources that belong to it (e.g.,\nversions). The labels can be used to search and group resources, and are\npropagated to the usage and billing reports, enabling fine-grain analysis\nof costs. An example of using labels is to tag resources belonging to\ndifferent environments (e.g., \"env=prod\", \"env=qa\").\n\n\u003cbr /\u003e\n\nLabel keys and values can be no longer than 63 characters and can only\ncontain lowercase letters, numeric characters, underscores, dashes, and\ninternational characters. Label keys must start with a lowercase letter\nor an international character. Each service can have at most 32 labels.\n\n### setLabels\n\nA set of labels to apply to this service. Labels are key/value pairs that\ndescribe the service and all resources that belong to it (e.g.,\nversions). The labels can be used to search and group resources, and are\npropagated to the usage and billing reports, enabling fine-grain analysis\nof costs. An example of using labels is to tag resources belonging to\ndifferent environments (e.g., \"env=prod\", \"env=qa\").\n\n\u003cbr /\u003e\n\nLabel keys and values can be no longer than 63 characters and can only\ncontain lowercase letters, numeric characters, underscores, dashes, and\ninternational characters. Label keys must start with a lowercase letter\nor an international character. Each service can have at most 32 labels.\n\n### getNetworkSettings\n\nIngress settings for this service. Will apply to all versions.\n\n### hasNetworkSettings\n\n### clearNetworkSettings\n\n### setNetworkSettings\n\nIngress settings for this service. Will apply to all versions."]]