Class protos.google.cloud.channel.v1.ChannelPartnerLink (3.2.1)

Represents a ChannelPartnerLink.

Package

@google-cloud/channel

Constructors

constructor(properties?: google.cloud.channel.v1.IChannelPartnerLink);

Constructs a new ChannelPartnerLink.

Parameter
NameDescription
properties IChannelPartnerLink

Properties to set

Properties

public channelPartnerCloudIdentityInfo?: (google.cloud.channel.v1.ICloudIdentityInfo|null);

ChannelPartnerLink channelPartnerCloudIdentityInfo.

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

ChannelPartnerLink createTime.

public inviteLinkUri: string;

ChannelPartnerLink inviteLinkUri.

public linkState: (google.cloud.channel.v1.ChannelPartnerLinkState|keyof typeof google.cloud.channel.v1.ChannelPartnerLinkState);

ChannelPartnerLink linkState.

public name: string;

ChannelPartnerLink name.

public publicId: string;

ChannelPartnerLink publicId.

public resellerCloudIdentityId: string;

ChannelPartnerLink resellerCloudIdentityId.

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

ChannelPartnerLink updateTime.

Methods

public static create(properties?: google.cloud.channel.v1.IChannelPartnerLink): google.cloud.channel.v1.ChannelPartnerLink;

Creates a new ChannelPartnerLink instance using the specified properties.

Parameter
NameDescription
properties IChannelPartnerLink

Properties to set

Returns
TypeDescription
ChannelPartnerLink

ChannelPartnerLink instance

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

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

ChannelPartnerLink

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
ChannelPartnerLink

ChannelPartnerLink

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

Encodes the specified ChannelPartnerLink message. Does not implicitly messages.

Parameters
NameDescription
message IChannelPartnerLink

ChannelPartnerLink message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

public static encodeDelimited(message: google.cloud.channel.v1.IChannelPartnerLink, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IChannelPartnerLink

ChannelPartnerLink message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

public static fromObject(object: { [k: string]: any }): google.cloud.channel.v1.ChannelPartnerLink;

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

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

Plain object

Returns
TypeDescription
ChannelPartnerLink

ChannelPartnerLink

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

Gets the default type url for ChannelPartnerLink

Parameter
NameDescription
typeUrlPrefix string

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

Returns
TypeDescription
string

The default type url

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

Converts this ChannelPartnerLink to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

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

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

Parameters
NameDescription
message ChannelPartnerLink

ChannelPartnerLink

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

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

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