Voice et bot modif
This commit is contained in:
parent
189d56026b
commit
7333a22bcd
10774 changed files with 634644 additions and 933308 deletions
|
|
@ -791,17 +791,6 @@ class FieldDescriptor(DescriptorBase):
|
|||
def type(self, val):
|
||||
self._type = val
|
||||
|
||||
@property
|
||||
def label(self):
|
||||
_Deprecated('label property', 'is_required or is_repeated properties')
|
||||
|
||||
if (
|
||||
self._GetFeatures().field_presence
|
||||
== _FEATURESET_FIELD_PRESENCE_LEGACY_REQUIRED
|
||||
):
|
||||
return FieldDescriptor.LABEL_REQUIRED
|
||||
return self._label
|
||||
|
||||
@property
|
||||
def is_required(self):
|
||||
"""Returns if the field is required."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue