public interface PolicyOutputOrBuilder extends MessageOrBuilder
Implements
com.google.protobuf.MessageOrBuilderMethods
containsFields(String key)
public abstract boolean containsFields(String key)
Expectations E.1: PolicyInput.fields must be prepended to form expectedDecodedPolicy for consistent result across languages. Ordering doesn't matter to the service but the decision is made to make it easier to conform implementations in implementation. Example:
Step 1
PolicyInput.fields has: { "content-disposition":"attachment; filename="~._-%=/é0Aa"", "content-encoding":"gzip", "content-type":"text/plain", "success_action_redirect":"http://www.google.com/" }
Step 2
The expectedDecodedPolicy before prepending the PolicyInput.fields would look like this: { "conditions":[ ...prepend here in the same order provided in PolicyInput.fields... {"bucket":"bucket-name"}, {"key":"test-object"}, {"x-goog-date":"20200123T043530Z"}, {"x-goog-credential":"test-iam-credentials@dummy-project-id.iam.gserviceaccount.com/20200123/auto/storage/goog4_request"}, {"x-goog-algorithm":"GOOG4-RSA-SHA256"} ], "expiration":"2020-01-23T04:35:40Z" }
Step 3
Then expectedDecodedPolicy should prepends PolicyInput.fields in
the same order to PolicyOutput.expectedDecodedPolicy conditions
key.
{
"conditions":[
{"content-disposition":"attachment; filename="~._-%=/é0Aa""},
{"content-encoding":"gzip"},
{"content-type":"text/plain"},
{"success_action_redirect":"http://www.google.com/"},
{"bucket":"bucket-name"},
{"key":"test-object"},
{"x-goog-date":"20200123T043530Z"},
{"x-goog-credential":"test-iam-credentials@dummy-project-id.iam.gserviceaccount.com/20200123/auto/storage/goog4_request"},
{"x-goog-algorithm":"GOOG4-RSA-SHA256"}
],
"expiration":"2020-01-23T04:35:40Z"
}
map<string, string> fields = 2;
Name | Description |
key | java.lang.String |
Type | Description |
boolean |
getExpectedDecodedPolicy()
public abstract String getExpectedDecodedPolicy()
string expectedDecodedPolicy = 3;
Type | Description |
java.lang.String | The expectedDecodedPolicy. |
getExpectedDecodedPolicyBytes()
public abstract ByteString getExpectedDecodedPolicyBytes()
string expectedDecodedPolicy = 3;
Type | Description |
com.google.protobuf.ByteString | The bytes for expectedDecodedPolicy. |
getFields()
public abstract Map<String,String> getFields()
Use #getFieldsMap() instead.
Type | Description |
java.util.Map<java.lang.String,java.lang.String> |
getFieldsCount()
public abstract int getFieldsCount()
Expectations E.1: PolicyInput.fields must be prepended to form expectedDecodedPolicy for consistent result across languages. Ordering doesn't matter to the service but the decision is made to make it easier to conform implementations in implementation. Example:
Step 1
PolicyInput.fields has: { "content-disposition":"attachment; filename="~._-%=/é0Aa"", "content-encoding":"gzip", "content-type":"text/plain", "success_action_redirect":"http://www.google.com/" }
Step 2
The expectedDecodedPolicy before prepending the PolicyInput.fields would look like this: { "conditions":[ ...prepend here in the same order provided in PolicyInput.fields... {"bucket":"bucket-name"}, {"key":"test-object"}, {"x-goog-date":"20200123T043530Z"}, {"x-goog-credential":"test-iam-credentials@dummy-project-id.iam.gserviceaccount.com/20200123/auto/storage/goog4_request"}, {"x-goog-algorithm":"GOOG4-RSA-SHA256"} ], "expiration":"2020-01-23T04:35:40Z" }
Step 3
Then expectedDecodedPolicy should prepends PolicyInput.fields in
the same order to PolicyOutput.expectedDecodedPolicy conditions
key.
{
"conditions":[
{"content-disposition":"attachment; filename="~._-%=/é0Aa""},
{"content-encoding":"gzip"},
{"content-type":"text/plain"},
{"success_action_redirect":"http://www.google.com/"},
{"bucket":"bucket-name"},
{"key":"test-object"},
{"x-goog-date":"20200123T043530Z"},
{"x-goog-credential":"test-iam-credentials@dummy-project-id.iam.gserviceaccount.com/20200123/auto/storage/goog4_request"},
{"x-goog-algorithm":"GOOG4-RSA-SHA256"}
],
"expiration":"2020-01-23T04:35:40Z"
}
map<string, string> fields = 2;
Type | Description |
int |
getFieldsMap()
public abstract Map<String,String> getFieldsMap()
Expectations E.1: PolicyInput.fields must be prepended to form expectedDecodedPolicy for consistent result across languages. Ordering doesn't matter to the service but the decision is made to make it easier to conform implementations in implementation. Example:
Step 1
PolicyInput.fields has: { "content-disposition":"attachment; filename="~._-%=/é0Aa"", "content-encoding":"gzip", "content-type":"text/plain", "success_action_redirect":"http://www.google.com/" }
Step 2
The expectedDecodedPolicy before prepending the PolicyInput.fields would look like this: { "conditions":[ ...prepend here in the same order provided in PolicyInput.fields... {"bucket":"bucket-name"}, {"key":"test-object"}, {"x-goog-date":"20200123T043530Z"}, {"x-goog-credential":"test-iam-credentials@dummy-project-id.iam.gserviceaccount.com/20200123/auto/storage/goog4_request"}, {"x-goog-algorithm":"GOOG4-RSA-SHA256"} ], "expiration":"2020-01-23T04:35:40Z" }
Step 3
Then expectedDecodedPolicy should prepends PolicyInput.fields in
the same order to PolicyOutput.expectedDecodedPolicy conditions
key.
{
"conditions":[
{"content-disposition":"attachment; filename="~._-%=/é0Aa""},
{"content-encoding":"gzip"},
{"content-type":"text/plain"},
{"success_action_redirect":"http://www.google.com/"},
{"bucket":"bucket-name"},
{"key":"test-object"},
{"x-goog-date":"20200123T043530Z"},
{"x-goog-credential":"test-iam-credentials@dummy-project-id.iam.gserviceaccount.com/20200123/auto/storage/goog4_request"},
{"x-goog-algorithm":"GOOG4-RSA-SHA256"}
],
"expiration":"2020-01-23T04:35:40Z"
}
map<string, string> fields = 2;
Type | Description |
java.util.Map<java.lang.String,java.lang.String> |
getFieldsOrDefault(String key, String defaultValue)
public abstract String getFieldsOrDefault(String key, String defaultValue)
Expectations E.1: PolicyInput.fields must be prepended to form expectedDecodedPolicy for consistent result across languages. Ordering doesn't matter to the service but the decision is made to make it easier to conform implementations in implementation. Example:
Step 1
PolicyInput.fields has: { "content-disposition":"attachment; filename="~._-%=/é0Aa"", "content-encoding":"gzip", "content-type":"text/plain", "success_action_redirect":"http://www.google.com/" }
Step 2
The expectedDecodedPolicy before prepending the PolicyInput.fields would look like this: { "conditions":[ ...prepend here in the same order provided in PolicyInput.fields... {"bucket":"bucket-name"}, {"key":"test-object"}, {"x-goog-date":"20200123T043530Z"}, {"x-goog-credential":"test-iam-credentials@dummy-project-id.iam.gserviceaccount.com/20200123/auto/storage/goog4_request"}, {"x-goog-algorithm":"GOOG4-RSA-SHA256"} ], "expiration":"2020-01-23T04:35:40Z" }
Step 3
Then expectedDecodedPolicy should prepends PolicyInput.fields in
the same order to PolicyOutput.expectedDecodedPolicy conditions
key.
{
"conditions":[
{"content-disposition":"attachment; filename="~._-%=/é0Aa""},
{"content-encoding":"gzip"},
{"content-type":"text/plain"},
{"success_action_redirect":"http://www.google.com/"},
{"bucket":"bucket-name"},
{"key":"test-object"},
{"x-goog-date":"20200123T043530Z"},
{"x-goog-credential":"test-iam-credentials@dummy-project-id.iam.gserviceaccount.com/20200123/auto/storage/goog4_request"},
{"x-goog-algorithm":"GOOG4-RSA-SHA256"}
],
"expiration":"2020-01-23T04:35:40Z"
}
map<string, string> fields = 2;
Name | Description |
key | java.lang.String |
defaultValue | java.lang.String |
Type | Description |
java.lang.String |
getFieldsOrThrow(String key)
public abstract String getFieldsOrThrow(String key)
Expectations E.1: PolicyInput.fields must be prepended to form expectedDecodedPolicy for consistent result across languages. Ordering doesn't matter to the service but the decision is made to make it easier to conform implementations in implementation. Example:
Step 1
PolicyInput.fields has: { "content-disposition":"attachment; filename="~._-%=/é0Aa"", "content-encoding":"gzip", "content-type":"text/plain", "success_action_redirect":"http://www.google.com/" }
Step 2
The expectedDecodedPolicy before prepending the PolicyInput.fields would look like this: { "conditions":[ ...prepend here in the same order provided in PolicyInput.fields... {"bucket":"bucket-name"}, {"key":"test-object"}, {"x-goog-date":"20200123T043530Z"}, {"x-goog-credential":"test-iam-credentials@dummy-project-id.iam.gserviceaccount.com/20200123/auto/storage/goog4_request"}, {"x-goog-algorithm":"GOOG4-RSA-SHA256"} ], "expiration":"2020-01-23T04:35:40Z" }
Step 3
Then expectedDecodedPolicy should prepends PolicyInput.fields in
the same order to PolicyOutput.expectedDecodedPolicy conditions
key.
{
"conditions":[
{"content-disposition":"attachment; filename="~._-%=/é0Aa""},
{"content-encoding":"gzip"},
{"content-type":"text/plain"},
{"success_action_redirect":"http://www.google.com/"},
{"bucket":"bucket-name"},
{"key":"test-object"},
{"x-goog-date":"20200123T043530Z"},
{"x-goog-credential":"test-iam-credentials@dummy-project-id.iam.gserviceaccount.com/20200123/auto/storage/goog4_request"},
{"x-goog-algorithm":"GOOG4-RSA-SHA256"}
],
"expiration":"2020-01-23T04:35:40Z"
}
map<string, string> fields = 2;
Name | Description |
key | java.lang.String |
Type | Description |
java.lang.String |
getUrl()
public abstract String getUrl()
string url = 1;
Type | Description |
java.lang.String | The url. |
getUrlBytes()
public abstract ByteString getUrlBytes()
string url = 1;
Type | Description |
com.google.protobuf.ByteString | The bytes for url. |