Class FleetPackage

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.configdelivery.v1beta.FleetPackage
All Implemented Interfaces:
FleetPackageOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class FleetPackage extends com.google.protobuf.GeneratedMessage implements FleetPackageOrBuilder
 A `FleetPackage` resource in the Config Delivery API.

 A `FleetPackage` defines a package through which kubernetes
 configuration is deployed to a fleet of kubernetes clusters.
 
Protobuf type google.cloud.configdelivery.v1beta.FleetPackage
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_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:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • RESOURCE_BUNDLE_SELECTOR_FIELD_NUMBER

      public static final int RESOURCE_BUNDLE_SELECTOR_FIELD_NUMBER
      See Also:
    • TARGET_FIELD_NUMBER

      public static final int TARGET_FIELD_NUMBER
      See Also:
    • ROLLOUT_STRATEGY_FIELD_NUMBER

      public static final int ROLLOUT_STRATEGY_FIELD_NUMBER
      See Also:
    • VARIANT_SELECTOR_FIELD_NUMBER

      public static final int VARIANT_SELECTOR_FIELD_NUMBER
      See Also:
    • INFO_FIELD_NUMBER

      public static final int INFO_FIELD_NUMBER
      See Also:
    • DELETION_PROPAGATION_POLICY_FIELD_NUMBER

      public static final int DELETION_PROPAGATION_POLICY_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_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()
       Identifier. Name of the `FleetPackage`. Format is
       `projects/{project}/locations/{location}/fleetPackages/{fleetPackage}`.
       The `fleetPackage` component must match
       `[a-z][a-z0-9\-]{0,62}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface FleetPackageOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of the `FleetPackage`. Format is
       `projects/{project}/locations/{location}/fleetPackages/{fleetPackage}`.
       The `fleetPackage` component must match
       `[a-z][a-z0-9\-]{0,62}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface FleetPackageOrBuilder
      Returns:
      The bytes for name.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time at which the `FleetPackage` was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface FleetPackageOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time at which the `FleetPackage` was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface FleetPackageOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time at which the `FleetPackage` was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface FleetPackageOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Most recent time at which the `FleetPackage` was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface FleetPackageOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Most recent time at which the `FleetPackage` was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface FleetPackageOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Most recent time at which the `FleetPackage` was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface FleetPackageOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: FleetPackageOrBuilder
       Optional. Labels are attributes that can be set and used by both the
       user and by Config Delivery. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface FleetPackageOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels are attributes that can be set and used by both the
       user and by Config Delivery. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface FleetPackageOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       Optional. Labels are attributes that can be set and used by both the
       user and by Config Delivery. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface FleetPackageOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels are attributes that can be set and used by both the
       user and by Config Delivery. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface FleetPackageOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels are attributes that can be set and used by both the
       user and by Config Delivery. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface FleetPackageOrBuilder
    • hasResourceBundleSelector

      public boolean hasResourceBundleSelector()
       Required. Information specifying the source of kubernetes configuration to
       deploy.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.ResourceBundleSelector resource_bundle_selector = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasResourceBundleSelector in interface FleetPackageOrBuilder
      Returns:
      Whether the resourceBundleSelector field is set.
    • getResourceBundleSelector

      public FleetPackage.ResourceBundleSelector getResourceBundleSelector()
       Required. Information specifying the source of kubernetes configuration to
       deploy.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.ResourceBundleSelector resource_bundle_selector = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceBundleSelector in interface FleetPackageOrBuilder
      Returns:
      The resourceBundleSelector.
    • getResourceBundleSelectorOrBuilder

      public FleetPackage.ResourceBundleSelectorOrBuilder getResourceBundleSelectorOrBuilder()
       Required. Information specifying the source of kubernetes configuration to
       deploy.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.ResourceBundleSelector resource_bundle_selector = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceBundleSelectorOrBuilder in interface FleetPackageOrBuilder
    • hasTarget

      public boolean hasTarget()
       Optional. Configuration to select target clusters to deploy kubernetes
       configuration to.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.Target target = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTarget in interface FleetPackageOrBuilder
      Returns:
      Whether the target field is set.
    • getTarget

      public FleetPackage.Target getTarget()
       Optional. Configuration to select target clusters to deploy kubernetes
       configuration to.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.Target target = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTarget in interface FleetPackageOrBuilder
      Returns:
      The target.
    • getTargetOrBuilder

      public FleetPackage.TargetOrBuilder getTargetOrBuilder()
       Optional. Configuration to select target clusters to deploy kubernetes
       configuration to.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.Target target = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetOrBuilder in interface FleetPackageOrBuilder
    • hasRolloutStrategy

      public boolean hasRolloutStrategy()
       Optional. The strategy to use to deploy kubernetes configuration to
       clusters.
       
      .google.cloud.configdelivery.v1beta.RolloutStrategy rollout_strategy = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRolloutStrategy in interface FleetPackageOrBuilder
      Returns:
      Whether the rolloutStrategy field is set.
    • getRolloutStrategy

      public RolloutStrategy getRolloutStrategy()
       Optional. The strategy to use to deploy kubernetes configuration to
       clusters.
       
      .google.cloud.configdelivery.v1beta.RolloutStrategy rollout_strategy = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolloutStrategy in interface FleetPackageOrBuilder
      Returns:
      The rolloutStrategy.
    • getRolloutStrategyOrBuilder

      public RolloutStrategyOrBuilder getRolloutStrategyOrBuilder()
       Optional. The strategy to use to deploy kubernetes configuration to
       clusters.
       
      .google.cloud.configdelivery.v1beta.RolloutStrategy rollout_strategy = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolloutStrategyOrBuilder in interface FleetPackageOrBuilder
    • hasVariantSelector

      public boolean hasVariantSelector()
       Required. Information specifying how to map a `ResourceBundle` variant to a
       target cluster.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.VariantSelector variant_selector = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasVariantSelector in interface FleetPackageOrBuilder
      Returns:
      Whether the variantSelector field is set.
    • getVariantSelector

      public FleetPackage.VariantSelector getVariantSelector()
       Required. Information specifying how to map a `ResourceBundle` variant to a
       target cluster.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.VariantSelector variant_selector = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVariantSelector in interface FleetPackageOrBuilder
      Returns:
      The variantSelector.
    • getVariantSelectorOrBuilder

      public FleetPackage.VariantSelectorOrBuilder getVariantSelectorOrBuilder()
       Required. Information specifying how to map a `ResourceBundle` variant to a
       target cluster.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.VariantSelector variant_selector = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVariantSelectorOrBuilder in interface FleetPackageOrBuilder
    • hasInfo

      public boolean hasInfo()
       Output only. Information containing the rollout status of the
       `FleetPackage` across all the target clusters.
       
      .google.cloud.configdelivery.v1beta.FleetPackageInfo info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasInfo in interface FleetPackageOrBuilder
      Returns:
      Whether the info field is set.
    • getInfo

      public FleetPackageInfo getInfo()
       Output only. Information containing the rollout status of the
       `FleetPackage` across all the target clusters.
       
      .google.cloud.configdelivery.v1beta.FleetPackageInfo info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInfo in interface FleetPackageOrBuilder
      Returns:
      The info.
    • getInfoOrBuilder

      public FleetPackageInfoOrBuilder getInfoOrBuilder()
       Output only. Information containing the rollout status of the
       `FleetPackage` across all the target clusters.
       
      .google.cloud.configdelivery.v1beta.FleetPackageInfo info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInfoOrBuilder in interface FleetPackageOrBuilder
    • getDeletionPropagationPolicyValue

      public int getDeletionPropagationPolicyValue()
       Optional. Information around how to handle kubernetes resources at the
       target clusters when the `FleetPackage` is deleted.
       
      .google.cloud.configdelivery.v1beta.DeletionPropagationPolicy deletion_propagation_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeletionPropagationPolicyValue in interface FleetPackageOrBuilder
      Returns:
      The enum numeric value on the wire for deletionPropagationPolicy.
    • getDeletionPropagationPolicy

      public DeletionPropagationPolicy getDeletionPropagationPolicy()
       Optional. Information around how to handle kubernetes resources at the
       target clusters when the `FleetPackage` is deleted.
       
      .google.cloud.configdelivery.v1beta.DeletionPropagationPolicy deletion_propagation_policy = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeletionPropagationPolicy in interface FleetPackageOrBuilder
      Returns:
      The deletionPropagationPolicy.
    • getStateValue

      public int getStateValue()
       Optional. The desired state of the fleet package.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.State state = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStateValue in interface FleetPackageOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public FleetPackage.State getState()
       Optional. The desired state of the fleet package.
       
      .google.cloud.configdelivery.v1beta.FleetPackage.State state = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getState in interface FleetPackageOrBuilder
      Returns:
      The state.
    • 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 FleetPackage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static FleetPackage.Builder newBuilder()
    • newBuilder

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

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

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

      public static FleetPackage getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<FleetPackage> 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 FleetPackage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder