Class PricePhase (3.15.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.15.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  PricePhase   extends   GeneratedMessageV3   implements   PricePhaseOrBuilder  
   Specifies the price by the duration of months.
 For example, a 20% discount for the first six months, then a 10% discount
 starting on the seventh month.
 Protobuf type google.cloud.channel.v1.PricePhase
Static Fields
   
  FIRST_PERIOD_FIELD_NUMBER 
  
    
public   static   final   int   FIRST_PERIOD_FIELD_NUMBER  
  Field Value 
  
  LAST_PERIOD_FIELD_NUMBER 
  
    
public   static   final   int   LAST_PERIOD_FIELD_NUMBER  
  Field Value 
  
  PERIOD_TYPE_FIELD_NUMBER 
  
    
public   static   final   int   PERIOD_TYPE_FIELD_NUMBER  
  Field Value 
  
  PRICE_FIELD_NUMBER 
  
    
public   static   final   int   PRICE_FIELD_NUMBER  
  Field Value 
  
  PRICE_TIERS_FIELD_NUMBER 
  
    
public   static   final   int   PRICE_TIERS_FIELD_NUMBER  
  Field Value 
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   PricePhase   getDefaultInstance ()  
  Returns 
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  newBuilder() 
  
    
public   static   PricePhase . Builder   newBuilder ()  
  Returns 
  
  newBuilder(PricePhase prototype) 
  
    
public   static   PricePhase . Builder   newBuilder ( PricePhase   prototype )  
  Parameter 
  
  Returns 
  
  
    
public   static   PricePhase   parseDelimitedFrom ( InputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   PricePhase   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(byte[] data) 
  
    
public   static   PricePhase   parseFrom ( byte []   data )  
  Parameter 
  
    
      
        Name Description  
      
        databyte [] 
     
  
  Returns 
  
  Exceptions 
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   PricePhase   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteString data) 
  
    
public   static   PricePhase   parseFrom ( ByteString   data )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   PricePhase   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   PricePhase   parseFrom ( CodedInputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   PricePhase   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   PricePhase   parseFrom ( InputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   PricePhase   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteBuffer data) 
  
    
public   static   PricePhase   parseFrom ( ByteBuffer   data )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   PricePhase   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parser() 
  
    
public   static   Parser<PricePhase>   parser ()  
  Returns 
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   PricePhase   getDefaultInstanceForType ()  
  Returns 
  
  getFirstPeriod() 
  
    
public   int   getFirstPeriod ()  
   Defines first period for the phase.
 int32 first_period = 2;
Returns 
  
    
      
        Type Description  
      
        int The firstPeriod.
 
     
  
  getLastPeriod() 
  
    
public   int   getLastPeriod ()  
   Defines first period for the phase.
 int32 last_period = 3;
Returns 
  
    
      
        Type Description  
      
        int The lastPeriod.
 
     
  
  getParserForType() 
  
    
public   Parser<PricePhase>   getParserForType ()  
  Returns 
  
  Overrides 
  
  getPeriodType() 
  
    
public   PeriodType   getPeriodType ()  
   Defines the phase period type.
 .google.cloud.channel.v1.PeriodType period_type = 1;
Returns 
  
  getPeriodTypeValue() 
  
    
public   int   getPeriodTypeValue ()  
   Defines the phase period type.
 .google.cloud.channel.v1.PeriodType period_type = 1;
Returns 
  
    
      
        Type Description  
      
        int The enum numeric value on the wire for periodType.
 
     
  
  getPrice() 
  
   Price of the phase. Present if there are no price tiers.
 .google.cloud.channel.v1.Price price = 4;
Returns 
  
    
      
        Type Description  
      
        Price The price.
 
     
  
  getPriceOrBuilder() 
  
    
public   PriceOrBuilder   getPriceOrBuilder ()  
   Price of the phase. Present if there are no price tiers.
 .google.cloud.channel.v1.Price price = 4;
Returns 
  
  getPriceTiers(int index) 
  
    
public   PriceTier   getPriceTiers ( int   index )  
   Price by the resource tiers.
 repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Parameter 
  
    
      
        Name Description  
      
        indexint  
     
  
  Returns 
  
  getPriceTiersCount() 
  
    
public   int   getPriceTiersCount ()  
   Price by the resource tiers.
 repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Returns 
  
  getPriceTiersList() 
  
    
public   List<PriceTier>   getPriceTiersList ()  
   Price by the resource tiers.
 repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Returns 
  
  getPriceTiersOrBuilder(int index) 
  
    
public   PriceTierOrBuilder   getPriceTiersOrBuilder ( int   index )  
   Price by the resource tiers.
 repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Parameter 
  
    
      
        Name Description  
      
        indexint  
     
  
  Returns 
  
  getPriceTiersOrBuilderList() 
  
    
public   List <?   extends   PriceTierOrBuilder >  getPriceTiersOrBuilderList ()  
   Price by the resource tiers.
 repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Returns 
  
    
      
        Type Description  
      
        List <? extends com.google.cloud.channel.v1.PriceTierOrBuilder > 
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  Returns 
  
  Overrides 
  
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  Returns 
  
  Overrides 
  
  hasPrice() 
  
    
public   boolean   hasPrice ()  
   Price of the phase. Present if there are no price tiers.
 .google.cloud.channel.v1.Price price = 4;
Returns 
  
    
      
        Type Description  
      
        boolean Whether the price field is set.
 
     
  
  hashCode() 
  
  Returns 
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  newBuilderForType() 
  
    
public   PricePhase . Builder   newBuilderForType ()  
  Returns 
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   PricePhase . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  toBuilder() 
  
    
public   PricePhase . Builder   toBuilder ()  
  Returns 
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-11 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]