Class DraftEventData.Builder (0.16.0)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DraftEventData build()
Returns
Type Description
DraftEventData

buildPartial()

public DraftEventData buildPartial()
Returns
Type Description
DraftEventData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public DraftEventData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
DraftEventData.Builder

clone()

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

getDefaultInstanceForType()

public DraftEventData getDefaultInstanceForType()
Returns
Type Description
DraftEventData

getDescriptorForType()

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

hasPayload()

public boolean hasPayload()

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

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

Returns
Type Description
boolean

Whether the payload field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DraftEventData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DraftEventData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Draft
Returns
Type Description
DraftEventData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public DraftEventData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Draft
Returns
Type Description
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
Name Description
builderForValue Draft.Builder
Returns
Type Description
DraftEventData.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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