Class PlanInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PlanInfo.Builder>
com.buildless.billing.PlanInfo.Builder
All Implemented Interfaces:
PlanInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PlanInfo

public static final class PlanInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PlanInfo.Builder> implements PlanInfoOrBuilder
 ## Plan Info

 Specifies information about a Buildless plan configuration. This record is generic to organizations and individuals;
 each may be specified via the `plan` one-of field.
 
Protobuf type buildless.billing.PlanInfo
  • Method Details

    • getDescriptor

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

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

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

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

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

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

      public PlanInfo.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<PlanInfo.Builder>
    • setField

      public PlanInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<PlanInfo.Builder>
    • clearField

      public PlanInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PlanInfo.Builder>
    • clearOneof

      public PlanInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PlanInfo.Builder>
    • setRepeatedField

      public PlanInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PlanInfo.Builder>
    • addRepeatedField

      public PlanInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PlanInfo.Builder>
    • mergeFrom

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

      public PlanInfo.Builder mergeFrom(PlanInfo other)
    • isInitialized

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

      public PlanInfo.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<PlanInfo.Builder>
      Throws:
      IOException
    • getPlanCase

      public PlanInfo.PlanCase getPlanCase()
      Specified by:
      getPlanCase in interface PlanInfoOrBuilder
    • clearPlan

      public PlanInfo.Builder clearPlan()
    • getBaseValue

      public int getBaseValue()
       Base plan host. This is set to the marketplace or system which provides the plan described by this record.
       
      .buildless.billing.PlanBase base = 1 [json_name = "base"];
      Specified by:
      getBaseValue in interface PlanInfoOrBuilder
      Returns:
      The enum numeric value on the wire for base.
    • setBaseValue

      public PlanInfo.Builder setBaseValue(int value)
       Base plan host. This is set to the marketplace or system which provides the plan described by this record.
       
      .buildless.billing.PlanBase base = 1 [json_name = "base"];
      Parameters:
      value - The enum numeric value on the wire for base to set.
      Returns:
      This builder for chaining.
    • getBase

      public PlanBase getBase()
       Base plan host. This is set to the marketplace or system which provides the plan described by this record.
       
      .buildless.billing.PlanBase base = 1 [json_name = "base"];
      Specified by:
      getBase in interface PlanInfoOrBuilder
      Returns:
      The base.
    • setBase

      public PlanInfo.Builder setBase(PlanBase value)
       Base plan host. This is set to the marketplace or system which provides the plan described by this record.
       
      .buildless.billing.PlanBase base = 1 [json_name = "base"];
      Parameters:
      value - The base to set.
      Returns:
      This builder for chaining.
    • clearBase

      public PlanInfo.Builder clearBase()
       Base plan host. This is set to the marketplace or system which provides the plan described by this record.
       
      .buildless.billing.PlanBase base = 1 [json_name = "base"];
      Returns:
      This builder for chaining.
    • hasOrg

      public boolean hasOrg()
       Specifies plan info for a tenant organization.
       
      .buildless.billing.TenantPlanInfo org = 10 [json_name = "org"];
      Specified by:
      hasOrg in interface PlanInfoOrBuilder
      Returns:
      Whether the org field is set.
    • getOrg

      public TenantPlanInfo getOrg()
       Specifies plan info for a tenant organization.
       
      .buildless.billing.TenantPlanInfo org = 10 [json_name = "org"];
      Specified by:
      getOrg in interface PlanInfoOrBuilder
      Returns:
      The org.
    • setOrg

      public PlanInfo.Builder setOrg(TenantPlanInfo value)
       Specifies plan info for a tenant organization.
       
      .buildless.billing.TenantPlanInfo org = 10 [json_name = "org"];
    • setOrg

      public PlanInfo.Builder setOrg(TenantPlanInfo.Builder builderForValue)
       Specifies plan info for a tenant organization.
       
      .buildless.billing.TenantPlanInfo org = 10 [json_name = "org"];
    • mergeOrg

      public PlanInfo.Builder mergeOrg(TenantPlanInfo value)
       Specifies plan info for a tenant organization.
       
      .buildless.billing.TenantPlanInfo org = 10 [json_name = "org"];
    • clearOrg

      public PlanInfo.Builder clearOrg()
       Specifies plan info for a tenant organization.
       
      .buildless.billing.TenantPlanInfo org = 10 [json_name = "org"];
    • getOrgBuilder

      public TenantPlanInfo.Builder getOrgBuilder()
       Specifies plan info for a tenant organization.
       
      .buildless.billing.TenantPlanInfo org = 10 [json_name = "org"];
    • getOrgOrBuilder

      public TenantPlanInfoOrBuilder getOrgOrBuilder()
       Specifies plan info for a tenant organization.
       
      .buildless.billing.TenantPlanInfo org = 10 [json_name = "org"];
      Specified by:
      getOrgOrBuilder in interface PlanInfoOrBuilder
    • hasIndividual

      public boolean hasIndividual()
       Specifies plan info for an individual account.
       
      .buildless.billing.IndividualPlanInfo individual = 11 [json_name = "individual"];
      Specified by:
      hasIndividual in interface PlanInfoOrBuilder
      Returns:
      Whether the individual field is set.
    • getIndividual

      public IndividualPlanInfo getIndividual()
       Specifies plan info for an individual account.
       
      .buildless.billing.IndividualPlanInfo individual = 11 [json_name = "individual"];
      Specified by:
      getIndividual in interface PlanInfoOrBuilder
      Returns:
      The individual.
    • setIndividual

      public PlanInfo.Builder setIndividual(IndividualPlanInfo value)
       Specifies plan info for an individual account.
       
      .buildless.billing.IndividualPlanInfo individual = 11 [json_name = "individual"];
    • setIndividual

      public PlanInfo.Builder setIndividual(IndividualPlanInfo.Builder builderForValue)
       Specifies plan info for an individual account.
       
      .buildless.billing.IndividualPlanInfo individual = 11 [json_name = "individual"];
    • mergeIndividual

      public PlanInfo.Builder mergeIndividual(IndividualPlanInfo value)
       Specifies plan info for an individual account.
       
      .buildless.billing.IndividualPlanInfo individual = 11 [json_name = "individual"];
    • clearIndividual

      public PlanInfo.Builder clearIndividual()
       Specifies plan info for an individual account.
       
      .buildless.billing.IndividualPlanInfo individual = 11 [json_name = "individual"];
    • getIndividualBuilder

      public IndividualPlanInfo.Builder getIndividualBuilder()
       Specifies plan info for an individual account.
       
      .buildless.billing.IndividualPlanInfo individual = 11 [json_name = "individual"];
    • getIndividualOrBuilder

      public IndividualPlanInfoOrBuilder getIndividualOrBuilder()
       Specifies plan info for an individual account.
       
      .buildless.billing.IndividualPlanInfo individual = 11 [json_name = "individual"];
      Specified by:
      getIndividualOrBuilder in interface PlanInfoOrBuilder
    • setUnknownFields

      public final PlanInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PlanInfo.Builder>
    • mergeUnknownFields

      public final PlanInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PlanInfo.Builder>