- 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 TagHold.Builder extends GeneratedMessageV3.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TagHold.BuilderImplements
TagHoldOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TagHold.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
build()
public TagHold build()
Returns | |
---|---|
Type | Description |
TagHold |
buildPartial()
public TagHold buildPartial()
Returns | |
---|---|
Type | Description |
TagHold |
clear()
public TagHold.Builder clear()
Returns | |
---|---|
Type | Description |
TagHold.Builder |
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];
Returns | |
---|---|
Type | Description |
TagHold.Builder |
clearField(Descriptors.FieldDescriptor field)
public TagHold.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
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 | |
---|---|
Type | Description |
TagHold.Builder | 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 | |
---|---|
Type | Description |
TagHold.Builder | 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 | |
---|---|
Type | Description |
TagHold.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TagHold.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
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 | |
---|---|
Type | Description |
TagHold.Builder | This builder for chaining. |
clone()
public TagHold.Builder clone()
Returns | |
---|---|
Type | Description |
TagHold.Builder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time this TagHold was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time this TagHold was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time this TagHold was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public TagHold getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TagHold |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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];
Returns | |
---|---|
Type | Description |
String | The helpLink. |
getHelpLinkBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for helpLink. |
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];
Returns | |
---|---|
Type | Description |
String | The holder. |
getHolderBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for holder. |
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];
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
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];
Returns | |
---|---|
Type | Description |
String | The origin. |
getOriginBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for origin. |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time this TagHold was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the createTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public TagHold.Builder mergeCreateTime(Timestamp value)
Output only. The time this TagHold was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
mergeFrom(TagHold other)
public TagHold.Builder mergeFrom(TagHold other)
Parameter | |
---|---|
Name | Description |
other | TagHold |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TagHold.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TagHold.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TagHold.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
setCreateTime(Timestamp value)
public TagHold.Builder setCreateTime(Timestamp value)
Output only. The time this TagHold was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public TagHold.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time this TagHold was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TagHold.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
setHelpLink(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The helpLink to set. |
Returns | |
---|---|
Type | Description |
TagHold.Builder | This builder for chaining. |
setHelpLinkBytes(ByteString value)
public TagHold.Builder setHelpLinkBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for helpLink to set. |
Returns | |
---|---|
Type | Description |
TagHold.Builder | This builder for chaining. |
setHolder(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The holder to set. |
Returns | |
---|---|
Type | Description |
TagHold.Builder | This builder for chaining. |
setHolderBytes(ByteString value)
public TagHold.Builder setHolderBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for holder to set. |
Returns | |
---|---|
Type | Description |
TagHold.Builder | This builder for chaining. |
setName(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
TagHold.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public TagHold.Builder setNameBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
TagHold.Builder | This builder for chaining. |
setOrigin(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The origin to set. |
Returns | |
---|---|
Type | Description |
TagHold.Builder | This builder for chaining. |
setOriginBytes(ByteString value)
public TagHold.Builder setOriginBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for origin to set. |
Returns | |
---|---|
Type | Description |
TagHold.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TagHold.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
TagHold.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TagHold.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TagHold.Builder |