Class CommitmentSettings (3.23.0)

public final class CommitmentSettings extends GeneratedMessageV3 implements CommitmentSettingsOrBuilder

Commitment settings for commitment-based offers.

Protobuf type google.cloud.channel.v1.CommitmentSettings

Static Fields

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

RENEWAL_SETTINGS_FIELD_NUMBER

public static final int RENEWAL_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CommitmentSettings getDefaultInstance()
Returns
TypeDescription
CommitmentSettings

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CommitmentSettings.Builder newBuilder()
Returns
TypeDescription
CommitmentSettings.Builder

newBuilder(CommitmentSettings prototype)

public static CommitmentSettings.Builder newBuilder(CommitmentSettings prototype)
Parameter
NameDescription
prototypeCommitmentSettings
Returns
TypeDescription
CommitmentSettings.Builder

parseDelimitedFrom(InputStream input)

public static CommitmentSettings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CommitmentSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CommitmentSettings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CommitmentSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CommitmentSettings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CommitmentSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CommitmentSettings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CommitmentSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CommitmentSettings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CommitmentSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CommitmentSettings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CommitmentSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitmentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CommitmentSettings> parser()
Returns
TypeDescription
Parser<CommitmentSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CommitmentSettings getDefaultInstanceForType()
Returns
TypeDescription
CommitmentSettings

getEndTime()

public Timestamp getEndTime()

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

public Parser<CommitmentSettings> getParserForType()
Returns
TypeDescription
Parser<CommitmentSettings>
Overrides

getRenewalSettings()

public RenewalSettings getRenewalSettings()

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RenewalSettings

The renewalSettings.

getRenewalSettingsOrBuilder()

public RenewalSettingsOrBuilder getRenewalSettingsOrBuilder()

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RenewalSettingsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartTime()

public Timestamp getStartTime()

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

Output only. Commitment end timestamp.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasRenewalSettings()

public boolean hasRenewalSettings()

Optional. Renewal settings applicable for a commitment-based Offer.

.google.cloud.channel.v1.RenewalSettings renewal_settings = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the renewalSettings field is set.

hasStartTime()

public boolean hasStartTime()

Output only. Commitment start timestamp.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the startTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CommitmentSettings.Builder newBuilderForType()
Returns
TypeDescription
CommitmentSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CommitmentSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CommitmentSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CommitmentSettings.Builder toBuilder()
Returns
TypeDescription
CommitmentSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException