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