Class PricePhase (3.22.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.22.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
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  FIRST_PERIOD_FIELD_NUMBER 
  
    
public   static   final   int   FIRST_PERIOD_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  LAST_PERIOD_FIELD_NUMBER 
  
    
public   static   final   int   LAST_PERIOD_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  PERIOD_TYPE_FIELD_NUMBER 
  
    
public   static   final   int   PERIOD_TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  PRICE_FIELD_NUMBER 
  
    
public   static   final   int   PRICE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  PRICE_TIERS_FIELD_NUMBER 
  
    
public   static   final   int   PRICE_TIERS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   PricePhase   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   PricePhase . Builder   newBuilder ()  
  
  newBuilder(PricePhase prototype) 
  
    
public   static   PricePhase . Builder   newBuilder ( PricePhase   prototype )  
  
  
  
    
public   static   PricePhase   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   PricePhase   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   PricePhase   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   PricePhase   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   PricePhase   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   PricePhase   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   PricePhase   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   PricePhase   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   PricePhase   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   PricePhase   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   PricePhase   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   PricePhase   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<PricePhase>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   PricePhase   getDefaultInstanceForType ()  
  
  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 ()  
  
  Overrides 
  
  getPeriodType() 
  
    
public   PeriodType   getPeriodType ()  
   Defines the phase period type.
 .google.cloud.channel.v1.PeriodType period_type = 1;
    
      
        Returns  
      
        Type Description  
      
        PeriodType The periodType.
 
     
  
  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;
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  
     
  
  
  getPriceTiersCount() 
  
    
public   int   getPriceTiersCount ()  
   Price by the resource tiers.
 repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getPriceTiersList() 
  
    
public   List<PriceTier>   getPriceTiersList ()  
   Price by the resource tiers.
 repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
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  
     
  
  
  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  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  
  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  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   PricePhase . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   PricePhase . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   PricePhase . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-28 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-28 UTC."],[],[]]