Class FutureReservationCommitmentInfo.Builder

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

public static final class FutureReservationCommitmentInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<FutureReservationCommitmentInfo.Builder> implements FutureReservationCommitmentInfoOrBuilder
 
Protobuf type google.cloud.compute.v1.FutureReservationCommitmentInfo
  • 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<FutureReservationCommitmentInfo.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<FutureReservationCommitmentInfo.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<FutureReservationCommitmentInfo.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public FutureReservationCommitmentInfo.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<FutureReservationCommitmentInfo.Builder>
      Throws:
      IOException
    • hasCommitmentName

      public boolean hasCommitmentName()
       name of the commitment where capacity is being delivered to.
       
      optional string commitment_name = 164498805;
      Specified by:
      hasCommitmentName in interface FutureReservationCommitmentInfoOrBuilder
      Returns:
      Whether the commitmentName field is set.
    • getCommitmentName

      public String getCommitmentName()
       name of the commitment where capacity is being delivered to.
       
      optional string commitment_name = 164498805;
      Specified by:
      getCommitmentName in interface FutureReservationCommitmentInfoOrBuilder
      Returns:
      The commitmentName.
    • getCommitmentNameBytes

      public com.google.protobuf.ByteString getCommitmentNameBytes()
       name of the commitment where capacity is being delivered to.
       
      optional string commitment_name = 164498805;
      Specified by:
      getCommitmentNameBytes in interface FutureReservationCommitmentInfoOrBuilder
      Returns:
      The bytes for commitmentName.
    • setCommitmentName

      public FutureReservationCommitmentInfo.Builder setCommitmentName(String value)
       name of the commitment where capacity is being delivered to.
       
      optional string commitment_name = 164498805;
      Parameters:
      value - The commitmentName to set.
      Returns:
      This builder for chaining.
    • clearCommitmentName

      public FutureReservationCommitmentInfo.Builder clearCommitmentName()
       name of the commitment where capacity is being delivered to.
       
      optional string commitment_name = 164498805;
      Returns:
      This builder for chaining.
    • setCommitmentNameBytes

      public FutureReservationCommitmentInfo.Builder setCommitmentNameBytes(com.google.protobuf.ByteString value)
       name of the commitment where capacity is being delivered to.
       
      optional string commitment_name = 164498805;
      Parameters:
      value - The bytes for commitmentName to set.
      Returns:
      This builder for chaining.
    • hasCommitmentPlan

      public boolean hasCommitmentPlan()
       Indicates if a Commitment needs to be created as part of FR delivery. If
       this field is not present, then no
       commitment needs to be created.
       Check the CommitmentPlan enum for the list of possible values.
       
      optional string commitment_plan = 164568595;
      Specified by:
      hasCommitmentPlan in interface FutureReservationCommitmentInfoOrBuilder
      Returns:
      Whether the commitmentPlan field is set.
    • getCommitmentPlan

      public String getCommitmentPlan()
       Indicates if a Commitment needs to be created as part of FR delivery. If
       this field is not present, then no
       commitment needs to be created.
       Check the CommitmentPlan enum for the list of possible values.
       
      optional string commitment_plan = 164568595;
      Specified by:
      getCommitmentPlan in interface FutureReservationCommitmentInfoOrBuilder
      Returns:
      The commitmentPlan.
    • getCommitmentPlanBytes

      public com.google.protobuf.ByteString getCommitmentPlanBytes()
       Indicates if a Commitment needs to be created as part of FR delivery. If
       this field is not present, then no
       commitment needs to be created.
       Check the CommitmentPlan enum for the list of possible values.
       
      optional string commitment_plan = 164568595;
      Specified by:
      getCommitmentPlanBytes in interface FutureReservationCommitmentInfoOrBuilder
      Returns:
      The bytes for commitmentPlan.
    • setCommitmentPlan

      public FutureReservationCommitmentInfo.Builder setCommitmentPlan(String value)
       Indicates if a Commitment needs to be created as part of FR delivery. If
       this field is not present, then no
       commitment needs to be created.
       Check the CommitmentPlan enum for the list of possible values.
       
      optional string commitment_plan = 164568595;
      Parameters:
      value - The commitmentPlan to set.
      Returns:
      This builder for chaining.
    • clearCommitmentPlan

      public FutureReservationCommitmentInfo.Builder clearCommitmentPlan()
       Indicates if a Commitment needs to be created as part of FR delivery. If
       this field is not present, then no
       commitment needs to be created.
       Check the CommitmentPlan enum for the list of possible values.
       
      optional string commitment_plan = 164568595;
      Returns:
      This builder for chaining.
    • setCommitmentPlanBytes

      public FutureReservationCommitmentInfo.Builder setCommitmentPlanBytes(com.google.protobuf.ByteString value)
       Indicates if a Commitment needs to be created as part of FR delivery. If
       this field is not present, then no
       commitment needs to be created.
       Check the CommitmentPlan enum for the list of possible values.
       
      optional string commitment_plan = 164568595;
      Parameters:
      value - The bytes for commitmentPlan to set.
      Returns:
      This builder for chaining.
    • hasPreviousCommitmentTerms

      public boolean hasPreviousCommitmentTerms()
       Only applicable if FR is delivering to the same reservation. If set, all
       parent commitments will be extended to match the end date of the plan for
       this commitment.
       Check the PreviousCommitmentTerms enum for the list of possible values.
       
      optional string previous_commitment_terms = 447490085;
      Specified by:
      hasPreviousCommitmentTerms in interface FutureReservationCommitmentInfoOrBuilder
      Returns:
      Whether the previousCommitmentTerms field is set.
    • getPreviousCommitmentTerms

      public String getPreviousCommitmentTerms()
       Only applicable if FR is delivering to the same reservation. If set, all
       parent commitments will be extended to match the end date of the plan for
       this commitment.
       Check the PreviousCommitmentTerms enum for the list of possible values.
       
      optional string previous_commitment_terms = 447490085;
      Specified by:
      getPreviousCommitmentTerms in interface FutureReservationCommitmentInfoOrBuilder
      Returns:
      The previousCommitmentTerms.
    • getPreviousCommitmentTermsBytes

      public com.google.protobuf.ByteString getPreviousCommitmentTermsBytes()
       Only applicable if FR is delivering to the same reservation. If set, all
       parent commitments will be extended to match the end date of the plan for
       this commitment.
       Check the PreviousCommitmentTerms enum for the list of possible values.
       
      optional string previous_commitment_terms = 447490085;
      Specified by:
      getPreviousCommitmentTermsBytes in interface FutureReservationCommitmentInfoOrBuilder
      Returns:
      The bytes for previousCommitmentTerms.
    • setPreviousCommitmentTerms

      public FutureReservationCommitmentInfo.Builder setPreviousCommitmentTerms(String value)
       Only applicable if FR is delivering to the same reservation. If set, all
       parent commitments will be extended to match the end date of the plan for
       this commitment.
       Check the PreviousCommitmentTerms enum for the list of possible values.
       
      optional string previous_commitment_terms = 447490085;
      Parameters:
      value - The previousCommitmentTerms to set.
      Returns:
      This builder for chaining.
    • clearPreviousCommitmentTerms

      public FutureReservationCommitmentInfo.Builder clearPreviousCommitmentTerms()
       Only applicable if FR is delivering to the same reservation. If set, all
       parent commitments will be extended to match the end date of the plan for
       this commitment.
       Check the PreviousCommitmentTerms enum for the list of possible values.
       
      optional string previous_commitment_terms = 447490085;
      Returns:
      This builder for chaining.
    • setPreviousCommitmentTermsBytes

      public FutureReservationCommitmentInfo.Builder setPreviousCommitmentTermsBytes(com.google.protobuf.ByteString value)
       Only applicable if FR is delivering to the same reservation. If set, all
       parent commitments will be extended to match the end date of the plan for
       this commitment.
       Check the PreviousCommitmentTerms enum for the list of possible values.
       
      optional string previous_commitment_terms = 447490085;
      Parameters:
      value - The bytes for previousCommitmentTerms to set.
      Returns:
      This builder for chaining.