Class GenerateEphemeralCertRequest (0.1.0)

public final class GenerateEphemeralCertRequest extends GeneratedMessage implements GenerateEphemeralCertRequestOrBuilder

Ephemeral certificate creation request.

Protobuf type google.cloud.sql.v1beta4.GenerateEphemeralCertRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > GenerateEphemeralCertRequest

Static Fields

ACCESS_TOKEN_FIELD_NUMBER

public static final int ACCESS_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

INSTANCE_FIELD_NUMBER

public static final int INSTANCE_FIELD_NUMBER
Field Value
Type Description
int

PROJECT_FIELD_NUMBER

public static final int PROJECT_FIELD_NUMBER
Field Value
Type Description
int

PUBLIC_KEY_FIELD_NUMBER

public static final int PUBLIC_KEY_FIELD_NUMBER
Field Value
Type Description
int

READ_TIME_FIELD_NUMBER

public static final int READ_TIME_FIELD_NUMBER
Field Value
Type Description
int

VALID_DURATION_FIELD_NUMBER

public static final int VALID_DURATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerateEphemeralCertRequest getDefaultInstance()
Returns
Type Description
GenerateEphemeralCertRequest

getDescriptor()

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

newBuilder()

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

newBuilder(GenerateEphemeralCertRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAccessToken()

public String getAccessToken()

Optional. Access token to include in the signed certificate.

string access_token = 4 [json_name = "access_token", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The accessToken.

getAccessTokenBytes()

public ByteString getAccessTokenBytes()

Optional. Access token to include in the signed certificate.

string access_token = 4 [json_name = "access_token", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for accessToken.

getDefaultInstanceForType()

public GenerateEphemeralCertRequest getDefaultInstanceForType()
Returns
Type Description
GenerateEphemeralCertRequest

getInstance()

public String getInstance()

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Returns
Type Description
ByteString

The bytes for instance.

getParserForType()

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

getProject()

public String getProject()

Project ID of the project that contains the instance.

string project = 2;

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID of the project that contains the instance.

string project = 2;

Returns
Type Description
ByteString

The bytes for project.

getPublicKey()

public String getPublicKey()

PEM encoded public key to include in the signed certificate.

string public_key = 3 [json_name = "public_key"];

Returns
Type Description
String

The publicKey.

getPublicKeyBytes()

public ByteString getPublicKeyBytes()

PEM encoded public key to include in the signed certificate.

string public_key = 3 [json_name = "public_key"];

Returns
Type Description
ByteString

The bytes for publicKey.

getReadTime()

public Timestamp getReadTime()

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The readTime.

getReadTimeOrBuilder()

public TimestampOrBuilder getReadTimeOrBuilder()

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getValidDuration()

public Duration getValidDuration()

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The validDuration.

getValidDurationOrBuilder()

public DurationOrBuilder getValidDurationOrBuilder()

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

hasReadTime()

public boolean hasReadTime()

Optional. Optional snapshot read timestamp to trade freshness for performance.

.google.protobuf.Timestamp read_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the readTime field is set.

hasValidDuration()

public boolean hasValidDuration()

Optional. If set, it will contain the cert valid duration.

.google.protobuf.Duration valid_duration = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the validDuration field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected GenerateEphemeralCertRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GenerateEphemeralCertRequest.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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