Class DeploymentGroupRevision.Builder

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

public static final class DeploymentGroupRevision.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeploymentGroupRevision.Builder> implements DeploymentGroupRevisionOrBuilder
 A DeploymentGroupRevision represents a snapshot of a
 [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] at a given point in
 time, created when a DeploymentGroup is provisioned or deprovisioned.
 
Protobuf type google.cloud.config.v1.DeploymentGroupRevision
  • 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<DeploymentGroupRevision.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<DeploymentGroupRevision.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<DeploymentGroupRevision.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getName()
       Identifier. The name of the deployment group revision.
       Format:
       'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface DeploymentGroupRevisionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the deployment group revision.
       Format:
       'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface DeploymentGroupRevisionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DeploymentGroupRevision.Builder setName(String value)
       Identifier. The name of the deployment group revision.
       Format:
       'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DeploymentGroupRevision.Builder clearName()
       Identifier. The name of the deployment group revision.
       Format:
       'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public DeploymentGroupRevision.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the deployment group revision.
       Format:
       'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasSnapshot

      public boolean hasSnapshot()
       Output only. The snapshot of the deployment group at this revision.
       
      .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSnapshot in interface DeploymentGroupRevisionOrBuilder
      Returns:
      Whether the snapshot field is set.
    • getSnapshot

      public DeploymentGroup getSnapshot()
       Output only. The snapshot of the deployment group at this revision.
       
      .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSnapshot in interface DeploymentGroupRevisionOrBuilder
      Returns:
      The snapshot.
    • setSnapshot

       Output only. The snapshot of the deployment group at this revision.
       
      .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setSnapshot

      public DeploymentGroupRevision.Builder setSnapshot(DeploymentGroup.Builder builderForValue)
       Output only. The snapshot of the deployment group at this revision.
       
      .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeSnapshot

      public DeploymentGroupRevision.Builder mergeSnapshot(DeploymentGroup value)
       Output only. The snapshot of the deployment group at this revision.
       
      .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearSnapshot

      public DeploymentGroupRevision.Builder clearSnapshot()
       Output only. The snapshot of the deployment group at this revision.
       
      .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSnapshotBuilder

      public DeploymentGroup.Builder getSnapshotBuilder()
       Output only. The snapshot of the deployment group at this revision.
       
      .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSnapshotOrBuilder

      public DeploymentGroupOrBuilder getSnapshotOrBuilder()
       Output only. The snapshot of the deployment group at this revision.
       
      .google.cloud.config.v1.DeploymentGroup snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSnapshotOrBuilder in interface DeploymentGroupRevisionOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time when the deployment group revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DeploymentGroupRevisionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when the deployment group revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DeploymentGroupRevisionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public DeploymentGroupRevision.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the deployment group revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public DeploymentGroupRevision.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when the deployment group revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public DeploymentGroupRevision.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the deployment group revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public DeploymentGroupRevision.Builder clearCreateTime()
       Output only. Time when the deployment group revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Time when the deployment group revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when the deployment group revision was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DeploymentGroupRevisionOrBuilder
    • getAlternativeIdsList

      public com.google.protobuf.ProtocolStringList getAlternativeIdsList()
       Output only. The alternative IDs of the deployment group revision.
       
      repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAlternativeIdsList in interface DeploymentGroupRevisionOrBuilder
      Returns:
      A list containing the alternativeIds.
    • getAlternativeIdsCount

      public int getAlternativeIdsCount()
       Output only. The alternative IDs of the deployment group revision.
       
      repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAlternativeIdsCount in interface DeploymentGroupRevisionOrBuilder
      Returns:
      The count of alternativeIds.
    • getAlternativeIds

      public String getAlternativeIds(int index)
       Output only. The alternative IDs of the deployment group revision.
       
      repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAlternativeIds in interface DeploymentGroupRevisionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The alternativeIds at the given index.
    • getAlternativeIdsBytes

      public com.google.protobuf.ByteString getAlternativeIdsBytes(int index)
       Output only. The alternative IDs of the deployment group revision.
       
      repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAlternativeIdsBytes in interface DeploymentGroupRevisionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the alternativeIds at the given index.
    • setAlternativeIds

      public DeploymentGroupRevision.Builder setAlternativeIds(int index, String value)
       Output only. The alternative IDs of the deployment group revision.
       
      repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The alternativeIds to set.
      Returns:
      This builder for chaining.
    • addAlternativeIds

      public DeploymentGroupRevision.Builder addAlternativeIds(String value)
       Output only. The alternative IDs of the deployment group revision.
       
      repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The alternativeIds to add.
      Returns:
      This builder for chaining.
    • addAllAlternativeIds

      public DeploymentGroupRevision.Builder addAllAlternativeIds(Iterable<String> values)
       Output only. The alternative IDs of the deployment group revision.
       
      repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The alternativeIds to add.
      Returns:
      This builder for chaining.
    • clearAlternativeIds

      public DeploymentGroupRevision.Builder clearAlternativeIds()
       Output only. The alternative IDs of the deployment group revision.
       
      repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addAlternativeIdsBytes

      public DeploymentGroupRevision.Builder addAlternativeIdsBytes(com.google.protobuf.ByteString value)
       Output only. The alternative IDs of the deployment group revision.
       
      repeated string alternative_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the alternativeIds to add.
      Returns:
      This builder for chaining.