Class SubscriberEvent (3.7.0)

public final class SubscriberEvent extends GeneratedMessageV3 implements SubscriberEventOrBuilder

Represents information which resellers will get as part of notification from Pub/Sub.

Protobuf type google.cloud.channel.v1.SubscriberEvent

Static Fields

CUSTOMER_EVENT_FIELD_NUMBER

public static final int CUSTOMER_EVENT_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITLEMENT_EVENT_FIELD_NUMBER

public static final int ENTITLEMENT_EVENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SubscriberEvent getDefaultInstance()
Returns
TypeDescription
SubscriberEvent

getDescriptor()

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

newBuilder()

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

newBuilder(SubscriberEvent prototype)

public static SubscriberEvent.Builder newBuilder(SubscriberEvent prototype)
Parameter
NameDescription
prototypeSubscriberEvent
Returns
TypeDescription
SubscriberEvent.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCustomerEvent()

public CustomerEvent getCustomerEvent()

Customer event sent as part of Pub/Sub event to partners.

.google.cloud.channel.v1.CustomerEvent customer_event = 1;

Returns
TypeDescription
CustomerEvent

The customerEvent.

getCustomerEventOrBuilder()

public CustomerEventOrBuilder getCustomerEventOrBuilder()

Customer event sent as part of Pub/Sub event to partners.

.google.cloud.channel.v1.CustomerEvent customer_event = 1;

Returns
TypeDescription
CustomerEventOrBuilder

getDefaultInstanceForType()

public SubscriberEvent getDefaultInstanceForType()
Returns
TypeDescription
SubscriberEvent

getEntitlementEvent()

public EntitlementEvent getEntitlementEvent()

Entitlement event sent as part of Pub/Sub event to partners.

.google.cloud.channel.v1.EntitlementEvent entitlement_event = 2;

Returns
TypeDescription
EntitlementEvent

The entitlementEvent.

getEntitlementEventOrBuilder()

public EntitlementEventOrBuilder getEntitlementEventOrBuilder()

Entitlement event sent as part of Pub/Sub event to partners.

.google.cloud.channel.v1.EntitlementEvent entitlement_event = 2;

Returns
TypeDescription
EntitlementEventOrBuilder

getEventCase()

public SubscriberEvent.EventCase getEventCase()
Returns
TypeDescription
SubscriberEvent.EventCase

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCustomerEvent()

public boolean hasCustomerEvent()

Customer event sent as part of Pub/Sub event to partners.

.google.cloud.channel.v1.CustomerEvent customer_event = 1;

Returns
TypeDescription
boolean

Whether the customerEvent field is set.

hasEntitlementEvent()

public boolean hasEntitlementEvent()

Entitlement event sent as part of Pub/Sub event to partners.

.google.cloud.channel.v1.EntitlementEvent entitlement_event = 2;

Returns
TypeDescription
boolean

Whether the entitlementEvent 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

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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