public static final class File.Builder extends GeneratedMessageV3.Builder<File.Builder> implements FileOrBuilderFile represents a yaml file present in a blueprint's package.
Protobuf type google.cloud.telcoautomation.v1alpha1.File
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > File.BuilderImplements
FileOrBuilderStatic 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 |
|
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 |
|
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 |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public File.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
File.Builder |
|
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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public File.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
File.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
File.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
booleanThe 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 |
booleanThe 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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final File.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
File.Builder |
|