Interface EntryOrBuilder (0.39.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface EntryOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
getKey()
publicabstractStringgetKey()Optional. Key for the metadata entry.
optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The key. |
getKeyBytes()
publicabstractByteStringgetKeyBytes()Optional. Key for the metadata entry.
optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for key. |
getValue()
publicabstractStringgetValue()Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The value. |
getValueBytes()
publicabstractByteStringgetValueBytes()Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for value. |
hasKey()
publicabstractbooleanhasKey()Optional. Key for the metadata entry.
optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the key field is set. |
hasValue()
publicabstractbooleanhasValue()Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |