Class ResourceType.Builder (0.3.0)

public static final class ResourceType.Builder extends GeneratedMessage.Builder<ResourceType.Builder> implements ResourceTypeOrBuilder

Represents the type of a resource within a component template.

Protobuf type google.cloud.designcenter.v1.ResourceType

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ResourceType build()
Returns
Type Description
ResourceType

buildPartial()

public ResourceType buildPartial()
Returns
Type Description
ResourceType

clear()

public ResourceType.Builder clear()
Returns
Type Description
ResourceType.Builder
Overrides

clearCaisResource()

public ResourceType.Builder clearCaisResource()

Output only. The CAIS resource type.

string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceType.Builder

This builder for chaining.

clearTfResource()

public ResourceType.Builder clearTfResource()

Output only. The Terraform resource type. For example: "google_compute_instance".

string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceType.Builder

This builder for chaining.

getCaisResource()

public String getCaisResource()

Output only. The CAIS resource type.

string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The caisResource.

getCaisResourceBytes()

public ByteString getCaisResourceBytes()

Output only. The CAIS resource type.

string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for caisResource.

getDefaultInstanceForType()

public ResourceType getDefaultInstanceForType()
Returns
Type Description
ResourceType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTfResource()

public String getTfResource()

Output only. The Terraform resource type. For example: "google_compute_instance".

string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The tfResource.

getTfResourceBytes()

public ByteString getTfResourceBytes()

Output only. The Terraform resource type. For example: "google_compute_instance".

string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for tfResource.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceType other)

public ResourceType.Builder mergeFrom(ResourceType other)
Parameter
Name Description
other ResourceType
Returns
Type Description
ResourceType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceType.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceType.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceType.Builder
Overrides

setCaisResource(String value)

public ResourceType.Builder setCaisResource(String value)

Output only. The CAIS resource type.

string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The caisResource to set.

Returns
Type Description
ResourceType.Builder

This builder for chaining.

setCaisResourceBytes(ByteString value)

public ResourceType.Builder setCaisResourceBytes(ByteString value)

Output only. The CAIS resource type.

string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for caisResource to set.

Returns
Type Description
ResourceType.Builder

This builder for chaining.

setTfResource(String value)

public ResourceType.Builder setTfResource(String value)

Output only. The Terraform resource type. For example: "google_compute_instance".

string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The tfResource to set.

Returns
Type Description
ResourceType.Builder

This builder for chaining.

setTfResourceBytes(ByteString value)

public ResourceType.Builder setTfResourceBytes(ByteString value)

Output only. The Terraform resource type. For example: "google_compute_instance".

string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for tfResource to set.

Returns
Type Description
ResourceType.Builder

This builder for chaining.