Class Constraints.Builder (3.25.0)

public static final class Constraints.Builder extends GeneratedMessageV3.Builder<Constraints.Builder> implements ConstraintsOrBuilder

Represents the constraints for buying the Offer.

Protobuf type google.cloud.channel.v1.Constraints

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Constraints build()
Returns
TypeDescription
Constraints

buildPartial()

public Constraints buildPartial()
Returns
TypeDescription
Constraints

clear()

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

clearCustomerConstraints()

public Constraints.Builder clearCustomerConstraints()

Represents constraints required to purchase the Offer for a customer.

.google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;

Returns
TypeDescription
Constraints.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCustomerConstraints()

public CustomerConstraints getCustomerConstraints()

Represents constraints required to purchase the Offer for a customer.

.google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;

Returns
TypeDescription
CustomerConstraints

The customerConstraints.

getCustomerConstraintsBuilder()

public CustomerConstraints.Builder getCustomerConstraintsBuilder()

Represents constraints required to purchase the Offer for a customer.

.google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;

Returns
TypeDescription
CustomerConstraints.Builder

getCustomerConstraintsOrBuilder()

public CustomerConstraintsOrBuilder getCustomerConstraintsOrBuilder()

Represents constraints required to purchase the Offer for a customer.

.google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;

Returns
TypeDescription
CustomerConstraintsOrBuilder

getDefaultInstanceForType()

public Constraints getDefaultInstanceForType()
Returns
TypeDescription
Constraints

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasCustomerConstraints()

public boolean hasCustomerConstraints()

Represents constraints required to purchase the Offer for a customer.

.google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;

Returns
TypeDescription
boolean

Whether the customerConstraints field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomerConstraints(CustomerConstraints value)

public Constraints.Builder mergeCustomerConstraints(CustomerConstraints value)

Represents constraints required to purchase the Offer for a customer.

.google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;

Parameter
NameDescription
valueCustomerConstraints
Returns
TypeDescription
Constraints.Builder

mergeFrom(Constraints other)

public Constraints.Builder mergeFrom(Constraints other)
Parameter
NameDescription
otherConstraints
Returns
TypeDescription
Constraints.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomerConstraints(CustomerConstraints value)

public Constraints.Builder setCustomerConstraints(CustomerConstraints value)

Represents constraints required to purchase the Offer for a customer.

.google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;

Parameter
NameDescription
valueCustomerConstraints
Returns
TypeDescription
Constraints.Builder

setCustomerConstraints(CustomerConstraints.Builder builderForValue)

public Constraints.Builder setCustomerConstraints(CustomerConstraints.Builder builderForValue)

Represents constraints required to purchase the Offer for a customer.

.google.cloud.channel.v1.CustomerConstraints customer_constraints = 1;

Parameter
NameDescription
builderForValueCustomerConstraints.Builder
Returns
TypeDescription
Constraints.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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