Class CreateParticipantRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateParticipantRequest.Builder>
com.google.cloud.dialogflow.v2.CreateParticipantRequest.Builder
All Implemented Interfaces:
CreateParticipantRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateParticipantRequest

public static final class CreateParticipantRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateParticipantRequest.Builder> implements CreateParticipantRequestOrBuilder
 The request message for
 [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant].
 
Protobuf type google.cloud.dialogflow.v2.CreateParticipantRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateParticipantRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateParticipantRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateParticipantRequest.Builder>
    • getDefaultInstanceForType

      public CreateParticipantRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CreateParticipantRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateParticipantRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateParticipantRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateParticipantRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateParticipantRequest.Builder>
    • mergeFrom

      public CreateParticipantRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateParticipantRequest.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getParent in interface CreateParticipantRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getParentBytes in interface CreateParticipantRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      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) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setParentBytes

      public CreateParticipantRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasParticipant

      public boolean hasParticipant()
       Required. The participant to create.
       
      .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasParticipant in interface CreateParticipantRequestOrBuilder
      Returns:
      Whether the participant field is set.
    • getParticipant

      public Participant getParticipant()
       Required. The participant to create.
       
      .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParticipant in interface CreateParticipantRequestOrBuilder
      Returns:
      The participant.
    • setParticipant

      public CreateParticipantRequest.Builder setParticipant(Participant value)
       Required. The participant to create.
       
      .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];
    • setParticipant

      public CreateParticipantRequest.Builder setParticipant(Participant.Builder builderForValue)
       Required. The participant to create.
       
      .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeParticipant

      public CreateParticipantRequest.Builder mergeParticipant(Participant value)
       Required. The participant to create.
       
      .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearParticipant

      public CreateParticipantRequest.Builder clearParticipant()
       Required. The participant to create.
       
      .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];
    • getParticipantBuilder

      public Participant.Builder getParticipantBuilder()
       Required. The participant to create.
       
      .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];
    • getParticipantOrBuilder

      public ParticipantOrBuilder getParticipantOrBuilder()
       Required. The participant to create.
       
      .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParticipantOrBuilder in interface CreateParticipantRequestOrBuilder