[[["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,["# Interface ResourceMaintenance.ResourceOrBuilder (0.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.0 (latest)](/java/docs/reference/google-cloud-maintenance/latest/com.google.cloud.maintenance.api.v1beta.ResourceMaintenance.ResourceOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-maintenance/0.4.0/com.google.cloud.maintenance.api.v1beta.ResourceMaintenance.ResourceOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-maintenance/0.2.0/com.google.cloud.maintenance.api.v1beta.ResourceMaintenance.ResourceOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-maintenance/0.1.0/com.google.cloud.maintenance.api.v1beta.ResourceMaintenance.ResourceOrBuilder) \n\n public static interface ResourceMaintenance.ResourceOrBuilder 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### getLocation()\n\n public abstract String getLocation()\n\nOutput only. The location of the resource.\nFormat:\n`us-central1`\n\n`string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getLocationBytes()\n\n public abstract ByteString getLocationBytes()\n\nOutput only. The location of the resource.\nFormat:\n`us-central1`\n\n`string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getResourceName()\n\n public abstract String getResourceName()\n\nOutput only. Name is the reference to the consumer resource affected by\nthe maintenance. Available values can be found here:\n\u003chttps://cloud.google.com/asset-inventory/docs/asset-names\u003e\n\n`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getResourceNameBytes()\n\n public abstract ByteString getResourceNameBytes()\n\nOutput only. Name is the reference to the consumer resource affected by\nthe maintenance. Available values can be found here:\n\u003chttps://cloud.google.com/asset-inventory/docs/asset-names\u003e\n\n`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getType()\n\n public abstract String getType()\n\nOutput only. The type of the resource.\nAvailable values can be found here:\n\u003chttps://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types\u003e\nPlease note that not all the resource types will have their maintenances\nreported.\n\n`string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getTypeBytes()\n\n public abstract ByteString getTypeBytes()\n\nOutput only. The type of the resource.\nAvailable values can be found here:\n\u003chttps://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types\u003e\nPlease note that not all the resource types will have their maintenances\nreported.\n\n`string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`"]]