Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Attribute

import type { Attribute } from "https://googleapis.deno.dev/v1/mybusinessbusinessinformation:v1.ts";

A location attribute. Attributes provide additional information about a location. The attributes that can be set on a location may vary based on the properties of that location (for example, category). Available attributes are determined by Google and may be added and removed without API changes.

interface Attribute {
name?: string;
repeatedEnumValue?: RepeatedEnumAttributeValue;
uriValues?: UriAttributeValue[];
values?: any[];
readonly valueType?:
| "ATTRIBUTE_VALUE_TYPE_UNSPECIFIED"
| "BOOL"
| "ENUM"
| "URL"
| "REPEATED_ENUM";
}

§Properties

§
name?: string
[src]

Required. The resource name for this attribute.

§

When the attribute value type is REPEATED_ENUM, this contains the attribute value, and the other values fields must be empty.

§

When the attribute value type is URL, this field contains the value(s) for this attribute, and the other values fields must be empty.

§
values?: any[]
[src]

The values for this attribute. The type of the values supplied must match that expected for that attribute. This is a repeated field where multiple attribute values may be provided. Attribute types only support one value.

§
readonly valueType?: "ATTRIBUTE_VALUE_TYPE_UNSPECIFIED" | "BOOL" | "ENUM" | "URL" | "REPEATED_ENUM"
[src]

Output only. The type of value that this attribute contains. This should be used to determine how to interpret the value.