Represents a LayerDetails.
Package
@google-cloud/binary-authorizationConstructors
(constructor)(properties)
constructor(properties?: grafeas.v1.ILayerDetails);Constructs a new LayerDetails.
| Parameter | |
|---|---|
| Name | Description |
properties |
ILayerDetails
Properties to set |
Properties
baseImages
public baseImages: grafeas.v1.IBaseImage[];LayerDetails baseImages.
chainId
public chainId: string;LayerDetails chainId.
command
public command: string;LayerDetails command.
diffId
public diffId: string;LayerDetails diffId.
index
public index: number;LayerDetails index.
Methods
create(properties)
public static create(properties?: grafeas.v1.ILayerDetails): grafeas.v1.LayerDetails;Creates a new LayerDetails instance using the specified properties.
| Parameter | |
|---|---|
| Name | Description |
properties |
ILayerDetails
Properties to set |
| Returns | |
|---|---|
| Type | Description |
LayerDetails |
LayerDetails instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.LayerDetails;Decodes a LayerDetails 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 |
LayerDetails |
LayerDetails |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.LayerDetails;Decodes a LayerDetails message from the specified reader or buffer, length delimited.
| Parameter | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
LayerDetails |
LayerDetails |
encode(message, writer)
public static encode(message: grafeas.v1.ILayerDetails, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified LayerDetails message. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
ILayerDetails
LayerDetails 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: grafeas.v1.ILayerDetails, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified LayerDetails message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
ILayerDetails
LayerDetails 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 }): grafeas.v1.LayerDetails;Creates a LayerDetails 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 |
LayerDetails |
LayerDetails |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for LayerDetails
| 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 LayerDetails to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: grafeas.v1.LayerDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from a LayerDetails message. Also converts values to other types if specified.
| Parameters | |
|---|---|
| Name | Description |
message |
LayerDetails
LayerDetails |
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 a LayerDetails message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|