Class MembershipEventData.Builder (0.14.1)

public static final class MembershipEventData.Builder extends GeneratedMessageV3.Builder<MembershipEventData.Builder> implements MembershipEventDataOrBuilder

The data within all Membership events.

Protobuf type google.events.cloud.gkehub.v1.MembershipEventData

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MembershipEventData build()
Returns
TypeDescription
MembershipEventData

buildPartial()

public MembershipEventData buildPartial()
Returns
TypeDescription
MembershipEventData

clear()

public MembershipEventData.Builder clear()
Returns
TypeDescription
MembershipEventData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPayload()

public MembershipEventData.Builder clearPayload()

Optional. The Membership event payload. Unset for deletion events.

optional .google.events.cloud.gkehub.v1.Membership payload = 1;

Returns
TypeDescription
MembershipEventData.Builder

clone()

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

getDefaultInstanceForType()

public MembershipEventData getDefaultInstanceForType()
Returns
TypeDescription
MembershipEventData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPayload()

public Membership getPayload()

Optional. The Membership event payload. Unset for deletion events.

optional .google.events.cloud.gkehub.v1.Membership payload = 1;

Returns
TypeDescription
Membership

The payload.

getPayloadBuilder()

public Membership.Builder getPayloadBuilder()

Optional. The Membership event payload. Unset for deletion events.

optional .google.events.cloud.gkehub.v1.Membership payload = 1;

Returns
TypeDescription
Membership.Builder

getPayloadOrBuilder()

public MembershipOrBuilder getPayloadOrBuilder()

Optional. The Membership event payload. Unset for deletion events.

optional .google.events.cloud.gkehub.v1.Membership payload = 1;

Returns
TypeDescription
MembershipOrBuilder

hasPayload()

public boolean hasPayload()

Optional. The Membership event payload. Unset for deletion events.

optional .google.events.cloud.gkehub.v1.Membership payload = 1;

Returns
TypeDescription
boolean

Whether the payload field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MembershipEventData other)

public MembershipEventData.Builder mergeFrom(MembershipEventData other)
Parameter
NameDescription
otherMembershipEventData
Returns
TypeDescription
MembershipEventData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePayload(Membership value)

public MembershipEventData.Builder mergePayload(Membership value)

Optional. The Membership event payload. Unset for deletion events.

optional .google.events.cloud.gkehub.v1.Membership payload = 1;

Parameter
NameDescription
valueMembership
Returns
TypeDescription
MembershipEventData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MembershipEventData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MembershipEventData.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setPayload(Membership value)

public MembershipEventData.Builder setPayload(Membership value)

Optional. The Membership event payload. Unset for deletion events.

optional .google.events.cloud.gkehub.v1.Membership payload = 1;

Parameter
NameDescription
valueMembership
Returns
TypeDescription
MembershipEventData.Builder

setPayload(Membership.Builder builderForValue)

public MembershipEventData.Builder setPayload(Membership.Builder builderForValue)

Optional. The Membership event payload. Unset for deletion events.

optional .google.events.cloud.gkehub.v1.Membership payload = 1;

Parameter
NameDescription
builderForValueMembership.Builder
Returns
TypeDescription
MembershipEventData.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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