cardinality = $cardinality; } /** * @return self::CARDINALITY_* */ public function getCardinality() { return $this->cardinality; } /** * The string value of the default value of this field. Proto2 syntax only. * * @param string $defaultValue */ public function setDefaultValue($defaultValue) { $this->defaultValue = $defaultValue; } /** * @return string */ public function getDefaultValue() { return $this->defaultValue; } /** * The field JSON name. * * @param string $jsonName */ public function setJsonName($jsonName) { $this->jsonName = $jsonName; } /** * @return string */ public function getJsonName() { return $this->jsonName; } /** * The field type. * * Accepted values: TYPE_UNKNOWN, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT64, * TYPE_UINT64, TYPE_INT32, TYPE_FIXED64, TYPE_FIXED32, TYPE_BOOL, * TYPE_STRING, TYPE_GROUP, TYPE_MESSAGE, TYPE_BYTES, TYPE_UINT32, TYPE_ENUM, * TYPE_SFIXED32, TYPE_SFIXED64, TYPE_SINT32, TYPE_SINT64 * * @param self::KIND_* $kind */ public function setKind($kind) { $this->kind = $kind; } /** * @return self::KIND_* */ public function getKind() { return $this->kind; } /** * The field name. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * The field number. * * @param int $number */ public function setNumber($number) { $this->number = $number; } /** * @return int */ public function getNumber() { return $this->number; } /** * The index of the field type in `Type.oneofs`, for message or enumeration * types. The first type has index 1; zero means the type is not in the list. * * @param int $oneofIndex */ public function setOneofIndex($oneofIndex) { $this->oneofIndex = $oneofIndex; } /** * @return int */ public function getOneofIndex() { return $this->oneofIndex; } /** * The protocol buffer options. * * @param Option[] $options */ public function setOptions($options) { $this->options = $options; } /** * @return Option[] */ public function getOptions() { return $this->options; } /** * Whether to use alternative packed wire representation. * * @param bool $packed */ public function setPacked($packed) { $this->packed = $packed; } /** * @return bool */ public function getPacked() { return $this->packed; } /** * The field type URL, without the scheme, for message or enumeration types. * Example: `"type.googleapis.com/google.protobuf.Timestamp"`. * * @param string $typeUrl */ public function setTypeUrl($typeUrl) { $this->typeUrl = $typeUrl; } /** * @return string */ public function getTypeUrl() { return $this->typeUrl; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Field::class, 'Google_Service_ServiceConsumerManagement_Field');