Interface ItemsOrBuilder (1.55.0)

public interface ItemsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getKey()

public abstract String getKey()

Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.

optional string key = 106079;

Returns
Type Description
String

The key.

getKeyBytes()

public abstract ByteString getKeyBytes()

Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.

optional string key = 106079;

Returns
Type Description
ByteString

The bytes for key.

getValue()

public abstract String getValue()

Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).

optional string value = 111972721;

Returns
Type Description
String

The value.

getValueBytes()

public abstract ByteString getValueBytes()

Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).

optional string value = 111972721;

Returns
Type Description
ByteString

The bytes for value.

hasKey()

public abstract boolean hasKey()

Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.

optional string key = 106079;

Returns
Type Description
boolean

Whether the key field is set.

hasValue()

public abstract boolean hasValue()

Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).

optional string value = 111972721;

Returns
Type Description
boolean

Whether the value field is set.