Class ImportSuggestionDenyListEntriesRequest.Builder (0.40.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportSuggestionDenyListEntriesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

build()

public ImportSuggestionDenyListEntriesRequest build()
Returns
Type Description
ImportSuggestionDenyListEntriesRequest

buildPartial()

public ImportSuggestionDenyListEntriesRequest buildPartial()
Returns
Type Description
ImportSuggestionDenyListEntriesRequest

clear()

public ImportSuggestionDenyListEntriesRequest.Builder clear()
Returns
Type Description
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImportSuggestionDenyListEntriesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
ImportSuggestionDenyListEntriesRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportSuggestionDenyListEntriesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
ImportSuggestionDenyListEntriesRequest.Builder

This builder for chaining.

clearSource()

public ImportSuggestionDenyListEntriesRequest.Builder clearSource()
Returns
Type Description
ImportSuggestionDenyListEntriesRequest.Builder

clone()

public ImportSuggestionDenyListEntriesRequest.Builder clone()
Returns
Type Description
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportSuggestionDenyListEntriesRequest getDefaultInstanceForType()
Returns
Type Description
ImportSuggestionDenyListEntriesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for parent.

getSourceCase()

public ImportSuggestionDenyListEntriesRequest.SourceCase getSourceCase()
Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the inlineSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportSuggestionDenyListEntriesRequest other)

public ImportSuggestionDenyListEntriesRequest.Builder mergeFrom(ImportSuggestionDenyListEntriesRequest other)
Parameter
Name Description
other ImportSuggestionDenyListEntriesRequest
Returns
Type Description
ImportSuggestionDenyListEntriesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportSuggestionDenyListEntriesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportSuggestionDenyListEntriesRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportSuggestionDenyListEntriesRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value GcsSource
Returns
Type Description
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
Name Description
value ImportSuggestionDenyListEntriesRequest.InlineSource
Returns
Type Description
ImportSuggestionDenyListEntriesRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportSuggestionDenyListEntriesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImportSuggestionDenyListEntriesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value GcsSource
Returns
Type Description
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
Name Description
builderForValue GcsSource.Builder
Returns
Type Description
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
Name Description
value ImportSuggestionDenyListEntriesRequest.InlineSource
Returns
Type Description
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
Name Description
builderForValue ImportSuggestionDenyListEntriesRequest.InlineSource.Builder
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportSuggestionDenyListEntriesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportSuggestionDenyListEntriesRequest.Builder
Overrides