Class File (0.3.0)

public final class File extends GeneratedMessageV3 implements FileOrBuilder

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

Protobuf type google.cloud.telcoautomation.v1.File

Implements

FileOrBuilder

Static Fields

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
Field Value
TypeDescription
int

DELETED_FIELD_NUMBER

public static final int DELETED_FIELD_NUMBER
Field Value
TypeDescription
int

EDITABLE_FIELD_NUMBER

public static final int EDITABLE_FIELD_NUMBER
Field Value
TypeDescription
int

PATH_FIELD_NUMBER

public static final int PATH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static File getDefaultInstance()
Returns
TypeDescription
File

getDescriptor()

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

newBuilder()

public static File.Builder newBuilder()
Returns
TypeDescription
File.Builder

newBuilder(File prototype)

public static File.Builder newBuilder(File prototype)
Parameter
NameDescription
prototypeFile
Returns
TypeDescription
File.Builder

parseDelimitedFrom(InputStream input)

public static File parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
File
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static File parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
File
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static File parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
File
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static File parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
File
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static File parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
File
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static File parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
File
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static File parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
File
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static File parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
File
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static File parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
File
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static File parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
File
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static File parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
File
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static File parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
File
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<File> parser()
Returns
TypeDescription
Parser<File>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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.

getParserForType()

public Parser<File> getParserForType()
Returns
TypeDescription
Parser<File>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public File.Builder newBuilderForType()
Returns
TypeDescription
File.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected File.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
File.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public File.Builder toBuilder()
Returns
TypeDescription
File.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException