Class CreateIndexRequest (2.23.0)

publicfinalclass CreateIndexRequestextendsGeneratedMessageV3implementsCreateIndexRequestOrBuilder

The request for google.datastore.admin.v1.DatastoreAdmin.CreateIndex.

Protobuf type google.datastore.admin.v1.CreateIndexRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

INDEX_FIELD_NUMBER

publicstaticfinalintINDEX_FIELD_NUMBER
Field Value
Type Description
int

PROJECT_ID_FIELD_NUMBER

publicstaticfinalintPROJECT_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticCreateIndexRequestgetDefaultInstance()
Returns
Type Description
CreateIndexRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticCreateIndexRequest.BuildernewBuilder()
Returns
Type Description
CreateIndexRequest.Builder

newBuilder(CreateIndexRequest prototype)

publicstaticCreateIndexRequest.BuildernewBuilder(CreateIndexRequestprototype)
Parameter
Name Description
prototype CreateIndexRequest
Returns
Type Description
CreateIndexRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticCreateIndexRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateIndexRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticCreateIndexRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateIndexRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticCreateIndexRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateIndexRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticCreateIndexRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateIndexRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticCreateIndexRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateIndexRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticCreateIndexRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateIndexRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateIndexRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<CreateIndexRequest>parser()
Returns
Type Description
Parser<CreateIndexRequest>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicCreateIndexRequestgetDefaultInstanceForType()
Returns
Type Description
CreateIndexRequest

getIndex()

publicIndexgetIndex()

The index to create. The name and state fields are output only and will be ignored. Single property indexes cannot be created or deleted.

.google.datastore.admin.v1.Index index = 3;

Returns
Type Description
Index

The index.

getIndexOrBuilder()

publicIndexOrBuildergetIndexOrBuilder()

The index to create. The name and state fields are output only and will be ignored. Single property indexes cannot be created or deleted.

.google.datastore.admin.v1.Index index = 3;

Returns
Type Description
IndexOrBuilder

getParserForType()

publicParser<CreateIndexRequest>getParserForType()
Returns
Type Description
Parser<CreateIndexRequest>
Overrides

getProjectId()

publicStringgetProjectId()

Project ID against which to make the request.

string project_id = 1;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

publicByteStringgetProjectIdBytes()

Project ID against which to make the request.

string project_id = 1;

Returns
Type Description
ByteString

The bytes for projectId.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasIndex()

publicbooleanhasIndex()

The index to create. The name and state fields are output only and will be ignored. Single property indexes cannot be created or deleted.

.google.datastore.admin.v1.Index index = 3;

Returns
Type Description
boolean

Whether the index field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicCreateIndexRequest.BuildernewBuilderForType()
Returns
Type Description
CreateIndexRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCreateIndexRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateIndexRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicCreateIndexRequest.BuildertoBuilder()
Returns
Type Description
CreateIndexRequest.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.