Class PhraseSetEventData.Builder (0.15.0)

public static final class PhraseSetEventData.Builder extends GeneratedMessageV3.Builder<PhraseSetEventData.Builder> implements PhraseSetEventDataOrBuilder

The data within all PhraseSet events.

Protobuf type google.events.cloud.speech.v1.PhraseSetEventData

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PhraseSetEventData build()
Returns
Type Description
PhraseSetEventData

buildPartial()

public PhraseSetEventData buildPartial()
Returns
Type Description
PhraseSetEventData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public PhraseSetEventData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PhraseSetEventData.Builder
Overrides

clearPayload()

public PhraseSetEventData.Builder clearPayload()

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

.google.events.cloud.speech.v1.PhraseSet payload = 1;

Returns
Type Description
PhraseSetEventData.Builder

clone()

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

getDefaultInstanceForType()

public PhraseSetEventData getDefaultInstanceForType()
Returns
Type Description
PhraseSetEventData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPayload()

public PhraseSet getPayload()

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

.google.events.cloud.speech.v1.PhraseSet payload = 1;

Returns
Type Description
PhraseSet

The payload.

getPayloadBuilder()

public PhraseSet.Builder getPayloadBuilder()

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

.google.events.cloud.speech.v1.PhraseSet payload = 1;

Returns
Type Description
PhraseSet.Builder

getPayloadOrBuilder()

public PhraseSetOrBuilder getPayloadOrBuilder()

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

.google.events.cloud.speech.v1.PhraseSet payload = 1;

Returns
Type Description
PhraseSetOrBuilder

hasPayload()

public boolean hasPayload()

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

.google.events.cloud.speech.v1.PhraseSet 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(PhraseSetEventData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PhraseSetEventData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PhraseSetEventData.Builder
Overrides

mergePayload(PhraseSet value)

public PhraseSetEventData.Builder mergePayload(PhraseSet value)

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

.google.events.cloud.speech.v1.PhraseSet payload = 1;

Parameter
Name Description
value PhraseSet
Returns
Type Description
PhraseSetEventData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPayload(PhraseSet value)

public PhraseSetEventData.Builder setPayload(PhraseSet value)

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

.google.events.cloud.speech.v1.PhraseSet payload = 1;

Parameter
Name Description
value PhraseSet
Returns
Type Description
PhraseSetEventData.Builder

setPayload(PhraseSet.Builder builderForValue)

public PhraseSetEventData.Builder setPayload(PhraseSet.Builder builderForValue)

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

.google.events.cloud.speech.v1.PhraseSet payload = 1;

Parameter
Name Description
builderForValue PhraseSet.Builder
Returns
Type Description
PhraseSetEventData.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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