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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EntitlementEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public EntitlementEvent build()
Returns
buildPartial()
public EntitlementEvent buildPartial()
Returns
clear()
public EntitlementEvent.Builder clear()
Returns
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
clearEventType()
public EntitlementEvent.Builder clearEventType()
Type of event which happened on the entitlement.
.google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public EntitlementEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public EntitlementEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public EntitlementEvent.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public EntitlementEvent getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(EntitlementEvent other)
public EntitlementEvent.Builder mergeFrom(EntitlementEvent other)
Parameter
Returns
public EntitlementEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public EntitlementEvent.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EntitlementEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public EntitlementEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EntitlementEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final EntitlementEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides