public interface CustomContextUpdatesOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
containsUpdates(String key)
public abstract boolean containsUpdates(String key)Optional. Insert or update the existing custom contexts.
map<string, .google.cloud.storagebatchoperations.v1.ObjectCustomContextPayload> updates = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getKeysToClear(int index)
public abstract String getKeysToClear(int index) Optional. Custom contexts to clear by key.
A key cannot be present in both updates and keys_to_clear.
repeated string keys_to_clear = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The keysToClear at the given index. |
getKeysToClearBytes(int index)
public abstract ByteString getKeysToClearBytes(int index) Optional. Custom contexts to clear by key.
A key cannot be present in both updates and keys_to_clear.
repeated string keys_to_clear = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the keysToClear at the given index. |
getKeysToClearCount()
public abstract int getKeysToClearCount() Optional. Custom contexts to clear by key.
A key cannot be present in both updates and keys_to_clear.
repeated string keys_to_clear = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of keysToClear. |
getKeysToClearList()
public abstract List<String> getKeysToClearList() Optional. Custom contexts to clear by key.
A key cannot be present in both updates and keys_to_clear.
repeated string keys_to_clear = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the keysToClear. |
getUpdates() (deprecated)
public abstract Map<String,ObjectCustomContextPayload> getUpdates()Use #getUpdatesMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,ObjectCustomContextPayload> |
|
getUpdatesCount()
public abstract int getUpdatesCount()Optional. Insert or update the existing custom contexts.
map<string, .google.cloud.storagebatchoperations.v1.ObjectCustomContextPayload> updates = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getUpdatesMap()
public abstract Map<String,ObjectCustomContextPayload> getUpdatesMap()Optional. Insert or update the existing custom contexts.
map<string, .google.cloud.storagebatchoperations.v1.ObjectCustomContextPayload> updates = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,ObjectCustomContextPayload> |
|
getUpdatesOrDefault(String key, ObjectCustomContextPayload defaultValue)
public abstract ObjectCustomContextPayload getUpdatesOrDefault(String key, ObjectCustomContextPayload defaultValue)Optional. Insert or update the existing custom contexts.
map<string, .google.cloud.storagebatchoperations.v1.ObjectCustomContextPayload> updates = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
ObjectCustomContextPayload |
| Returns | |
|---|---|
| Type | Description |
ObjectCustomContextPayload |
|
getUpdatesOrThrow(String key)
public abstract ObjectCustomContextPayload getUpdatesOrThrow(String key)Optional. Insert or update the existing custom contexts.
map<string, .google.cloud.storagebatchoperations.v1.ObjectCustomContextPayload> updates = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
ObjectCustomContextPayload |
|