Class File.Builder (0.4.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.v1.File

Implements

FileOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
File.Builder
Overrides

build()

public File build()
Returns
TypeDescription
File

buildPartial()

public File buildPartial()
Returns
TypeDescription
File

clear()

public File.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
File.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public File.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
File.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public File.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
File.Builder

This builder for chaining.

clone()

public File.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for content.

getDefaultInstanceForType()

public File getDefaultInstanceForType()
Returns
TypeDescription
File

getDeleted()

public boolean getDeleted()

Optional. Signifies whether a file is marked for deletion.

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

Returns
TypeDescription
boolean

The deleted.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for path.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(File other)

public File.Builder mergeFrom(File other)
Parameter
NameDescription
otherFile
Returns
TypeDescription
File.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
File.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public File.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
File.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The content to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for content to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The deleted to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The editable to set.

Returns
TypeDescription
File.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public File.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The path to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
File.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final File.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
File.Builder
Overrides