Class protos.google.storage.control.v2.IntelligenceConfig (0.7.0)

Represents an IntelligenceConfig.

Package

@google-cloud/storage-control

Constructors

(constructor)(properties)

constructor(properties?: google.storage.control.v2.IIntelligenceConfig);

Constructs a new IntelligenceConfig.

Parameter
Name Description
properties IIntelligenceConfig

Properties to set

Properties

editionConfig

public editionConfig: (google.storage.control.v2.IntelligenceConfig.EditionConfig|keyof typeof google.storage.control.v2.IntelligenceConfig.EditionConfig);

IntelligenceConfig editionConfig.

effectiveIntelligenceConfig

public effectiveIntelligenceConfig?: (google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig|null);

IntelligenceConfig effectiveIntelligenceConfig.

filter

public filter?: (google.storage.control.v2.IntelligenceConfig.IFilter|null);

IntelligenceConfig filter.

name

public name: string;

IntelligenceConfig name.

trialConfig

public trialConfig?: (google.storage.control.v2.IntelligenceConfig.ITrialConfig|null);

IntelligenceConfig trialConfig.

updateTime

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

IntelligenceConfig updateTime.

Methods

create(properties)

public static create(properties?: google.storage.control.v2.IIntelligenceConfig): google.storage.control.v2.IntelligenceConfig;

Creates a new IntelligenceConfig instance using the specified properties.

Parameter
Name Description
properties IIntelligenceConfig

Properties to set

Returns
Type Description
IntelligenceConfig

IntelligenceConfig instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.storage.control.v2.IntelligenceConfig;

Decodes an IntelligenceConfig 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
IntelligenceConfig

IntelligenceConfig

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.storage.control.v2.IntelligenceConfig;

Decodes an IntelligenceConfig message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
IntelligenceConfig

IntelligenceConfig

encode(message, writer)

public static encode(message: google.storage.control.v2.IIntelligenceConfig, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified IntelligenceConfig message. Does not implicitly messages.

Parameters
Name Description
message IIntelligenceConfig

IntelligenceConfig 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.storage.control.v2.IIntelligenceConfig, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IIntelligenceConfig

IntelligenceConfig 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.storage.control.v2.IntelligenceConfig;

Creates an IntelligenceConfig 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
IntelligenceConfig

IntelligenceConfig

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for IntelligenceConfig

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

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.storage.control.v2.IntelligenceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
Name Description
message IntelligenceConfig

IntelligenceConfig

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 IntelligenceConfig message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not