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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<APIMetadata.Builder>
    • clear

      public APIMetadata.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<APIMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<APIMetadata.Builder>
    • getDefaultInstanceForType

      public APIMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public APIMetadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public APIMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public APIMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<APIMetadata.Builder>
    • mergeFrom

      public APIMetadata.Builder mergeFrom(APIMetadata other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasApi in interface APIMetadataOrBuilder
      Returns:
      Whether the api field is set.
    • 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];
      Specified by:
      getApi in interface APIMetadataOrBuilder
      Returns:
      The api.
    • setApi

      public APIMetadata.Builder setApi(Api value)
       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

      public APIMetadata.Builder setApi(Api.Builder builderForValue)
       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

      public APIMetadata.Builder mergeApi(Api value)
       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

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

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

      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];
      Specified by:
      getApiOrBuilder in interface APIMetadataOrBuilder
    • 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];
      Specified by:
      getVersionsList in interface APIMetadataOrBuilder
    • 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:
      getVersionsCount in interface APIMetadataOrBuilder
    • getVersions

      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];
      Specified by:
      getVersions in interface APIMetadataOrBuilder
    • setVersions

      public APIMetadata.Builder setVersions(int index, VersionMetadata value)
       Optional. The list of versions present in an API resource.
       
      repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setVersions

      public APIMetadata.Builder setVersions(int index, VersionMetadata.Builder builderForValue)
       Optional. The list of versions present in an API resource.
       
      repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addVersions

      public APIMetadata.Builder addVersions(VersionMetadata value)
       Optional. The list of versions present in an API resource.
       
      repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addVersions

      public APIMetadata.Builder addVersions(int index, VersionMetadata value)
       Optional. The list of versions present in an API resource.
       
      repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addVersions

      public APIMetadata.Builder addVersions(VersionMetadata.Builder builderForValue)
       Optional. The list of versions present in an API resource.
       
      repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addVersions

      public APIMetadata.Builder addVersions(int index, VersionMetadata.Builder builderForValue)
       Optional. The list of versions present in an API resource.
       
      repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllVersions

      public APIMetadata.Builder addAllVersions(Iterable<? extends VersionMetadata> values)
       Optional. The list of versions present in an API resource.
       
      repeated .google.cloud.apihub.v1.VersionMetadata versions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearVersions

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

      public APIMetadata.Builder removeVersions(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];
    • getVersionsBuilder

      public VersionMetadata.Builder getVersionsBuilder(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];
    • getVersionsOrBuilder

      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];
      Specified by:
      getVersionsOrBuilder in interface APIMetadataOrBuilder
    • 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];
      Specified by:
      getVersionsOrBuilderList in interface APIMetadataOrBuilder
    • addVersionsBuilder

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

      public VersionMetadata.Builder addVersionsBuilder(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];
    • getVersionsBuilderList

      public List<VersionMetadata.Builder> 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

      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];
      Specified by:
      getOriginalId in interface APIMetadataOrBuilder
      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:
      getOriginalIdBytes in interface APIMetadataOrBuilder
      Returns:
      The bytes for originalId.
    • setOriginalId

      public APIMetadata.Builder setOriginalId(String value)
       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

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

      public APIMetadata.Builder setOriginalIdBytes(com.google.protobuf.ByteString value)
       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:
      hasOriginalCreateTime in interface APIMetadataOrBuilder
      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:
      getOriginalCreateTime in interface APIMetadataOrBuilder
      Returns:
      The originalCreateTime.
    • setOriginalCreateTime

      public APIMetadata.Builder setOriginalCreateTime(com.google.protobuf.Timestamp value)
       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

      public APIMetadata.Builder mergeOriginalCreateTime(com.google.protobuf.Timestamp value)
       Optional. Timestamp indicating when the API was created at the source.
       
      .google.protobuf.Timestamp original_create_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearOriginalCreateTime

      public APIMetadata.Builder 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:
      getOriginalCreateTimeOrBuilder in interface APIMetadataOrBuilder
    • 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:
      hasOriginalUpdateTime in interface APIMetadataOrBuilder
      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:
      getOriginalUpdateTime in interface APIMetadataOrBuilder
      Returns:
      The originalUpdateTime.
    • setOriginalUpdateTime

      public APIMetadata.Builder setOriginalUpdateTime(com.google.protobuf.Timestamp value)
       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

      public APIMetadata.Builder mergeOriginalUpdateTime(com.google.protobuf.Timestamp value)
       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

      public APIMetadata.Builder 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:
      getOriginalUpdateTimeOrBuilder in interface APIMetadataOrBuilder