Class AssignmentProtocol (0.52.0)

public final class AssignmentProtocol extends GeneratedMessageV3 implements AssignmentProtocolOrBuilder

Assignment protocol for a license pool.

Protobuf type google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol

Static Fields

AUTO_ASSIGNMENT_TYPE_FIELD_NUMBER

public static final int AUTO_ASSIGNMENT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MANUAL_ASSIGNMENT_TYPE_FIELD_NUMBER

public static final int MANUAL_ASSIGNMENT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AssignmentProtocol getDefaultInstance()
Returns
Type Description
AssignmentProtocol

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AssignmentProtocol.Builder newBuilder()
Returns
Type Description
AssignmentProtocol.Builder

newBuilder(AssignmentProtocol prototype)

public static AssignmentProtocol.Builder newBuilder(AssignmentProtocol prototype)
Parameter
Name Description
prototype AssignmentProtocol
Returns
Type Description
AssignmentProtocol.Builder

parseDelimitedFrom(InputStream input)

public static AssignmentProtocol parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssignmentProtocol parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AssignmentProtocol parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AssignmentProtocol parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AssignmentProtocol parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AssignmentProtocol parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AssignmentProtocol parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AssignmentProtocol parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AssignmentProtocol parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssignmentProtocol parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AssignmentProtocol parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AssignmentProtocol parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssignmentProtocol
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AssignmentProtocol> parser()
Returns
Type Description
Parser<AssignmentProtocol>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAssignmentTypeCase()

public AssignmentProtocol.AssignmentTypeCase getAssignmentTypeCase()
Returns
Type Description
AssignmentProtocol.AssignmentTypeCase

getAutoAssignmentType()

public AssignmentProtocol.AutoAssignmentType getAutoAssignmentType()

Allow automatic assignments triggered by data plane operations.

.google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.AutoAssignmentType auto_assignment_type = 3;

Returns
Type Description
AssignmentProtocol.AutoAssignmentType

The autoAssignmentType.

getAutoAssignmentTypeOrBuilder()

public AssignmentProtocol.AutoAssignmentTypeOrBuilder getAutoAssignmentTypeOrBuilder()

Allow automatic assignments triggered by data plane operations.

.google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.AutoAssignmentType auto_assignment_type = 3;

Returns
Type Description
AssignmentProtocol.AutoAssignmentTypeOrBuilder

getDefaultInstanceForType()

public AssignmentProtocol getDefaultInstanceForType()
Returns
Type Description
AssignmentProtocol

getManualAssignmentType()

public AssignmentProtocol.ManualAssignmentType getManualAssignmentType()

Allow manual assignments triggered by administrative operations only.

.google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.ManualAssignmentType manual_assignment_type = 2;

Returns
Type Description
AssignmentProtocol.ManualAssignmentType

The manualAssignmentType.

getManualAssignmentTypeOrBuilder()

public AssignmentProtocol.ManualAssignmentTypeOrBuilder getManualAssignmentTypeOrBuilder()

Allow manual assignments triggered by administrative operations only.

.google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.ManualAssignmentType manual_assignment_type = 2;

Returns
Type Description
AssignmentProtocol.ManualAssignmentTypeOrBuilder

getParserForType()

public Parser<AssignmentProtocol> getParserForType()
Returns
Type Description
Parser<AssignmentProtocol>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAutoAssignmentType()

public boolean hasAutoAssignmentType()

Allow automatic assignments triggered by data plane operations.

.google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.AutoAssignmentType auto_assignment_type = 3;

Returns
Type Description
boolean

Whether the autoAssignmentType field is set.

hasManualAssignmentType()

public boolean hasManualAssignmentType()

Allow manual assignments triggered by administrative operations only.

.google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.ManualAssignmentType manual_assignment_type = 2;

Returns
Type Description
boolean

Whether the manualAssignmentType field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AssignmentProtocol.Builder newBuilderForType()
Returns
Type Description
AssignmentProtocol.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AssignmentProtocol.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AssignmentProtocol.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AssignmentProtocol.Builder toBuilder()
Returns
Type Description
AssignmentProtocol.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException