- 1.55.0 (latest)
- 1.54.0
- 1.53.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.6
- 1.4.0
- 1.3.2
- 1.2.12
public static final class TagBinding.Builder extends GeneratedMessageV3.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TagBinding.BuilderImplements
TagBindingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TagBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
build()
public TagBinding build()
Returns | |
---|---|
Type | Description |
TagBinding |
buildPartial()
public TagBinding buildPartial()
Returns | |
---|---|
Type | Description |
TagBinding |
clear()
public TagBinding.Builder clear()
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
clearField(Descriptors.FieldDescriptor field)
public TagBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
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 | |
---|---|
Type | Description |
TagBinding.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TagBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
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 | |
---|---|
Type | Description |
TagBinding.Builder | 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 | |
---|---|
Type | Description |
TagBinding.Builder | 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 | |
---|---|
Type | Description |
TagBinding.Builder | This builder for chaining. |
clone()
public TagBinding.Builder clone()
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
getDefaultInstanceForType()
public TagBinding getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TagBinding |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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];
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
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;
Returns | |
---|---|
Type | Description |
String | The parent. |
getParentBytes()
public ByteString getParentBytes()
The full resource name of the resource the TagValue is bound to.
E.g. //cloudresourcemanager.googleapis.com/projects/123
string parent = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for parent. |
getTagValue()
public String getTagValue()
The TagValue of the TagBinding.
Must be of the form tagValues/456
.
string tag_value = 3;
Returns | |
---|---|
Type | Description |
String | The tagValue. |
getTagValueBytes()
public ByteString getTagValueBytes()
The TagValue of the TagBinding.
Must be of the form tagValues/456
.
string tag_value = 3;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for tagValue. |
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;
Returns | |
---|---|
Type | Description |
String | The tagValueNamespacedName. |
getTagValueNamespacedNameBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for tagValueNamespacedName. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(TagBinding other)
public TagBinding.Builder mergeFrom(TagBinding other)
Parameter | |
---|---|
Name | Description |
other | TagBinding |
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TagBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TagBinding.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TagBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TagBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
setName(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
TagBinding.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public TagBinding.Builder setNameBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
TagBinding.Builder | This builder for chaining. |
setParent(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The parent to set. |
Returns | |
---|---|
Type | Description |
TagBinding.Builder | This builder for chaining. |
setParentBytes(ByteString value)
public TagBinding.Builder setParentBytes(ByteString value)
The full resource name of the resource the TagValue is bound to.
E.g. //cloudresourcemanager.googleapis.com/projects/123
string parent = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
TagBinding.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TagBinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
TagBinding.Builder |
setTagValue(String value)
public TagBinding.Builder setTagValue(String value)
The TagValue of the TagBinding.
Must be of the form tagValues/456
.
string tag_value = 3;
Parameter | |
---|---|
Name | Description |
value | String The tagValue to set. |
Returns | |
---|---|
Type | Description |
TagBinding.Builder | This builder for chaining. |
setTagValueBytes(ByteString value)
public TagBinding.Builder setTagValueBytes(ByteString value)
The TagValue of the TagBinding.
Must be of the form tagValues/456
.
string tag_value = 3;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for tagValue to set. |
Returns | |
---|---|
Type | Description |
TagBinding.Builder | This builder for chaining. |
setTagValueNamespacedName(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The tagValueNamespacedName to set. |
Returns | |
---|---|
Type | Description |
TagBinding.Builder | This builder for chaining. |
setTagValueNamespacedNameBytes(ByteString value)
public TagBinding.Builder setTagValueNamespacedNameBytes(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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for tagValueNamespacedName to set. |
Returns | |
---|---|
Type | Description |
TagBinding.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TagBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TagBinding.Builder |