Package com.google.cloud.apihub.v1
Class VersionMetadata
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.apihub.v1.VersionMetadata
- All Implemented Interfaces:
VersionMetadataOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class VersionMetadata
extends com.google.protobuf.GeneratedMessage
implements VersionMetadataOrBuilder
The metadata associated with a version of the API resource.Protobuf type
google.cloud.apihub.v1.VersionMetadata- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe metadata associated with a version of the API resource.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic VersionMetadatagetDeployments(int index) Optional.intOptional.Optional.getDeploymentsOrBuilder(int index) Optional.List<? extends DeploymentMetadataOrBuilder>Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOptional.com.google.protobuf.TimestampOrBuilderOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampRequired.com.google.protobuf.TimestampOrBuilderRequired.com.google.protobuf.Parser<VersionMetadata>intgetSpecs(int index) Optional.intOptional.Optional.getSpecsOrBuilder(int index) Optional.List<? extends SpecMetadataOrBuilder>Optional.Required.Required.inthashCode()booleanOptional.booleanRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic VersionMetadata.Builderstatic VersionMetadata.BuildernewBuilder(VersionMetadata prototype) protected VersionMetadata.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static VersionMetadataparseDelimitedFrom(InputStream input) static VersionMetadataparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VersionMetadataparseFrom(byte[] data) static VersionMetadataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VersionMetadataparseFrom(com.google.protobuf.ByteString data) static VersionMetadataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VersionMetadataparseFrom(com.google.protobuf.CodedInputStream input) static VersionMetadataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VersionMetadataparseFrom(InputStream input) static VersionMetadataparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VersionMetadataparseFrom(ByteBuffer data) static VersionMetadataparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<VersionMetadata>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
SPECS_FIELD_NUMBER
public static final int SPECS_FIELD_NUMBER- See Also:
-
DEPLOYMENTS_FIELD_NUMBER
public static final int DEPLOYMENTS_FIELD_NUMBER- See Also:
-
ORIGINAL_ID_FIELD_NUMBER
public static final int ORIGINAL_ID_FIELD_NUMBER- See Also:
-
ORIGINAL_CREATE_TIME_FIELD_NUMBER
public static final int ORIGINAL_CREATE_TIME_FIELD_NUMBER- See Also:
-
ORIGINAL_UPDATE_TIME_FIELD_NUMBER
public static final int ORIGINAL_UPDATE_TIME_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasVersion
public boolean hasVersion()Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasVersionin interfaceVersionMetadataOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getVersionin interfaceVersionMetadataOrBuilder- Returns:
- The version.
-
getVersionOrBuilder
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getVersionOrBuilderin interfaceVersionMetadataOrBuilder
-
getSpecsList
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpecsListin interfaceVersionMetadataOrBuilder
-
getSpecsOrBuilderList
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpecsOrBuilderListin interfaceVersionMetadataOrBuilder
-
getSpecsCount
public int getSpecsCount()Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpecsCountin interfaceVersionMetadataOrBuilder
-
getSpecs
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpecsin interfaceVersionMetadataOrBuilder
-
getSpecsOrBuilder
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpecsOrBuilderin interfaceVersionMetadataOrBuilder
-
getDeploymentsList
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeploymentsListin interfaceVersionMetadataOrBuilder
-
getDeploymentsOrBuilderList
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeploymentsOrBuilderListin interfaceVersionMetadataOrBuilder
-
getDeploymentsCount
public int getDeploymentsCount()Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeploymentsCountin interfaceVersionMetadataOrBuilder
-
getDeployments
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeploymentsin interfaceVersionMetadataOrBuilder
-
getDeploymentsOrBuilder
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeploymentsOrBuilderin interfaceVersionMetadataOrBuilder
-
getOriginalId
Optional. The unique identifier of the version in the system where it was originally created.
string original_id = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOriginalIdin interfaceVersionMetadataOrBuilder- Returns:
- The originalId.
-
getOriginalIdBytes
public com.google.protobuf.ByteString getOriginalIdBytes()Optional. The unique identifier of the version in the system where it was originally created.
string original_id = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOriginalIdBytesin interfaceVersionMetadataOrBuilder- Returns:
- The bytes for originalId.
-
hasOriginalCreateTime
public boolean hasOriginalCreateTime()Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasOriginalCreateTimein interfaceVersionMetadataOrBuilder- Returns:
- Whether the originalCreateTime field is set.
-
getOriginalCreateTime
public com.google.protobuf.Timestamp getOriginalCreateTime()Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOriginalCreateTimein interfaceVersionMetadataOrBuilder- Returns:
- The originalCreateTime.
-
getOriginalCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getOriginalCreateTimeOrBuilder()Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOriginalCreateTimeOrBuilderin interfaceVersionMetadataOrBuilder
-
hasOriginalUpdateTime
public boolean hasOriginalUpdateTime()Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasOriginalUpdateTimein interfaceVersionMetadataOrBuilder- Returns:
- Whether the originalUpdateTime field is set.
-
getOriginalUpdateTime
public com.google.protobuf.Timestamp getOriginalUpdateTime()Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginalUpdateTimein interfaceVersionMetadataOrBuilder- Returns:
- The originalUpdateTime.
-
getOriginalUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getOriginalUpdateTimeOrBuilder()Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginalUpdateTimeOrBuilderin interfaceVersionMetadataOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static VersionMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VersionMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VersionMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VersionMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VersionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VersionMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VersionMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static VersionMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static VersionMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static VersionMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VersionMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-