Class TrialSettings.Builder (3.82.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  TrialSettings . Builder   extends   GeneratedMessageV3 . Builder<TrialSettings . Builder >  implements   TrialSettingsOrBuilder  
   
   Settings for trial offers.
 Protobuf type google.cloud.channel.v1.TrialSettings
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
  Methods
   
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   TrialSettings . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  build() 
  
    
public   TrialSettings   build ()  
   
  
   
  buildPartial() 
  
    
public   TrialSettings   buildPartial ()  
   
  
   
  clear() 
  
    
public   TrialSettings . Builder   clear ()  
   
  
  Overrides 
  
   
  clearEndTime() 
  
    
public   TrialSettings . Builder   clearEndTime ()  
   
   Date when the trial ends. The value is in milliseconds
 using the UNIX Epoch format. See an example Epoch
 converter .
 .google.protobuf.Timestamp end_time = 2;
 
  
   
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   TrialSettings . Builder   clearField ( Descriptors . FieldDescriptor   field )  
   
  
  
  Overrides 
  
   
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   TrialSettings . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
   
  
  
  Overrides 
  
   
  clearTrial() 
  
    
public   TrialSettings . Builder   clearTrial ()  
   
   Determines if the entitlement is in a trial or not:
true - The entitlement is in trial. 
false - The entitlement is not in trial. 
 
 bool trial = 1;
 
  
   
  clone() 
  
    
public   TrialSettings . Builder   clone ()  
   
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   TrialSettings   getDefaultInstanceForType ()  
   
  
   
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
   
  
  Overrides 
  
   
  getEndTime() 
  
    
public   Timestamp   getEndTime ()  
   
   Date when the trial ends. The value is in milliseconds
 using the UNIX Epoch format. See an example Epoch
 converter .
 .google.protobuf.Timestamp end_time = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Timestamp  
        The endTime.
 
       
     
  
   
  getEndTimeBuilder() 
  
    
public   Timestamp . Builder   getEndTimeBuilder ()  
   
   Date when the trial ends. The value is in milliseconds
 using the UNIX Epoch format. See an example Epoch
 converter .
 .google.protobuf.Timestamp end_time = 2;
 
  
   
  getEndTimeOrBuilder() 
  
    
public   TimestampOrBuilder   getEndTimeOrBuilder ()  
   
   Date when the trial ends. The value is in milliseconds
 using the UNIX Epoch format. See an example Epoch
 converter .
 .google.protobuf.Timestamp end_time = 2;
 
  
   
  getTrial() 
  
    
public   boolean   getTrial ()  
   
   Determines if the entitlement is in a trial or not:
true - The entitlement is in trial. 
false - The entitlement is not in trial. 
 
 bool trial = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        The trial.
 
       
     
  
   
  hasEndTime() 
  
    
public   boolean   hasEndTime ()  
   
   Date when the trial ends. The value is in milliseconds
 using the UNIX Epoch format. See an example Epoch
 converter .
 .google.protobuf.Timestamp end_time = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the endTime field is set.
 
       
     
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  mergeEndTime(Timestamp value) 
  
    
public   TrialSettings . Builder   mergeEndTime ( Timestamp   value )  
   
   Date when the trial ends. The value is in milliseconds
 using the UNIX Epoch format. See an example Epoch
 converter .
 .google.protobuf.Timestamp end_time = 2;
 
  
  
   
  mergeFrom(TrialSettings other) 
  
    
public   TrialSettings . Builder   mergeFrom ( TrialSettings   other )  
   
  
  
   
  
  
    
public   TrialSettings . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  Overrides 
  
  
   
  mergeFrom(Message other) 
  
    
public   TrialSettings . Builder   mergeFrom ( Message   other )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        other 
        Message  
       
     
  
  
  Overrides 
  
   
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   TrialSettings . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  Overrides 
  
   
  setEndTime(Timestamp value) 
  
    
public   TrialSettings . Builder   setEndTime ( Timestamp   value )  
   
   Date when the trial ends. The value is in milliseconds
 using the UNIX Epoch format. See an example Epoch
 converter .
 .google.protobuf.Timestamp end_time = 2;
 
  
  
   
  setEndTime(Timestamp.Builder builderForValue) 
  
    
public   TrialSettings . Builder   setEndTime ( Timestamp . Builder   builderForValue )  
   
   Date when the trial ends. The value is in milliseconds
 using the UNIX Epoch format. See an example Epoch
 converter .
 .google.protobuf.Timestamp end_time = 2;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        builderForValue 
        Builder  
       
     
  
  
   
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   TrialSettings . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   TrialSettings . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
   
  
  
  Overrides 
  
   
  setTrial(boolean value) 
  
    
public   TrialSettings . Builder   setTrial ( boolean   value )  
   
   Determines if the entitlement is in a trial or not:
true - The entitlement is in trial. 
false - The entitlement is not in trial. 
 
 bool trial = 1;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        value 
        boolean The trial to set.
 
       
     
  
  
   
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   TrialSettings . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  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-30 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-30 UTC."],[],[]]