Class ListTestCasesRequest.Builder

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

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

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

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

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

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

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

      public String getParent()
       Required. The agent to list all pages for.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ListTestCasesRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The agent to list all pages for.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ListTestCasesRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ListTestCasesRequest.Builder setParent(String value)
       Required. The agent to list all pages for.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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 ListTestCasesRequest.Builder clearParent()
       Required. The agent to list all pages for.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ListTestCasesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The agent to list all pages for.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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.
    • getPageSize

      public int getPageSize()
       The maximum number of items to return in a single page. By default 20.
       Note that when TestCaseView = FULL, the maximum page size allowed is 20.
       When TestCaseView = BASIC, the maximum page size allowed is 500.
       
      int32 page_size = 2;
      Specified by:
      getPageSize in interface ListTestCasesRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListTestCasesRequest.Builder setPageSize(int value)
       The maximum number of items to return in a single page. By default 20.
       Note that when TestCaseView = FULL, the maximum page size allowed is 20.
       When TestCaseView = BASIC, the maximum page size allowed is 500.
       
      int32 page_size = 2;
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListTestCasesRequest.Builder clearPageSize()
       The maximum number of items to return in a single page. By default 20.
       Note that when TestCaseView = FULL, the maximum page size allowed is 20.
       When TestCaseView = BASIC, the maximum page size allowed is 500.
       
      int32 page_size = 2;
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       The next_page_token value returned from a previous list request.
       
      string page_token = 3;
      Specified by:
      getPageToken in interface ListTestCasesRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       The next_page_token value returned from a previous list request.
       
      string page_token = 3;
      Specified by:
      getPageTokenBytes in interface ListTestCasesRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListTestCasesRequest.Builder setPageToken(String value)
       The next_page_token value returned from a previous list request.
       
      string page_token = 3;
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ListTestCasesRequest.Builder clearPageToken()
       The next_page_token value returned from a previous list request.
       
      string page_token = 3;
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ListTestCasesRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       The next_page_token value returned from a previous list request.
       
      string page_token = 3;
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • getViewValue

      public int getViewValue()
       Specifies whether response should include all fields or just the metadata.
       
      .google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView view = 4;
      Specified by:
      getViewValue in interface ListTestCasesRequestOrBuilder
      Returns:
      The enum numeric value on the wire for view.
    • setViewValue

      public ListTestCasesRequest.Builder setViewValue(int value)
       Specifies whether response should include all fields or just the metadata.
       
      .google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView view = 4;
      Parameters:
      value - The enum numeric value on the wire for view to set.
      Returns:
      This builder for chaining.
    • getView

       Specifies whether response should include all fields or just the metadata.
       
      .google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView view = 4;
      Specified by:
      getView in interface ListTestCasesRequestOrBuilder
      Returns:
      The view.
    • setView

       Specifies whether response should include all fields or just the metadata.
       
      .google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView view = 4;
      Parameters:
      value - The view to set.
      Returns:
      This builder for chaining.
    • clearView

      public ListTestCasesRequest.Builder clearView()
       Specifies whether response should include all fields or just the metadata.
       
      .google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView view = 4;
      Returns:
      This builder for chaining.