Package com.google.cloud.apihub.v1
Class APIMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<APIMetadata.Builder>
com.google.cloud.apihub.v1.APIMetadata.Builder
- All Implemented Interfaces:
APIMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- APIMetadata
public static final class APIMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<APIMetadata.Builder>
implements APIMetadataOrBuilder
The API metadata.Protobuf type
google.cloud.apihub.v1.APIMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllVersions(Iterable<? extends VersionMetadata> values) Optional.addVersions(int index, VersionMetadata value) Optional.addVersions(int index, VersionMetadata.Builder builderForValue) Optional.addVersions(VersionMetadata value) Optional.addVersions(VersionMetadata.Builder builderForValue) Optional.Optional.addVersionsBuilder(int index) Optional.build()clear()clearApi()Required.Optional.Optional.Required.Optional.getApi()Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampRequired.com.google.protobuf.Timestamp.BuilderRequired.com.google.protobuf.TimestampOrBuilderRequired.getVersions(int index) Optional.getVersionsBuilder(int index) Optional.Optional.intOptional.Optional.getVersionsOrBuilder(int index) Optional.List<? extends VersionMetadataOrBuilder>Optional.booleanhasApi()Required.booleanOptional.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanRequired.mergeFrom(APIMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOriginalCreateTime(com.google.protobuf.Timestamp value) Optional.mergeOriginalUpdateTime(com.google.protobuf.Timestamp value) Required.removeVersions(int index) Optional.Required.setApi(Api.Builder builderForValue) Required.setOriginalCreateTime(com.google.protobuf.Timestamp value) Optional.setOriginalCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setOriginalId(String value) Optional.setOriginalIdBytes(com.google.protobuf.ByteString value) Optional.setOriginalUpdateTime(com.google.protobuf.Timestamp value) Required.setOriginalUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Required.setVersions(int index, VersionMetadata value) Optional.setVersions(int index, VersionMetadata.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<APIMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<APIMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<APIMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<APIMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<APIMetadata.Builder>
-
mergeFrom
public APIMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<APIMetadata.Builder>- Throws:
IOException
-
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];- Specified by:
hasApiin interfaceAPIMetadataOrBuilder- Returns:
- Whether the api field is set.
-
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];- Specified by:
getApiin interfaceAPIMetadataOrBuilder- Returns:
- The api.
-
setApi
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]; -
setApi
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]; -
mergeApi
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]; -
clearApi
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]; -
getApiBuilder
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]; -
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];- Specified by:
getApiOrBuilderin interfaceAPIMetadataOrBuilder
-
getVersionsList
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVersionsListin interfaceAPIMetadataOrBuilder
-
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];- Specified by:
getVersionsCountin interfaceAPIMetadataOrBuilder
-
getVersions
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVersionsin interfaceAPIMetadataOrBuilder
-
setVersions
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setVersions
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addVersions
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addVersions
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addVersions
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addVersions
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addAllVersions
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearVersions
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
removeVersions
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getVersionsBuilder
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getVersionsOrBuilder
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVersionsOrBuilderin interfaceAPIMetadataOrBuilder
-
getVersionsOrBuilderList
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVersionsOrBuilderListin interfaceAPIMetadataOrBuilder
-
addVersionsBuilder
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addVersionsBuilder
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getVersionsBuilderList
Optional. The list of versions present in an API resource.
repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
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];- Specified by:
getOriginalIdin interfaceAPIMetadataOrBuilder- Returns:
- The originalId.
-
getOriginalIdBytes
public com.google.protobuf.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];- Specified by:
getOriginalIdBytesin interfaceAPIMetadataOrBuilder- Returns:
- The bytes for originalId.
-
setOriginalId
Optional. The unique identifier of the API in the system where it was originally created.
string original_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The originalId to set.- Returns:
- This builder for chaining.
-
clearOriginalId
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:
- This builder for chaining.
-
setOriginalIdBytes
Optional. The unique identifier of the API in the system where it was originally created.
string original_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for originalId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasOriginalCreateTimein interfaceAPIMetadataOrBuilder- Returns:
- Whether the originalCreateTime field is set.
-
getOriginalCreateTime
public com.google.protobuf.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];- Specified by:
getOriginalCreateTimein interfaceAPIMetadataOrBuilder- Returns:
- The originalCreateTime.
-
setOriginalCreateTime
Optional. Timestamp indicating when the API was created at the source.
.google.protobuf.Timestamp original_create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setOriginalCreateTime
public APIMetadata.Builder setOriginalCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional. Timestamp indicating when the API was created at the source.
.google.protobuf.Timestamp original_create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeOriginalCreateTime
Optional. Timestamp indicating when the API was created at the source.
.google.protobuf.Timestamp original_create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearOriginalCreateTime
Optional. Timestamp indicating when the API was created at the source.
.google.protobuf.Timestamp original_create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getOriginalCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getOriginalCreateTimeBuilder()Optional. Timestamp indicating when the API was created at the source.
.google.protobuf.Timestamp original_create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getOriginalCreateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getOriginalCreateTimeOrBuilderin interfaceAPIMetadataOrBuilder
-
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];- Specified by:
hasOriginalUpdateTimein interfaceAPIMetadataOrBuilder- Returns:
- Whether the originalUpdateTime field is set.
-
getOriginalUpdateTime
public com.google.protobuf.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];- Specified by:
getOriginalUpdateTimein interfaceAPIMetadataOrBuilder- Returns:
- The originalUpdateTime.
-
setOriginalUpdateTime
Required. Timestamp indicating when the API was last updated at the source.
.google.protobuf.Timestamp original_update_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
setOriginalUpdateTime
public APIMetadata.Builder setOriginalUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Required. Timestamp indicating when the API was last updated at the source.
.google.protobuf.Timestamp original_update_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
mergeOriginalUpdateTime
Required. Timestamp indicating when the API was last updated at the source.
.google.protobuf.Timestamp original_update_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
clearOriginalUpdateTime
Required. Timestamp indicating when the API was last updated at the source.
.google.protobuf.Timestamp original_update_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
getOriginalUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getOriginalUpdateTimeBuilder()Required. Timestamp indicating when the API was last updated at the source.
.google.protobuf.Timestamp original_update_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
getOriginalUpdateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getOriginalUpdateTimeOrBuilderin interfaceAPIMetadataOrBuilder
-