Class ImportSuggestionDenyListEntriesRequest (0.36.0)

public final class ImportSuggestionDenyListEntriesRequest extends GeneratedMessageV3 implements ImportSuggestionDenyListEntriesRequestOrBuilder

Request message for CompletionService.ImportSuggestionDenyListEntries method.

Protobuf type google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ImportSuggestionDenyListEntriesRequest

Static Fields

GCS_SOURCE_FIELD_NUMBER

public static final int GCS_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

INLINE_SOURCE_FIELD_NUMBER

public static final int INLINE_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImportSuggestionDenyListEntriesRequest getDefaultInstance()
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest

getDescriptor()

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

newBuilder()

public static ImportSuggestionDenyListEntriesRequest.Builder newBuilder()
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

newBuilder(ImportSuggestionDenyListEntriesRequest prototype)

public static ImportSuggestionDenyListEntriesRequest.Builder newBuilder(ImportSuggestionDenyListEntriesRequest prototype)
Parameter
NameDescription
prototypeImportSuggestionDenyListEntriesRequest
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder

parseDelimitedFrom(InputStream input)

public static ImportSuggestionDenyListEntriesRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportSuggestionDenyListEntriesRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ImportSuggestionDenyListEntriesRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImportSuggestionDenyListEntriesRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImportSuggestionDenyListEntriesRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImportSuggestionDenyListEntriesRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImportSuggestionDenyListEntriesRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportSuggestionDenyListEntriesRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ImportSuggestionDenyListEntriesRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportSuggestionDenyListEntriesRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ImportSuggestionDenyListEntriesRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImportSuggestionDenyListEntriesRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ImportSuggestionDenyListEntriesRequest> parser()
Returns
TypeDescription
Parser<ImportSuggestionDenyListEntriesRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ImportSuggestionDenyListEntriesRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest

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.v1.GcsSource gcs_source = 3;

Returns
TypeDescription
GcsSource

The gcsSource.

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.v1.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.v1.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.InlineSource

The inlineSource.

getInlineSourceOrBuilder()

public ImportSuggestionDenyListEntriesRequest.InlineSourceOrBuilder getInlineSourceOrBuilder()

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

.google.cloud.discoveryengine.v1.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.

getParserForType()

public Parser<ImportSuggestionDenyListEntriesRequest> getParserForType()
Returns
TypeDescription
Parser<ImportSuggestionDenyListEntriesRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.v1.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.v1.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2;

Returns
TypeDescription
boolean

Whether the inlineSource field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImportSuggestionDenyListEntriesRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ImportSuggestionDenyListEntriesRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException