Class protos.google.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest (3.0.0)

Represents a SetBackendServiceTargetTcpProxyRequest.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.compute.v1.ISetBackendServiceTargetTcpProxyRequest);

Constructs a new SetBackendServiceTargetTcpProxyRequest.

Parameter
NameDescription
properties ISetBackendServiceTargetTcpProxyRequest

Properties to set

Properties

_requestId

public _requestId?: "requestId";

SetBackendServiceTargetTcpProxyRequest _requestId.

project

public project: string;

SetBackendServiceTargetTcpProxyRequest project.

requestId

public requestId?: (string|null);

SetBackendServiceTargetTcpProxyRequest requestId.

targetTcpProxiesSetBackendServiceRequestResource

public targetTcpProxiesSetBackendServiceRequestResource?: (google.cloud.compute.v1.ITargetTcpProxiesSetBackendServiceRequest|null);

SetBackendServiceTargetTcpProxyRequest targetTcpProxiesSetBackendServiceRequestResource.

targetTcpProxy

public targetTcpProxy: string;

SetBackendServiceTargetTcpProxyRequest targetTcpProxy.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.ISetBackendServiceTargetTcpProxyRequest): google.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest;

Creates a new SetBackendServiceTargetTcpProxyRequest instance using the specified properties.

Parameter
NameDescription
properties ISetBackendServiceTargetTcpProxyRequest

Properties to set

Returns
TypeDescription
google.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest

SetBackendServiceTargetTcpProxyRequest instance

decode(reader, length)

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

Decodes a SetBackendServiceTargetTcpProxyRequest 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.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest

SetBackendServiceTargetTcpProxyRequest

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest

SetBackendServiceTargetTcpProxyRequest

encode(message, writer)

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

Encodes the specified SetBackendServiceTargetTcpProxyRequest message. Does not implicitly messages.

Parameters
NameDescription
message ISetBackendServiceTargetTcpProxyRequest

SetBackendServiceTargetTcpProxyRequest 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.compute.v1.ISetBackendServiceTargetTcpProxyRequest, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message ISetBackendServiceTargetTcpProxyRequest

SetBackendServiceTargetTcpProxyRequest 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.compute.v1.SetBackendServiceTargetTcpProxyRequest;

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

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

Plain object

Returns
TypeDescription
google.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest

SetBackendServiceTargetTcpProxyRequest

toJSON()

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

Converts this SetBackendServiceTargetTcpProxyRequest to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest

SetBackendServiceTargetTcpProxyRequest

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