Class NonCompliantFile.Builder (2.43.0)

public static final class NonCompliantFile.Builder extends GeneratedMessageV3.Builder<NonCompliantFile.Builder> implements NonCompliantFileOrBuilder

Details about files that caused a compliance check to fail.

Protobuf type grafeas.v1.NonCompliantFile

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NonCompliantFile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NonCompliantFile.Builder
Overrides

build()

public NonCompliantFile build()
Returns
Type Description
NonCompliantFile

buildPartial()

public NonCompliantFile buildPartial()
Returns
Type Description
NonCompliantFile

clear()

public NonCompliantFile.Builder clear()
Returns
Type Description
NonCompliantFile.Builder
Overrides

clearDisplayCommand()

public NonCompliantFile.Builder clearDisplayCommand()

Command to display the non-compliant files.

string display_command = 2;

Returns
Type Description
NonCompliantFile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NonCompliantFile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NonCompliantFile.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NonCompliantFile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NonCompliantFile.Builder
Overrides

clearPath()

public NonCompliantFile.Builder clearPath()

Empty if display_command is set.

string path = 1;

Returns
Type Description
NonCompliantFile.Builder

This builder for chaining.

clearReason()

public NonCompliantFile.Builder clearReason()

Explains why a file is non compliant for a CIS check.

string reason = 3;

Returns
Type Description
NonCompliantFile.Builder

This builder for chaining.

clone()

public NonCompliantFile.Builder clone()
Returns
Type Description
NonCompliantFile.Builder
Overrides

getDefaultInstanceForType()

public NonCompliantFile getDefaultInstanceForType()
Returns
Type Description
NonCompliantFile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayCommand()

public String getDisplayCommand()

Command to display the non-compliant files.

string display_command = 2;

Returns
Type Description
String

The displayCommand.

getDisplayCommandBytes()

public ByteString getDisplayCommandBytes()

Command to display the non-compliant files.

string display_command = 2;

Returns
Type Description
ByteString

The bytes for displayCommand.

getPath()

public String getPath()

Empty if display_command is set.

string path = 1;

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Empty if display_command is set.

string path = 1;

Returns
Type Description
ByteString

The bytes for path.

getReason()

public String getReason()

Explains why a file is non compliant for a CIS check.

string reason = 3;

Returns
Type Description
String

The reason.

getReasonBytes()

public ByteString getReasonBytes()

Explains why a file is non compliant for a CIS check.

string reason = 3;

Returns
Type Description
ByteString

The bytes for reason.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NonCompliantFile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NonCompliantFile.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NonCompliantFile.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NonCompliantFile.Builder
Overrides

mergeFrom(NonCompliantFile other)

public NonCompliantFile.Builder mergeFrom(NonCompliantFile other)
Parameter
Name Description
other NonCompliantFile
Returns
Type Description
NonCompliantFile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NonCompliantFile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NonCompliantFile.Builder
Overrides

setDisplayCommand(String value)

public NonCompliantFile.Builder setDisplayCommand(String value)

Command to display the non-compliant files.

string display_command = 2;

Parameter
Name Description
value String

The displayCommand to set.

Returns
Type Description
NonCompliantFile.Builder

This builder for chaining.

setDisplayCommandBytes(ByteString value)

public NonCompliantFile.Builder setDisplayCommandBytes(ByteString value)

Command to display the non-compliant files.

string display_command = 2;

Parameter
Name Description
value ByteString

The bytes for displayCommand to set.

Returns
Type Description
NonCompliantFile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NonCompliantFile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NonCompliantFile.Builder
Overrides

setPath(String value)

public NonCompliantFile.Builder setPath(String value)

Empty if display_command is set.

string path = 1;

Parameter
Name Description
value String

The path to set.

Returns
Type Description
NonCompliantFile.Builder

This builder for chaining.

setPathBytes(ByteString value)

public NonCompliantFile.Builder setPathBytes(ByteString value)

Empty if display_command is set.

string path = 1;

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
NonCompliantFile.Builder

This builder for chaining.

setReason(String value)

public NonCompliantFile.Builder setReason(String value)

Explains why a file is non compliant for a CIS check.

string reason = 3;

Parameter
Name Description
value String

The reason to set.

Returns
Type Description
NonCompliantFile.Builder

This builder for chaining.

setReasonBytes(ByteString value)

public NonCompliantFile.Builder setReasonBytes(ByteString value)

Explains why a file is non compliant for a CIS check.

string reason = 3;

Parameter
Name Description
value ByteString

The bytes for reason to set.

Returns
Type Description
NonCompliantFile.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NonCompliantFile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NonCompliantFile.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NonCompliantFile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NonCompliantFile.Builder
Overrides