Class ExportPlaybookRequest.Builder

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

public static final class ExportPlaybookRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExportPlaybookRequest.Builder> implements ExportPlaybookRequestOrBuilder
 The request message for
 [Playbooks.ExportPlaybook][google.cloud.dialogflow.cx.v3beta1.Playbooks.ExportPlaybook].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ExportPlaybookRequest
  • 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<ExportPlaybookRequest.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<ExportPlaybookRequest.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<ExportPlaybookRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getName()
       Required. The name of the playbook to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface ExportPlaybookRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the playbook to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface ExportPlaybookRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ExportPlaybookRequest.Builder setName(String value)
       Required. The name of the playbook to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
       
      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 ExportPlaybookRequest.Builder clearName()
       Required. The name of the playbook to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExportPlaybookRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the playbook to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
       
      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.
    • getPlaybookUri

      public String getPlaybookUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the playbook
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized playbook is returned inline.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string playbook_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPlaybookUri in interface ExportPlaybookRequestOrBuilder
      Returns:
      The playbookUri.
    • getPlaybookUriBytes

      public com.google.protobuf.ByteString getPlaybookUriBytes()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the playbook
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized playbook is returned inline.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string playbook_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPlaybookUriBytes in interface ExportPlaybookRequestOrBuilder
      Returns:
      The bytes for playbookUri.
    • setPlaybookUri

      public ExportPlaybookRequest.Builder setPlaybookUri(String value)
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the playbook
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized playbook is returned inline.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string playbook_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The playbookUri to set.
      Returns:
      This builder for chaining.
    • clearPlaybookUri

      public ExportPlaybookRequest.Builder clearPlaybookUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the playbook
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized playbook is returned inline.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string playbook_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPlaybookUriBytes

      public ExportPlaybookRequest.Builder setPlaybookUriBytes(com.google.protobuf.ByteString value)
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the playbook
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized playbook is returned inline.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string playbook_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for playbookUri to set.
      Returns:
      This builder for chaining.
    • getDataFormatValue

      public int getDataFormatValue()
       Optional. The data format of the exported agent. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportPlaybookRequest.DataFormat data_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataFormatValue in interface ExportPlaybookRequestOrBuilder
      Returns:
      The enum numeric value on the wire for dataFormat.
    • setDataFormatValue

      public ExportPlaybookRequest.Builder setDataFormatValue(int value)
       Optional. The data format of the exported agent. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportPlaybookRequest.DataFormat data_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for dataFormat to set.
      Returns:
      This builder for chaining.
    • getDataFormat

      public ExportPlaybookRequest.DataFormat getDataFormat()
       Optional. The data format of the exported agent. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportPlaybookRequest.DataFormat data_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataFormat in interface ExportPlaybookRequestOrBuilder
      Returns:
      The dataFormat.
    • setDataFormat

       Optional. The data format of the exported agent. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportPlaybookRequest.DataFormat data_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dataFormat to set.
      Returns:
      This builder for chaining.
    • clearDataFormat

      public ExportPlaybookRequest.Builder clearDataFormat()
       Optional. The data format of the exported agent. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportPlaybookRequest.DataFormat data_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.