Class SourceCode.SourceFile (0.103.0)

public static final class SourceCode.SourceFile extends GeneratedMessage implements SourceCode.SourceFileOrBuilder

Source file.

Protobuf type google.cloud.run.v2.SourceCode.SourceFile

Static Fields

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
Field Value
Type Description
int

FILENAME_FIELD_NUMBER

public static final int FILENAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SourceCode.SourceFile getDefaultInstance()
Returns
Type Description
SourceCode.SourceFile

getDescriptor()

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

newBuilder()

public static SourceCode.SourceFile.Builder newBuilder()
Returns
Type Description
SourceCode.SourceFile.Builder

newBuilder(SourceCode.SourceFile prototype)

public static SourceCode.SourceFile.Builder newBuilder(SourceCode.SourceFile prototype)
Parameter
Name Description
prototype SourceCode.SourceFile
Returns
Type Description
SourceCode.SourceFile.Builder

parseDelimitedFrom(InputStream input)

public static SourceCode.SourceFile parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SourceCode.SourceFile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SourceCode.SourceFile parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SourceCode.SourceFile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SourceCode.SourceFile parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SourceCode.SourceFile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SourceCode.SourceFile parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SourceCode.SourceFile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SourceCode.SourceFile parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SourceCode.SourceFile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SourceCode.SourceFile parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SourceCode.SourceFile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceCode.SourceFile
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SourceCode.SourceFile> parser()
Returns
Type Description
Parser<SourceFile>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContent()

public String getContent()

Required. Input only. Represents the exact, literal, and complete source code of the file. Placeholders like ... or comments such as # [rest of code] should NEVER be used as omission. Every character in this field will be built into the final container. Any omission will result in a broken application.

string content = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

Required. Input only. Represents the exact, literal, and complete source code of the file. Placeholders like ... or comments such as # [rest of code] should NEVER be used as omission. Every character in this field will be built into the final container. Any omission will result in a broken application.

string content = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public SourceCode.SourceFile getDefaultInstanceForType()
Returns
Type Description
SourceCode.SourceFile

getFilename()

public String getFilename()

Required. Input only. The file name for the source code. e.g., "index.js" or "node_modules/dependency.js". The filename must be less than 255 characters and cannot contain .., ./, //, or end with a /. Cloud Run will place the files in the container subdirectories, please use relative path to access the file.

string filename = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
String

The filename.

getFilenameBytes()

public ByteString getFilenameBytes()

Required. Input only. The file name for the source code. e.g., "index.js" or "node_modules/dependency.js". The filename must be less than 255 characters and cannot contain .., ./, //, or end with a /. Cloud Run will place the files in the container subdirectories, please use relative path to access the file.

string filename = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The bytes for filename.

getParserForType()

public Parser<SourceCode.SourceFile> getParserForType()
Returns
Type Description
Parser<SourceFile>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SourceCode.SourceFile.Builder newBuilderForType()
Returns
Type Description
SourceCode.SourceFile.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SourceCode.SourceFile.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SourceCode.SourceFile.Builder
Overrides

toBuilder()

public SourceCode.SourceFile.Builder toBuilder()
Returns
Type Description
SourceCode.SourceFile.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException