Class protos.google.api.serviceusage.v1beta1.GetServiceIdentityResponse (3.3.0)

Represents a GetServiceIdentityResponse.

Package

@google-cloud/service-usage

Constructors

(constructor)(properties)

constructor(properties?: google.api.serviceusage.v1beta1.IGetServiceIdentityResponse);

Constructs a new GetServiceIdentityResponse.

Parameter
NameDescription
properties IGetServiceIdentityResponse

Properties to set

Properties

identity

public identity?: (google.api.serviceusage.v1beta1.IServiceIdentity|null);

GetServiceIdentityResponse identity.

state

public state: (google.api.serviceusage.v1beta1.GetServiceIdentityResponse.IdentityState|keyof typeof google.api.serviceusage.v1beta1.GetServiceIdentityResponse.IdentityState);

GetServiceIdentityResponse state.

Methods

create(properties)

public static create(properties?: google.api.serviceusage.v1beta1.IGetServiceIdentityResponse): google.api.serviceusage.v1beta1.GetServiceIdentityResponse;

Creates a new GetServiceIdentityResponse instance using the specified properties.

Parameter
NameDescription
properties IGetServiceIdentityResponse

Properties to set

Returns
TypeDescription
GetServiceIdentityResponse

GetServiceIdentityResponse instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.serviceusage.v1beta1.GetServiceIdentityResponse;

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

GetServiceIdentityResponse

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.serviceusage.v1beta1.GetServiceIdentityResponse;

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
GetServiceIdentityResponse

GetServiceIdentityResponse

encode(message, writer)

public static encode(message: google.api.serviceusage.v1beta1.IGetServiceIdentityResponse, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified GetServiceIdentityResponse message. Does not implicitly messages.

Parameters
NameDescription
message IGetServiceIdentityResponse

GetServiceIdentityResponse 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.serviceusage.v1beta1.IGetServiceIdentityResponse, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IGetServiceIdentityResponse

GetServiceIdentityResponse 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.serviceusage.v1beta1.GetServiceIdentityResponse;

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

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

Plain object

Returns
TypeDescription
GetServiceIdentityResponse

GetServiceIdentityResponse

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for GetServiceIdentityResponse

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

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message GetServiceIdentityResponse

GetServiceIdentityResponse

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