Class PolicyOutput

public final class PolicyOutput extends GeneratedMessageV3 implements PolicyOutputOrBuilder

Protobuf type google.cloud.conformance.storage.v1.PolicyOutput

Inheritance

java.lang.Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > com.google.protobuf.GeneratedMessageV3 > PolicyOutput

Fields

EXPECTEDDECODEDPOLICY_FIELD_NUMBER

public static final int EXPECTEDDECODEDPOLICY_FIELD_NUMBER
Field Value
TypeDescription
int

FIELDS_FIELD_NUMBER

public static final int FIELDS_FIELD_NUMBER
Field Value
TypeDescription
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

containsFields(String key)

public 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;

Parameter
NameDescription
keyjava.lang.String
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objjava.lang.Object
Returns
TypeDescription
boolean
Overrides
com.google.protobuf.AbstractMessage.equals(java.lang.Object)

getDefaultInstance()

public static PolicyOutput getDefaultInstance()
Returns
TypeDescription
PolicyOutput

getDefaultInstanceForType()

public PolicyOutput getDefaultInstanceForType()
Returns
TypeDescription
PolicyOutput

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
com.google.protobuf.Descriptors.Descriptor

getExpectedDecodedPolicy()

public String getExpectedDecodedPolicy()

string expectedDecodedPolicy = 3;

Returns
TypeDescription
java.lang.String

The expectedDecodedPolicy.

getExpectedDecodedPolicyBytes()

public ByteString getExpectedDecodedPolicyBytes()

string expectedDecodedPolicy = 3;

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes for expectedDecodedPolicy.

getFields()

public Map<String,String> getFields()

Use #getFieldsMap() instead.

Returns
TypeDescription
java.util.Map<java.lang.String,java.lang.String>

getFieldsCount()

public 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;

Returns
TypeDescription
int

getFieldsMap()

public 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;

Returns
TypeDescription
java.util.Map<java.lang.String,java.lang.String>

getFieldsOrDefault(String key, String defaultValue)

public 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;

Parameters
NameDescription
keyjava.lang.String
defaultValuejava.lang.String
Returns
TypeDescription
java.lang.String

getFieldsOrThrow(String key)

public 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;

Parameter
NameDescription
keyjava.lang.String
Returns
TypeDescription
java.lang.String

getParserForType()

public Parser<PolicyOutput> getParserForType()
Returns
TypeDescription
com.google.protobuf.Parser<PolicyOutput>
Overrides
com.google.protobuf.GeneratedMessageV3.getParserForType()

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides
com.google.protobuf.GeneratedMessageV3.getSerializedSize()

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
com.google.protobuf.UnknownFieldSet
Overrides
com.google.protobuf.GeneratedMessageV3.getUnknownFields()

getUrl()

public String getUrl()

string url = 1;

Returns
TypeDescription
java.lang.String

The url.

getUrlBytes()

public ByteString getUrlBytes()

string url = 1;

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes for url.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides
com.google.protobuf.AbstractMessage.hashCode()

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetFieldAccessorTable()

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapField
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapField(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
com.google.protobuf.GeneratedMessageV3.isInitialized()

newBuilder()

public static PolicyOutput.Builder newBuilder()
Returns
TypeDescription
PolicyOutput.Builder

newBuilder(PolicyOutput prototype)

public static PolicyOutput.Builder newBuilder(PolicyOutput prototype)
Parameter
NameDescription
prototypePolicyOutput
Returns
TypeDescription
PolicyOutput.Builder

newBuilderForType()

public PolicyOutput.Builder newBuilderForType()
Returns
TypeDescription
PolicyOutput.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PolicyOutput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentcom.google.protobuf.GeneratedMessageV3.BuilderParent
Returns
TypeDescription
PolicyOutput.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent)

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedcom.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Returns
TypeDescription
java.lang.Object
Overrides
com.google.protobuf.GeneratedMessageV3.newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter)

parseDelimitedFrom(InputStream input)

public static PolicyOutput parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputjava.io.InputStream
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
java.io.IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyOutput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputjava.io.InputStream
extensionRegistrycom.google.protobuf.ExtensionRegistryLite
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
java.io.IOException

parseFrom(byte[] data)

public static PolicyOutput parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
com.google.protobuf.InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PolicyOutput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistrycom.google.protobuf.ExtensionRegistryLite
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
com.google.protobuf.InvalidProtocolBufferException

parseFrom(ByteString data)

public static PolicyOutput parseFrom(ByteString data)
Parameter
NameDescription
datacom.google.protobuf.ByteString
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
com.google.protobuf.InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PolicyOutput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
datacom.google.protobuf.ByteString
extensionRegistrycom.google.protobuf.ExtensionRegistryLite
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
com.google.protobuf.InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PolicyOutput parseFrom(CodedInputStream input)
Parameter
NameDescription
inputcom.google.protobuf.CodedInputStream
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
java.io.IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyOutput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputcom.google.protobuf.CodedInputStream
extensionRegistrycom.google.protobuf.ExtensionRegistryLite
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
java.io.IOException

parseFrom(InputStream input)

public static PolicyOutput parseFrom(InputStream input)
Parameter
NameDescription
inputjava.io.InputStream
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
java.io.IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyOutput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputjava.io.InputStream
extensionRegistrycom.google.protobuf.ExtensionRegistryLite
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
java.io.IOException

parseFrom(ByteBuffer data)

public static PolicyOutput parseFrom(ByteBuffer data)
Parameter
NameDescription
datajava.nio.ByteBuffer
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
com.google.protobuf.InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PolicyOutput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
datajava.nio.ByteBuffer
extensionRegistrycom.google.protobuf.ExtensionRegistryLite
Returns
TypeDescription
PolicyOutput
Exceptions
TypeDescription
com.google.protobuf.InvalidProtocolBufferException

parser()

public static Parser<PolicyOutput> parser()
Returns
TypeDescription
com.google.protobuf.Parser<PolicyOutput>

toBuilder()

public PolicyOutput.Builder toBuilder()
Returns
TypeDescription
PolicyOutput.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputcom.google.protobuf.CodedOutputStream
Overrides
com.google.protobuf.GeneratedMessageV3.writeTo(com.google.protobuf.CodedOutputStream)
Exceptions
TypeDescription
java.io.IOException