Class APIMetadata (0.28.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
public final class APIMetadata extends GeneratedMessageV3 implements APIMetadataOrBuilder
The API metadata.
Protobuf type google.cloud.apihub.v1.APIMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int API_FIELD_NUMBER
Field Value
Type
Description
int
public static final int ORIGINAL_CREATE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int ORIGINAL_ID_FIELD_NUMBER
Field Value
Type
Description
int
public static final int ORIGINAL_UPDATE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int VERSIONS_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static APIMetadata getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static APIMetadata . Builder newBuilder ()
public static APIMetadata . Builder newBuilder ( APIMetadata prototype )
public static APIMetadata parseDelimitedFrom ( InputStream input )
public static APIMetadata parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static APIMetadata parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static APIMetadata parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static APIMetadata parseFrom ( ByteString data )
public static APIMetadata parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static APIMetadata parseFrom ( CodedInputStream input )
public static APIMetadata parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static APIMetadata parseFrom ( InputStream input )
public static APIMetadata parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static APIMetadata parseFrom ( ByteBuffer data )
public static APIMetadata parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<APIMetadata> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
Required. The API resource to be pushed to Hub's collect layer. The ID of
the API resource will be generated by Hub to ensure uniqueness across all
APIs across systems.
.google.cloud.apihub.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
Api
The api.
public ApiOrBuilder getApiOrBuilder ()
Required. The API resource to be pushed to Hub's collect layer. The ID of
the API resource will be generated by Hub to ensure uniqueness across all
APIs across systems.
.google.cloud.apihub.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
public APIMetadata getDefaultInstanceForType ()
public Timestamp getOriginalCreateTime ()
Optional. Timestamp indicating when the API was created at the source.
.google.protobuf.Timestamp original_create_time = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
Timestamp
The originalCreateTime.
public TimestampOrBuilder getOriginalCreateTimeOrBuilder ()
Optional. Timestamp indicating when the API was created at the source.
.google.protobuf.Timestamp original_create_time = 4 [(.google.api.field_behavior) = OPTIONAL];
public String getOriginalId ()
Optional. The unique identifier of the API in the system where it was
originally created.
string original_id = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The originalId.
public ByteString getOriginalIdBytes ()
Optional. The unique identifier of the API in the system where it was
originally created.
string original_id = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for originalId.
public Timestamp getOriginalUpdateTime ()
Required. Timestamp indicating when the API was last updated at the source.
.google.protobuf.Timestamp original_update_time = 5 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
Timestamp
The originalUpdateTime.
public TimestampOrBuilder getOriginalUpdateTimeOrBuilder ()
Required. Timestamp indicating when the API was last updated at the source.
.google.protobuf.Timestamp original_update_time = 5 [(.google.api.field_behavior) = REQUIRED];
public Parser<APIMetadata> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public VersionMetadata getVersions ( int index )
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
public int getVersionsCount ()
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
public List<VersionMetadata> getVersionsList ()
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
public VersionMetadataOrBuilder getVersionsOrBuilder ( int index )
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
public List <? extends VersionMetadataOrBuilder > getVersionsOrBuilderList ()
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
List <? extends com.google.cloud.apihub.v1.VersionMetadataOrBuilder >
Required. The API resource to be pushed to Hub's collect layer. The ID of
the API resource will be generated by Hub to ensure uniqueness across all
APIs across systems.
.google.cloud.apihub.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the api field is set.
public boolean hasOriginalCreateTime ()
Optional. Timestamp indicating when the API was created at the source.
.google.protobuf.Timestamp original_create_time = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the originalCreateTime field is set.
public boolean hasOriginalUpdateTime ()
Required. Timestamp indicating when the API was last updated at the source.
.google.protobuf.Timestamp original_update_time = 5 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the originalUpdateTime field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public APIMetadata . Builder newBuilderForType ()
protected APIMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public APIMetadata . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-02 UTC."],[],[]]