public interface ResourceMetadataOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getApiVersion()
public abstract String getApiVersion() The version of the API interface that this resource was retrieved through.
For example, "2025-01-01" or "2025-01-01-preview".
optional string api_version = 476021683;
| Returns | |
|---|---|
| Type | Description |
String |
The apiVersion. |
getApiVersionBytes()
public abstract ByteString getApiVersionBytes() The version of the API interface that this resource was retrieved through.
For example, "2025-01-01" or "2025-01-01-preview".
optional string api_version = 476021683;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for apiVersion. |
getResourceType()
public abstract String getResourceType() The canonical resource type name in the format of a resource type
as defined by AIP-123.
For example, "compute.googleapis.com/Instance".
optional string resource_type = 442752203;
| Returns | |
|---|---|
| Type | Description |
String |
The resourceType. |
getResourceTypeBytes()
public abstract ByteString getResourceTypeBytes() The canonical resource type name in the format of a resource type
as defined by AIP-123.
For example, "compute.googleapis.com/Instance".
optional string resource_type = 442752203;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for resourceType. |
hasApiVersion()
public abstract boolean hasApiVersion() The version of the API interface that this resource was retrieved through.
For example, "2025-01-01" or "2025-01-01-preview".
optional string api_version = 476021683;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the apiVersion field is set. |
hasResourceType()
public abstract boolean hasResourceType() The canonical resource type name in the format of a resource type
as defined by AIP-123.
For example, "compute.googleapis.com/Instance".
optional string resource_type = 442752203;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the resourceType field is set. |