Class SpecMetadata.Builder

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

public static final class SpecMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<SpecMetadata.Builder> implements SpecMetadataOrBuilder
 The metadata associated with a spec of the API version.
 
Protobuf type google.cloud.apihub.v1.SpecMetadata
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

      public SpecMetadata.Builder mergeFrom(SpecMetadata other)
    • isInitialized

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

      public SpecMetadata.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<SpecMetadata.Builder>
      Throws:
      IOException
    • hasSpec

      public boolean hasSpec()
       Required. The spec resource to be pushed to Hub's collect layer. The ID of
       the spec will be generated by Hub.
       
      .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSpec in interface SpecMetadataOrBuilder
      Returns:
      Whether the spec field is set.
    • getSpec

      public Spec getSpec()
       Required. The spec resource to be pushed to Hub's collect layer. The ID of
       the spec will be generated by Hub.
       
      .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSpec in interface SpecMetadataOrBuilder
      Returns:
      The spec.
    • setSpec

      public SpecMetadata.Builder setSpec(Spec value)
       Required. The spec resource to be pushed to Hub's collect layer. The ID of
       the spec will be generated by Hub.
       
      .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • setSpec

      public SpecMetadata.Builder setSpec(Spec.Builder builderForValue)
       Required. The spec resource to be pushed to Hub's collect layer. The ID of
       the spec will be generated by Hub.
       
      .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeSpec

      public SpecMetadata.Builder mergeSpec(Spec value)
       Required. The spec resource to be pushed to Hub's collect layer. The ID of
       the spec will be generated by Hub.
       
      .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearSpec

      public SpecMetadata.Builder clearSpec()
       Required. The spec resource to be pushed to Hub's collect layer. The ID of
       the spec will be generated by Hub.
       
      .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSpecBuilder

      public Spec.Builder getSpecBuilder()
       Required. The spec resource to be pushed to Hub's collect layer. The ID of
       the spec will be generated by Hub.
       
      .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSpecOrBuilder

      public SpecOrBuilder getSpecOrBuilder()
       Required. The spec resource to be pushed to Hub's collect layer. The ID of
       the spec will be generated by Hub.
       
      .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSpecOrBuilder in interface SpecMetadataOrBuilder
    • getOriginalId

      public String getOriginalId()
       Optional. The unique identifier of the spec in the system where it was
       originally created.
       
      string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalId in interface SpecMetadataOrBuilder
      Returns:
      The originalId.
    • getOriginalIdBytes

      public com.google.protobuf.ByteString getOriginalIdBytes()
       Optional. The unique identifier of the spec in the system where it was
       originally created.
       
      string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalIdBytes in interface SpecMetadataOrBuilder
      Returns:
      The bytes for originalId.
    • setOriginalId

      public SpecMetadata.Builder setOriginalId(String value)
       Optional. The unique identifier of the spec in the system where it was
       originally created.
       
      string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The originalId to set.
      Returns:
      This builder for chaining.
    • clearOriginalId

      public SpecMetadata.Builder clearOriginalId()
       Optional. The unique identifier of the spec in the system where it was
       originally created.
       
      string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOriginalIdBytes

      public SpecMetadata.Builder setOriginalIdBytes(com.google.protobuf.ByteString value)
       Optional. The unique identifier of the spec in the system where it was
       originally created.
       
      string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for originalId to set.
      Returns:
      This builder for chaining.
    • hasOriginalCreateTime

      public boolean hasOriginalCreateTime()
       Optional. Timestamp indicating when the spec was created at the source.
       
      .google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasOriginalCreateTime in interface SpecMetadataOrBuilder
      Returns:
      Whether the originalCreateTime field is set.
    • getOriginalCreateTime

      public com.google.protobuf.Timestamp getOriginalCreateTime()
       Optional. Timestamp indicating when the spec was created at the source.
       
      .google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalCreateTime in interface SpecMetadataOrBuilder
      Returns:
      The originalCreateTime.
    • setOriginalCreateTime

      public SpecMetadata.Builder setOriginalCreateTime(com.google.protobuf.Timestamp value)
       Optional. Timestamp indicating when the spec was created at the source.
       
      .google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setOriginalCreateTime

      public SpecMetadata.Builder setOriginalCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. Timestamp indicating when the spec was created at the source.
       
      .google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeOriginalCreateTime

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

      public SpecMetadata.Builder clearOriginalCreateTime()
       Optional. Timestamp indicating when the spec was created at the source.
       
      .google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getOriginalCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getOriginalCreateTimeBuilder()
       Optional. Timestamp indicating when the spec was created at the source.
       
      .google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getOriginalCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getOriginalCreateTimeOrBuilder()
       Optional. Timestamp indicating when the spec was created at the source.
       
      .google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalCreateTimeOrBuilder in interface SpecMetadataOrBuilder
    • hasOriginalUpdateTime

      public boolean hasOriginalUpdateTime()
       Required. Timestamp indicating when the spec was last updated at the
       source.
       
      .google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasOriginalUpdateTime in interface SpecMetadataOrBuilder
      Returns:
      Whether the originalUpdateTime field is set.
    • getOriginalUpdateTime

      public com.google.protobuf.Timestamp getOriginalUpdateTime()
       Required. Timestamp indicating when the spec was last updated at the
       source.
       
      .google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOriginalUpdateTime in interface SpecMetadataOrBuilder
      Returns:
      The originalUpdateTime.
    • setOriginalUpdateTime

      public SpecMetadata.Builder setOriginalUpdateTime(com.google.protobuf.Timestamp value)
       Required. Timestamp indicating when the spec was last updated at the
       source.
       
      .google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
    • setOriginalUpdateTime

      public SpecMetadata.Builder setOriginalUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Timestamp indicating when the spec was last updated at the
       source.
       
      .google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeOriginalUpdateTime

      public SpecMetadata.Builder mergeOriginalUpdateTime(com.google.protobuf.Timestamp value)
       Required. Timestamp indicating when the spec was last updated at the
       source.
       
      .google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearOriginalUpdateTime

      public SpecMetadata.Builder clearOriginalUpdateTime()
       Required. Timestamp indicating when the spec was last updated at the
       source.
       
      .google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
    • getOriginalUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getOriginalUpdateTimeBuilder()
       Required. Timestamp indicating when the spec was last updated at the
       source.
       
      .google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
    • getOriginalUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getOriginalUpdateTimeOrBuilder()
       Required. Timestamp indicating when the spec was last updated at the
       source.
       
      .google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOriginalUpdateTimeOrBuilder in interface SpecMetadataOrBuilder