Class TagBinding.Builder

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

public static final class TagBinding.Builder extends com.google.protobuf.GeneratedMessage.Builder<TagBinding.Builder> implements TagBindingOrBuilder
 A TagBinding represents a connection between a TagValue and a cloud
 resource Once a TagBinding is created, the TagValue is applied to all the
 descendants of the Google Cloud resource.
 
Protobuf type google.cloud.resourcemanager.v3.TagBinding
  • 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<TagBinding.Builder>
    • clear

      public TagBinding.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<TagBinding.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<TagBinding.Builder>
    • getDefaultInstanceForType

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

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

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

      public TagBinding.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<TagBinding.Builder>
    • mergeFrom

      public TagBinding.Builder mergeFrom(TagBinding other)
    • isInitialized

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

      public TagBinding.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<TagBinding.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. The name of the TagBinding. This is a String of the form:
       `tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
       `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface TagBindingOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The name of the TagBinding. This is a String of the form:
       `tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
       `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface TagBindingOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TagBinding.Builder setName(String value)
       Output only. The name of the TagBinding. This is a String of the form:
       `tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
       `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TagBinding.Builder clearName()
       Output only. The name of the TagBinding. This is a String of the form:
       `tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
       `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public TagBinding.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the TagBinding. This is a String of the form:
       `tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
       `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getParent

      public String getParent()
       The full resource name of the resource the TagValue is bound to.
       E.g. `//cloudresourcemanager.googleapis.com/projects/123`
       
      string parent = 2;
      Specified by:
      getParent in interface TagBindingOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       The full resource name of the resource the TagValue is bound to.
       E.g. `//cloudresourcemanager.googleapis.com/projects/123`
       
      string parent = 2;
      Specified by:
      getParentBytes in interface TagBindingOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public TagBinding.Builder setParent(String value)
       The full resource name of the resource the TagValue is bound to.
       E.g. `//cloudresourcemanager.googleapis.com/projects/123`
       
      string parent = 2;
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public TagBinding.Builder clearParent()
       The full resource name of the resource the TagValue is bound to.
       E.g. `//cloudresourcemanager.googleapis.com/projects/123`
       
      string parent = 2;
      Returns:
      This builder for chaining.
    • setParentBytes

      public TagBinding.Builder setParentBytes(com.google.protobuf.ByteString value)
       The full resource name of the resource the TagValue is bound to.
       E.g. `//cloudresourcemanager.googleapis.com/projects/123`
       
      string parent = 2;
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getTagValue

      public String getTagValue()
       The TagValue of the TagBinding.
       Must be of the form `tagValues/456`.
       
      string tag_value = 3;
      Specified by:
      getTagValue in interface TagBindingOrBuilder
      Returns:
      The tagValue.
    • getTagValueBytes

      public com.google.protobuf.ByteString getTagValueBytes()
       The TagValue of the TagBinding.
       Must be of the form `tagValues/456`.
       
      string tag_value = 3;
      Specified by:
      getTagValueBytes in interface TagBindingOrBuilder
      Returns:
      The bytes for tagValue.
    • setTagValue

      public TagBinding.Builder setTagValue(String value)
       The TagValue of the TagBinding.
       Must be of the form `tagValues/456`.
       
      string tag_value = 3;
      Parameters:
      value - The tagValue to set.
      Returns:
      This builder for chaining.
    • clearTagValue

      public TagBinding.Builder clearTagValue()
       The TagValue of the TagBinding.
       Must be of the form `tagValues/456`.
       
      string tag_value = 3;
      Returns:
      This builder for chaining.
    • setTagValueBytes

      public TagBinding.Builder setTagValueBytes(com.google.protobuf.ByteString value)
       The TagValue of the TagBinding.
       Must be of the form `tagValues/456`.
       
      string tag_value = 3;
      Parameters:
      value - The bytes for tagValue to set.
      Returns:
      This builder for chaining.
    • getTagValueNamespacedName

      public String getTagValueNamespacedName()
       The namespaced name for the TagValue of the TagBinding.
       Must be in the format
       `{parent_id}/{tag_key_short_name}/{short_name}`.
      
       For methods that support TagValue namespaced name, only one of
       tag_value_namespaced_name or tag_value may be filled. Requests with both
       fields will be rejected.
       
      string tag_value_namespaced_name = 4;
      Specified by:
      getTagValueNamespacedName in interface TagBindingOrBuilder
      Returns:
      The tagValueNamespacedName.
    • getTagValueNamespacedNameBytes

      public com.google.protobuf.ByteString getTagValueNamespacedNameBytes()
       The namespaced name for the TagValue of the TagBinding.
       Must be in the format
       `{parent_id}/{tag_key_short_name}/{short_name}`.
      
       For methods that support TagValue namespaced name, only one of
       tag_value_namespaced_name or tag_value may be filled. Requests with both
       fields will be rejected.
       
      string tag_value_namespaced_name = 4;
      Specified by:
      getTagValueNamespacedNameBytes in interface TagBindingOrBuilder
      Returns:
      The bytes for tagValueNamespacedName.
    • setTagValueNamespacedName

      public TagBinding.Builder setTagValueNamespacedName(String value)
       The namespaced name for the TagValue of the TagBinding.
       Must be in the format
       `{parent_id}/{tag_key_short_name}/{short_name}`.
      
       For methods that support TagValue namespaced name, only one of
       tag_value_namespaced_name or tag_value may be filled. Requests with both
       fields will be rejected.
       
      string tag_value_namespaced_name = 4;
      Parameters:
      value - The tagValueNamespacedName to set.
      Returns:
      This builder for chaining.
    • clearTagValueNamespacedName

      public TagBinding.Builder clearTagValueNamespacedName()
       The namespaced name for the TagValue of the TagBinding.
       Must be in the format
       `{parent_id}/{tag_key_short_name}/{short_name}`.
      
       For methods that support TagValue namespaced name, only one of
       tag_value_namespaced_name or tag_value may be filled. Requests with both
       fields will be rejected.
       
      string tag_value_namespaced_name = 4;
      Returns:
      This builder for chaining.
    • setTagValueNamespacedNameBytes

      public TagBinding.Builder setTagValueNamespacedNameBytes(com.google.protobuf.ByteString value)
       The namespaced name for the TagValue of the TagBinding.
       Must be in the format
       `{parent_id}/{tag_key_short_name}/{short_name}`.
      
       For methods that support TagValue namespaced name, only one of
       tag_value_namespaced_name or tag_value may be filled. Requests with both
       fields will be rejected.
       
      string tag_value_namespaced_name = 4;
      Parameters:
      value - The bytes for tagValueNamespacedName to set.
      Returns:
      This builder for chaining.