Class DraftEventData.Builder (0.14.1)

public static final class DraftEventData.Builder extends GeneratedMessageV3.Builder<DraftEventData.Builder> implements DraftEventDataOrBuilder

The data within all Draft events.

Protobuf type google.events.cloud.visionai.v1.DraftEventData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DraftEventData build()
Returns
TypeDescription
DraftEventData

buildPartial()

public DraftEventData buildPartial()
Returns
TypeDescription
DraftEventData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPayload()

public DraftEventData.Builder clearPayload()

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

optional .google.events.cloud.visionai.v1.Draft payload = 1;

Returns
TypeDescription
DraftEventData.Builder

clone()

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

getDefaultInstanceForType()

public DraftEventData getDefaultInstanceForType()
Returns
TypeDescription
DraftEventData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPayload()

public Draft getPayload()

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

optional .google.events.cloud.visionai.v1.Draft payload = 1;

Returns
TypeDescription
Draft

The payload.

getPayloadBuilder()

public Draft.Builder getPayloadBuilder()

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

optional .google.events.cloud.visionai.v1.Draft payload = 1;

Returns
TypeDescription
Draft.Builder

getPayloadOrBuilder()

public DraftOrBuilder getPayloadOrBuilder()

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

optional .google.events.cloud.visionai.v1.Draft payload = 1;

Returns
TypeDescription
DraftOrBuilder

hasPayload()

public boolean hasPayload()

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

optional .google.events.cloud.visionai.v1.Draft 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(DraftEventData other)

public DraftEventData.Builder mergeFrom(DraftEventData other)
Parameter
NameDescription
otherDraftEventData
Returns
TypeDescription
DraftEventData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePayload(Draft value)

public DraftEventData.Builder mergePayload(Draft value)

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

optional .google.events.cloud.visionai.v1.Draft payload = 1;

Parameter
NameDescription
valueDraft
Returns
TypeDescription
DraftEventData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPayload(Draft value)

public DraftEventData.Builder setPayload(Draft value)

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

optional .google.events.cloud.visionai.v1.Draft payload = 1;

Parameter
NameDescription
valueDraft
Returns
TypeDescription
DraftEventData.Builder

setPayload(Draft.Builder builderForValue)

public DraftEventData.Builder setPayload(Draft.Builder builderForValue)

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

optional .google.events.cloud.visionai.v1.Draft payload = 1;

Parameter
NameDescription
builderForValueDraft.Builder
Returns
TypeDescription
DraftEventData.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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