Class Constraints

public final class Constraints extends GeneratedMessageV3 implements ConstraintsOrBuilder

Represents the constraints for buying the Offer.

Protobuf type google.cloud.channel.v1.Constraints

Fields

CUSTOMER_CONSTRAINTS_FIELD_NUMBER

public static final int CUSTOMER_CONSTRAINTS_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

getDefaultInstance()

public static Constraints getDefaultInstance()
Returns
TypeDescription
Constraints

getDefaultInstanceForType()

public Constraints getDefaultInstanceForType()
Returns
TypeDescription
Constraints

getDescriptor()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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.

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

newBuilder()

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

newBuilder(Constraints prototype)

public static Constraints.Builder newBuilder(Constraints prototype)
Parameter
NameDescription
prototypeConstraints
Returns
TypeDescription
Constraints.Builder

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

toBuilder()

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

writeTo(CodedOutputStream output)

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