Class Spec.Builder

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

public static final class Spec.Builder extends com.google.protobuf.GeneratedMessage.Builder<Spec.Builder> implements SpecOrBuilder
 Represents a spec associated with an API version in the API
 Hub. Note that specs of various types can be uploaded, however
 parsing of details is supported for OpenAPI spec currently.
 
Protobuf type google.cloud.apihub.v1.Spec
  • 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<Spec.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public Spec.Builder mergeFrom(Spec other)
    • isInitialized

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

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

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

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

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

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

      public Spec.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the spec.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
       
      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 spec.
       This can contain the file name of the spec.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface SpecOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

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

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

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

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

      public boolean hasSpecType()
       Required. The type of spec.
       The value should be one of the allowed values defined for
       `projects/{project}/locations/{location}/attributes/system-spec-type`
       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.
      
       Note, this field is mandatory if content is provided.
       
      .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSpecType in interface SpecOrBuilder
      Returns:
      Whether the specType field is set.
    • getSpecType

      public AttributeValues getSpecType()
       Required. The type of spec.
       The value should be one of the allowed values defined for
       `projects/{project}/locations/{location}/attributes/system-spec-type`
       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.
      
       Note, this field is mandatory if content is provided.
       
      .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSpecType in interface SpecOrBuilder
      Returns:
      The specType.
    • setSpecType

      public Spec.Builder setSpecType(AttributeValues value)
       Required. The type of spec.
       The value should be one of the allowed values defined for
       `projects/{project}/locations/{location}/attributes/system-spec-type`
       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.
      
       Note, this field is mandatory if content is provided.
       
      .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED];
    • setSpecType

      public Spec.Builder setSpecType(AttributeValues.Builder builderForValue)
       Required. The type of spec.
       The value should be one of the allowed values defined for
       `projects/{project}/locations/{location}/attributes/system-spec-type`
       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.
      
       Note, this field is mandatory if content is provided.
       
      .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeSpecType

      public Spec.Builder mergeSpecType(AttributeValues value)
       Required. The type of spec.
       The value should be one of the allowed values defined for
       `projects/{project}/locations/{location}/attributes/system-spec-type`
       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.
      
       Note, this field is mandatory if content is provided.
       
      .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearSpecType

      public Spec.Builder clearSpecType()
       Required. The type of spec.
       The value should be one of the allowed values defined for
       `projects/{project}/locations/{location}/attributes/system-spec-type`
       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.
      
       Note, this field is mandatory if content is provided.
       
      .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED];
    • getSpecTypeBuilder

      public AttributeValues.Builder getSpecTypeBuilder()
       Required. The type of spec.
       The value should be one of the allowed values defined for
       `projects/{project}/locations/{location}/attributes/system-spec-type`
       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.
      
       Note, this field is mandatory if content is provided.
       
      .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED];
    • getSpecTypeOrBuilder

      public AttributeValuesOrBuilder getSpecTypeOrBuilder()
       Required. The type of spec.
       The value should be one of the allowed values defined for
       `projects/{project}/locations/{location}/attributes/system-spec-type`
       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.
      
       Note, this field is mandatory if content is provided.
       
      .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSpecTypeOrBuilder in interface SpecOrBuilder
    • hasContents

      public boolean hasContents()
       Optional. Input only. The contents of the uploaded spec.
       
      .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      hasContents in interface SpecOrBuilder
      Returns:
      Whether the contents field is set.
    • getContents

      public SpecContents getContents()
       Optional. Input only. The contents of the uploaded spec.
       
      .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getContents in interface SpecOrBuilder
      Returns:
      The contents.
    • setContents

      public Spec.Builder setContents(SpecContents value)
       Optional. Input only. The contents of the uploaded spec.
       
      .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
    • setContents

      public Spec.Builder setContents(SpecContents.Builder builderForValue)
       Optional. Input only. The contents of the uploaded spec.
       
      .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
    • mergeContents

      public Spec.Builder mergeContents(SpecContents value)
       Optional. Input only. The contents of the uploaded spec.
       
      .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
    • clearContents

      public Spec.Builder clearContents()
       Optional. Input only. The contents of the uploaded spec.
       
      .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
    • getContentsBuilder

      public SpecContents.Builder getContentsBuilder()
       Optional. Input only. The contents of the uploaded spec.
       
      .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
    • getContentsOrBuilder

      public SpecContentsOrBuilder getContentsOrBuilder()
       Optional. Input only. The contents of the uploaded spec.
       
      .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getContentsOrBuilder in interface SpecOrBuilder
    • hasDetails

      public boolean hasDetails()
       Output only. Details parsed from the spec.
       
      .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDetails in interface SpecOrBuilder
      Returns:
      Whether the details field is set.
    • getDetails

      public SpecDetails getDetails()
       Output only. Details parsed from the spec.
       
      .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetails in interface SpecOrBuilder
      Returns:
      The details.
    • setDetails

      public Spec.Builder setDetails(SpecDetails value)
       Output only. Details parsed from the spec.
       
      .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDetails

      public Spec.Builder setDetails(SpecDetails.Builder builderForValue)
       Output only. Details parsed from the spec.
       
      .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDetails

      public Spec.Builder mergeDetails(SpecDetails value)
       Output only. Details parsed from the spec.
       
      .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDetails

      public Spec.Builder clearDetails()
       Output only. Details parsed from the spec.
       
      .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDetailsBuilder

      public SpecDetails.Builder getDetailsBuilder()
       Output only. Details parsed from the spec.
       
      .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDetailsOrBuilder

      public SpecDetailsOrBuilder getDetailsOrBuilder()
       Output only. Details parsed from the spec.
       
      .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetailsOrBuilder in interface SpecOrBuilder
    • getSourceUri

      public String getSourceUri()
       Optional. The URI of the spec source in case file is uploaded
       from an external version control system.
       
      string source_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceUri in interface SpecOrBuilder
      Returns:
      The sourceUri.
    • getSourceUriBytes

      public com.google.protobuf.ByteString getSourceUriBytes()
       Optional. The URI of the spec source in case file is uploaded
       from an external version control system.
       
      string source_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceUriBytes in interface SpecOrBuilder
      Returns:
      The bytes for sourceUri.
    • setSourceUri

      public Spec.Builder setSourceUri(String value)
       Optional. The URI of the spec source in case file is uploaded
       from an external version control system.
       
      string source_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sourceUri to set.
      Returns:
      This builder for chaining.
    • clearSourceUri

      public Spec.Builder clearSourceUri()
       Optional. The URI of the spec source in case file is uploaded
       from an external version control system.
       
      string source_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSourceUriBytes

      public Spec.Builder setSourceUriBytes(com.google.protobuf.ByteString value)
       Optional. The URI of the spec source in case file is uploaded
       from an external version control system.
       
      string source_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for sourceUri to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public boolean hasLintResponse()
       Optional. The lint response for the spec.
       
      .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLintResponse in interface SpecOrBuilder
      Returns:
      Whether the lintResponse field is set.
    • getLintResponse

      public LintResponse getLintResponse()
       Optional. The lint response for the spec.
       
      .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLintResponse in interface SpecOrBuilder
      Returns:
      The lintResponse.
    • setLintResponse

      public Spec.Builder setLintResponse(LintResponse value)
       Optional. The lint response for the spec.
       
      .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL];
    • setLintResponse

      public Spec.Builder setLintResponse(LintResponse.Builder builderForValue)
       Optional. The lint response for the spec.
       
      .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL];
    • mergeLintResponse

      public Spec.Builder mergeLintResponse(LintResponse value)
       Optional. The lint response for the spec.
       
      .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL];
    • clearLintResponse

      public Spec.Builder clearLintResponse()
       Optional. The lint response for the spec.
       
      .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getLintResponseBuilder

      public LintResponse.Builder getLintResponseBuilder()
       Optional. The lint response for the spec.
       
      .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getLintResponseOrBuilder

      public LintResponseOrBuilder getLintResponseOrBuilder()
       Optional. The lint response for the spec.
       
      .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLintResponseOrBuilder in interface SpecOrBuilder
    • getAttributesCount

      public int getAttributesCount()
      Description copied from interface: SpecOrBuilder
       Optional. The list of user defined attributes associated with the spec.
       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 = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesCount in interface SpecOrBuilder
    • containsAttributes

      public boolean containsAttributes(String key)
       Optional. The list of user defined attributes associated with the spec.
       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 = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAttributes in interface SpecOrBuilder
    • getAttributes

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

      public Map<String,AttributeValues> getAttributesMap()
       Optional. The list of user defined attributes associated with the spec.
       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 = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesMap in interface SpecOrBuilder
    • getAttributesOrDefault

      public AttributeValues getAttributesOrDefault(String key, AttributeValues defaultValue)
       Optional. The list of user defined attributes associated with the spec.
       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 = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesOrDefault in interface SpecOrBuilder
    • getAttributesOrThrow

      public AttributeValues getAttributesOrThrow(String key)
       Optional. The list of user defined attributes associated with the spec.
       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 = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesOrThrow in interface SpecOrBuilder
    • clearAttributes

      public Spec.Builder clearAttributes()
    • removeAttributes

      public Spec.Builder removeAttributes(String key)
       Optional. The list of user defined attributes associated with the spec.
       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 = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAttributes

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

      public Spec.Builder putAttributes(String key, AttributeValues value)
       Optional. The list of user defined attributes associated with the spec.
       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 = 10 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAttributes

      public Spec.Builder putAllAttributes(Map<String,AttributeValues> values)
       Optional. The list of user defined attributes associated with the spec.
       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 = 10 [(.google.api.field_behavior) = OPTIONAL];
    • putAttributesBuilderIfAbsent

      public AttributeValues.Builder putAttributesBuilderIfAbsent(String key)
       Optional. The list of user defined attributes associated with the spec.
       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 = 10 [(.google.api.field_behavior) = OPTIONAL];
    • hasDocumentation

      public boolean hasDocumentation()
       Optional. The documentation of the spec.
       For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI
       spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDocumentation in interface SpecOrBuilder
      Returns:
      Whether the documentation field is set.
    • getDocumentation

      public Documentation getDocumentation()
       Optional. The documentation of the spec.
       For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI
       spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDocumentation in interface SpecOrBuilder
      Returns:
      The documentation.
    • setDocumentation

      public Spec.Builder setDocumentation(Documentation value)
       Optional. The documentation of the spec.
       For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI
       spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setDocumentation

      public Spec.Builder setDocumentation(Documentation.Builder builderForValue)
       Optional. The documentation of the spec.
       For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI
       spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDocumentation

      public Spec.Builder mergeDocumentation(Documentation value)
       Optional. The documentation of the spec.
       For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI
       spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearDocumentation

      public Spec.Builder clearDocumentation()
       Optional. The documentation of the spec.
       For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI
       spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getDocumentationBuilder

      public Documentation.Builder getDocumentationBuilder()
       Optional. The documentation of the spec.
       For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI
       spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getDocumentationOrBuilder

      public DocumentationOrBuilder getDocumentationOrBuilder()
       Optional. The documentation of the spec.
       For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI
       spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDocumentationOrBuilder in interface SpecOrBuilder
    • getParsingModeValue

      public int getParsingModeValue()
       Optional. Input only. Enum specifying the parsing mode for OpenAPI
       Specification (OAS) parsing.
       
      .google.cloud.apihub.v1.Spec.ParsingMode parsing_mode = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getParsingModeValue in interface SpecOrBuilder
      Returns:
      The enum numeric value on the wire for parsingMode.
    • setParsingModeValue

      public Spec.Builder setParsingModeValue(int value)
       Optional. Input only. Enum specifying the parsing mode for OpenAPI
       Specification (OAS) parsing.
       
      .google.cloud.apihub.v1.Spec.ParsingMode parsing_mode = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for parsingMode to set.
      Returns:
      This builder for chaining.
    • getParsingMode

      public Spec.ParsingMode getParsingMode()
       Optional. Input only. Enum specifying the parsing mode for OpenAPI
       Specification (OAS) parsing.
       
      .google.cloud.apihub.v1.Spec.ParsingMode parsing_mode = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getParsingMode in interface SpecOrBuilder
      Returns:
      The parsingMode.
    • setParsingMode

      public Spec.Builder setParsingMode(Spec.ParsingMode value)
       Optional. Input only. Enum specifying the parsing mode for OpenAPI
       Specification (OAS) parsing.
       
      .google.cloud.apihub.v1.Spec.ParsingMode parsing_mode = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The parsingMode to set.
      Returns:
      This builder for chaining.
    • clearParsingMode

      public Spec.Builder clearParsingMode()
       Optional. Input only. Enum specifying the parsing mode for OpenAPI
       Specification (OAS) parsing.
       
      .google.cloud.apihub.v1.Spec.ParsingMode parsing_mode = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Returns:
      This builder for chaining.
    • getSourceMetadataList

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

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

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

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

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

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

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

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

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

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

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

      public Spec.Builder removeSourceMetadata(int index)
       Output only. The list of sources and metadata from the sources of the spec.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 13 [(.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 spec.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 13 [(.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 spec.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceMetadataOrBuilder in interface SpecOrBuilder
    • getSourceMetadataOrBuilderList

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

      public SourceMetadata.Builder addSourceMetadataBuilder()
       Output only. The list of sources and metadata from the sources of the spec.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 13 [(.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 spec.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 13 [(.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 spec.
       
      repeated .google.cloud.apihub.v1.SourceMetadata source_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];