public final class ResourceMetadata extends GeneratedMessage implements ResourceMetadataOrBuilder
Standardized resource metadata common to all compute resources.
Protobuf type google.cloud.compute.v1.ResourceMetadata
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int API_VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int RESOURCE_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static ResourceMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ResourceMetadata.Builder newBuilder()
public static ResourceMetadata.Builder newBuilder(ResourceMetadata prototype)
public static ResourceMetadata parseDelimitedFrom(InputStream input)
public static ResourceMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ResourceMetadata parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static ResourceMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResourceMetadata parseFrom(ByteString data)
public static ResourceMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResourceMetadata parseFrom(CodedInputStream input)
public static ResourceMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ResourceMetadata parseFrom(InputStream input)
public static ResourceMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ResourceMetadata parseFrom(ByteBuffer data)
public static ResourceMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ResourceMetadata> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public 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.
|
public 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.
|
public ResourceMetadata getDefaultInstanceForType()
public Parser<ResourceMetadata> getParserForType()
Overrides
public 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.
|
public 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.
|
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public 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.
|
public 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.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ResourceMetadata.Builder newBuilderForType()
protected ResourceMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public ResourceMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides