Represents an UpgradeClusterResponse.
Package
@google-cloud/alloydbConstructors
(constructor)(properties)
constructor(properties?: google.cloud.alloydb.v1alpha.IUpgradeClusterResponse);
Constructs a new UpgradeClusterResponse.
Parameter | |
---|---|
Name | Description |
properties |
IUpgradeClusterResponse
Properties to set |
Properties
clusterUpgradeDetails
public clusterUpgradeDetails: google.cloud.alloydb.v1alpha.UpgradeClusterResponse.IClusterUpgradeDetails[];
UpgradeClusterResponse clusterUpgradeDetails.
message
public message: string;
UpgradeClusterResponse message.
status
public status: (google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status|keyof typeof google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status);
UpgradeClusterResponse status.
Methods
create(properties)
public static create(properties?: google.cloud.alloydb.v1alpha.IUpgradeClusterResponse): google.cloud.alloydb.v1alpha.UpgradeClusterResponse;
Creates a new UpgradeClusterResponse instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IUpgradeClusterResponse
Properties to set |
Returns | |
---|---|
Type | Description |
UpgradeClusterResponse |
UpgradeClusterResponse instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.alloydb.v1alpha.UpgradeClusterResponse;
Decodes an UpgradeClusterResponse message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
UpgradeClusterResponse |
UpgradeClusterResponse |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.alloydb.v1alpha.UpgradeClusterResponse;
Decodes an UpgradeClusterResponse message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
UpgradeClusterResponse |
UpgradeClusterResponse |
encode(message, writer)
public static encode(message: google.cloud.alloydb.v1alpha.IUpgradeClusterResponse, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified UpgradeClusterResponse message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IUpgradeClusterResponse
UpgradeClusterResponse message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.alloydb.v1alpha.IUpgradeClusterResponse, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified UpgradeClusterResponse message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IUpgradeClusterResponse
UpgradeClusterResponse message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.alloydb.v1alpha.UpgradeClusterResponse;
Creates an UpgradeClusterResponse message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
UpgradeClusterResponse |
UpgradeClusterResponse |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for UpgradeClusterResponse
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this UpgradeClusterResponse to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.alloydb.v1alpha.UpgradeClusterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from an UpgradeClusterResponse message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
UpgradeClusterResponse
UpgradeClusterResponse |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies an UpgradeClusterResponse message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|