Class EntitlementEvent.Builder (3.27.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EntitlementEvent build()
Returns
TypeDescription
EntitlementEvent

buildPartial()

public EntitlementEvent buildPartial()
Returns
TypeDescription
EntitlementEvent

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public EntitlementEvent.Builder clone()
Returns
TypeDescription
EntitlementEvent.Builder
Overrides

getDefaultInstanceForType()

public EntitlementEvent getDefaultInstanceForType()
Returns
TypeDescription
EntitlementEvent

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EntitlementEvent other)

public EntitlementEvent.Builder mergeFrom(EntitlementEvent other)
Parameter
NameDescription
otherEntitlementEvent
Returns
TypeDescription
EntitlementEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EntitlementEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The entitlement to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for entitlement to set.

Returns
TypeDescription
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
NameDescription
valueEntitlementEvent.Type

The eventType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
EntitlementEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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