Class EntitlementEvent (3.25.0)

public final class EntitlementEvent extends GeneratedMessageV3 implements EntitlementEventOrBuilder

Represents Pub/Sub message content describing entitlement update.

Protobuf type google.cloud.channel.v1.EntitlementEvent

Static Fields

ENTITLEMENT_FIELD_NUMBER

public static final int ENTITLEMENT_FIELD_NUMBER
Field Value
TypeDescription
int

EVENT_TYPE_FIELD_NUMBER

public static final int EVENT_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EntitlementEvent getDefaultInstance()
Returns
TypeDescription
EntitlementEvent

getDescriptor()

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

newBuilder()

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

newBuilder(EntitlementEvent prototype)

public static EntitlementEvent.Builder newBuilder(EntitlementEvent prototype)
Parameter
NameDescription
prototypeEntitlementEvent
Returns
TypeDescription
EntitlementEvent.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public EntitlementEvent getDefaultInstanceForType()
Returns
TypeDescription
EntitlementEvent

getEntitlement()

public String getEntitlement()

Resource name of an entitlement of the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The entitlement.

getEntitlementBytes()

public ByteString getEntitlementBytes()

Resource name of an entitlement of the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for entitlement.

getEventType()

public EntitlementEvent.Type getEventType()

Type of event which happened on the entitlement.

.google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;

Returns
TypeDescription
EntitlementEvent.Type

The eventType.

getEventTypeValue()

public int getEventTypeValue()

Type of event which happened on the entitlement.

.google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for eventType.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 EntitlementEvent.Builder newBuilderForType()
Returns
TypeDescription
EntitlementEvent.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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