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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.The full resource name of the resource the TagValue is bound to.The TagValue of the TagBinding.The namespaced name for the TagValue of the TagBinding.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Output only.com.google.protobuf.ByteStringOutput only.The full resource name of the resource the TagValue is bound to.com.google.protobuf.ByteStringThe full resource name of the resource the TagValue is bound to.The TagValue of the TagBinding.com.google.protobuf.ByteStringThe TagValue of the TagBinding.The namespaced name for the TagValue of the TagBinding.com.google.protobuf.ByteStringThe namespaced name for the TagValue of the TagBinding.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TagBinding other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.The full resource name of the resource the TagValue is bound to.setParentBytes(com.google.protobuf.ByteString value) The full resource name of the resource the TagValue is bound to.setTagValue(String value) The TagValue of the TagBinding.setTagValueBytes(com.google.protobuf.ByteString value) The TagValue of the TagBinding.setTagValueNamespacedName(String value) The namespaced name for the TagValue of the TagBinding.setTagValueNamespacedNameBytes(com.google.protobuf.ByteString value) The namespaced name for the TagValue of the TagBinding.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TagBinding.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TagBinding.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TagBinding.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TagBinding.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TagBinding.Builder>- Throws:
IOException
-
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:
getNamein interfaceTagBindingOrBuilder- 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:
getNameBytesin interfaceTagBindingOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
The full resource name of the resource the TagValue is bound to. E.g. `//cloudresourcemanager.googleapis.com/projects/123`
string parent = 2;- Specified by:
getParentin interfaceTagBindingOrBuilder- 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:
getParentBytesin interfaceTagBindingOrBuilder- Returns:
- The bytes for parent.
-
setParent
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
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
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
The TagValue of the TagBinding. Must be of the form `tagValues/456`.
string tag_value = 3;- Specified by:
getTagValuein interfaceTagBindingOrBuilder- 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:
getTagValueBytesin interfaceTagBindingOrBuilder- Returns:
- The bytes for tagValue.
-
setTagValue
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
The TagValue of the TagBinding. Must be of the form `tagValues/456`.
string tag_value = 3;- Returns:
- This builder for chaining.
-
setTagValueBytes
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
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:
getTagValueNamespacedNamein interfaceTagBindingOrBuilder- 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:
getTagValueNamespacedNameBytesin interfaceTagBindingOrBuilder- Returns:
- The bytes for tagValueNamespacedName.
-
setTagValueNamespacedName
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
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
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.
-