Class PolicyInput

Stay organized with collections Save and categorize content based on your preferences.
public final class PolicyInput extends GeneratedMessageV3 implements PolicyInputOrBuilder

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

Inheritance

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

Fields

BUCKETBOUNDHOSTNAME_FIELD_NUMBER

public static final int BUCKETBOUNDHOSTNAME_FIELD_NUMBER
Field Value
TypeDescription
int

BUCKET_FIELD_NUMBER

public static final int BUCKET_FIELD_NUMBER
Field Value
TypeDescription
int

CONDITIONS_FIELD_NUMBER

public static final int CONDITIONS_FIELD_NUMBER
Field Value
TypeDescription
int

EXPIRATION_FIELD_NUMBER

public static final int EXPIRATION_FIELD_NUMBER
Field Value
TypeDescription
int

FIELDS_FIELD_NUMBER

public static final int FIELDS_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECT_FIELD_NUMBER

public static final int OBJECT_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEME_FIELD_NUMBER

public static final int SCHEME_FIELD_NUMBER
Field Value
TypeDescription
int

TIMESTAMP_FIELD_NUMBER

public static final int TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

URLSTYLE_FIELD_NUMBER

public static final int URLSTYLE_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

containsFields(String key)

public boolean containsFields(String key)

fields with strict equivalence which are added into PolicyOutput.expectedDecodedPolicy to generate the signature. Expectations E.1: Order them in lexigraphical order so it's the signature can be verified across different language implementations.

map<string, string> fields = 8;

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)

getBucket()

public String getBucket()

string bucket = 4;

Returns
TypeDescription
java.lang.String

The bucket.

getBucketBoundHostname()

public String getBucketBoundHostname()

string bucketBoundHostname = 3;

Returns
TypeDescription
java.lang.String

The bucketBoundHostname.

getBucketBoundHostnameBytes()

public ByteString getBucketBoundHostnameBytes()

string bucketBoundHostname = 3;

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes for bucketBoundHostname.

getBucketBytes()

public ByteString getBucketBytes()

string bucket = 4;

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes for bucket.

getConditions()

public PolicyConditions getConditions()

.google.cloud.conformance.storage.v1.PolicyConditions conditions = 9;

Returns
TypeDescription
PolicyConditions

The conditions.

getConditionsOrBuilder()

public PolicyConditionsOrBuilder getConditionsOrBuilder()

.google.cloud.conformance.storage.v1.PolicyConditions conditions = 9;

Returns
TypeDescription
PolicyConditionsOrBuilder

getDefaultInstance()

public static PolicyInput getDefaultInstance()
Returns
TypeDescription
PolicyInput

getDefaultInstanceForType()

public PolicyInput getDefaultInstanceForType()
Returns
TypeDescription
PolicyInput

getDescriptor()

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

getExpiration()

public int getExpiration()

int32 expiration = 6;

Returns
TypeDescription
int

The expiration.

getFields()

public Map<String,String> getFields()

Use #getFieldsMap() instead.

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

getFieldsCount()

public int getFieldsCount()

fields with strict equivalence which are added into PolicyOutput.expectedDecodedPolicy to generate the signature. Expectations E.1: Order them in lexigraphical order so it's the signature can be verified across different language implementations.

map<string, string> fields = 8;

Returns
TypeDescription
int

getFieldsMap()

public Map<String,String> getFieldsMap()

fields with strict equivalence which are added into PolicyOutput.expectedDecodedPolicy to generate the signature. Expectations E.1: Order them in lexigraphical order so it's the signature can be verified across different language implementations.

map<string, string> fields = 8;

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

getFieldsOrDefault(String key, String defaultValue)

public String getFieldsOrDefault(String key, String defaultValue)

fields with strict equivalence which are added into PolicyOutput.expectedDecodedPolicy to generate the signature. Expectations E.1: Order them in lexigraphical order so it's the signature can be verified across different language implementations.

map<string, string> fields = 8;

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

getFieldsOrThrow(String key)

public String getFieldsOrThrow(String key)

fields with strict equivalence which are added into PolicyOutput.expectedDecodedPolicy to generate the signature. Expectations E.1: Order them in lexigraphical order so it's the signature can be verified across different language implementations.

map<string, string> fields = 8;

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

getObject()

public String getObject()

string object = 5;

Returns
TypeDescription
java.lang.String

The object.

getObjectBytes()

public ByteString getObjectBytes()

string object = 5;

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes for object.

getParserForType()

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

getScheme()

public String getScheme()

http or https

string scheme = 1;

Returns
TypeDescription
java.lang.String

The scheme.

getSchemeBytes()

public ByteString getSchemeBytes()

http or https

string scheme = 1;

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes for scheme.

getSerializedSize()

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

getTimestamp()

public Timestamp getTimestamp()

.google.protobuf.Timestamp timestamp = 7;

Returns
TypeDescription
com.google.protobuf.Timestamp

The timestamp.

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

.google.protobuf.Timestamp timestamp = 7;

Returns
TypeDescription
com.google.protobuf.TimestampOrBuilder

getUnknownFields()

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

getUrlStyle()

public UrlStyle getUrlStyle()

.google.cloud.conformance.storage.v1.UrlStyle urlStyle = 2;

Returns
TypeDescription
UrlStyle

The urlStyle.

getUrlStyleValue()

public int getUrlStyleValue()

.google.cloud.conformance.storage.v1.UrlStyle urlStyle = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for urlStyle.

hasConditions()

public boolean hasConditions()

.google.cloud.conformance.storage.v1.PolicyConditions conditions = 9;

Returns
TypeDescription
boolean

Whether the conditions field is set.

hasTimestamp()

public boolean hasTimestamp()

.google.protobuf.Timestamp timestamp = 7;

Returns
TypeDescription
boolean

Whether the timestamp field is set.

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 PolicyInput.Builder newBuilder()
Returns
TypeDescription
PolicyInput.Builder

newBuilder(PolicyInput prototype)

public static PolicyInput.Builder newBuilder(PolicyInput prototype)
Parameter
NameDescription
prototypePolicyInput
Returns
TypeDescription
PolicyInput.Builder

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PolicyInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentcom.google.protobuf.GeneratedMessageV3.BuilderParent
Returns
TypeDescription
PolicyInput.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 PolicyInput parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputjava.io.InputStream
Returns
TypeDescription
PolicyInput
Exceptions
TypeDescription
java.io.IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

toBuilder()

public PolicyInput.Builder toBuilder()
Returns
TypeDescription
PolicyInput.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