Class File.Builder (0.25.0)

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

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

Protobuf type google.cloud.telcoautomation.v1alpha1.File

Implements

FileOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
File.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public File.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
File.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public File.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
File.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public File.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
File.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public File.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
File.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final File.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
File.Builder
Overrides