Class Version

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.apihub.v1.Version
All Implemented Interfaces:
VersionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Version extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • DOCUMENTATION_FIELD_NUMBER

      public static final int DOCUMENTATION_FIELD_NUMBER
      See Also:
    • SPECS_FIELD_NUMBER

      public static final int SPECS_FIELD_NUMBER
      See Also:
    • API_OPERATIONS_FIELD_NUMBER

      public static final int API_OPERATIONS_FIELD_NUMBER
      See Also:
    • DEFINITIONS_FIELD_NUMBER

      public static final int DEFINITIONS_FIELD_NUMBER
      See Also:
    • DEPLOYMENTS_FIELD_NUMBER

      public static final int DEPLOYMENTS_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • LIFECYCLE_FIELD_NUMBER

      public static final int LIFECYCLE_FIELD_NUMBER
      See Also:
    • COMPLIANCE_FIELD_NUMBER

      public static final int COMPLIANCE_FIELD_NUMBER
      See Also:
    • ACCREDITATION_FIELD_NUMBER

      public static final int ACCREDITATION_FIELD_NUMBER
      See Also:
    • ATTRIBUTES_FIELD_NUMBER

      public static final int ATTRIBUTES_FIELD_NUMBER
      See Also:
    • SELECTED_DEPLOYMENT_FIELD_NUMBER

      public static final int SELECTED_DEPLOYMENT_FIELD_NUMBER
      See Also:
    • SOURCE_METADATA_FIELD_NUMBER

      public static final int SOURCE_METADATA_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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.
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Version parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Version parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Version parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Version parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Version parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Version parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Version parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Version.Builder newBuilder()
    • newBuilder

      public static Version.Builder newBuilder(Version prototype)
    • toBuilder

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

      protected Version.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Version getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Version> parser()
    • getParserForType

      public com.google.protobuf.Parser<Version> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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