Class SubscriberEvent.Builder (3.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SubscriberEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SubscriberEvent.Builder
Overrides

build()

public SubscriberEvent build()
Returns
TypeDescription
SubscriberEvent

buildPartial()

public SubscriberEvent buildPartial()
Returns
TypeDescription
SubscriberEvent

clear()

public SubscriberEvent.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SubscriberEvent.Builder

clearEvent()

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

clearField(Descriptors.FieldDescriptor field)

public SubscriberEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SubscriberEvent.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SubscriberEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SubscriberEvent.Builder
Overrides

clone()

public SubscriberEvent.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CustomerEventOrBuilder

getDefaultInstanceForType()

public SubscriberEvent getDefaultInstanceForType()
Returns
TypeDescription
SubscriberEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
EntitlementEventOrBuilder

getEventCase()

public SubscriberEvent.EventCase getEventCase()
Returns
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCustomerEvent
Returns
TypeDescription
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
NameDescription
valueEntitlementEvent
Returns
TypeDescription
SubscriberEvent.Builder

mergeFrom(SubscriberEvent other)

public SubscriberEvent.Builder mergeFrom(SubscriberEvent other)
Parameter
NameDescription
otherSubscriberEvent
Returns
TypeDescription
SubscriberEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SubscriberEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubscriberEvent.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SubscriberEvent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SubscriberEvent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SubscriberEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCustomerEvent
Returns
TypeDescription
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
NameDescription
builderForValueCustomerEvent.Builder
Returns
TypeDescription
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
NameDescription
valueEntitlementEvent
Returns
TypeDescription
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
NameDescription
builderForValueEntitlementEvent.Builder
Returns
TypeDescription
SubscriberEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SubscriberEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SubscriberEvent.Builder
Overrides

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

public SubscriberEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SubscriberEvent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SubscriberEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SubscriberEvent.Builder
Overrides