Class DeploymentEvent (0.44.0)

public final class DeploymentEvent extends GeneratedMessage implements DeploymentEventOrBuilder

The DeploymentEvent resource represents the deployment of the artifact within the InsightsConfig resource.

Protobuf type google.cloud.developerconnect.v1.DeploymentEvent

Static Fields

ARTIFACT_DEPLOYMENTS_FIELD_NUMBER

public static final int ARTIFACT_DEPLOYMENTS_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DEPLOY_TIME_FIELD_NUMBER

public static final int DEPLOY_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RUNTIME_CONFIG_FIELD_NUMBER

public static final int RUNTIME_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

RUNTIME_DEPLOYMENT_URI_FIELD_NUMBER

public static final int RUNTIME_DEPLOYMENT_URI_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UNDEPLOY_TIME_FIELD_NUMBER

public static final int UNDEPLOY_TIME_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DeploymentEvent getDefaultInstance()
Returns
Type Description
DeploymentEvent

getDescriptor()

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

newBuilder()

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

newBuilder(DeploymentEvent prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getArtifactDeployments(int index)

public ArtifactDeployment getArtifactDeployments(int index)

Output only. The artifact deployments of the DeploymentEvent. Each artifact deployment contains the artifact uri and the runtime configuration uri. For GKE, this would be all the containers images that are deployed in the pod.

repeated .google.cloud.developerconnect.v1.ArtifactDeployment artifact_deployments = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ArtifactDeployment

getArtifactDeploymentsCount()

public int getArtifactDeploymentsCount()

Output only. The artifact deployments of the DeploymentEvent. Each artifact deployment contains the artifact uri and the runtime configuration uri. For GKE, this would be all the containers images that are deployed in the pod.

repeated .google.cloud.developerconnect.v1.ArtifactDeployment artifact_deployments = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getArtifactDeploymentsList()

public List<ArtifactDeployment> getArtifactDeploymentsList()

Output only. The artifact deployments of the DeploymentEvent. Each artifact deployment contains the artifact uri and the runtime configuration uri. For GKE, this would be all the containers images that are deployed in the pod.

repeated .google.cloud.developerconnect.v1.ArtifactDeployment artifact_deployments = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ArtifactDeployment>

getArtifactDeploymentsOrBuilder(int index)

public ArtifactDeploymentOrBuilder getArtifactDeploymentsOrBuilder(int index)

Output only. The artifact deployments of the DeploymentEvent. Each artifact deployment contains the artifact uri and the runtime configuration uri. For GKE, this would be all the containers images that are deployed in the pod.

repeated .google.cloud.developerconnect.v1.ArtifactDeployment artifact_deployments = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ArtifactDeploymentOrBuilder

getArtifactDeploymentsOrBuilderList()

public List<? extends ArtifactDeploymentOrBuilder> getArtifactDeploymentsOrBuilderList()

Output only. The artifact deployments of the DeploymentEvent. Each artifact deployment contains the artifact uri and the runtime configuration uri. For GKE, this would be all the containers images that are deployed in the pod.

repeated .google.cloud.developerconnect.v1.ArtifactDeployment artifact_deployments = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.developerconnect.v1.ArtifactDeploymentOrBuilder>

getCreateTime()

public Timestamp getCreateTime()

Output only. The create time of the DeploymentEvent.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create time of the DeploymentEvent.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public DeploymentEvent getDefaultInstanceForType()
Returns
Type Description
DeploymentEvent

getDeployTime()

public Timestamp getDeployTime()

Output only. The time at which the DeploymentEvent was deployed. This would be the min of all ArtifactDeployment deploy_times.

.google.protobuf.Timestamp deploy_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The deployTime.

getDeployTimeOrBuilder()

public TimestampOrBuilder getDeployTimeOrBuilder()

Output only. The time at which the DeploymentEvent was deployed. This would be the min of all ArtifactDeployment deploy_times.

.google.protobuf.Timestamp deploy_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Identifier. The name of the DeploymentEvent. This name is provided by Developer Connect insights. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the DeploymentEvent. This name is provided by Developer Connect insights. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getRuntimeConfig()

public RuntimeConfig getRuntimeConfig()

Output only. The runtime configurations where the DeploymentEvent happened.

.google.cloud.developerconnect.v1.RuntimeConfig runtime_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RuntimeConfig

The runtimeConfig.

getRuntimeConfigOrBuilder()

public RuntimeConfigOrBuilder getRuntimeConfigOrBuilder()

Output only. The runtime configurations where the DeploymentEvent happened.

.google.cloud.developerconnect.v1.RuntimeConfig runtime_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RuntimeConfigOrBuilder

getRuntimeDeploymentUri()

public String getRuntimeDeploymentUri()

Output only. The runtime assigned URI of the DeploymentEvent. For GKE, this is the fully qualified replica set uri. e.g. container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/apps/replicasets/{replica-set-id} For Cloud Run, this is the revision name.

string runtime_deployment_uri = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The runtimeDeploymentUri.

getRuntimeDeploymentUriBytes()

public ByteString getRuntimeDeploymentUriBytes()

Output only. The runtime assigned URI of the DeploymentEvent. For GKE, this is the fully qualified replica set uri. e.g. container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/apps/replicasets/{replica-set-id} For Cloud Run, this is the revision name.

string runtime_deployment_uri = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for runtimeDeploymentUri.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public DeploymentEvent.State getState()

Output only. The state of the DeploymentEvent.

.google.cloud.developerconnect.v1.DeploymentEvent.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeploymentEvent.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the DeploymentEvent.

.google.cloud.developerconnect.v1.DeploymentEvent.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUndeployTime()

public Timestamp getUndeployTime()

Output only. The time at which the DeploymentEvent was undeployed, all artifacts are considered undeployed once this time is set. This would be the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment is still active (i.e. does not have an undeploy_time), this field will be empty.

.google.protobuf.Timestamp undeploy_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The undeployTime.

getUndeployTimeOrBuilder()

public TimestampOrBuilder getUndeployTimeOrBuilder()

Output only. The time at which the DeploymentEvent was undeployed, all artifacts are considered undeployed once this time is set. This would be the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment is still active (i.e. does not have an undeploy_time), this field will be empty.

.google.protobuf.Timestamp undeploy_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update time of the DeploymentEvent.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update time of the DeploymentEvent.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The create time of the DeploymentEvent.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeployTime()

public boolean hasDeployTime()

Output only. The time at which the DeploymentEvent was deployed. This would be the min of all ArtifactDeployment deploy_times.

.google.protobuf.Timestamp deploy_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deployTime field is set.

hasRuntimeConfig()

public boolean hasRuntimeConfig()

Output only. The runtime configurations where the DeploymentEvent happened.

.google.cloud.developerconnect.v1.RuntimeConfig runtime_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the runtimeConfig field is set.

hasUndeployTime()

public boolean hasUndeployTime()

Output only. The time at which the DeploymentEvent was undeployed, all artifacts are considered undeployed once this time is set. This would be the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment is still active (i.e. does not have an undeploy_time), this field will be empty.

.google.protobuf.Timestamp undeploy_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the undeployTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update time of the DeploymentEvent.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime 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 DeploymentEvent.Builder newBuilderForType()
Returns
Type Description
DeploymentEvent.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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