public static final class Resource.Builder extends GeneratedMessageV3.Builder<Resource.Builder> implements ResourceOrBuilder
Resource represents a Google Cloud Platform resource actuated by IM. Resources are child resources of Revisions.
Protobuf type google.cloud.config.v1.Resource
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Resource.BuilderImplements
ResourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Resource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Resource.Builder |
build()
public Resource build()
Returns | |
---|---|
Type | Description |
Resource |
buildPartial()
public Resource buildPartial()
Returns | |
---|---|
Type | Description |
Resource |
clear()
public Resource.Builder clear()
Returns | |
---|---|
Type | Description |
Resource.Builder |
clearCaiAssets()
public Resource.Builder clearCaiAssets()
Returns | |
---|---|
Type | Description |
Resource.Builder |
clearField(Descriptors.FieldDescriptor field)
public Resource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Resource.Builder |
clearIntent()
public Resource.Builder clearIntent()
Output only. Intent of the resource.
.google.cloud.config.v1.Resource.Intent intent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Resource.Builder | This builder for chaining. |
clearName()
public Resource.Builder clearName()
Output only. Resource name.
Format:
projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Resource.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Resource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Resource.Builder |
clearState()
public Resource.Builder clearState()
Output only. Current state of the resource.
.google.cloud.config.v1.Resource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Resource.Builder | This builder for chaining. |
clearTerraformInfo()
public Resource.Builder clearTerraformInfo()
Output only. Terraform-specific info if this resource was created using Terraform.
.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Resource.Builder |
clone()
public Resource.Builder clone()
Returns | |
---|---|
Type | Description |
Resource.Builder |
containsCaiAssets(String key)
public boolean containsCaiAssets(String key)
Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types
map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getCaiAssets() (deprecated)
public Map<String,ResourceCAIInfo> getCaiAssets()
Use #getCaiAssetsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,ResourceCAIInfo> |
getCaiAssetsCount()
public int getCaiAssetsCount()
Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types
map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
getCaiAssetsMap()
public Map<String,ResourceCAIInfo> getCaiAssetsMap()
Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types
map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Map<String,ResourceCAIInfo> |
getCaiAssetsOrDefault(String key, ResourceCAIInfo defaultValue)
public ResourceCAIInfo getCaiAssetsOrDefault(String key, ResourceCAIInfo defaultValue)
Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types
map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | ResourceCAIInfo |
Returns | |
---|---|
Type | Description |
ResourceCAIInfo |
getCaiAssetsOrThrow(String key)
public ResourceCAIInfo getCaiAssetsOrThrow(String key)
Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types
map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
ResourceCAIInfo |
getDefaultInstanceForType()
public Resource getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Resource |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getIntent()
public Resource.Intent getIntent()
Output only. Intent of the resource.
.google.cloud.config.v1.Resource.Intent intent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Resource.Intent | The intent. |
getIntentValue()
public int getIntentValue()
Output only. Intent of the resource.
.google.cloud.config.v1.Resource.Intent intent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for intent. |
getMutableCaiAssets() (deprecated)
public Map<String,ResourceCAIInfo> getMutableCaiAssets()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,ResourceCAIInfo> |
getName()
public String getName()
Output only. Resource name.
Format:
projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. Resource name.
Format:
projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getState()
public Resource.State getState()
Output only. Current state of the resource.
.google.cloud.config.v1.Resource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Resource.State | The state. |
getStateValue()
public int getStateValue()
Output only. Current state of the resource.
.google.cloud.config.v1.Resource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for state. |
getTerraformInfo()
public ResourceTerraformInfo getTerraformInfo()
Output only. Terraform-specific info if this resource was created using Terraform.
.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceTerraformInfo | The terraformInfo. |
getTerraformInfoBuilder()
public ResourceTerraformInfo.Builder getTerraformInfoBuilder()
Output only. Terraform-specific info if this resource was created using Terraform.
.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceTerraformInfo.Builder |
getTerraformInfoOrBuilder()
public ResourceTerraformInfoOrBuilder getTerraformInfoOrBuilder()
Output only. Terraform-specific info if this resource was created using Terraform.
.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceTerraformInfoOrBuilder |
hasTerraformInfo()
public boolean hasTerraformInfo()
Output only. Terraform-specific info if this resource was created using Terraform.
.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the terraformInfo field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Resource other)
public Resource.Builder mergeFrom(Resource other)
Parameter | |
---|---|
Name | Description |
other | Resource |
Returns | |
---|---|
Type | Description |
Resource.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Resource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Resource.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Resource.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Resource.Builder |
mergeTerraformInfo(ResourceTerraformInfo value)
public Resource.Builder mergeTerraformInfo(ResourceTerraformInfo value)
Output only. Terraform-specific info if this resource was created using Terraform.
.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | ResourceTerraformInfo |
Returns | |
---|---|
Type | Description |
Resource.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Resource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Resource.Builder |
putAllCaiAssets(Map<String,ResourceCAIInfo> values)
public Resource.Builder putAllCaiAssets(Map<String,ResourceCAIInfo> values)
Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types
map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values | Map<String,ResourceCAIInfo> |
Returns | |
---|---|
Type | Description |
Resource.Builder |
putCaiAssets(String key, ResourceCAIInfo value)
public Resource.Builder putCaiAssets(String key, ResourceCAIInfo value)
Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types
map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
key | String |
value | ResourceCAIInfo |
Returns | |
---|---|
Type | Description |
Resource.Builder |
putCaiAssetsBuilderIfAbsent(String key)
public ResourceCAIInfo.Builder putCaiAssetsBuilderIfAbsent(String key)
Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types
map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
ResourceCAIInfo.Builder |
removeCaiAssets(String key)
public Resource.Builder removeCaiAssets(String key)
Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types
map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
Resource.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Resource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Resource.Builder |
setIntent(Resource.Intent value)
public Resource.Builder setIntent(Resource.Intent value)
Output only. Intent of the resource.
.google.cloud.config.v1.Resource.Intent intent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Resource.Intent The intent to set. |
Returns | |
---|---|
Type | Description |
Resource.Builder | This builder for chaining. |
setIntentValue(int value)
public Resource.Builder setIntentValue(int value)
Output only. Intent of the resource.
.google.cloud.config.v1.Resource.Intent intent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for intent to set. |
Returns | |
---|---|
Type | Description |
Resource.Builder | This builder for chaining. |
setName(String value)
public Resource.Builder setName(String value)
Output only. Resource name.
Format:
projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
Resource.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Resource.Builder setNameBytes(ByteString value)
Output only. Resource name.
Format:
projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Resource.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Resource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Resource.Builder |
setState(Resource.State value)
public Resource.Builder setState(Resource.State value)
Output only. Current state of the resource.
.google.cloud.config.v1.Resource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Resource.State The state to set. |
Returns | |
---|---|
Type | Description |
Resource.Builder | This builder for chaining. |
setStateValue(int value)
public Resource.Builder setStateValue(int value)
Output only. Current state of the resource.
.google.cloud.config.v1.Resource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
Resource.Builder | This builder for chaining. |
setTerraformInfo(ResourceTerraformInfo value)
public Resource.Builder setTerraformInfo(ResourceTerraformInfo value)
Output only. Terraform-specific info if this resource was created using Terraform.
.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | ResourceTerraformInfo |
Returns | |
---|---|
Type | Description |
Resource.Builder |
setTerraformInfo(ResourceTerraformInfo.Builder builderForValue)
public Resource.Builder setTerraformInfo(ResourceTerraformInfo.Builder builderForValue)
Output only. Terraform-specific info if this resource was created using Terraform.
.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | ResourceTerraformInfo.Builder |
Returns | |
---|---|
Type | Description |
Resource.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Resource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Resource.Builder |