Class CustomTargetType

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.deploy.v1.CustomTargetType
All Implemented Interfaces:
CustomTargetTypeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CustomTargetType extends com.google.protobuf.GeneratedMessage implements CustomTargetTypeOrBuilder
 A `CustomTargetType` resource in the Cloud Deploy API.

 A `CustomTargetType` defines a type of custom target that can be referenced
 in a `Target` in order to facilitate deploying to other systems besides the
 supported runtimes.
 
Protobuf type google.cloud.deploy.v1.CustomTargetType
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CUSTOM_TARGET_TYPE_ID_FIELD_NUMBER

      public static final int CUSTOM_TARGET_TYPE_ID_FIELD_NUMBER
      See Also:
    • UID_FIELD_NUMBER

      public static final int UID_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • ANNOTATIONS_FIELD_NUMBER

      public static final int ANNOTATIONS_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:
    • ETAG_FIELD_NUMBER

      public static final int ETAG_FIELD_NUMBER
      See Also:
    • CUSTOM_ACTIONS_FIELD_NUMBER

      public static final int CUSTOM_ACTIONS_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
    • getDefinitionCase

      public CustomTargetType.DefinitionCase getDefinitionCase()
      Specified by:
      getDefinitionCase in interface CustomTargetTypeOrBuilder
    • getName

      public String getName()
       Identifier. Name of the `CustomTargetType`. Format is
       `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
       The `customTargetType` component must match
       `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface CustomTargetTypeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of the `CustomTargetType`. Format is
       `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
       The `customTargetType` component must match
       `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface CustomTargetTypeOrBuilder
      Returns:
      The bytes for name.
    • getCustomTargetTypeId

      public String getCustomTargetTypeId()
       Output only. Resource id of the `CustomTargetType`.
       
      string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCustomTargetTypeId in interface CustomTargetTypeOrBuilder
      Returns:
      The customTargetTypeId.
    • getCustomTargetTypeIdBytes

      public com.google.protobuf.ByteString getCustomTargetTypeIdBytes()
       Output only. Resource id of the `CustomTargetType`.
       
      string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCustomTargetTypeIdBytes in interface CustomTargetTypeOrBuilder
      Returns:
      The bytes for customTargetTypeId.
    • getUid

      public String getUid()
       Output only. Unique identifier of the `CustomTargetType`.
       
      string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface CustomTargetTypeOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Unique identifier of the `CustomTargetType`.
       
      string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface CustomTargetTypeOrBuilder
      Returns:
      The bytes for uid.
    • getDescription

      public String getDescription()
       Optional. Description of the `CustomTargetType`. Max length is 255
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface CustomTargetTypeOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description of the `CustomTargetType`. Max length is 255
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface CustomTargetTypeOrBuilder
      Returns:
      The bytes for description.
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: CustomTargetTypeOrBuilder
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface CustomTargetTypeOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface CustomTargetTypeOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface CustomTargetTypeOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface CustomTargetTypeOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface CustomTargetTypeOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface CustomTargetTypeOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: CustomTargetTypeOrBuilder
       Optional. Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. 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 = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface CustomTargetTypeOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. 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 = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface CustomTargetTypeOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       Optional. Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. 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 = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface CustomTargetTypeOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. 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 = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface CustomTargetTypeOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. 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 = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface CustomTargetTypeOrBuilder
    • hasCreateTime

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

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

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

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

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

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

      public String getEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface CustomTargetTypeOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface CustomTargetTypeOrBuilder
      Returns:
      The bytes for etag.
    • hasCustomActions

      public boolean hasCustomActions()
       Optional. Configures render and deploy for the `CustomTargetType` using
       Skaffold custom actions.
       
      .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCustomActions in interface CustomTargetTypeOrBuilder
      Returns:
      Whether the customActions field is set.
    • getCustomActions

      public CustomTargetSkaffoldActions getCustomActions()
       Optional. Configures render and deploy for the `CustomTargetType` using
       Skaffold custom actions.
       
      .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomActions in interface CustomTargetTypeOrBuilder
      Returns:
      The customActions.
    • getCustomActionsOrBuilder

      public CustomTargetSkaffoldActionsOrBuilder getCustomActionsOrBuilder()
       Optional. Configures render and deploy for the `CustomTargetType` using
       Skaffold custom actions.
       
      .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomActionsOrBuilder in interface CustomTargetTypeOrBuilder
    • 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 CustomTargetType parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static CustomTargetType.Builder newBuilder()
    • newBuilder

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

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

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

      public static CustomTargetType getDefaultInstance()
    • parser

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

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