Class SpecMetadata (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 SpecMetadata extends GeneratedMessageV3 implements SpecMetadataOrBuilder
The metadata associated with a spec of the API version.
Protobuf type google.cloud.apihub.v1.SpecMetadata
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 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 SPEC_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static SpecMetadata getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static SpecMetadata . Builder newBuilder ()
public static SpecMetadata . Builder newBuilder ( SpecMetadata prototype )
public static SpecMetadata parseDelimitedFrom ( InputStream input )
public static SpecMetadata parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static SpecMetadata parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static SpecMetadata parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static SpecMetadata parseFrom ( ByteString data )
public static SpecMetadata parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static SpecMetadata parseFrom ( CodedInputStream input )
public static SpecMetadata parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static SpecMetadata parseFrom ( InputStream input )
public static SpecMetadata parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static SpecMetadata parseFrom ( ByteBuffer data )
public static SpecMetadata parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<SpecMetadata> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public SpecMetadata getDefaultInstanceForType ()
public Timestamp getOriginalCreateTime ()
Optional. Timestamp indicating when the spec was created at the source.
.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
Timestamp
The originalCreateTime.
public TimestampOrBuilder getOriginalCreateTimeOrBuilder ()
Optional. Timestamp indicating when the spec was created at the source.
.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
public String getOriginalId ()
Optional. The unique identifier of the spec in the system where it was
originally created.
string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The originalId.
public ByteString getOriginalIdBytes ()
Optional. The unique identifier of the spec in the system where it was
originally created.
string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for originalId.
public Timestamp getOriginalUpdateTime ()
Required. Timestamp indicating when the spec was last updated at the
source.
.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
Timestamp
The originalUpdateTime.
public TimestampOrBuilder getOriginalUpdateTimeOrBuilder ()
Required. Timestamp indicating when the spec was last updated at the
source.
.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
public Parser<SpecMetadata> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
Required. The spec resource to be pushed to Hub's collect layer. The ID of
the spec will be generated by Hub.
.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
Spec
The spec.
public SpecOrBuilder getSpecOrBuilder ()
Required. The spec resource to be pushed to Hub's collect layer. The ID of
the spec will be generated by Hub.
.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
public boolean hasOriginalCreateTime ()
Optional. Timestamp indicating when the spec was created at the source.
.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the originalCreateTime field is set.
public boolean hasOriginalUpdateTime ()
Required. Timestamp indicating when the spec was last updated at the
source.
.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the originalUpdateTime field is set.
Required. The spec resource to be pushed to Hub's collect layer. The ID of
the spec will be generated by Hub.
.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the spec field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public SpecMetadata . Builder newBuilderForType ()
protected SpecMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public SpecMetadata . 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."],[],[]]