Class SpecMetadata (0.28.0)

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

Static Fields

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

SPEC_FIELD_NUMBER

public static final int SPEC_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SpecMetadata getDefaultInstance()
Returns
Type Description
SpecMetadata

getDescriptor()

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

newBuilder()

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

newBuilder(SpecMetadata prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SpecMetadata getDefaultInstanceForType()
Returns
Type Description
SpecMetadata

getOriginalCreateTime()

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.

getOriginalCreateTimeOrBuilder()

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

Returns
Type Description
TimestampOrBuilder

getOriginalId()

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.

getOriginalIdBytes()

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.

getOriginalUpdateTime()

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.

getOriginalUpdateTimeOrBuilder()

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

Returns
Type Description
TimestampOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSpec()

public Spec getSpec()

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.

getSpecOrBuilder()

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

Returns
Type Description
SpecOrBuilder

hasOriginalCreateTime()

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.

hasOriginalUpdateTime()

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.

hasSpec()

public boolean hasSpec()

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.

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 SpecMetadata.Builder newBuilderForType()
Returns
Type Description
SpecMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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