Class DeploymentMetadata.Builder

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

public static final class DeploymentMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeploymentMetadata.Builder> implements DeploymentMetadataOrBuilder
 The metadata associated with a deployment.
 
Protobuf type google.cloud.apihub.v1.DeploymentMetadata
  • 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<DeploymentMetadata.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<DeploymentMetadata.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<DeploymentMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public DeploymentMetadata.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<DeploymentMetadata.Builder>
      Throws:
      IOException
    • hasDeployment

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

      public Deployment getDeployment()
       Required. The deployment resource to be pushed to Hub's collect layer. The
       ID of the deployment will be generated by Hub.
       
      .google.cloud.apihub.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDeployment in interface DeploymentMetadataOrBuilder
      Returns:
      The deployment.
    • setDeployment

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

      public DeploymentMetadata.Builder setDeployment(Deployment.Builder builderForValue)
       Required. The deployment resource to be pushed to Hub's collect layer. The
       ID of the deployment will be generated by Hub.
       
      .google.cloud.apihub.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeDeployment

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

      public DeploymentMetadata.Builder clearDeployment()
       Required. The deployment resource to be pushed to Hub's collect layer. The
       ID of the deployment will be generated by Hub.
       
      .google.cloud.apihub.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDeploymentBuilder

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

      public DeploymentOrBuilder getDeploymentOrBuilder()
       Required. The deployment resource to be pushed to Hub's collect layer. The
       ID of the deployment will be generated by Hub.
       
      .google.cloud.apihub.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDeploymentOrBuilder in interface DeploymentMetadataOrBuilder
    • getOriginalId

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

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

      public DeploymentMetadata.Builder setOriginalId(String value)
       Optional. The unique identifier of the deployment 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 DeploymentMetadata.Builder clearOriginalId()
       Optional. The unique identifier of the deployment in the system where it
       was originally created.
       
      string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOriginalIdBytes

      public DeploymentMetadata.Builder setOriginalIdBytes(com.google.protobuf.ByteString value)
       Optional. The unique identifier of the deployment 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 deployment was created at the
       source.
       
      .google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasOriginalCreateTime in interface DeploymentMetadataOrBuilder
      Returns:
      Whether the originalCreateTime field is set.
    • getOriginalCreateTime

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

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

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

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

      public DeploymentMetadata.Builder clearOriginalCreateTime()
       Optional. Timestamp indicating when the deployment 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 deployment 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 deployment was created at the
       source.
       
      .google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalCreateTimeOrBuilder in interface DeploymentMetadataOrBuilder
    • hasOriginalUpdateTime

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

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

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

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

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

      public DeploymentMetadata.Builder clearOriginalUpdateTime()
       Required. Timestamp indicating when the deployment 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 deployment 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 deployment was last updated at the
       source.
       
      .google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOriginalUpdateTimeOrBuilder in interface DeploymentMetadataOrBuilder