Class IaCFile.Builder (0.3.0)

public static final class IaCFile.Builder extends GeneratedMessage.Builder<IaCFile.Builder> implements IaCFileOrBuilder

IaCFile represents a single infrastructure as code file.

Protobuf type google.cloud.designcenter.v1.IaCFile

Implements

IaCFileOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public IaCFile build()
Returns
Type Description
IaCFile

buildPartial()

public IaCFile buildPartial()
Returns
Type Description
IaCFile

clear()

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

clearContent()

public IaCFile.Builder clearContent()

Optional. The content of the file. The content of the file can be read and passed as a string. For example, for a Terraform file, the content is the HCL content of the file.

string content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IaCFile.Builder

This builder for chaining.

clearName()

public IaCFile.Builder clearName()

Required. The name of the file.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
IaCFile.Builder

This builder for chaining.

getContent()

public String getContent()

Optional. The content of the file. The content of the file can be read and passed as a string. For example, for a Terraform file, the content is the HCL content of the file.

string content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

Optional. The content of the file. The content of the file can be read and passed as a string. For example, for a Terraform file, the content is the HCL content of the file.

string content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public IaCFile getDefaultInstanceForType()
Returns
Type Description
IaCFile

getDescriptorForType()

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

getName()

public String getName()

Required. The name of the file.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the file.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IaCFile other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setContent(String value)

public IaCFile.Builder setContent(String value)

Optional. The content of the file. The content of the file can be read and passed as a string. For example, for a Terraform file, the content is the HCL content of the file.

string content = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The content to set.

Returns
Type Description
IaCFile.Builder

This builder for chaining.

setContentBytes(ByteString value)

public IaCFile.Builder setContentBytes(ByteString value)

Optional. The content of the file. The content of the file can be read and passed as a string. For example, for a Terraform file, the content is the HCL content of the file.

string content = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for content to set.

Returns
Type Description
IaCFile.Builder

This builder for chaining.

setName(String value)

public IaCFile.Builder setName(String value)

Required. The name of the file.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
IaCFile.Builder

This builder for chaining.

setNameBytes(ByteString value)

public IaCFile.Builder setNameBytes(ByteString value)

Required. The name of the file.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
IaCFile.Builder

This builder for chaining.