Class CreateSampleQueryRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateSampleQueryRequest.Builder>
com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.Builder
All Implemented Interfaces:
CreateSampleQueryRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateSampleQueryRequest

public static final class CreateSampleQueryRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateSampleQueryRequest.Builder> implements CreateSampleQueryRequestOrBuilder
 Request message for
 [SampleQueryService.CreateSampleQuery][google.cloud.discoveryengine.v1beta.SampleQueryService.CreateSampleQuery]
 method.
 
Protobuf type google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest
  • 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<CreateSampleQueryRequest.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<CreateSampleQueryRequest.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<CreateSampleQueryRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The parent resource name, such as
       `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateSampleQueryRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource name, such as
       `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateSampleQueryRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateSampleQueryRequest.Builder setParent(String value)
       Required. The parent resource name, such as
       `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
       
      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 CreateSampleQueryRequest.Builder clearParent()
       Required. The parent resource name, such as
       `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateSampleQueryRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource name, such as
       `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
       
      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.
    • hasSampleQuery

      public boolean hasSampleQuery()
       Required. The
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
       
      .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSampleQuery in interface CreateSampleQueryRequestOrBuilder
      Returns:
      Whether the sampleQuery field is set.
    • getSampleQuery

      public SampleQuery getSampleQuery()
       Required. The
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
       
      .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSampleQuery in interface CreateSampleQueryRequestOrBuilder
      Returns:
      The sampleQuery.
    • setSampleQuery

      public CreateSampleQueryRequest.Builder setSampleQuery(SampleQuery value)
       Required. The
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
       
      .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED];
    • setSampleQuery

      public CreateSampleQueryRequest.Builder setSampleQuery(SampleQuery.Builder builderForValue)
       Required. The
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
       
      .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeSampleQuery

      public CreateSampleQueryRequest.Builder mergeSampleQuery(SampleQuery value)
       Required. The
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
       
      .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearSampleQuery

      public CreateSampleQueryRequest.Builder clearSampleQuery()
       Required. The
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
       
      .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSampleQueryBuilder

      public SampleQuery.Builder getSampleQueryBuilder()
       Required. The
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
       
      .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSampleQueryOrBuilder

      public SampleQueryOrBuilder getSampleQueryOrBuilder()
       Required. The
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] to create.
       
      .google.cloud.discoveryengine.v1beta.SampleQuery sample_query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSampleQueryOrBuilder in interface CreateSampleQueryRequestOrBuilder
    • getSampleQueryId

      public String getSampleQueryId()
       Required. The ID to use for the
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
       become the final component of the
       [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      
       If the caller does not have permission to create the
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
       of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      
       This field must be unique among all
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
       same
       [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
       Otherwise, an `ALREADY_EXISTS` error is returned.
      
       This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
       standard with a length limit of 63 characters. Otherwise, an
       `INVALID_ARGUMENT` error is returned.
       
      string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSampleQueryId in interface CreateSampleQueryRequestOrBuilder
      Returns:
      The sampleQueryId.
    • getSampleQueryIdBytes

      public com.google.protobuf.ByteString getSampleQueryIdBytes()
       Required. The ID to use for the
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
       become the final component of the
       [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      
       If the caller does not have permission to create the
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
       of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      
       This field must be unique among all
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
       same
       [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
       Otherwise, an `ALREADY_EXISTS` error is returned.
      
       This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
       standard with a length limit of 63 characters. Otherwise, an
       `INVALID_ARGUMENT` error is returned.
       
      string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSampleQueryIdBytes in interface CreateSampleQueryRequestOrBuilder
      Returns:
      The bytes for sampleQueryId.
    • setSampleQueryId

      public CreateSampleQueryRequest.Builder setSampleQueryId(String value)
       Required. The ID to use for the
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
       become the final component of the
       [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      
       If the caller does not have permission to create the
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
       of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      
       This field must be unique among all
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
       same
       [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
       Otherwise, an `ALREADY_EXISTS` error is returned.
      
       This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
       standard with a length limit of 63 characters. Otherwise, an
       `INVALID_ARGUMENT` error is returned.
       
      string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The sampleQueryId to set.
      Returns:
      This builder for chaining.
    • clearSampleQueryId

      public CreateSampleQueryRequest.Builder clearSampleQueryId()
       Required. The ID to use for the
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
       become the final component of the
       [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      
       If the caller does not have permission to create the
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
       of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      
       This field must be unique among all
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
       same
       [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
       Otherwise, an `ALREADY_EXISTS` error is returned.
      
       This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
       standard with a length limit of 63 characters. Otherwise, an
       `INVALID_ARGUMENT` error is returned.
       
      string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSampleQueryIdBytes

      public CreateSampleQueryRequest.Builder setSampleQueryIdBytes(com.google.protobuf.ByteString value)
       Required. The ID to use for the
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], which will
       become the final component of the
       [SampleQuery.name][google.cloud.discoveryengine.v1beta.SampleQuery.name].
      
       If the caller does not have permission to create the
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery], regardless
       of whether or not it exists, a `PERMISSION_DENIED` error is returned.
      
       This field must be unique among all
       [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s with the
       same
       [parent][google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest.parent].
       Otherwise, an `ALREADY_EXISTS` error is returned.
      
       This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
       standard with a length limit of 63 characters. Otherwise, an
       `INVALID_ARGUMENT` error is returned.
       
      string sample_query_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for sampleQueryId to set.
      Returns:
      This builder for chaining.