Class RestoreAgentRequest.Builder

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

    public static final class RestoreAgentRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RestoreAgentRequest.Builder>
    implements RestoreAgentRequestOrBuilder
     The request message for
     [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
     
    Protobuf type google.cloud.dialogflow.v2.RestoreAgentRequest
    • 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<RestoreAgentRequest.Builder>
      • clear

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

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

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

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

        public RestoreAgentRequest.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<RestoreAgentRequest.Builder>
      • setField

        public RestoreAgentRequest.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<RestoreAgentRequest.Builder>
      • clearField

        public RestoreAgentRequest.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<RestoreAgentRequest.Builder>
      • clearOneof

        public RestoreAgentRequest.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<RestoreAgentRequest.Builder>
      • setRepeatedField

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

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

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

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

        public RestoreAgentRequest.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<RestoreAgentRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The project that the agent to restore is associated with.
         Format: `projects/<Project ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface RestoreAgentRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The project that the agent to restore is associated with.
         Format: `projects/<Project ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface RestoreAgentRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public RestoreAgentRequest.Builder setParent​(String value)
         Required. The project that the agent to restore is associated with.
         Format: `projects/<Project 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 RestoreAgentRequest.Builder clearParent()
         Required. The project that the agent to restore is associated with.
         Format: `projects/<Project ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public RestoreAgentRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The project that the agent to restore is associated with.
         Format: `projects/<Project 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.
      • hasAgentUri

        public boolean hasAgentUri()
         The URI to a Google Cloud Storage file containing the agent to restore.
         Note: The URI must start with "gs://".
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string agent_uri = 2;
        Specified by:
        hasAgentUri in interface RestoreAgentRequestOrBuilder
        Returns:
        Whether the agentUri field is set.
      • getAgentUri

        public String getAgentUri()
         The URI to a Google Cloud Storage file containing the agent to restore.
         Note: The URI must start with "gs://".
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string agent_uri = 2;
        Specified by:
        getAgentUri in interface RestoreAgentRequestOrBuilder
        Returns:
        The agentUri.
      • getAgentUriBytes

        public com.google.protobuf.ByteString getAgentUriBytes()
         The URI to a Google Cloud Storage file containing the agent to restore.
         Note: The URI must start with "gs://".
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string agent_uri = 2;
        Specified by:
        getAgentUriBytes in interface RestoreAgentRequestOrBuilder
        Returns:
        The bytes for agentUri.
      • setAgentUri

        public RestoreAgentRequest.Builder setAgentUri​(String value)
         The URI to a Google Cloud Storage file containing the agent to restore.
         Note: The URI must start with "gs://".
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string agent_uri = 2;
        Parameters:
        value - The agentUri to set.
        Returns:
        This builder for chaining.
      • clearAgentUri

        public RestoreAgentRequest.Builder clearAgentUri()
         The URI to a Google Cloud Storage file containing the agent to restore.
         Note: The URI must start with "gs://".
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string agent_uri = 2;
        Returns:
        This builder for chaining.
      • setAgentUriBytes

        public RestoreAgentRequest.Builder setAgentUriBytes​(com.google.protobuf.ByteString value)
         The URI to a Google Cloud Storage file containing the agent to restore.
         Note: The URI must start with "gs://".
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string agent_uri = 2;
        Parameters:
        value - The bytes for agentUri to set.
        Returns:
        This builder for chaining.
      • hasAgentContent

        public boolean hasAgentContent()
         Zip compressed raw byte content for agent.
         
        bytes agent_content = 3;
        Specified by:
        hasAgentContent in interface RestoreAgentRequestOrBuilder
        Returns:
        Whether the agentContent field is set.
      • getAgentContent

        public com.google.protobuf.ByteString getAgentContent()
         Zip compressed raw byte content for agent.
         
        bytes agent_content = 3;
        Specified by:
        getAgentContent in interface RestoreAgentRequestOrBuilder
        Returns:
        The agentContent.
      • setAgentContent

        public RestoreAgentRequest.Builder setAgentContent​(com.google.protobuf.ByteString value)
         Zip compressed raw byte content for agent.
         
        bytes agent_content = 3;
        Parameters:
        value - The agentContent to set.
        Returns:
        This builder for chaining.
      • clearAgentContent

        public RestoreAgentRequest.Builder clearAgentContent()
         Zip compressed raw byte content for agent.
         
        bytes agent_content = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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