[[["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-08-07 UTC."],[],[],null,["# Interface TargetAttributeOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.TargetAttributeOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.deploy.v1.TargetAttributeOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.deploy.v1.TargetAttributeOrBuilder) \n\n public interface TargetAttributeOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### containsLabels(String key)\n\n public abstract boolean containsLabels(String key)\n\nTarget labels.\n\n`map\u003cstring, string\u003e labels = 2;`\n\n### getId()\n\n public abstract String getId()\n\nID of the `Target`. The value of this field could be one of the\nfollowing:\n\n- The last segment of a target name. It only needs the ID to determine which target is being referred to\n- \"\\*\", all targets in a location.\n\n`string id = 1;`\n\n### getIdBytes()\n\n public abstract ByteString getIdBytes()\n\nID of the `Target`. The value of this field could be one of the\nfollowing:\n\n- The last segment of a target name. It only needs the ID to determine which target is being referred to\n- \"\\*\", all targets in a location.\n\n`string id = 1;`\n\n### getLabels()\n\n public abstract Map\u003cString,String\u003e getLabels()\n\nUse [#getLabelsMap()](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.TargetAttributeOrBuilder#com_google_events_cloud_deploy_v1_TargetAttributeOrBuilder_getLabelsMap__) instead.\n\n### getLabelsCount()\n\n public abstract int getLabelsCount()\n\nTarget labels.\n\n`map\u003cstring, string\u003e labels = 2;`\n\n### getLabelsMap()\n\n public abstract Map\u003cString,String\u003e getLabelsMap()\n\nTarget labels.\n\n`map\u003cstring, string\u003e labels = 2;`\n\n### getLabelsOrDefault(String key, String defaultValue)\n\n public abstract String getLabelsOrDefault(String key, String defaultValue)\n\nTarget labels.\n\n`map\u003cstring, string\u003e labels = 2;`\n\n### getLabelsOrThrow(String key)\n\n public abstract String getLabelsOrThrow(String key)\n\nTarget labels.\n\n`map\u003cstring, string\u003e labels = 2;`"]]