Class 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.GeneratedMessageV3.Builder<CreateParticipantRequest.Builder>
    implements CreateParticipantRequestOrBuilder
     The request message for
     [Participants.CreateParticipant][google.cloud.dialogflow.v2beta1.Participants.CreateParticipant].
     
    Protobuf type google.cloud.dialogflow.v2beta1.CreateParticipantRequest
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public CreateParticipantRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateParticipantRequest.Builder>
      • addRepeatedField

        public CreateParticipantRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateParticipantRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v2beta1.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.v2beta1.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.v2beta1.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED];
      • setParticipant

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

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

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

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

        public final CreateParticipantRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateParticipantRequest.Builder>
      • mergeUnknownFields

        public final CreateParticipantRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateParticipantRequest.Builder>