Class Version.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Version.Builder>
com.google.cloud.apihub.v1.Version.Builder
All Implemented Interfaces:
VersionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Version

public static final class Version.Builder extends com.google.protobuf.GeneratedMessage.Builder<Version.Builder> implements VersionOrBuilder
 Represents a version of the API resource in API hub. This is also referred
 to as the API version.
 
Protobuf type google.cloud.apihub.v1.Version
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Version.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Version.Builder>
    • internalGetFieldAccessorTable

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

      public Version.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<Version.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<Version.Builder>
    • getDefaultInstanceForType

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

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

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

      public Version.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<Version.Builder>
    • mergeFrom

      public Version.Builder mergeFrom(Version other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Version.Builder>
    • mergeFrom

      public Version.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<Version.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The name of the version.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface VersionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the version.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface VersionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Version.Builder setName(String value)
       Identifier. The name of the version.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Version.Builder clearName()
       Identifier. The name of the version.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Version.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the version.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. The display name of the version.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface VersionOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The display name of the version.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface VersionOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Version.Builder setDisplayName(String value)
       Required. The display name of the version.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Version.Builder clearDisplayName()
       Required. The display name of the version.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Version.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The display name of the version.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. The description of the version.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface VersionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. The description of the version.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface VersionOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Version.Builder setDescription(String value)
       Optional. The description of the version.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Version.Builder clearDescription()
       Optional. The description of the version.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Version.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. The description of the version.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasDocumentation

      public boolean hasDocumentation()
       Optional. The documentation of the version.
       
      .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDocumentation in interface VersionOrBuilder
      Returns:
      Whether the documentation field is set.
    • getDocumentation

      public Documentation getDocumentation()
       Optional. The documentation of the version.
       
      .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDocumentation in interface VersionOrBuilder
      Returns:
      The documentation.
    • setDocumentation

      public Version.Builder setDocumentation(Documentation value)
       Optional. The documentation of the version.
       
      .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setDocumentation

      public Version.Builder setDocumentation(Documentation.Builder builderForValue)
       Optional. The documentation of the version.
       
      .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDocumentation

      public Version.Builder mergeDocumentation(Documentation value)
       Optional. The documentation of the version.
       
      .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearDocumentation

      public Version.Builder clearDocumentation()
       Optional. The documentation of the version.
       
      .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getDocumentationBuilder

      public Documentation.Builder getDocumentationBuilder()
       Optional. The documentation of the version.
       
      .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getDocumentationOrBuilder

      public DocumentationOrBuilder getDocumentationOrBuilder()
       Optional. The documentation of the version.
       
      .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDocumentationOrBuilder in interface VersionOrBuilder
    • getSpecsList

      public com.google.protobuf.ProtocolStringList getSpecsList()
       Output only. The specs associated with this version.
       Note that an API version can be associated with multiple specs.
       Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
       
      repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getSpecsList in interface VersionOrBuilder
      Returns:
      A list containing the specs.
    • getSpecsCount

      public int getSpecsCount()
       Output only. The specs associated with this version.
       Note that an API version can be associated with multiple specs.
       Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
       
      repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getSpecsCount in interface VersionOrBuilder
      Returns:
      The count of specs.
    • getSpecs

      public String getSpecs(int index)
       Output only. The specs associated with this version.
       Note that an API version can be associated with multiple specs.
       Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
       
      repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getSpecs in interface VersionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The specs at the given index.
    • getSpecsBytes

      public com.google.protobuf.ByteString getSpecsBytes(int index)
       Output only. The specs associated with this version.
       Note that an API version can be associated with multiple specs.
       Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
       
      repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getSpecsBytes in interface VersionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the specs at the given index.
    • setSpecs

      public Version.Builder setSpecs(int index, String value)
       Output only. The specs associated with this version.
       Note that an API version can be associated with multiple specs.
       Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
       
      repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The specs to set.
      Returns:
      This builder for chaining.
    • addSpecs

      public Version.Builder addSpecs(String value)
       Output only. The specs associated with this version.
       Note that an API version can be associated with multiple specs.
       Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
       
      repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The specs to add.
      Returns:
      This builder for chaining.
    • addAllSpecs

      public Version.Builder addAllSpecs(Iterable<String> values)
       Output only. The specs associated with this version.
       Note that an API version can be associated with multiple specs.
       Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
       
      repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The specs to add.
      Returns:
      This builder for chaining.
    • clearSpecs

      public Version.Builder clearSpecs()
       Output only. The specs associated with this version.
       Note that an API version can be associated with multiple specs.
       Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
       
      repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addSpecsBytes

      public Version.Builder addSpecsBytes(com.google.protobuf.ByteString value)
       Output only. The specs associated with this version.
       Note that an API version can be associated with multiple specs.
       Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
       
      repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the specs to add.
      Returns:
      This builder for chaining.
    • getApiOperationsList

      public com.google.protobuf.ProtocolStringList getApiOperationsList()
       Output only. The operations contained in the API version.
       These operations will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getApiOperationsList in interface VersionOrBuilder
      Returns:
      A list containing the apiOperations.
    • getApiOperationsCount

      public int getApiOperationsCount()
       Output only. The operations contained in the API version.
       These operations will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getApiOperationsCount in interface VersionOrBuilder
      Returns:
      The count of apiOperations.
    • getApiOperations

      public String getApiOperations(int index)
       Output only. The operations contained in the API version.
       These operations will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getApiOperations in interface VersionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The apiOperations at the given index.
    • getApiOperationsBytes

      public com.google.protobuf.ByteString getApiOperationsBytes(int index)
       Output only. The operations contained in the API version.
       These operations will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getApiOperationsBytes in interface VersionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the apiOperations at the given index.
    • setApiOperations

      public Version.Builder setApiOperations(int index, String value)
       Output only. The operations contained in the API version.
       These operations will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The apiOperations to set.
      Returns:
      This builder for chaining.
    • addApiOperations

      public Version.Builder addApiOperations(String value)
       Output only. The operations contained in the API version.
       These operations will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The apiOperations to add.
      Returns:
      This builder for chaining.
    • addAllApiOperations

      public Version.Builder addAllApiOperations(Iterable<String> values)
       Output only. The operations contained in the API version.
       These operations will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The apiOperations to add.
      Returns:
      This builder for chaining.
    • clearApiOperations

      public Version.Builder clearApiOperations()
       Output only. The operations contained in the API version.
       These operations will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addApiOperationsBytes

      public Version.Builder addApiOperationsBytes(com.google.protobuf.ByteString value)
       Output only. The operations contained in the API version.
       These operations will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the apiOperations to add.
      Returns:
      This builder for chaining.
    • getDefinitionsList

      public com.google.protobuf.ProtocolStringList getDefinitionsList()
       Output only. The definitions contained in the API version.
       These definitions will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
       
      repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getDefinitionsList in interface VersionOrBuilder
      Returns:
      A list containing the definitions.
    • getDefinitionsCount

      public int getDefinitionsCount()
       Output only. The definitions contained in the API version.
       These definitions will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
       
      repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getDefinitionsCount in interface VersionOrBuilder
      Returns:
      The count of definitions.
    • getDefinitions

      public String getDefinitions(int index)
       Output only. The definitions contained in the API version.
       These definitions will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
       
      repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getDefinitions in interface VersionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The definitions at the given index.
    • getDefinitionsBytes

      public com.google.protobuf.ByteString getDefinitionsBytes(int index)
       Output only. The definitions contained in the API version.
       These definitions will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
       
      repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getDefinitionsBytes in interface VersionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the definitions at the given index.
    • setDefinitions

      public Version.Builder setDefinitions(int index, String value)
       Output only. The definitions contained in the API version.
       These definitions will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
       
      repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The definitions to set.
      Returns:
      This builder for chaining.
    • addDefinitions

      public Version.Builder addDefinitions(String value)
       Output only. The definitions contained in the API version.
       These definitions will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
       
      repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The definitions to add.
      Returns:
      This builder for chaining.
    • addAllDefinitions

      public Version.Builder addAllDefinitions(Iterable<String> values)
       Output only. The definitions contained in the API version.
       These definitions will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
       
      repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The definitions to add.
      Returns:
      This builder for chaining.
    • clearDefinitions

      public Version.Builder clearDefinitions()
       Output only. The definitions contained in the API version.
       These definitions will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
       
      repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addDefinitionsBytes

      public Version.Builder addDefinitionsBytes(com.google.protobuf.ByteString value)
       Output only. The definitions contained in the API version.
       These definitions will be added to the version when a new spec is
       added or when an existing spec is updated. Format is
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
       
      repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the definitions to add.
      Returns:
      This builder for chaining.
    • getDeploymentsList

      public com.google.protobuf.ProtocolStringList 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)
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDeploymentsList in interface VersionOrBuilder
      Returns:
      A list containing the deployments.
    • 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)
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDeploymentsCount in interface VersionOrBuilder
      Returns:
      The count of deployments.
    • getDeployments

      public String getDeployments(int index)
       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)
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDeployments in interface VersionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The deployments at the given index.
    • getDeploymentsBytes

      public com.google.protobuf.ByteString getDeploymentsBytes(int index)
       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)
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDeploymentsBytes in interface VersionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the deployments at the given index.
    • setDeployments

      public Version.Builder setDeployments(int index, String value)
       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)
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The deployments to set.
      Returns:
      This builder for chaining.
    • addDeployments

      public Version.Builder addDeployments(String value)
       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)
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The deployments to add.
      Returns:
      This builder for chaining.
    • addAllDeployments

      public Version.Builder addAllDeployments(Iterable<String> values)
       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)
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The deployments to add.
      Returns:
      This builder for chaining.
    • clearDeployments

      public Version.Builder clearDeployments()
       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)
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addDeploymentsBytes

      public Version.Builder addDeploymentsBytes(com.google.protobuf.ByteString value)
       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)
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the deployments to add.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time at which the version was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface VersionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time at which the version was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface VersionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Version.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the version was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Version.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the version was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Version.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the version was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Version.Builder clearCreateTime()
       Output only. The time at which the version was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time at which the version was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time at which the version was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface VersionOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time at which the version was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface VersionOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time at which the version was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface VersionOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Version.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the version was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Version.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the version was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Version.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the version was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Version.Builder clearUpdateTime()
       Output only. The time at which the version was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time at which the version was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time at which the version was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface VersionOrBuilder
    • hasLifecycle

      public boolean hasLifecycle()
       Optional. The lifecycle of the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-lifecycle`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLifecycle in interface VersionOrBuilder
      Returns:
      Whether the lifecycle field is set.
    • getLifecycle

      public AttributeValues getLifecycle()
       Optional. The lifecycle of the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-lifecycle`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLifecycle in interface VersionOrBuilder
      Returns:
      The lifecycle.
    • setLifecycle

      public Version.Builder setLifecycle(AttributeValues value)
       Optional. The lifecycle of the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-lifecycle`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setLifecycle

      public Version.Builder setLifecycle(AttributeValues.Builder builderForValue)
       Optional. The lifecycle of the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-lifecycle`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeLifecycle

      public Version.Builder mergeLifecycle(AttributeValues value)
       Optional. The lifecycle of the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-lifecycle`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearLifecycle

      public Version.Builder clearLifecycle()
       Optional. The lifecycle of the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-lifecycle`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getLifecycleBuilder

      public AttributeValues.Builder getLifecycleBuilder()
       Optional. The lifecycle of the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-lifecycle`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getLifecycleOrBuilder

      public AttributeValuesOrBuilder getLifecycleOrBuilder()
       Optional. The lifecycle of the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-lifecycle`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLifecycleOrBuilder in interface VersionOrBuilder
    • hasCompliance

      public boolean hasCompliance()
       Optional. The compliance associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-compliance`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCompliance in interface VersionOrBuilder
      Returns:
      Whether the compliance field is set.
    • getCompliance

      public AttributeValues getCompliance()
       Optional. The compliance associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-compliance`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCompliance in interface VersionOrBuilder
      Returns:
      The compliance.
    • setCompliance

      public Version.Builder setCompliance(AttributeValues value)
       Optional. The compliance associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-compliance`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL];
    • setCompliance

      public Version.Builder setCompliance(AttributeValues.Builder builderForValue)
       Optional. The compliance associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-compliance`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCompliance

      public Version.Builder mergeCompliance(AttributeValues value)
       Optional. The compliance associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-compliance`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL];
    • clearCompliance

      public Version.Builder clearCompliance()
       Optional. The compliance associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-compliance`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getComplianceBuilder

      public AttributeValues.Builder getComplianceBuilder()
       Optional. The compliance associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-compliance`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getComplianceOrBuilder

      public AttributeValuesOrBuilder getComplianceOrBuilder()
       Optional. The compliance associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-compliance`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getComplianceOrBuilder in interface VersionOrBuilder
    • hasAccreditation

      public boolean hasAccreditation()
       Optional. The accreditations associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-accreditation`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAccreditation in interface VersionOrBuilder
      Returns:
      Whether the accreditation field is set.
    • getAccreditation

      public AttributeValues getAccreditation()
       Optional. The accreditations associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-accreditation`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccreditation in interface VersionOrBuilder
      Returns:
      The accreditation.
    • setAccreditation

      public Version.Builder setAccreditation(AttributeValues value)
       Optional. The accreditations associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-accreditation`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL];
    • setAccreditation

      public Version.Builder setAccreditation(AttributeValues.Builder builderForValue)
       Optional. The accreditations associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-accreditation`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAccreditation

      public Version.Builder mergeAccreditation(AttributeValues value)
       Optional. The accreditations associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-accreditation`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL];
    • clearAccreditation

      public Version.Builder clearAccreditation()
       Optional. The accreditations associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-accreditation`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getAccreditationBuilder

      public AttributeValues.Builder getAccreditationBuilder()
       Optional. The accreditations associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-accreditation`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getAccreditationOrBuilder

      public AttributeValuesOrBuilder getAccreditationOrBuilder()
       Optional. The accreditations associated with the API version.
       This maps to the following system defined attribute:
       `projects/{project}/locations/{location}/attributes/system-accreditation`
       attribute.
       The number of values for this attribute will be based on the
       cardinality of the attribute. The same can be retrieved via GetAttribute
       API. All values should be from the list of allowed values defined for the
       attribute.
       
      .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccreditationOrBuilder in interface VersionOrBuilder
    • getAttributesCount

      public int getAttributesCount()
      Description copied from interface: VersionOrBuilder
       Optional. The list of user defined attributes associated with the Version
       resource. The key is the attribute name. It will be of the format:
       `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesCount in interface VersionOrBuilder
    • containsAttributes

      public boolean containsAttributes(String key)
       Optional. The list of user defined attributes associated with the Version
       resource. The key is the attribute name. It will be of the format:
       `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAttributes in interface VersionOrBuilder
    • getAttributes

      @Deprecated public Map<String,AttributeValues> getAttributes()
      Deprecated.
      Use getAttributesMap() instead.
      Specified by:
      getAttributes in interface VersionOrBuilder
    • getAttributesMap

      public Map<String,AttributeValues> getAttributesMap()
       Optional. The list of user defined attributes associated with the Version
       resource. The key is the attribute name. It will be of the format:
       `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesMap in interface VersionOrBuilder
    • getAttributesOrDefault

      public AttributeValues getAttributesOrDefault(String key, AttributeValues defaultValue)
       Optional. The list of user defined attributes associated with the Version
       resource. The key is the attribute name. It will be of the format:
       `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesOrDefault in interface VersionOrBuilder
    • getAttributesOrThrow

      public AttributeValues getAttributesOrThrow(String key)
       Optional. The list of user defined attributes associated with the Version
       resource. The key is the attribute name. It will be of the format:
       `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesOrThrow in interface VersionOrBuilder
    • clearAttributes

      public Version.Builder clearAttributes()
    • removeAttributes

      public Version.Builder removeAttributes(String key)
       Optional. The list of user defined attributes associated with the Version
       resource. The key is the attribute name. It will be of the format:
       `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAttributes

      @Deprecated public Map<String,AttributeValues> getMutableAttributes()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAttributes

      public Version.Builder putAttributes(String key, AttributeValues value)
       Optional. The list of user defined attributes associated with the Version
       resource. The key is the attribute name. It will be of the format:
       `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAttributes

      public Version.Builder putAllAttributes(Map<String,AttributeValues> values)
       Optional. The list of user defined attributes associated with the Version
       resource. The key is the attribute name. It will be of the format:
       `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
    • putAttributesBuilderIfAbsent

      public AttributeValues.Builder putAttributesBuilderIfAbsent(String key)
       Optional. The list of user defined attributes associated with the Version
       resource. The key is the attribute name. It will be of the format:
       `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getSelectedDeployment

      public String getSelectedDeployment()
       Optional. The selected deployment for a Version resource.
       This can be used when special handling is needed on client side for a
       particular deployment linked to the version.
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      string selected_deployment = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSelectedDeployment in interface VersionOrBuilder
      Returns:
      The selectedDeployment.
    • getSelectedDeploymentBytes

      public com.google.protobuf.ByteString getSelectedDeploymentBytes()
       Optional. The selected deployment for a Version resource.
       This can be used when special handling is needed on client side for a
       particular deployment linked to the version.
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      string selected_deployment = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSelectedDeploymentBytes in interface VersionOrBuilder
      Returns:
      The bytes for selectedDeployment.
    • setSelectedDeployment

      public Version.Builder setSelectedDeployment(String value)
       Optional. The selected deployment for a Version resource.
       This can be used when special handling is needed on client side for a
       particular deployment linked to the version.
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      string selected_deployment = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The selectedDeployment to set.
      Returns:
      This builder for chaining.
    • clearSelectedDeployment

      public Version.Builder clearSelectedDeployment()
       Optional. The selected deployment for a Version resource.
       This can be used when special handling is needed on client side for a
       particular deployment linked to the version.
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      string selected_deployment = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSelectedDeploymentBytes

      public Version.Builder setSelectedDeploymentBytes(com.google.protobuf.ByteString value)
       Optional. The selected deployment for a Version resource.
       This can be used when special handling is needed on client side for a
       particular deployment linked to the version.
       Format is
       `projects/{project}/locations/{location}/deployments/{deployment}`
       
      string selected_deployment = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for selectedDeployment to set.
      Returns:
      This builder for chaining.
    • getSourceMetadataList

      public List<SourceMetadata> getSourceMetadataList()
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceMetadataList in interface VersionOrBuilder
    • getSourceMetadataCount

      public int getSourceMetadataCount()
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceMetadataCount in interface VersionOrBuilder
    • getSourceMetadata

      public SourceMetadata getSourceMetadata(int index)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceMetadata in interface VersionOrBuilder
    • setSourceMetadata

      public Version.Builder setSourceMetadata(int index, SourceMetadata value)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setSourceMetadata

      public Version.Builder setSourceMetadata(int index, SourceMetadata.Builder builderForValue)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSourceMetadata

      public Version.Builder addSourceMetadata(SourceMetadata value)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSourceMetadata

      public Version.Builder addSourceMetadata(int index, SourceMetadata value)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSourceMetadata

      public Version.Builder addSourceMetadata(SourceMetadata.Builder builderForValue)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSourceMetadata

      public Version.Builder addSourceMetadata(int index, SourceMetadata.Builder builderForValue)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllSourceMetadata

      public Version.Builder addAllSourceMetadata(Iterable<? extends SourceMetadata> values)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearSourceMetadata

      public Version.Builder clearSourceMetadata()
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeSourceMetadata

      public Version.Builder removeSourceMetadata(int index)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSourceMetadataBuilder

      public SourceMetadata.Builder getSourceMetadataBuilder(int index)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSourceMetadataOrBuilder

      public SourceMetadataOrBuilder getSourceMetadataOrBuilder(int index)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceMetadataOrBuilder in interface VersionOrBuilder
    • getSourceMetadataOrBuilderList

      public List<? extends SourceMetadataOrBuilder> getSourceMetadataOrBuilderList()
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceMetadataOrBuilderList in interface VersionOrBuilder
    • addSourceMetadataBuilder

      public SourceMetadata.Builder addSourceMetadataBuilder()
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSourceMetadataBuilder

      public SourceMetadata.Builder addSourceMetadataBuilder(int index)
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSourceMetadataBuilderList

      public List<SourceMetadata.Builder> getSourceMetadataBuilderList()
       Output only. The list of sources and metadata from the sources of the
       version.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];