Class NonCompliantFile.Builder (2.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NonCompliantFile build()
Returns
TypeDescription
NonCompliantFile

buildPartial()

public NonCompliantFile buildPartial()
Returns
TypeDescription
NonCompliantFile

clear()

public NonCompliantFile.Builder clear()
Returns
TypeDescription
NonCompliantFile.Builder
Overrides

clearDisplayCommand()

public NonCompliantFile.Builder clearDisplayCommand()

Command to display the non-compliant files.

string display_command = 2;

Returns
TypeDescription
NonCompliantFile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NonCompliantFile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NonCompliantFile.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NonCompliantFile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NonCompliantFile.Builder
Overrides

clearPath()

public NonCompliantFile.Builder clearPath()

Empty if display_command is set.

string path = 1;

Returns
TypeDescription
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
TypeDescription
NonCompliantFile.Builder

This builder for chaining.

clone()

public NonCompliantFile.Builder clone()
Returns
TypeDescription
NonCompliantFile.Builder
Overrides

getDefaultInstanceForType()

public NonCompliantFile getDefaultInstanceForType()
Returns
TypeDescription
NonCompliantFile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayCommand()

public String getDisplayCommand()

Command to display the non-compliant files.

string display_command = 2;

Returns
TypeDescription
String

The displayCommand.

getDisplayCommandBytes()

public ByteString getDisplayCommandBytes()

Command to display the non-compliant files.

string display_command = 2;

Returns
TypeDescription
ByteString

The bytes for displayCommand.

getPath()

public String getPath()

Empty if display_command is set.

string path = 1;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Empty if display_command is set.

string path = 1;

Returns
TypeDescription
ByteString

The bytes for path.

getReason()

public String getReason()

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

string reason = 3;

Returns
TypeDescription
String

The reason.

getReasonBytes()

public ByteString getReasonBytes()

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

string reason = 3;

Returns
TypeDescription
ByteString

The bytes for reason.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NonCompliantFile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NonCompliantFile.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NonCompliantFile.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NonCompliantFile.Builder
Overrides

mergeFrom(NonCompliantFile other)

public NonCompliantFile.Builder mergeFrom(NonCompliantFile other)
Parameter
NameDescription
otherNonCompliantFile
Returns
TypeDescription
NonCompliantFile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NonCompliantFile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NonCompliantFile.Builder
Overrides

setDisplayCommand(String value)

public NonCompliantFile.Builder setDisplayCommand(String value)

Command to display the non-compliant files.

string display_command = 2;

Parameter
NameDescription
valueString

The displayCommand to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayCommand to set.

Returns
TypeDescription
NonCompliantFile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NonCompliantFile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NonCompliantFile.Builder
Overrides

setPath(String value)

public NonCompliantFile.Builder setPath(String value)

Empty if display_command is set.

string path = 1;

Parameter
NameDescription
valueString

The path to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
valueString

The reason to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for reason to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NonCompliantFile.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NonCompliantFile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NonCompliantFile.Builder
Overrides