Class protos.google.cloud.billing.v1.ListSkusRequest (4.2.0)

Represents a ListSkusRequest.

Package

@google-cloud/billing

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.billing.v1.IListSkusRequest);

Constructs a new ListSkusRequest.

Parameter
NameDescription
properties IListSkusRequest

Properties to set

Properties

currencyCode

public currencyCode: string;

ListSkusRequest currencyCode.

endTime

public endTime?: (google.protobuf.ITimestamp|null);

ListSkusRequest endTime.

pageSize

public pageSize: number;

ListSkusRequest pageSize.

pageToken

public pageToken: string;

ListSkusRequest pageToken.

parent

public parent: string;

ListSkusRequest parent.

startTime

public startTime?: (google.protobuf.ITimestamp|null);

ListSkusRequest startTime.

Methods

create(properties)

public static create(properties?: google.cloud.billing.v1.IListSkusRequest): google.cloud.billing.v1.ListSkusRequest;

Creates a new ListSkusRequest instance using the specified properties.

Parameter
NameDescription
properties IListSkusRequest

Properties to set

Returns
TypeDescription
ListSkusRequest

ListSkusRequest instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.billing.v1.ListSkusRequest;

Decodes a ListSkusRequest 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
ListSkusRequest

ListSkusRequest

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.billing.v1.ListSkusRequest;

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
ListSkusRequest

ListSkusRequest

encode(message, writer)

public static encode(message: google.cloud.billing.v1.IListSkusRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ListSkusRequest message. Does not implicitly messages.

Parameters
NameDescription
message IListSkusRequest

ListSkusRequest 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.cloud.billing.v1.IListSkusRequest, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IListSkusRequest

ListSkusRequest 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.cloud.billing.v1.ListSkusRequest;

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

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

Plain object

Returns
TypeDescription
ListSkusRequest

ListSkusRequest

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for ListSkusRequest

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

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message ListSkusRequest

ListSkusRequest

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 ListSkusRequest 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