description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * Required. The display name of the AnnotationSpec. Maximum of 64 characters. * * @param string $displayName */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * Output only. This is the integer index of the AnnotationSpec. The index for * the whole AnnotationSpecSet is sequential starting from 0. For example, an * AnnotationSpecSet with classes `dog` and `cat`, might contain one * AnnotationSpec with `{ display_name: "dog", index: 0 }` and one * AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially * useful for model training as it encodes the string labels into numeric * values. * * @param int $index */ public function setIndex($index) { $this->index = $index; } /** * @return int */ public function getIndex() { return $this->index; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudDatalabelingV1beta1AnnotationSpec::class, 'Google_Service_DataLabeling_GoogleCloudDatalabelingV1beta1AnnotationSpec');