Class Deployment

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.telcoautomation.v1.Deployment
All Implemented Interfaces:
DeploymentOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Deployment extends com.google.protobuf.GeneratedMessage implements DeploymentOrBuilder
 Deployment contains a collection of YAML files (This collection is also known
 as package) that can to applied on an orchestration cluster (GKE cluster with
 TNA addons) or a workload cluster.
 
Protobuf type google.cloud.telcoautomation.v1.Deployment
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • REVISION_ID_FIELD_NUMBER

      public static final int REVISION_ID_FIELD_NUMBER
      See Also:
    • SOURCE_BLUEPRINT_REVISION_FIELD_NUMBER

      public static final int SOURCE_BLUEPRINT_REVISION_FIELD_NUMBER
      See Also:
    • REVISION_CREATE_TIME_FIELD_NUMBER

      public static final int REVISION_CREATE_TIME_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • REPOSITORY_FIELD_NUMBER

      public static final int REPOSITORY_FIELD_NUMBER
      See Also:
    • FILES_FIELD_NUMBER

      public static final int FILES_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • SOURCE_PROVIDER_FIELD_NUMBER

      public static final int SOURCE_PROVIDER_FIELD_NUMBER
      See Also:
    • WORKLOAD_CLUSTER_FIELD_NUMBER

      public static final int WORKLOAD_CLUSTER_FIELD_NUMBER
      See Also:
    • DEPLOYMENT_LEVEL_FIELD_NUMBER

      public static final int DEPLOYMENT_LEVEL_FIELD_NUMBER
      See Also:
    • ROLLBACK_SUPPORT_FIELD_NUMBER

      public static final int ROLLBACK_SUPPORT_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       The name of the deployment.
       
      string name = 1;
      Specified by:
      getName in interface DeploymentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the deployment.
       
      string name = 1;
      Specified by:
      getNameBytes in interface DeploymentOrBuilder
      Returns:
      The bytes for name.
    • getRevisionId

      public String getRevisionId()
       Output only. Immutable. The revision ID of the deployment.
       A new revision is committed whenever a change in deployment is applied.
       
      string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionId in interface DeploymentOrBuilder
      Returns:
      The revisionId.
    • getRevisionIdBytes

      public com.google.protobuf.ByteString getRevisionIdBytes()
       Output only. Immutable. The revision ID of the deployment.
       A new revision is committed whenever a change in deployment is applied.
       
      string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionIdBytes in interface DeploymentOrBuilder
      Returns:
      The bytes for revisionId.
    • getSourceBlueprintRevision

      public String getSourceBlueprintRevision()
       Required. The blueprint revision from which this deployment was created.
       
      string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceBlueprintRevision in interface DeploymentOrBuilder
      Returns:
      The sourceBlueprintRevision.
    • getSourceBlueprintRevisionBytes

      public com.google.protobuf.ByteString getSourceBlueprintRevisionBytes()
       Required. The blueprint revision from which this deployment was created.
       
      string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceBlueprintRevisionBytes in interface DeploymentOrBuilder
      Returns:
      The bytes for sourceBlueprintRevision.
    • hasRevisionCreateTime

      public boolean hasRevisionCreateTime()
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasRevisionCreateTime in interface DeploymentOrBuilder
      Returns:
      Whether the revisionCreateTime field is set.
    • getRevisionCreateTime

      public com.google.protobuf.Timestamp getRevisionCreateTime()
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionCreateTime in interface DeploymentOrBuilder
      Returns:
      The revisionCreateTime.
    • getRevisionCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder()
       Output only. The timestamp that the revision was created.
       
      .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionCreateTimeOrBuilder in interface DeploymentOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. State of the deployment (DRAFT, APPLIED, DELETING).
       
      .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface DeploymentOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public Deployment.State getState()
       Output only. State of the deployment (DRAFT, APPLIED, DELETING).
       
      .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface DeploymentOrBuilder
      Returns:
      The state.
    • getDisplayName

      public String getDisplayName()
       Optional. Human readable name of a Deployment.
       
      string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface DeploymentOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. Human readable name of a Deployment.
       
      string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface DeploymentOrBuilder
      Returns:
      The bytes for displayName.
    • getRepository

      public String getRepository()
       Output only. Name of the repository where the deployment package files are
       stored.
       
      string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRepository in interface DeploymentOrBuilder
      Returns:
      The repository.
    • getRepositoryBytes

      public com.google.protobuf.ByteString getRepositoryBytes()
       Output only. Name of the repository where the deployment package files are
       stored.
       
      string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRepositoryBytes in interface DeploymentOrBuilder
      Returns:
      The bytes for repository.
    • getFilesList

      public List<File> getFilesList()
       Optional. Files present in a deployment.
       When invoking UpdateDeployment API, only the modified files should be
       included in this. Files that are not included in the update of a deployment
       will not be changed.
       
      repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilesList in interface DeploymentOrBuilder
    • getFilesOrBuilderList

      public List<? extends FileOrBuilder> getFilesOrBuilderList()
       Optional. Files present in a deployment.
       When invoking UpdateDeployment API, only the modified files should be
       included in this. Files that are not included in the update of a deployment
       will not be changed.
       
      repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilesOrBuilderList in interface DeploymentOrBuilder
    • getFilesCount

      public int getFilesCount()
       Optional. Files present in a deployment.
       When invoking UpdateDeployment API, only the modified files should be
       included in this. Files that are not included in the update of a deployment
       will not be changed.
       
      repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilesCount in interface DeploymentOrBuilder
    • getFiles

      public File getFiles(int index)
       Optional. Files present in a deployment.
       When invoking UpdateDeployment API, only the modified files should be
       included in this. Files that are not included in the update of a deployment
       will not be changed.
       
      repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFiles in interface DeploymentOrBuilder
    • getFilesOrBuilder

      public FileOrBuilder getFilesOrBuilder(int index)
       Optional. Files present in a deployment.
       When invoking UpdateDeployment API, only the modified files should be
       included in this. Files that are not included in the update of a deployment
       will not be changed.
       
      repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilesOrBuilder in interface DeploymentOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: DeploymentOrBuilder
       Optional. Labels are key-value attributes that can be set on a deployment
       resource by the user.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface DeploymentOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels are key-value attributes that can be set on a deployment
       resource by the user.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface DeploymentOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface DeploymentOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels are key-value attributes that can be set on a deployment
       resource by the user.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface DeploymentOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels are key-value attributes that can be set on a deployment
       resource by the user.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface DeploymentOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels are key-value attributes that can be set on a deployment
       resource by the user.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface DeploymentOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Deployment creation time.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DeploymentOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Deployment creation time.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DeploymentOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Deployment creation time.
       
      .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DeploymentOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when the deployment was updated.
       
      .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface DeploymentOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the deployment was updated.
       
      .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface DeploymentOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the deployment was updated.
       
      .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface DeploymentOrBuilder
    • getSourceProvider

      public String getSourceProvider()
       Output only. Source provider is the author of a public blueprint, from
       which this deployment is created.
       
      string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceProvider in interface DeploymentOrBuilder
      Returns:
      The sourceProvider.
    • getSourceProviderBytes

      public com.google.protobuf.ByteString getSourceProviderBytes()
       Output only. Source provider is the author of a public blueprint, from
       which this deployment is created.
       
      string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceProviderBytes in interface DeploymentOrBuilder
      Returns:
      The bytes for sourceProvider.
    • getWorkloadCluster

      public String getWorkloadCluster()
       Optional. Immutable. The WorkloadCluster on which to create the Deployment.
       This field should only be passed when the deployment_level of the source
       blueprint specifies deployments on workload clusters e.g.
       WORKLOAD_CLUSTER_DEPLOYMENT.
       
      string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWorkloadCluster in interface DeploymentOrBuilder
      Returns:
      The workloadCluster.
    • getWorkloadClusterBytes

      public com.google.protobuf.ByteString getWorkloadClusterBytes()
       Optional. Immutable. The WorkloadCluster on which to create the Deployment.
       This field should only be passed when the deployment_level of the source
       blueprint specifies deployments on workload clusters e.g.
       WORKLOAD_CLUSTER_DEPLOYMENT.
       
      string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWorkloadClusterBytes in interface DeploymentOrBuilder
      Returns:
      The bytes for workloadCluster.
    • getDeploymentLevelValue

      public int getDeploymentLevelValue()
       Output only. Attributes to where the deployment can inflict changes. The
       value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
       
      .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeploymentLevelValue in interface DeploymentOrBuilder
      Returns:
      The enum numeric value on the wire for deploymentLevel.
    • getDeploymentLevel

      public DeploymentLevel getDeploymentLevel()
       Output only. Attributes to where the deployment can inflict changes. The
       value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
       
      .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeploymentLevel in interface DeploymentOrBuilder
      Returns:
      The deploymentLevel.
    • getRollbackSupport

      public boolean getRollbackSupport()
       Output only. Indicates if the deployment can be rolled back, exported from
       public blueprint.
       
      bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRollbackSupport in interface DeploymentOrBuilder
      Returns:
      The rollbackSupport.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Deployment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Deployment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Deployment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Deployment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Deployment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Deployment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Deployment parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Deployment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Deployment parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Deployment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Deployment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Deployment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Deployment.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Deployment.Builder newBuilder()
    • newBuilder

      public static Deployment.Builder newBuilder(Deployment prototype)
    • toBuilder

      public Deployment.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Deployment.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Deployment getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Deployment> parser()
    • getParserForType

      public com.google.protobuf.Parser<Deployment> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Deployment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder