Class protos.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference (3.13.0)

Represents a ResourceReference.

Package

@google-cloud/aiplatform

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference);

Constructs a new ResourceReference.

Parameter
NameDescription
properties IResourceReference

Properties to set

Properties

description

public description?: (string|null);

ResourceReference description.

reference

public reference?: ("uri"|"resourceName"|"useCase"|"description");

ResourceReference reference.

resourceName

public resourceName?: (string|null);

ResourceReference resourceName.

uri

public uri?: (string|null);

ResourceReference uri.

useCase

public useCase?: (string|null);

ResourceReference useCase.

Methods

create(properties)

public static create(properties?: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference;

Creates a new ResourceReference instance using the specified properties.

Parameter
NameDescription
properties IResourceReference

Properties to set

Returns
TypeDescription
ResourceReference

ResourceReference instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference;

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

ResourceReference

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference;

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
ResourceReference

ResourceReference

encode(message, writer)

public static encode(message: google.cloud.aiplatform.v1beta1.PublisherModel.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ResourceReference message. Does not implicitly messages.

Parameters
NameDescription
message IResourceReference

ResourceReference 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.aiplatform.v1beta1.PublisherModel.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IResourceReference

ResourceReference 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.aiplatform.v1beta1.PublisherModel.ResourceReference;

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

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

Plain object

Returns
TypeDescription
ResourceReference

ResourceReference

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for ResourceReference

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

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
NameDescription
message ResourceReference

ResourceReference

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