Class protos.google.iam.credentials.v1.SignBlobResponse (2.0.3)

Represents a SignBlobResponse.

Package

@google-cloud/iam-credentials

Constructors

(constructor)(properties)

constructor(properties?: google.iam.credentials.v1.ISignBlobResponse);

Constructs a new SignBlobResponse.

Parameter
NameDescription
properties ISignBlobResponse

Properties to set

Properties

keyId

public keyId: string;

SignBlobResponse keyId.

signedBlob

public signedBlob: (Uint8Array|string);

SignBlobResponse signedBlob.

Methods

create(properties)

public static create(properties?: google.iam.credentials.v1.ISignBlobResponse): google.iam.credentials.v1.SignBlobResponse;

Creates a new SignBlobResponse instance using the specified properties.

Parameter
NameDescription
properties ISignBlobResponse

Properties to set

Returns
TypeDescription
google.iam.credentials.v1.SignBlobResponse

SignBlobResponse instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.credentials.v1.SignBlobResponse;

Decodes a SignBlobResponse message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.iam.credentials.v1.SignBlobResponse

SignBlobResponse

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.credentials.v1.SignBlobResponse;

Decodes a SignBlobResponse message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.iam.credentials.v1.SignBlobResponse

SignBlobResponse

encode(message, writer)

public static encode(message: google.iam.credentials.v1.ISignBlobResponse, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified SignBlobResponse message. Does not implicitly messages.

Parameters
NameDescription
message ISignBlobResponse

SignBlobResponse 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.iam.credentials.v1.ISignBlobResponse, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message ISignBlobResponse

SignBlobResponse 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.iam.credentials.v1.SignBlobResponse;

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

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

Plain object

Returns
TypeDescription
google.iam.credentials.v1.SignBlobResponse

SignBlobResponse

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for SignBlobResponse

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 SignBlobResponse to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.iam.credentials.v1.SignBlobResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
NameDescription
message google.iam.credentials.v1.SignBlobResponse

SignBlobResponse

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a SignBlobResponse 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