Send feedback
Class TrialSettings.Builder (3.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.11.0 keyboard_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.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 ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TrialSettings . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public TrialSettings build ()
Returns
buildPartial()
public TrialSettings buildPartial ()
Returns
clear()
public TrialSettings . Builder clear ()
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public TrialSettings . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TrialSettings . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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;
Returns
clone()
public TrialSettings . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public TrialSettings getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
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;
Returns
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;
Returns
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
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 ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
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;
Parameter
Returns
mergeFrom(TrialSettings other)
public TrialSettings . Builder mergeFrom ( TrialSettings other )
Parameter
Returns
public TrialSettings . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TrialSettings . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TrialSettings . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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;
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TrialSettings . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TrialSettings . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final TrialSettings . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
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-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]