Class EntitlementEvent.Builder (3.50.0)

public static final class EntitlementEvent.Builder extends GeneratedMessageV3.Builder<EntitlementEvent.Builder> implements EntitlementEventOrBuilder

Represents Pub/Sub message content describing entitlement update.

Protobuf type google.cloud.channel.v1.EntitlementEvent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EntitlementEvent build()
Returns
Type Description
EntitlementEvent

buildPartial()

public EntitlementEvent buildPartial()
Returns
Type Description
EntitlementEvent

clear()

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

clearEntitlement()

public EntitlementEvent.Builder clearEntitlement()

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
Type Description
EntitlementEvent.Builder

This builder for chaining.

clearEventType()

public EntitlementEvent.Builder clearEventType()

Type of event which happened on the entitlement.

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

Returns
Type Description
EntitlementEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public EntitlementEvent.Builder clone()
Returns
Type Description
EntitlementEvent.Builder
Overrides

getDefaultInstanceForType()

public EntitlementEvent getDefaultInstanceForType()
Returns
Type Description
EntitlementEvent

getDescriptorForType()

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

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
Type Description
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
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for eventType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EntitlementEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEntitlement(String value)

public EntitlementEvent.Builder setEntitlement(String value)

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

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

Parameter
Name Description
value String

The entitlement to set.

Returns
Type Description
EntitlementEvent.Builder

This builder for chaining.

setEntitlementBytes(ByteString value)

public EntitlementEvent.Builder setEntitlementBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for entitlement to set.

Returns
Type Description
EntitlementEvent.Builder

This builder for chaining.

setEventType(EntitlementEvent.Type value)

public EntitlementEvent.Builder setEventType(EntitlementEvent.Type value)

Type of event which happened on the entitlement.

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

Parameter
Name Description
value EntitlementEvent.Type

The eventType to set.

Returns
Type Description
EntitlementEvent.Builder

This builder for chaining.

setEventTypeValue(int value)

public EntitlementEvent.Builder setEventTypeValue(int value)

Type of event which happened on the entitlement.

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

Parameter
Name Description
value int

The enum numeric value on the wire for eventType to set.

Returns
Type Description
EntitlementEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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