Class Index.IndexedProperty.Builder (2.25.1)

public static final class Index.IndexedProperty.Builder extends GeneratedMessageV3.Builder<Index.IndexedProperty.Builder> implements Index.IndexedPropertyOrBuilder

A property of an index.

Protobuf type google.datastore.admin.v1.Index.IndexedProperty

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Index.IndexedProperty build()
Returns
Type Description
Index.IndexedProperty

buildPartial()

public Index.IndexedProperty buildPartial()
Returns
Type Description
Index.IndexedProperty

clear()

public Index.IndexedProperty.Builder clear()
Returns
Type Description
Index.IndexedProperty.Builder
Overrides

clearDirection()

public Index.IndexedProperty.Builder clearDirection()

Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.

.google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Index.IndexedProperty.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Index.IndexedProperty.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Index.IndexedProperty.Builder
Overrides

clearName()

public Index.IndexedProperty.Builder clearName()

Required. The property name to index.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Index.IndexedProperty.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Index.IndexedProperty.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Index.IndexedProperty.Builder
Overrides

clone()

public Index.IndexedProperty.Builder clone()
Returns
Type Description
Index.IndexedProperty.Builder
Overrides

getDefaultInstanceForType()

public Index.IndexedProperty getDefaultInstanceForType()
Returns
Type Description
Index.IndexedProperty

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDirection()

public Index.Direction getDirection()

Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.

.google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Index.Direction

The direction.

getDirectionValue()

public int getDirectionValue()

Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.

.google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for direction.

getName()

public String getName()

Required. The property name to index.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The property name to index.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Index.IndexedProperty other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Index.IndexedProperty.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Index.IndexedProperty.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDirection(Index.Direction value)

public Index.IndexedProperty.Builder setDirection(Index.Direction value)

Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.

.google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Index.Direction

The direction to set.

Returns
Type Description
Index.IndexedProperty.Builder

This builder for chaining.

setDirectionValue(int value)

public Index.IndexedProperty.Builder setDirectionValue(int value)

Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.

.google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for direction to set.

Returns
Type Description
Index.IndexedProperty.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Index.IndexedProperty.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Index.IndexedProperty.Builder
Overrides

setName(String value)

public Index.IndexedProperty.Builder setName(String value)

Required. The property name to index.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Index.IndexedProperty.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Index.IndexedProperty.Builder setNameBytes(ByteString value)

Required. The property name to index.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Index.IndexedProperty.Builder

This builder for chaining.

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

public Index.IndexedProperty.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Index.IndexedProperty.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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