public static final class Field.Builder extends GeneratedMessageV3.Builder<Field.Builder> implements FieldOrBuilder
Represents a single field in the database.
Fields are grouped by their "Collection Group", which represent all
collections in the database with the same id.
Protobuf type google.firestore.admin.v1.Field
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Field.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Field buildPartial()
Returns
clear()
public Field.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Field.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearIndexConfig()
public Field.Builder clearIndexConfig()
The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field
. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
Returns
clearName()
public Field.Builder clearName()
Required. A field name of the form
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}
A field path may be a simple field name, e.g. address
or a path to fields
within map_value , e.g. address.city
,
or a special field path. The only valid special field is
, which
represents any field.
Field paths may be quoted using (backtick). The only character that needs
to be escaped within a quoted field path is the backtick character itself,
escaped using a backslash. Special characters in field paths that
must be quoted include:
,
.,
(backtick),
[,
], as well as any ascii symbolic characters.
Examples:
(Note: Comments here are written in markdown syntax, so there is an
additional layer of backticks to represent a code block)
\address.city\
represents a field named
address.city, not the map key
city in the field
address.
\\
represents a field named
, not any field.
A special
Field contains the default indexing settings for all fields.
This field's resource name is:
projects/{project_id}/databases/{database_id}/collectionGroups/default/fields/*
Indexes defined on this
Field will be applied to all fields which do not
have their own
Field
index configuration.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Field.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Field.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Field getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getIndexConfig()
public Field.IndexConfig getIndexConfig()
The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field
. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
Returns
getIndexConfigBuilder()
public Field.IndexConfig.Builder getIndexConfigBuilder()
The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field
. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
Returns
getIndexConfigOrBuilder()
public Field.IndexConfigOrBuilder getIndexConfigOrBuilder()
The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field
. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
Returns
getName()
Required. A field name of the form
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}
A field path may be a simple field name, e.g. address
or a path to fields
within map_value , e.g. address.city
,
or a special field path. The only valid special field is
, which
represents any field.
Field paths may be quoted using (backtick). The only character that needs
to be escaped within a quoted field path is the backtick character itself,
escaped using a backslash. Special characters in field paths that
must be quoted include:
,
.,
(backtick),
[,
], as well as any ascii symbolic characters.
Examples:
(Note: Comments here are written in markdown syntax, so there is an
additional layer of backticks to represent a code block)
\address.city\
represents a field named
address.city, not the map key
city in the field
address.
\\
represents a field named
, not any field.
A special
Field contains the default indexing settings for all fields.
This field's resource name is:
projects/{project_id}/databases/{database_id}/collectionGroups/default/fields/*
Indexes defined on this
Field will be applied to all fields which do not
have their own
Field
index configuration.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. A field name of the form
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}
A field path may be a simple field name, e.g. address
or a path to fields
within map_value , e.g. address.city
,
or a special field path. The only valid special field is
, which
represents any field.
Field paths may be quoted using (backtick). The only character that needs
to be escaped within a quoted field path is the backtick character itself,
escaped using a backslash. Special characters in field paths that
must be quoted include:
,
.,
(backtick),
[,
], as well as any ascii symbolic characters.
Examples:
(Note: Comments here are written in markdown syntax, so there is an
additional layer of backticks to represent a code block)
\address.city\
represents a field named
address.city, not the map key
city in the field
address.
\\
represents a field named
, not any field.
A special
Field contains the default indexing settings for all fields.
This field's resource name is:
projects/{project_id}/databases/{database_id}/collectionGroups/default/fields/*
Indexes defined on this
Field will be applied to all fields which do not
have their own
Field
index configuration.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
hasIndexConfig()
public boolean hasIndexConfig()
The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field
. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
Returns
Type | Description |
boolean | Whether the indexConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Field other)
public Field.Builder mergeFrom(Field other)
Parameter
Name | Description |
other | Field
|
Returns
public Field.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Field.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeIndexConfig(Field.IndexConfig value)
public Field.Builder mergeIndexConfig(Field.IndexConfig value)
The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field
. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Field.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Field.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setIndexConfig(Field.IndexConfig value)
public Field.Builder setIndexConfig(Field.IndexConfig value)
The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field
. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
Parameter
Returns
setIndexConfig(Field.IndexConfig.Builder builderForValue)
public Field.Builder setIndexConfig(Field.IndexConfig.Builder builderForValue)
The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field
. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
Parameter
Returns
setName(String value)
public Field.Builder setName(String value)
Required. A field name of the form
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}
A field path may be a simple field name, e.g. address
or a path to fields
within map_value , e.g. address.city
,
or a special field path. The only valid special field is
, which
represents any field.
Field paths may be quoted using (backtick). The only character that needs
to be escaped within a quoted field path is the backtick character itself,
escaped using a backslash. Special characters in field paths that
must be quoted include:
,
.,
(backtick),
[,
], as well as any ascii symbolic characters.
Examples:
(Note: Comments here are written in markdown syntax, so there is an
additional layer of backticks to represent a code block)
\address.city\
represents a field named
address.city, not the map key
city in the field
address.
\\
represents a field named
, not any field.
A special
Field contains the default indexing settings for all fields.
This field's resource name is:
projects/{project_id}/databases/{database_id}/collectionGroups/default/fields/*
Indexes defined on this
Field will be applied to all fields which do not
have their own
Field
index configuration.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public Field.Builder setNameBytes(ByteString value)
Required. A field name of the form
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}
A field path may be a simple field name, e.g. address
or a path to fields
within map_value , e.g. address.city
,
or a special field path. The only valid special field is
, which
represents any field.
Field paths may be quoted using (backtick). The only character that needs
to be escaped within a quoted field path is the backtick character itself,
escaped using a backslash. Special characters in field paths that
must be quoted include:
,
.,
(backtick),
[,
], as well as any ascii symbolic characters.
Examples:
(Note: Comments here are written in markdown syntax, so there is an
additional layer of backticks to represent a code block)
\address.city\
represents a field named
address.city, not the map key
city in the field
address.
\\
represents a field named
, not any field.
A special
Field contains the default indexing settings for all fields.
This field's resource name is:
projects/{project_id}/databases/{database_id}/collectionGroups/default/fields/*
Indexes defined on this
Field will be applied to all fields which do not
have their own
Field
index configuration.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Field.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Field.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides