Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Optional. The etag is computed by the server, and may be sent on update and
delete requests to ensure the client has an up-to-date value before
proceeding.
Returns
Type
Description
string
hasEtag
clearEtag
setEtag
Optional. The etag is computed by the server, and may be sent on update and
delete requests to ensure the client has an up-to-date value before
proceeding.
[[["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 Network Connectivity V1 Client - Class ServiceClass (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-network-connectivity/latest/V1.ServiceClass)\n- [2.2.2](/php/docs/reference/cloud-network-connectivity/2.2.2/V1.ServiceClass)\n- [2.1.2](/php/docs/reference/cloud-network-connectivity/2.1.2/V1.ServiceClass)\n- [2.0.2](/php/docs/reference/cloud-network-connectivity/2.0.2/V1.ServiceClass)\n- [1.5.5](/php/docs/reference/cloud-network-connectivity/1.5.5/V1.ServiceClass)\n- [1.4.2](/php/docs/reference/cloud-network-connectivity/1.4.2/V1.ServiceClass)\n- [1.3.0](/php/docs/reference/cloud-network-connectivity/1.3.0/V1.ServiceClass)\n- [1.2.0](/php/docs/reference/cloud-network-connectivity/1.2.0/V1.ServiceClass)\n- [1.1.1](/php/docs/reference/cloud-network-connectivity/1.1.1/V1.ServiceClass)\n- [1.0.5](/php/docs/reference/cloud-network-connectivity/1.0.5/V1.ServiceClass) \nReference documentation and code samples for the Google Cloud Network Connectivity V1 Client class ServiceClass.\n\nThe ServiceClass resource.\n\nGenerated from protobuf message `google.cloud.networkconnectivity.v1.ServiceClass`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkConnectivity \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nImmutable. The name of a ServiceClass resource.\n\nFormat:\nprojects/{project}/locations/{location}/serviceClasses/{service_class}\nSee: \u003chttps://google.aip.dev/122#fields-representing-resource-names\u003e\n\n### setName\n\nImmutable. The name of a ServiceClass resource.\n\nFormat:\nprojects/{project}/locations/{location}/serviceClasses/{service_class}\nSee: \u003chttps://google.aip.dev/122#fields-representing-resource-names\u003e\n\n### getServiceClass\n\nOutput only. The generated service class name. Use this name to refer to\nthe Service class in Service Connection Maps and Service Connection\nPolicies.\n\n### setServiceClass\n\nOutput only. The generated service class name. Use this name to refer to\nthe Service class in Service Connection Maps and Service Connection\nPolicies.\n\n### getCreateTime\n\nOutput only. Time when the ServiceClass was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Time when the ServiceClass was created.\n\n### getUpdateTime\n\nOutput only. Time when the ServiceClass was updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. Time when the ServiceClass was updated.\n\n### getLabels\n\nUser-defined labels.\n\n### setLabels\n\nUser-defined labels.\n\n### getDescription\n\nA description of this resource.\n\n### setDescription\n\nA description of this resource.\n\n### getEtag\n\nOptional. The etag is computed by the server, and may be sent on update and\ndelete requests to ensure the client has an up-to-date value before\nproceeding.\n\n### hasEtag\n\n### clearEtag\n\n### setEtag\n\nOptional. The etag is computed by the server, and may be sent on update and\ndelete requests to ensure the client has an up-to-date value before\nproceeding."]]