Class SignedUrlKey (1.22.0)

public final class SignedUrlKey extends GeneratedMessageV3 implements SignedUrlKeyOrBuilder

Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs

Protobuf type google.cloud.compute.v1.SignedUrlKey

Static Fields

KEY_NAME_FIELD_NUMBER

public static final int KEY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

KEY_VALUE_FIELD_NUMBER

public static final int KEY_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SignedUrlKey getDefaultInstance()
Returns
TypeDescription
SignedUrlKey

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

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

newBuilder(SignedUrlKey prototype)

public static SignedUrlKey.Builder newBuilder(SignedUrlKey prototype)
Parameter
NameDescription
prototypeSignedUrlKey
Returns
TypeDescription
SignedUrlKey.Builder

parseDelimitedFrom(InputStream input)

public static SignedUrlKey parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SignedUrlKey parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SignedUrlKey parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SignedUrlKey parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SignedUrlKey parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SignedUrlKey parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SignedUrlKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SignedUrlKey> parser()
Returns
TypeDescription
Parser<SignedUrlKey>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SignedUrlKey getDefaultInstanceForType()
Returns
TypeDescription
SignedUrlKey

getKeyName()

public String getKeyName()

Name of the key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string key_name = 500938859;

Returns
TypeDescription
String

The keyName.

getKeyNameBytes()

public ByteString getKeyNameBytes()

Name of the key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string key_name = 500938859;

Returns
TypeDescription
ByteString

The bytes for keyName.

getKeyValue()

public String getKeyValue()

128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string.

optional string key_value = 504106897;

Returns
TypeDescription
String

The keyValue.

getKeyValueBytes()

public ByteString getKeyValueBytes()

128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string.

optional string key_value = 504106897;

Returns
TypeDescription
ByteString

The bytes for keyValue.

getParserForType()

public Parser<SignedUrlKey> getParserForType()
Returns
TypeDescription
Parser<SignedUrlKey>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasKeyName()

public boolean hasKeyName()

Name of the key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string key_name = 500938859;

Returns
TypeDescription
boolean

Whether the keyName field is set.

hasKeyValue()

public boolean hasKeyValue()

128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string.

optional string key_value = 504106897;

Returns
TypeDescription
boolean

Whether the keyValue field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SignedUrlKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SignedUrlKey.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException