Class Index.IndexedProperty.Builder (2.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Index.IndexedProperty.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Index.IndexedProperty.Builder
Overrides

build()

public Index.IndexedProperty build()
Returns
TypeDescription
Index.IndexedProperty

buildPartial()

public Index.IndexedProperty buildPartial()
Returns
TypeDescription
Index.IndexedProperty

clear()

public Index.IndexedProperty.Builder clear()
Returns
TypeDescription
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
TypeDescription
Index.IndexedProperty.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Index.IndexedProperty.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Index.IndexedProperty.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Index.IndexedProperty.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Index.IndexedProperty.Builder
Overrides

clone()

public Index.IndexedProperty.Builder clone()
Returns
TypeDescription
Index.IndexedProperty.Builder
Overrides

getDefaultInstanceForType()

public Index.IndexedProperty getDefaultInstanceForType()
Returns
TypeDescription
Index.IndexedProperty

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The property name to index.

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Index.IndexedProperty other)

public Index.IndexedProperty.Builder mergeFrom(Index.IndexedProperty other)
Parameter
NameDescription
otherIndex.IndexedProperty
Returns
TypeDescription
Index.IndexedProperty.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Index.IndexedProperty.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Index.IndexedProperty.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Index.IndexedProperty.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Index.IndexedProperty.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Index.IndexedProperty.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueIndex.Direction

The direction to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Index.IndexedProperty.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Index.IndexedProperty.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Index.IndexedProperty.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Index.IndexedProperty.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Index.IndexedProperty.Builder
Overrides