Class Index.IndexedProperty.Builder (2.33.3)

public static final class Index.IndexedProperty.Builder extends GeneratedMessage.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

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.

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.

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 GeneratedMessage.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

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.

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.