public interface KeyValuePairOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getKey()
public abstract String getKey() Required. The key of the label to match.
This must be in the format {label_key}.
The key must match the regex
Format:\p{Ll}\p{Lo}{0,62}.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The key. |
getKeyBytes()
public abstract ByteString getKeyBytes() Required. The key of the label to match.
This must be in the format {label_key}.
The key must match the regex
Format:\p{Ll}\p{Lo}{0,62}.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for key. |
getValues(int index)
public abstract String getValues(int index) Required. The values of the label to match.
There will be explicit “OR” between values of array.
Each value must be in the format {label_value}.
The value must match the regex
Format: [\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The values at the given index. |
getValuesBytes(int index)
public abstract ByteString getValuesBytes(int index) Required. The values of the label to match.
There will be explicit “OR” between values of array.
Each value must be in the format {label_value}.
The value must match the regex
Format: [\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the values at the given index. |
getValuesCount()
public abstract int getValuesCount() Required. The values of the label to match.
There will be explicit “OR” between values of array.
Each value must be in the format {label_value}.
The value must match the regex
Format: [\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of values. |
getValuesList()
public abstract List<String> getValuesList() Required. The values of the label to match.
There will be explicit “OR” between values of array.
Each value must be in the format {label_value}.
The value must match the regex
Format: [\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the values. |