Interface APIMetadataOrBuilder (0.28.0)

public interface APIMetadataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getApi()

public abstract Api getApi()

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.

getApiOrBuilder()

public abstract 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];

Returns
Type Description
ApiOrBuilder

getOriginalCreateTime()

public abstract 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.

getOriginalCreateTimeOrBuilder()

public abstract 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];

Returns
Type Description
TimestampOrBuilder

getOriginalId()

public abstract 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.

getOriginalIdBytes()

public abstract 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.

getOriginalUpdateTime()

public abstract 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.

getOriginalUpdateTimeOrBuilder()

public abstract 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];

Returns
Type Description
TimestampOrBuilder

getVersions(int index)

public abstract 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
Returns
Type Description
VersionMetadata

getVersionsCount()

public abstract 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

getVersionsList()

public abstract 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];

Returns
Type Description
List<VersionMetadata>

getVersionsOrBuilder(int index)

public abstract 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
Returns
Type Description
VersionMetadataOrBuilder

getVersionsOrBuilderList()

public abstract 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>

hasApi()

public abstract boolean hasApi()

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.

hasOriginalCreateTime()

public abstract 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.

hasOriginalUpdateTime()

public abstract 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.