Class Constraints.Builder

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

public static final class Constraints.Builder extends com.google.protobuf.GeneratedMessage.Builder<Constraints.Builder> implements ConstraintsOrBuilder
 Represents the constraints for buying the Offer.
 
Protobuf type google.cloud.channel.v1.Constraints
  • 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<Constraints.Builder>
    • clear

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

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

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

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

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

      public Constraints.Builder mergeFrom(Constraints other)
    • isInitialized

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

      public Constraints.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<Constraints.Builder>
      Throws:
      IOException
    • hasCustomerConstraints

      public boolean hasCustomerConstraints()
       Represents constraints required to purchase the Offer for a customer.
       
      .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;
      Specified by:
      hasCustomerConstraints in interface ConstraintsOrBuilder
      Returns:
      Whether the customerConstraints field is set.
    • getCustomerConstraints

      public CustomerConstraints getCustomerConstraints()
       Represents constraints required to purchase the Offer for a customer.
       
      .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;
      Specified by:
      getCustomerConstraints in interface ConstraintsOrBuilder
      Returns:
      The customerConstraints.
    • setCustomerConstraints

      public Constraints.Builder setCustomerConstraints(CustomerConstraints value)
       Represents constraints required to purchase the Offer for a customer.
       
      .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;
    • setCustomerConstraints

      public Constraints.Builder setCustomerConstraints(CustomerConstraints.Builder builderForValue)
       Represents constraints required to purchase the Offer for a customer.
       
      .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;
    • mergeCustomerConstraints

      public Constraints.Builder mergeCustomerConstraints(CustomerConstraints value)
       Represents constraints required to purchase the Offer for a customer.
       
      .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;
    • clearCustomerConstraints

      public Constraints.Builder clearCustomerConstraints()
       Represents constraints required to purchase the Offer for a customer.
       
      .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;
    • getCustomerConstraintsBuilder

      public CustomerConstraints.Builder getCustomerConstraintsBuilder()
       Represents constraints required to purchase the Offer for a customer.
       
      .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;
    • getCustomerConstraintsOrBuilder

      public CustomerConstraintsOrBuilder getCustomerConstraintsOrBuilder()
       Represents constraints required to purchase the Offer for a customer.
       
      .google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;
      Specified by:
      getCustomerConstraintsOrBuilder in interface ConstraintsOrBuilder