Class APIMetadata (0.28.0)

public final class APIMetadata extends GeneratedMessageV3 implements APIMetadataOrBuilder

The API metadata.

Protobuf type google.cloud.apihub.v1.APIMetadata

Static Fields

API_FIELD_NUMBER

public static final int API_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_CREATE_TIME_FIELD_NUMBER

public static final int ORIGINAL_CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_ID_FIELD_NUMBER

public static final int ORIGINAL_ID_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_UPDATE_TIME_FIELD_NUMBER

public static final int ORIGINAL_UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

VERSIONS_FIELD_NUMBER

public static final int VERSIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static APIMetadata getDefaultInstance()
Returns
Type Description
APIMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static APIMetadata.Builder newBuilder()
Returns
Type Description
APIMetadata.Builder

newBuilder(APIMetadata prototype)

public static APIMetadata.Builder newBuilder(APIMetadata prototype)
Parameter
Name Description
prototype APIMetadata
Returns
Type Description
APIMetadata.Builder

parseDelimitedFrom(InputStream input)

public static APIMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
APIMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static APIMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
APIMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static APIMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
APIMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static APIMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
APIMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static APIMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
APIMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static APIMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
APIMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static APIMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
APIMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static APIMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
APIMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static APIMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
APIMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static APIMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
APIMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static APIMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
APIMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static APIMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
APIMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<APIMetadata> parser()
Returns
Type Description
Parser<APIMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApi()

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

getDefaultInstanceForType()

public APIMetadata getDefaultInstanceForType()
Returns
Type Description
APIMetadata

getOriginalCreateTime()

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.

getOriginalCreateTimeOrBuilder()

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

Returns
Type Description
TimestampOrBuilder

getOriginalId()

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.

getOriginalIdBytes()

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.

getOriginalUpdateTime()

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.

getOriginalUpdateTimeOrBuilder()

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

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<APIMetadata> getParserForType()
Returns
Type Description
Parser<APIMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getVersions(int index)

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

getVersionsCount()

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

getVersionsList()

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

Returns
Type Description
List<VersionMetadata>

getVersionsOrBuilder(int index)

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

getVersionsOrBuilderList()

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>

hasApi()

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

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public APIMetadata.Builder newBuilderForType()
Returns
Type Description
APIMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected APIMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
APIMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public APIMetadata.Builder toBuilder()
Returns
Type Description
APIMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException