Class BillingSettings.Builder (0.12.0)

public static final class BillingSettings.Builder extends GeneratedMessageV3.Builder<BillingSettings.Builder> implements BillingSettingsOrBuilder

Billing settings

Protobuf type google.cloud.securitycenter.settings.v1beta1.BillingSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BillingSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BillingSettings.Builder
Overrides

build()

public BillingSettings build()
Returns
TypeDescription
BillingSettings

buildPartial()

public BillingSettings buildPartial()
Returns
TypeDescription
BillingSettings

clear()

public BillingSettings.Builder clear()
Returns
TypeDescription
BillingSettings.Builder
Overrides

clearBillingTier()

public BillingSettings.Builder clearBillingTier()

Output only. Billing tier selected by customer

.google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BillingSettings.Builder

This builder for chaining.

clearBillingType()

public BillingSettings.Builder clearBillingType()

Output only. Type of billing method

.google.cloud.securitycenter.settings.v1beta1.BillingType billing_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BillingSettings.Builder

This builder for chaining.

clearExpireTime()

public BillingSettings.Builder clearExpireTime()

Output only. The absolute point in time when the subscription expires. If this field is populated and billing_tier is STANDARD, this is indication of a point in the past when a PREMIUM access ended.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BillingSettings.Builder

clearField(Descriptors.FieldDescriptor field)

public BillingSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BillingSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BillingSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BillingSettings.Builder
Overrides

clearStartTime()

public BillingSettings.Builder clearStartTime()

Output only. The absolute point in time when the subscription became effective. Can be compared to expire_time value to determine full contract duration

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

Returns
TypeDescription
BillingSettings.Builder

clone()

public BillingSettings.Builder clone()
Returns
TypeDescription
BillingSettings.Builder
Overrides

getBillingTier()

public BillingTier getBillingTier()

Output only. Billing tier selected by customer

.google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BillingTier

The billingTier.

getBillingTierValue()

public int getBillingTierValue()

Output only. Billing tier selected by customer

.google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for billingTier.

getBillingType()

public BillingType getBillingType()

Output only. Type of billing method

.google.cloud.securitycenter.settings.v1beta1.BillingType billing_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BillingType

The billingType.

getBillingTypeValue()

public int getBillingTypeValue()

Output only. Type of billing method

.google.cloud.securitycenter.settings.v1beta1.BillingType billing_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for billingType.

getDefaultInstanceForType()

public BillingSettings getDefaultInstanceForType()
Returns
TypeDescription
BillingSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

Output only. The absolute point in time when the subscription expires. If this field is populated and billing_tier is STANDARD, this is indication of a point in the past when a PREMIUM access ended.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. The absolute point in time when the subscription expires. If this field is populated and billing_tier is STANDARD, this is indication of a point in the past when a PREMIUM access ended.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. The absolute point in time when the subscription expires. If this field is populated and billing_tier is STANDARD, this is indication of a point in the past when a PREMIUM access ended.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Output only. The absolute point in time when the subscription became effective. Can be compared to expire_time value to determine full contract duration

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

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. The absolute point in time when the subscription became effective. Can be compared to expire_time value to determine full contract duration

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

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The absolute point in time when the subscription became effective. Can be compared to expire_time value to determine full contract duration

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

Returns
TypeDescription
TimestampOrBuilder

hasExpireTime()

public boolean hasExpireTime()

Output only. The absolute point in time when the subscription expires. If this field is populated and billing_tier is STANDARD, this is indication of a point in the past when a PREMIUM access ended.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the expireTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The absolute point in time when the subscription became effective. Can be compared to expire_time value to determine full contract duration

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

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExpireTime(Timestamp value)

public BillingSettings.Builder mergeExpireTime(Timestamp value)

Output only. The absolute point in time when the subscription expires. If this field is populated and billing_tier is STANDARD, this is indication of a point in the past when a PREMIUM access ended.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BillingSettings.Builder

mergeFrom(BillingSettings other)

public BillingSettings.Builder mergeFrom(BillingSettings other)
Parameter
NameDescription
otherBillingSettings
Returns
TypeDescription
BillingSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BillingSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BillingSettings.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BillingSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BillingSettings.Builder
Overrides

mergeStartTime(Timestamp value)

public BillingSettings.Builder mergeStartTime(Timestamp value)

Output only. The absolute point in time when the subscription became effective. Can be compared to expire_time value to determine full contract duration

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BillingSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BillingSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BillingSettings.Builder
Overrides

setBillingTier(BillingTier value)

public BillingSettings.Builder setBillingTier(BillingTier value)

Output only. Billing tier selected by customer

.google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueBillingTier

The billingTier to set.

Returns
TypeDescription
BillingSettings.Builder

This builder for chaining.

setBillingTierValue(int value)

public BillingSettings.Builder setBillingTierValue(int value)

Output only. Billing tier selected by customer

.google.cloud.securitycenter.settings.v1beta1.BillingTier billing_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for billingTier to set.

Returns
TypeDescription
BillingSettings.Builder

This builder for chaining.

setBillingType(BillingType value)

public BillingSettings.Builder setBillingType(BillingType value)

Output only. Type of billing method

.google.cloud.securitycenter.settings.v1beta1.BillingType billing_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueBillingType

The billingType to set.

Returns
TypeDescription
BillingSettings.Builder

This builder for chaining.

setBillingTypeValue(int value)

public BillingSettings.Builder setBillingTypeValue(int value)

Output only. Type of billing method

.google.cloud.securitycenter.settings.v1beta1.BillingType billing_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for billingType to set.

Returns
TypeDescription
BillingSettings.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public BillingSettings.Builder setExpireTime(Timestamp value)

Output only. The absolute point in time when the subscription expires. If this field is populated and billing_tier is STANDARD, this is indication of a point in the past when a PREMIUM access ended.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BillingSettings.Builder

setExpireTime(Timestamp.Builder builderForValue)

public BillingSettings.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. The absolute point in time when the subscription expires. If this field is populated and billing_tier is STANDARD, this is indication of a point in the past when a PREMIUM access ended.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BillingSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BillingSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BillingSettings.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BillingSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BillingSettings.Builder
Overrides

setStartTime(Timestamp value)

public BillingSettings.Builder setStartTime(Timestamp value)

Output only. The absolute point in time when the subscription became effective. Can be compared to expire_time value to determine full contract duration

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BillingSettings.Builder

setStartTime(Timestamp.Builder builderForValue)

public BillingSettings.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. The absolute point in time when the subscription became effective. Can be compared to expire_time value to determine full contract duration

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BillingSettings.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BillingSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BillingSettings.Builder
Overrides