Class CreateDataStoreRequest (0.28.0)

public final class CreateDataStoreRequest extends GeneratedMessageV3 implements CreateDataStoreRequestOrBuilder

Request for DataStoreService.CreateDataStore method.

Protobuf type google.cloud.discoveryengine.v1alpha.CreateDataStoreRequest

Static Fields

CREATE_ADVANCED_SITE_SEARCH_FIELD_NUMBER

public static final int CREATE_ADVANCED_SITE_SEARCH_FIELD_NUMBER
Field Value
TypeDescription
int

DATA_STORE_FIELD_NUMBER

public static final int DATA_STORE_FIELD_NUMBER
Field Value
TypeDescription
int

DATA_STORE_ID_FIELD_NUMBER

public static final int DATA_STORE_ID_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 CreateDataStoreRequest getDefaultInstance()
Returns
TypeDescription
CreateDataStoreRequest

getDescriptor()

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

newBuilder()

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

newBuilder(CreateDataStoreRequest prototype)

public static CreateDataStoreRequest.Builder newBuilder(CreateDataStoreRequest prototype)
Parameter
NameDescription
prototypeCreateDataStoreRequest
Returns
TypeDescription
CreateDataStoreRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCreateAdvancedSiteSearch()

public boolean getCreateAdvancedSiteSearch()

A boolean flag indicating whether user want to directly create an advanced data store for site search. If the data store is not configured as site search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will be ignored.

bool create_advanced_site_search = 4;

Returns
TypeDescription
boolean

The createAdvancedSiteSearch.

getDataStore()

public DataStore getDataStore()

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataStore

The dataStore.

getDataStoreId()

public String getDataStoreId()

Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name.

This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The dataStoreId.

getDataStoreIdBytes()

public ByteString getDataStoreIdBytes()

Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name.

This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for dataStoreId.

getDataStoreOrBuilder()

public DataStoreOrBuilder getDataStoreOrBuilder()

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataStoreOrBuilder

getDefaultInstanceForType()

public CreateDataStoreRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDataStoreRequest

getParent()

public String getParent()

Required. The parent resource name, such as projects/{project}/locations/{location}/collections/{collection}.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource name, such as projects/{project}/locations/{location}/collections/{collection}.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasDataStore()

public boolean hasDataStore()

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the dataStore 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 CreateDataStoreRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateDataStoreRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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