Class protos.google.api.apikeys.v2.AndroidKeyRestrictions (1.2.0)

Represents an AndroidKeyRestrictions.

Package

@google-cloud/apikeys

Constructors

(constructor)(properties)

constructor(properties?: google.api.apikeys.v2.IAndroidKeyRestrictions);

Constructs a new AndroidKeyRestrictions.

Parameter
NameDescription
properties IAndroidKeyRestrictions

Properties to set

Properties

allowedApplications

public allowedApplications: google.api.apikeys.v2.IAndroidApplication[];

AndroidKeyRestrictions allowedApplications.

Methods

create(properties)

public static create(properties?: google.api.apikeys.v2.IAndroidKeyRestrictions): google.api.apikeys.v2.AndroidKeyRestrictions;

Creates a new AndroidKeyRestrictions instance using the specified properties.

Parameter
NameDescription
properties IAndroidKeyRestrictions

Properties to set

Returns
TypeDescription
AndroidKeyRestrictions

AndroidKeyRestrictions instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.apikeys.v2.AndroidKeyRestrictions;

Decodes an AndroidKeyRestrictions message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
AndroidKeyRestrictions

AndroidKeyRestrictions

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.apikeys.v2.AndroidKeyRestrictions;

Decodes an AndroidKeyRestrictions message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
AndroidKeyRestrictions

AndroidKeyRestrictions

encode(message, writer)

public static encode(message: google.api.apikeys.v2.IAndroidKeyRestrictions, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified AndroidKeyRestrictions message. Does not implicitly messages.

Parameters
NameDescription
message IAndroidKeyRestrictions

AndroidKeyRestrictions message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.api.apikeys.v2.IAndroidKeyRestrictions, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified AndroidKeyRestrictions message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IAndroidKeyRestrictions

AndroidKeyRestrictions message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.api.apikeys.v2.AndroidKeyRestrictions;

Creates an AndroidKeyRestrictions message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
AndroidKeyRestrictions

AndroidKeyRestrictions

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for AndroidKeyRestrictions

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this AndroidKeyRestrictions to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.api.apikeys.v2.AndroidKeyRestrictions, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from an AndroidKeyRestrictions message. Also converts values to other types if specified.

Parameters
NameDescription
message AndroidKeyRestrictions

AndroidKeyRestrictions

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an AndroidKeyRestrictions message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not