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