Class SignedUrlKey (1.65.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
Type Description
int

KEY_VALUE_FIELD_NUMBER

public static final int KEY_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SignedUrlKey getDefaultInstance()
Returns
Type Description
SignedUrlKey

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SignedUrlKey.Builder newBuilder()
Returns
Type Description
SignedUrlKey.Builder

newBuilder(SignedUrlKey prototype)

public static SignedUrlKey.Builder newBuilder(SignedUrlKey prototype)
Parameter
Name Description
prototype SignedUrlKey
Returns
Type Description
SignedUrlKey.Builder

parseDelimitedFrom(InputStream input)

public static SignedUrlKey parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SignedUrlKey parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SignedUrlKey parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SignedUrlKey parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SignedUrlKey parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SignedUrlKey parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SignedUrlKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignedUrlKey
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SignedUrlKey> parser()
Returns
Type Description
Parser<SignedUrlKey>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SignedUrlKey getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for keyValue.

getParserForType()

public Parser<SignedUrlKey> getParserForType()
Returns
Type Description
Parser<SignedUrlKey>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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
Type Description
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
Type Description
boolean

Whether the keyValue field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SignedUrlKey.Builder newBuilderForType()
Returns
Type Description
SignedUrlKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SignedUrlKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SignedUrlKey.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SignedUrlKey.Builder toBuilder()
Returns
Type Description
SignedUrlKey.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException