Class ImportSuggestionDenyListEntriesRequest.Builder (0.37.0)

public static final class ImportSuggestionDenyListEntriesRequest.Builder extends GeneratedMessageV3.Builder<ImportSuggestionDenyListEntriesRequest.Builder> implements ImportSuggestionDenyListEntriesRequestOrBuilder

Request message for CompletionService.ImportSuggestionDenyListEntries method.

Protobuf type google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportSuggestionDenyListEntriesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

build()

public ImportSuggestionDenyListEntriesRequest build()
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest

buildPartial()

public ImportSuggestionDenyListEntriesRequest buildPartial()
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest

clear()

public ImportSuggestionDenyListEntriesRequest.Builder clear()
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImportSuggestionDenyListEntriesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

clearGcsSource()

public ImportSuggestionDenyListEntriesRequest.Builder clearGcsSource()

Cloud Storage location for the input content.

Only 1 file can be specified that contains all entries to import. Supported values gcs_source.schema for autocomplete suggestion deny list entry imports:

  • suggestion_deny_list (default): One JSON [SuggestionDenyListEntry] per line.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

clearInlineSource()

public ImportSuggestionDenyListEntriesRequest.Builder clearInlineSource()

The Inline source for the input content for suggestion deny list entries.

.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportSuggestionDenyListEntriesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

clearParent()

public ImportSuggestionDenyListEntriesRequest.Builder clearParent()

Required. The parent data store resource name for which to import denylist entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

This builder for chaining.

clearSource()

public ImportSuggestionDenyListEntriesRequest.Builder clearSource()
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

clone()

public ImportSuggestionDenyListEntriesRequest.Builder clone()
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportSuggestionDenyListEntriesRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsSource()

public GcsSource getGcsSource()

Cloud Storage location for the input content.

Only 1 file can be specified that contains all entries to import. Supported values gcs_source.schema for autocomplete suggestion deny list entry imports:

  • suggestion_deny_list (default): One JSON [SuggestionDenyListEntry] per line.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

Cloud Storage location for the input content.

Only 1 file can be specified that contains all entries to import. Supported values gcs_source.schema for autocomplete suggestion deny list entry imports:

  • suggestion_deny_list (default): One JSON [SuggestionDenyListEntry] per line.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

Cloud Storage location for the input content.

Only 1 file can be specified that contains all entries to import. Supported values gcs_source.schema for autocomplete suggestion deny list entry imports:

  • suggestion_deny_list (default): One JSON [SuggestionDenyListEntry] per line.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
GcsSourceOrBuilder

getInlineSource()

public ImportSuggestionDenyListEntriesRequest.InlineSource getInlineSource()

The Inline source for the input content for suggestion deny list entries.

.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.InlineSource

The inlineSource.

getInlineSourceBuilder()

public ImportSuggestionDenyListEntriesRequest.InlineSource.Builder getInlineSourceBuilder()

The Inline source for the input content for suggestion deny list entries.

.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.InlineSource.Builder

getInlineSourceOrBuilder()

public ImportSuggestionDenyListEntriesRequest.InlineSourceOrBuilder getInlineSourceOrBuilder()

The Inline source for the input content for suggestion deny list entries.

.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.InlineSourceOrBuilder

getParent()

public String getParent()

Required. The parent data store resource name for which to import denylist entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent data store resource name for which to import denylist entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getSourceCase()

public ImportSuggestionDenyListEntriesRequest.SourceCase getSourceCase()
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.SourceCase

hasGcsSource()

public boolean hasGcsSource()

Cloud Storage location for the input content.

Only 1 file can be specified that contains all entries to import. Supported values gcs_source.schema for autocomplete suggestion deny list entry imports:

  • suggestion_deny_list (default): One JSON [SuggestionDenyListEntry] per line.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
boolean

Whether the gcsSource field is set.

hasInlineSource()

public boolean hasInlineSource()

The Inline source for the input content for suggestion deny list entries.

.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2;

Returns
TypeDescription
boolean

Whether the inlineSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportSuggestionDenyListEntriesRequest other)

public ImportSuggestionDenyListEntriesRequest.Builder mergeFrom(ImportSuggestionDenyListEntriesRequest other)
Parameter
NameDescription
otherImportSuggestionDenyListEntriesRequest
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportSuggestionDenyListEntriesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportSuggestionDenyListEntriesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

mergeGcsSource(GcsSource value)

public ImportSuggestionDenyListEntriesRequest.Builder mergeGcsSource(GcsSource value)

Cloud Storage location for the input content.

Only 1 file can be specified that contains all entries to import. Supported values gcs_source.schema for autocomplete suggestion deny list entry imports:

  • suggestion_deny_list (default): One JSON [SuggestionDenyListEntry] per line.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

mergeInlineSource(ImportSuggestionDenyListEntriesRequest.InlineSource value)

public ImportSuggestionDenyListEntriesRequest.Builder mergeInlineSource(ImportSuggestionDenyListEntriesRequest.InlineSource value)

The Inline source for the input content for suggestion deny list entries.

.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2;

Parameter
NameDescription
valueImportSuggestionDenyListEntriesRequest.InlineSource
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportSuggestionDenyListEntriesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImportSuggestionDenyListEntriesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

setGcsSource(GcsSource value)

public ImportSuggestionDenyListEntriesRequest.Builder setGcsSource(GcsSource value)

Cloud Storage location for the input content.

Only 1 file can be specified that contains all entries to import. Supported values gcs_source.schema for autocomplete suggestion deny list entry imports:

  • suggestion_deny_list (default): One JSON [SuggestionDenyListEntry] per line.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

setGcsSource(GcsSource.Builder builderForValue)

public ImportSuggestionDenyListEntriesRequest.Builder setGcsSource(GcsSource.Builder builderForValue)

Cloud Storage location for the input content.

Only 1 file can be specified that contains all entries to import. Supported values gcs_source.schema for autocomplete suggestion deny list entry imports:

  • suggestion_deny_list (default): One JSON [SuggestionDenyListEntry] per line.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Parameter
NameDescription
builderForValueGcsSource.Builder
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

setInlineSource(ImportSuggestionDenyListEntriesRequest.InlineSource value)

public ImportSuggestionDenyListEntriesRequest.Builder setInlineSource(ImportSuggestionDenyListEntriesRequest.InlineSource value)

The Inline source for the input content for suggestion deny list entries.

.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2;

Parameter
NameDescription
valueImportSuggestionDenyListEntriesRequest.InlineSource
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

setInlineSource(ImportSuggestionDenyListEntriesRequest.InlineSource.Builder builderForValue)

public ImportSuggestionDenyListEntriesRequest.Builder setInlineSource(ImportSuggestionDenyListEntriesRequest.InlineSource.Builder builderForValue)

The Inline source for the input content for suggestion deny list entries.

.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2;

Parameter
NameDescription
builderForValueImportSuggestionDenyListEntriesRequest.InlineSource.Builder
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

setParent(String value)

public ImportSuggestionDenyListEntriesRequest.Builder setParent(String value)

Required. The parent data store resource name for which to import denylist entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportSuggestionDenyListEntriesRequest.Builder setParentBytes(ByteString value)

Required. The parent data store resource name for which to import denylist entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportSuggestionDenyListEntriesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportSuggestionDenyListEntriesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides