Class TagHold.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TagHold.Builder>
com.google.cloud.resourcemanager.v3.TagHold.Builder
All Implemented Interfaces:
TagHoldOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TagHold

public static final class TagHold.Builder extends com.google.protobuf.GeneratedMessage.Builder<TagHold.Builder> implements TagHoldOrBuilder
 A TagHold represents the use of a TagValue that is not captured by
 TagBindings. If a TagValue has any TagHolds, deletion will be blocked.
 This resource is intended to be created in the same cloud location as the
 `holder`.
 
Protobuf type google.cloud.resourcemanager.v3.TagHold
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TagHold.Builder>
    • clear

      public TagHold.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TagHold.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TagHold.Builder>
    • getDefaultInstanceForType

      public TagHold getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TagHold build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TagHold buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TagHold.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TagHold.Builder>
    • mergeFrom

      public TagHold.Builder mergeFrom(TagHold other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TagHold.Builder>
    • mergeFrom

      public TagHold.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TagHold.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. The resource name of a TagHold. This is a String of the form:
       `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}`
       (e.g. `tagValues/123/tagHolds/456`). This resource name is generated by
       the server.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface TagHoldOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of a TagHold. This is a String of the form:
       `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}`
       (e.g. `tagValues/123/tagHolds/456`). This resource name is generated by
       the server.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface TagHoldOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TagHold.Builder setName(String value)
       Output only. The resource name of a TagHold. This is a String of the form:
       `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}`
       (e.g. `tagValues/123/tagHolds/456`). This resource name is generated by
       the server.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TagHold.Builder clearName()
       Output only. The resource name of a TagHold. This is a String of the form:
       `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}`
       (e.g. `tagValues/123/tagHolds/456`). This resource name is generated by
       the server.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public TagHold.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of a TagHold. This is a String of the form:
       `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}`
       (e.g. `tagValues/123/tagHolds/456`). This resource name is generated by
       the server.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getHolder

      public String getHolder()
       Required. The name of the resource where the TagValue is being used. Must
       be less than 200 characters. E.g.
       `//compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group`
       
      string holder = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHolder in interface TagHoldOrBuilder
      Returns:
      The holder.
    • getHolderBytes

      public com.google.protobuf.ByteString getHolderBytes()
       Required. The name of the resource where the TagValue is being used. Must
       be less than 200 characters. E.g.
       `//compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group`
       
      string holder = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHolderBytes in interface TagHoldOrBuilder
      Returns:
      The bytes for holder.
    • setHolder

      public TagHold.Builder setHolder(String value)
       Required. The name of the resource where the TagValue is being used. Must
       be less than 200 characters. E.g.
       `//compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group`
       
      string holder = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The holder to set.
      Returns:
      This builder for chaining.
    • clearHolder

      public TagHold.Builder clearHolder()
       Required. The name of the resource where the TagValue is being used. Must
       be less than 200 characters. E.g.
       `//compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group`
       
      string holder = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setHolderBytes

      public TagHold.Builder setHolderBytes(com.google.protobuf.ByteString value)
       Required. The name of the resource where the TagValue is being used. Must
       be less than 200 characters. E.g.
       `//compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group`
       
      string holder = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for holder to set.
      Returns:
      This builder for chaining.
    • getOrigin

      public String getOrigin()
       Optional. An optional string representing the origin of this request. This
       field should include human-understandable information to distinguish
       origins from each other. Must be less than 200 characters. E.g.
       `migs-35678234`
       
      string origin = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrigin in interface TagHoldOrBuilder
      Returns:
      The origin.
    • getOriginBytes

      public com.google.protobuf.ByteString getOriginBytes()
       Optional. An optional string representing the origin of this request. This
       field should include human-understandable information to distinguish
       origins from each other. Must be less than 200 characters. E.g.
       `migs-35678234`
       
      string origin = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginBytes in interface TagHoldOrBuilder
      Returns:
      The bytes for origin.
    • setOrigin

      public TagHold.Builder setOrigin(String value)
       Optional. An optional string representing the origin of this request. This
       field should include human-understandable information to distinguish
       origins from each other. Must be less than 200 characters. E.g.
       `migs-35678234`
       
      string origin = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The origin to set.
      Returns:
      This builder for chaining.
    • clearOrigin

      public TagHold.Builder clearOrigin()
       Optional. An optional string representing the origin of this request. This
       field should include human-understandable information to distinguish
       origins from each other. Must be less than 200 characters. E.g.
       `migs-35678234`
       
      string origin = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOriginBytes

      public TagHold.Builder setOriginBytes(com.google.protobuf.ByteString value)
       Optional. An optional string representing the origin of this request. This
       field should include human-understandable information to distinguish
       origins from each other. Must be less than 200 characters. E.g.
       `migs-35678234`
       
      string origin = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for origin to set.
      Returns:
      This builder for chaining.
    • getHelpLink

      public String getHelpLink()
       Optional. A URL where an end user can learn more about removing this hold.
       E.g.
       `https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing`
       
      string help_link = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHelpLink in interface TagHoldOrBuilder
      Returns:
      The helpLink.
    • getHelpLinkBytes

      public com.google.protobuf.ByteString getHelpLinkBytes()
       Optional. A URL where an end user can learn more about removing this hold.
       E.g.
       `https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing`
       
      string help_link = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHelpLinkBytes in interface TagHoldOrBuilder
      Returns:
      The bytes for helpLink.
    • setHelpLink

      public TagHold.Builder setHelpLink(String value)
       Optional. A URL where an end user can learn more about removing this hold.
       E.g.
       `https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing`
       
      string help_link = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The helpLink to set.
      Returns:
      This builder for chaining.
    • clearHelpLink

      public TagHold.Builder clearHelpLink()
       Optional. A URL where an end user can learn more about removing this hold.
       E.g.
       `https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing`
       
      string help_link = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setHelpLinkBytes

      public TagHold.Builder setHelpLinkBytes(com.google.protobuf.ByteString value)
       Optional. A URL where an end user can learn more about removing this hold.
       E.g.
       `https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing`
       
      string help_link = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for helpLink to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time this TagHold was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface TagHoldOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time this TagHold was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface TagHoldOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public TagHold.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time this TagHold was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public TagHold.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time this TagHold was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public TagHold.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time this TagHold was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public TagHold.Builder clearCreateTime()
       Output only. The time this TagHold was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time this TagHold was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time this TagHold was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface TagHoldOrBuilder