public static final class SourceCode.SourceFile.Builder extends GeneratedMessage.Builder<SourceCode.SourceFile.Builder> implements SourceCode.SourceFileOrBuilderSource file.
Protobuf type google.cloud.run.v2.SourceCode.SourceFile
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SourceCode.SourceFile.BuilderImplements
SourceCode.SourceFileOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SourceCode.SourceFile build()| Returns | |
|---|---|
| Type | Description |
SourceCode.SourceFile |
|
buildPartial()
public SourceCode.SourceFile buildPartial()| Returns | |
|---|---|
| Type | Description |
SourceCode.SourceFile |
|
clear()
public SourceCode.SourceFile.Builder clear()| Returns | |
|---|---|
| Type | Description |
SourceCode.SourceFile.Builder |
|
clearContent()
public SourceCode.SourceFile.Builder clearContent() 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 |
SourceCode.SourceFile.Builder |
This builder for chaining. |
clearFilename()
public SourceCode.SourceFile.Builder clearFilename() 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 |
SourceCode.SourceFile.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SourceCode.SourceFile other)
public SourceCode.SourceFile.Builder mergeFrom(SourceCode.SourceFile other)| Parameter | |
|---|---|
| Name | Description |
other |
SourceCode.SourceFile |
| Returns | |
|---|---|
| Type | Description |
SourceCode.SourceFile.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SourceCode.SourceFile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SourceCode.SourceFile.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SourceCode.SourceFile.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SourceCode.SourceFile.Builder |
|
setContent(String value)
public SourceCode.SourceFile.Builder setContent(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe content to set. |
| Returns | |
|---|---|
| Type | Description |
SourceCode.SourceFile.Builder |
This builder for chaining. |
setContentBytes(ByteString value)
public SourceCode.SourceFile.Builder setContentBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for content to set. |
| Returns | |
|---|---|
| Type | Description |
SourceCode.SourceFile.Builder |
This builder for chaining. |
setFilename(String value)
public SourceCode.SourceFile.Builder setFilename(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe filename to set. |
| Returns | |
|---|---|
| Type | Description |
SourceCode.SourceFile.Builder |
This builder for chaining. |
setFilenameBytes(ByteString value)
public SourceCode.SourceFile.Builder setFilenameBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for filename to set. |
| Returns | |
|---|---|
| Type | Description |
SourceCode.SourceFile.Builder |
This builder for chaining. |