Class DeploymentMetadata (0.28.0)

public final class DeploymentMetadata extends GeneratedMessageV3 implements DeploymentMetadataOrBuilder

The metadata associated with a deployment.

Protobuf type google.cloud.apihub.v1.DeploymentMetadata

Static Fields

DEPLOYMENT_FIELD_NUMBER

public static final int DEPLOYMENT_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_CREATE_TIME_FIELD_NUMBER

public static final int ORIGINAL_CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_ID_FIELD_NUMBER

public static final int ORIGINAL_ID_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_UPDATE_TIME_FIELD_NUMBER

public static final int ORIGINAL_UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DeploymentMetadata getDefaultInstance()
Returns
Type Description
DeploymentMetadata

getDescriptor()

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

newBuilder()

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

newBuilder(DeploymentMetadata prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DeploymentMetadata getDefaultInstanceForType()
Returns
Type Description
DeploymentMetadata

getDeployment()

public Deployment getDeployment()

Required. The deployment resource to be pushed to Hub's collect layer. The ID of the deployment will be generated by Hub.

.google.cloud.apihub.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Deployment

The deployment.

getDeploymentOrBuilder()

public DeploymentOrBuilder getDeploymentOrBuilder()

Required. The deployment resource to be pushed to Hub's collect layer. The ID of the deployment will be generated by Hub.

.google.cloud.apihub.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeploymentOrBuilder

getOriginalCreateTime()

public Timestamp getOriginalCreateTime()

Optional. Timestamp indicating when the deployment was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The originalCreateTime.

getOriginalCreateTimeOrBuilder()

public TimestampOrBuilder getOriginalCreateTimeOrBuilder()

Optional. Timestamp indicating when the deployment was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getOriginalId()

public String getOriginalId()

Optional. The unique identifier of the deployment in the system where it was originally created.

string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The originalId.

getOriginalIdBytes()

public ByteString getOriginalIdBytes()

Optional. The unique identifier of the deployment in the system where it was originally created.

string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for originalId.

getOriginalUpdateTime()

public Timestamp getOriginalUpdateTime()

Required. Timestamp indicating when the deployment was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The originalUpdateTime.

getOriginalUpdateTimeOrBuilder()

public TimestampOrBuilder getOriginalUpdateTimeOrBuilder()

Required. Timestamp indicating when the deployment was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasDeployment()

public boolean hasDeployment()

Required. The deployment resource to be pushed to Hub's collect layer. The ID of the deployment will be generated by Hub.

.google.cloud.apihub.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the deployment field is set.

hasOriginalCreateTime()

public boolean hasOriginalCreateTime()

Optional. Timestamp indicating when the deployment was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the originalCreateTime field is set.

hasOriginalUpdateTime()

public boolean hasOriginalUpdateTime()

Required. Timestamp indicating when the deployment was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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