Class File.Builder (0.55.0)

public static final class File.Builder extends GeneratedMessage.Builder<File.Builder> implements FileOrBuilder

File represents a yaml file present in a blueprint's package.

Protobuf type google.cloud.telcoautomation.v1.File

Implements

FileOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public File build()
Returns
Type Description
File

buildPartial()

public File buildPartial()
Returns
Type Description
File

clear()

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

clearContent()

public File.Builder clearContent()

Optional. The contents of a file in string format.

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

Returns
Type Description
File.Builder

This builder for chaining.

clearDeleted()

public File.Builder clearDeleted()

Optional. Signifies whether a file is marked for deletion.

bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
File.Builder

This builder for chaining.

clearEditable()

public File.Builder clearEditable()

Optional. Indicates whether changes are allowed to a file. If the field is not set, the file cannot be edited.

bool editable = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
File.Builder

This builder for chaining.

clearPath()

public File.Builder clearPath()

Required. Path of the file in package. e.g. gdce/v1/cluster.yaml

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

Returns
Type Description
File.Builder

This builder for chaining.

getContent()

public String getContent()

Optional. The contents of a file in string format.

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

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

Optional. The contents of a file in string format.

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

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public File getDefaultInstanceForType()
Returns
Type Description
File

getDeleted()

public boolean getDeleted()

Optional. Signifies whether a file is marked for deletion.

bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The deleted.

getDescriptorForType()

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

getEditable()

public boolean getEditable()

Optional. Indicates whether changes are allowed to a file. If the field is not set, the file cannot be edited.

bool editable = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The editable.

getPath()

public String getPath()

Required. Path of the file in package. e.g. gdce/v1/cluster.yaml

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

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Required. Path of the file in package. e.g. gdce/v1/cluster.yaml

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

Returns
Type Description
ByteString

The bytes for path.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(File other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setContent(String value)

public File.Builder setContent(String value)

Optional. The contents of a file in string format.

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

Parameter
Name Description
value String

The content to set.

Returns
Type Description
File.Builder

This builder for chaining.

setContentBytes(ByteString value)

public File.Builder setContentBytes(ByteString value)

Optional. The contents of a file in string format.

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

Parameter
Name Description
value ByteString

The bytes for content to set.

Returns
Type Description
File.Builder

This builder for chaining.

setDeleted(boolean value)

public File.Builder setDeleted(boolean value)

Optional. Signifies whether a file is marked for deletion.

bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The deleted to set.

Returns
Type Description
File.Builder

This builder for chaining.

setEditable(boolean value)

public File.Builder setEditable(boolean value)

Optional. Indicates whether changes are allowed to a file. If the field is not set, the file cannot be edited.

bool editable = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The editable to set.

Returns
Type Description
File.Builder

This builder for chaining.

setPath(String value)

public File.Builder setPath(String value)

Required. Path of the file in package. e.g. gdce/v1/cluster.yaml

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

Parameter
Name Description
value String

The path to set.

Returns
Type Description
File.Builder

This builder for chaining.

setPathBytes(ByteString value)

public File.Builder setPathBytes(ByteString value)

Required. Path of the file in package. e.g. gdce/v1/cluster.yaml

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

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
File.Builder

This builder for chaining.