Class SubscriberEvent.Builder (3.55.0)

public static final class SubscriberEvent.Builder extends GeneratedMessageV3.Builder<SubscriberEvent.Builder> implements SubscriberEventOrBuilder

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

Protobuf type google.cloud.channel.v1.SubscriberEvent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SubscriberEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SubscriberEvent.Builder
Overrides

build()

public SubscriberEvent build()
Returns
Type Description
SubscriberEvent

buildPartial()

public SubscriberEvent buildPartial()
Returns
Type Description
SubscriberEvent

clear()

public SubscriberEvent.Builder clear()
Returns
Type Description
SubscriberEvent.Builder
Overrides

clearCustomerEvent()

public SubscriberEvent.Builder clearCustomerEvent()

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

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

Returns
Type Description
SubscriberEvent.Builder

clearEntitlementEvent()

public SubscriberEvent.Builder clearEntitlementEvent()

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

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

Returns
Type Description
SubscriberEvent.Builder

clearEvent()

public SubscriberEvent.Builder clearEvent()
Returns
Type Description
SubscriberEvent.Builder

clearField(Descriptors.FieldDescriptor field)

public SubscriberEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SubscriberEvent.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SubscriberEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SubscriberEvent.Builder
Overrides

clone()

public SubscriberEvent.Builder clone()
Returns
Type Description
SubscriberEvent.Builder
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
Type Description
CustomerEvent

The customerEvent.

getCustomerEventBuilder()

public CustomerEvent.Builder getCustomerEventBuilder()

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

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

Returns
Type Description
CustomerEvent.Builder

getCustomerEventOrBuilder()

public CustomerEventOrBuilder getCustomerEventOrBuilder()

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

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

Returns
Type Description
CustomerEventOrBuilder

getDefaultInstanceForType()

public SubscriberEvent getDefaultInstanceForType()
Returns
Type Description
SubscriberEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEntitlementEvent()

public EntitlementEvent getEntitlementEvent()

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

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

Returns
Type Description
EntitlementEvent

The entitlementEvent.

getEntitlementEventBuilder()

public EntitlementEvent.Builder getEntitlementEventBuilder()

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

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

Returns
Type Description
EntitlementEvent.Builder

getEntitlementEventOrBuilder()

public EntitlementEventOrBuilder getEntitlementEventOrBuilder()

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

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

Returns
Type Description
EntitlementEventOrBuilder

getEventCase()

public SubscriberEvent.EventCase getEventCase()
Returns
Type Description
SubscriberEvent.EventCase

hasCustomerEvent()

public boolean hasCustomerEvent()

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

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

Returns
Type Description
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
Type Description
boolean

Whether the entitlementEvent field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomerEvent(CustomerEvent value)

public SubscriberEvent.Builder mergeCustomerEvent(CustomerEvent value)

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

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

Parameter
Name Description
value CustomerEvent
Returns
Type Description
SubscriberEvent.Builder

mergeEntitlementEvent(EntitlementEvent value)

public SubscriberEvent.Builder mergeEntitlementEvent(EntitlementEvent value)

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

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

Parameter
Name Description
value EntitlementEvent
Returns
Type Description
SubscriberEvent.Builder

mergeFrom(SubscriberEvent other)

public SubscriberEvent.Builder mergeFrom(SubscriberEvent other)
Parameter
Name Description
other SubscriberEvent
Returns
Type Description
SubscriberEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SubscriberEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscriberEvent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SubscriberEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SubscriberEvent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SubscriberEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubscriberEvent.Builder
Overrides

setCustomerEvent(CustomerEvent value)

public SubscriberEvent.Builder setCustomerEvent(CustomerEvent value)

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

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

Parameter
Name Description
value CustomerEvent
Returns
Type Description
SubscriberEvent.Builder

setCustomerEvent(CustomerEvent.Builder builderForValue)

public SubscriberEvent.Builder setCustomerEvent(CustomerEvent.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue CustomerEvent.Builder
Returns
Type Description
SubscriberEvent.Builder

setEntitlementEvent(EntitlementEvent value)

public SubscriberEvent.Builder setEntitlementEvent(EntitlementEvent value)

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

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

Parameter
Name Description
value EntitlementEvent
Returns
Type Description
SubscriberEvent.Builder

setEntitlementEvent(EntitlementEvent.Builder builderForValue)

public SubscriberEvent.Builder setEntitlementEvent(EntitlementEvent.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue EntitlementEvent.Builder
Returns
Type Description
SubscriberEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SubscriberEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SubscriberEvent.Builder
Overrides

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

public SubscriberEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SubscriberEvent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SubscriberEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubscriberEvent.Builder
Overrides