Class OSPolicy.Resource.File.Builder (2.13.0)

public static final class OSPolicy.Resource.File.Builder extends GeneratedMessageV3.Builder<OSPolicy.Resource.File.Builder> implements OSPolicy.Resource.FileOrBuilder

A remote or local file.

Protobuf type google.cloud.osconfig.v1alpha.OSPolicy.Resource.File

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OSPolicy.Resource.File build()
Returns
TypeDescription
OSPolicy.Resource.File

buildPartial()

public OSPolicy.Resource.File buildPartial()
Returns
TypeDescription
OSPolicy.Resource.File

clear()

public OSPolicy.Resource.File.Builder clear()
Returns
TypeDescription
OSPolicy.Resource.File.Builder
Overrides

clearAllowInsecure()

public OSPolicy.Resource.File.Builder clearAllowInsecure()

Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.

bool allow_insecure = 4;

Returns
TypeDescription
OSPolicy.Resource.File.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGcs()

public OSPolicy.Resource.File.Builder clearGcs()

A Cloud Storage object.

.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;

Returns
TypeDescription
OSPolicy.Resource.File.Builder

clearLocalPath()

public OSPolicy.Resource.File.Builder clearLocalPath()

A local path within the VM to use.

string local_path = 3;

Returns
TypeDescription
OSPolicy.Resource.File.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicy.Resource.File.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OSPolicy.Resource.File.Builder
Overrides

clearRemote()

public OSPolicy.Resource.File.Builder clearRemote()

A generic remote file.

.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;

Returns
TypeDescription
OSPolicy.Resource.File.Builder

clearType()

public OSPolicy.Resource.File.Builder clearType()
Returns
TypeDescription
OSPolicy.Resource.File.Builder

clone()

public OSPolicy.Resource.File.Builder clone()
Returns
TypeDescription
OSPolicy.Resource.File.Builder
Overrides

getAllowInsecure()

public boolean getAllowInsecure()

Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.

bool allow_insecure = 4;

Returns
TypeDescription
boolean

The allowInsecure.

getDefaultInstanceForType()

public OSPolicy.Resource.File getDefaultInstanceForType()
Returns
TypeDescription
OSPolicy.Resource.File

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcs()

public OSPolicy.Resource.File.Gcs getGcs()

A Cloud Storage object.

.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;

Returns
TypeDescription
OSPolicy.Resource.File.Gcs

The gcs.

getGcsBuilder()

public OSPolicy.Resource.File.Gcs.Builder getGcsBuilder()

A Cloud Storage object.

.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;

Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder

getGcsOrBuilder()

public OSPolicy.Resource.File.GcsOrBuilder getGcsOrBuilder()

A Cloud Storage object.

.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;

Returns
TypeDescription
OSPolicy.Resource.File.GcsOrBuilder

getLocalPath()

public String getLocalPath()

A local path within the VM to use.

string local_path = 3;

Returns
TypeDescription
String

The localPath.

getLocalPathBytes()

public ByteString getLocalPathBytes()

A local path within the VM to use.

string local_path = 3;

Returns
TypeDescription
ByteString

The bytes for localPath.

getRemote()

public OSPolicy.Resource.File.Remote getRemote()

A generic remote file.

.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;

Returns
TypeDescription
OSPolicy.Resource.File.Remote

The remote.