Class CreateParticipantRequest.Builder (4.7.0)

public static final class CreateParticipantRequest.Builder extends GeneratedMessageV3.Builder<CreateParticipantRequest.Builder> implements CreateParticipantRequestOrBuilder

The request message for Participants.CreateParticipant.

Protobuf type google.cloud.dialogflow.v2.CreateParticipantRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateParticipantRequest build()
Returns
TypeDescription
CreateParticipantRequest

buildPartial()

public CreateParticipantRequest buildPartial()
Returns
TypeDescription
CreateParticipantRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateParticipantRequest.Builder clearParent()

Required. Resource identifier of the conversation adding the participant. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateParticipantRequest.Builder

This builder for chaining.

clearParticipant()

public CreateParticipantRequest.Builder clearParticipant()

Required. The participant to create.

.google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateParticipantRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateParticipantRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateParticipantRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Resource identifier of the conversation adding the participant. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource identifier of the conversation adding the participant. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParticipant()

public Participant getParticipant()

Required. The participant to create.

.google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Participant

The participant.

getParticipantBuilder()

public Participant.Builder getParticipantBuilder()

Required. The participant to create.

.google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Participant.Builder

getParticipantOrBuilder()

public ParticipantOrBuilder getParticipantOrBuilder()

Required. The participant to create.

.google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ParticipantOrBuilder

hasParticipant()

public boolean hasParticipant()

Required. The participant to create.

.google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the participant field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateParticipantRequest other)

public CreateParticipantRequest.Builder mergeFrom(CreateParticipantRequest other)
Parameter
NameDescription
otherCreateParticipantRequest
Returns
TypeDescription
CreateParticipantRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeParticipant(Participant value)

public CreateParticipantRequest.Builder mergeParticipant(Participant value)

Required. The participant to create.

.google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueParticipant
Returns
TypeDescription
CreateParticipantRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateParticipantRequest.Builder setParent(String value)

Required. Resource identifier of the conversation adding the participant. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateParticipantRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateParticipantRequest.Builder setParentBytes(ByteString value)

Required. Resource identifier of the conversation adding the participant. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateParticipantRequest.Builder

This builder for chaining.

setParticipant(Participant value)

public CreateParticipantRequest.Builder setParticipant(Participant value)

Required. The participant to create.

.google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueParticipant
Returns
TypeDescription
CreateParticipantRequest.Builder

setParticipant(Participant.Builder builderForValue)

public CreateParticipantRequest.Builder setParticipant(Participant.Builder builderForValue)

Required. The participant to create.

.google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueParticipant.Builder
Returns
TypeDescription
CreateParticipantRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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