Class GetIntentRequest.Builder

  • All Implemented Interfaces:
    GetIntentRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    GetIntentRequest

    public static final class GetIntentRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GetIntentRequest.Builder>
    implements GetIntentRequestOrBuilder
     The request message for
     [Intents.GetIntent][google.cloud.dialogflow.v2beta1.Intents.GetIntent].
     
    Protobuf type google.cloud.dialogflow.v2beta1.GetIntentRequest
    • 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<GetIntentRequest.Builder>
      • clear

        public GetIntentRequest.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.GeneratedMessageV3.Builder<GetIntentRequest.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<GetIntentRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public GetIntentRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GetIntentRequest.Builder>
      • setField

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

        public GetIntentRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GetIntentRequest.Builder>
      • clearOneof

        public GetIntentRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GetIntentRequest.Builder>
      • setRepeatedField

        public GetIntentRequest.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<GetIntentRequest.Builder>
      • addRepeatedField

        public GetIntentRequest.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<GetIntentRequest.Builder>
      • mergeFrom

        public GetIntentRequest.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<GetIntentRequest.Builder>
      • isInitialized

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

        public GetIntentRequest.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<GetIntentRequest.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. The name of the intent.
         Supported formats:
        
         - `projects/<Project ID>/agent/intents/<Intent ID>`
         - `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface GetIntentRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The name of the intent.
         Supported formats:
        
         - `projects/<Project ID>/agent/intents/<Intent ID>`
         - `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface GetIntentRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public GetIntentRequest.Builder setName​(String value)
         Required. The name of the intent.
         Supported formats:
        
         - `projects/<Project ID>/agent/intents/<Intent ID>`
         - `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public GetIntentRequest.Builder clearName()
         Required. The name of the intent.
         Supported formats:
        
         - `projects/<Project ID>/agent/intents/<Intent ID>`
         - `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public GetIntentRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The name of the intent.
         Supported formats:
        
         - `projects/<Project ID>/agent/intents/<Intent ID>`
         - `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getLanguageCode

        public String getLanguageCode()
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCode in interface GetIntentRequestOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCodeBytes in interface GetIntentRequestOrBuilder
        Returns:
        The bytes for languageCode.
      • setLanguageCode

        public GetIntentRequest.Builder setLanguageCode​(String value)
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The languageCode to set.
        Returns:
        This builder for chaining.
      • clearLanguageCode

        public GetIntentRequest.Builder clearLanguageCode()
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setLanguageCodeBytes

        public GetIntentRequest.Builder setLanguageCodeBytes​(com.google.protobuf.ByteString value)
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for languageCode to set.
        Returns:
        This builder for chaining.
      • getIntentViewValue

        public int getIntentViewValue()
         Optional. The resource view to apply to the returned intent.
         
        .google.cloud.dialogflow.v2beta1.IntentView intent_view = 3;
        Specified by:
        getIntentViewValue in interface GetIntentRequestOrBuilder
        Returns:
        The enum numeric value on the wire for intentView.
      • setIntentViewValue

        public GetIntentRequest.Builder setIntentViewValue​(int value)
         Optional. The resource view to apply to the returned intent.
         
        .google.cloud.dialogflow.v2beta1.IntentView intent_view = 3;
        Parameters:
        value - The enum numeric value on the wire for intentView to set.
        Returns:
        This builder for chaining.
      • getIntentView

        public IntentView getIntentView()
         Optional. The resource view to apply to the returned intent.
         
        .google.cloud.dialogflow.v2beta1.IntentView intent_view = 3;
        Specified by:
        getIntentView in interface GetIntentRequestOrBuilder
        Returns:
        The intentView.
      • setIntentView

        public GetIntentRequest.Builder setIntentView​(IntentView value)
         Optional. The resource view to apply to the returned intent.
         
        .google.cloud.dialogflow.v2beta1.IntentView intent_view = 3;
        Parameters:
        value - The intentView to set.
        Returns:
        This builder for chaining.
      • clearIntentView

        public GetIntentRequest.Builder clearIntentView()
         Optional. The resource view to apply to the returned intent.
         
        .google.cloud.dialogflow.v2beta1.IntentView intent_view = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final GetIntentRequest.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<GetIntentRequest.Builder>
      • mergeUnknownFields

        public final GetIntentRequest.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<GetIntentRequest.Builder>