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
KEY_VALUE_FIELD_NUMBER
public static final int KEY_VALUE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SignedUrlKey getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SignedUrlKey.Builder newBuilder()
Returns
newBuilder(SignedUrlKey prototype)
public static SignedUrlKey.Builder newBuilder(SignedUrlKey prototype)
Parameter
Returns
public static SignedUrlKey parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SignedUrlKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SignedUrlKey parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SignedUrlKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SignedUrlKey parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SignedUrlKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SignedUrlKey parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SignedUrlKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SignedUrlKey parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SignedUrlKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SignedUrlKey parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SignedUrlKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SignedUrlKey> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SignedUrlKey getDefaultInstanceForType()
Returns
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
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
getParserForType()
public Parser<SignedUrlKey> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SignedUrlKey.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SignedUrlKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SignedUrlKey.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions