Class Violation.Remediation.Instructions.Gcloud.Builder (0.12.0)

public static final class Violation.Remediation.Instructions.Gcloud.Builder extends GeneratedMessageV3.Builder<Violation.Remediation.Instructions.Gcloud.Builder> implements Violation.Remediation.Instructions.GcloudOrBuilder

Remediation instructions to resolve violation via gcloud cli

Protobuf type google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud

Static Methods

getDescriptor()

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

Methods

public Violation.Remediation.Instructions.Gcloud.Builder addAdditionalLinks(String value)

Additional urls for more information about steps

repeated string additional_links = 3;

Parameter
Name Description
value String

The additionalLinks to add.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

addAdditionalLinksBytes(ByteString value)

public Violation.Remediation.Instructions.Gcloud.Builder addAdditionalLinksBytes(ByteString value)

Additional urls for more information about steps

repeated string additional_links = 3;

Parameter
Name Description
value ByteString

The bytes of the additionalLinks to add.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

public Violation.Remediation.Instructions.Gcloud.Builder addAllAdditionalLinks(Iterable<String> values)

Additional urls for more information about steps

repeated string additional_links = 3;

Parameter
Name Description
values Iterable<String>

The additionalLinks to add.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

addAllGcloudCommands(Iterable<String> values)

public Violation.Remediation.Instructions.Gcloud.Builder addAllGcloudCommands(Iterable<String> values)

Gcloud command to resolve violation

repeated string gcloud_commands = 1;

Parameter
Name Description
values Iterable<String>

The gcloudCommands to add.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

addAllSteps(Iterable<String> values)

public Violation.Remediation.Instructions.Gcloud.Builder addAllSteps(Iterable<String> values)

Steps to resolve violation via gcloud cli

repeated string steps = 2;

Parameter
Name Description
values Iterable<String>

The steps to add.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

addGcloudCommands(String value)

public Violation.Remediation.Instructions.Gcloud.Builder addGcloudCommands(String value)

Gcloud command to resolve violation

repeated string gcloud_commands = 1;

Parameter
Name Description
value String

The gcloudCommands to add.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

addGcloudCommandsBytes(ByteString value)

public Violation.Remediation.Instructions.Gcloud.Builder addGcloudCommandsBytes(ByteString value)

Gcloud command to resolve violation

repeated string gcloud_commands = 1;

Parameter
Name Description
value ByteString

The bytes of the gcloudCommands to add.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Violation.Remediation.Instructions.Gcloud.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder
Overrides

addSteps(String value)

public Violation.Remediation.Instructions.Gcloud.Builder addSteps(String value)

Steps to resolve violation via gcloud cli

repeated string steps = 2;

Parameter
Name Description
value String

The steps to add.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

addStepsBytes(ByteString value)

public Violation.Remediation.Instructions.Gcloud.Builder addStepsBytes(ByteString value)

Steps to resolve violation via gcloud cli

repeated string steps = 2;

Parameter
Name Description
value ByteString

The bytes of the steps to add.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

build()

public Violation.Remediation.Instructions.Gcloud build()
Returns
Type Description
Violation.Remediation.Instructions.Gcloud

buildPartial()

public Violation.Remediation.Instructions.Gcloud buildPartial()
Returns
Type Description
Violation.Remediation.Instructions.Gcloud

clear()

public Violation.Remediation.Instructions.Gcloud.Builder clear()
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder
Overrides
public Violation.Remediation.Instructions.Gcloud.Builder clearAdditionalLinks()

Additional urls for more information about steps

repeated string additional_links = 3;

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Violation.Remediation.Instructions.Gcloud.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder
Overrides

clearGcloudCommands()

public Violation.Remediation.Instructions.Gcloud.Builder clearGcloudCommands()

Gcloud command to resolve violation

repeated string gcloud_commands = 1;

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Violation.Remediation.Instructions.Gcloud.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder
Overrides

clearSteps()

public Violation.Remediation.Instructions.Gcloud.Builder clearSteps()

Steps to resolve violation via gcloud cli

repeated string steps = 2;

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

clone()

public Violation.Remediation.Instructions.Gcloud.Builder clone()
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder
Overrides
public String getAdditionalLinks(int index)

Additional urls for more information about steps

repeated string additional_links = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The additionalLinks at the given index.

getAdditionalLinksBytes(int index)

public ByteString getAdditionalLinksBytes(int index)

Additional urls for more information about steps

repeated string additional_links = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the additionalLinks at the given index.

getAdditionalLinksCount()

public int getAdditionalLinksCount()

Additional urls for more information about steps

repeated string additional_links = 3;

Returns
Type Description
int

The count of additionalLinks.

public ProtocolStringList getAdditionalLinksList()

Additional urls for more information about steps

repeated string additional_links = 3;

Returns
Type Description
ProtocolStringList

A list containing the additionalLinks.

getDefaultInstanceForType()

public Violation.Remediation.Instructions.Gcloud getDefaultInstanceForType()
Returns
Type Description
Violation.Remediation.Instructions.Gcloud

getDescriptorForType()

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

getGcloudCommands(int index)

public String getGcloudCommands(int index)

Gcloud command to resolve violation

repeated string gcloud_commands = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The gcloudCommands at the given index.

getGcloudCommandsBytes(int index)

public ByteString getGcloudCommandsBytes(int index)

Gcloud command to resolve violation

repeated string gcloud_commands = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the gcloudCommands at the given index.

getGcloudCommandsCount()

public int getGcloudCommandsCount()

Gcloud command to resolve violation

repeated string gcloud_commands = 1;

Returns
Type Description
int

The count of gcloudCommands.

getGcloudCommandsList()

public ProtocolStringList getGcloudCommandsList()

Gcloud command to resolve violation

repeated string gcloud_commands = 1;

Returns
Type Description
ProtocolStringList

A list containing the gcloudCommands.

getSteps(int index)

public String getSteps(int index)

Steps to resolve violation via gcloud cli

repeated string steps = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The steps at the given index.

getStepsBytes(int index)

public ByteString getStepsBytes(int index)

Steps to resolve violation via gcloud cli

repeated string steps = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the steps at the given index.

getStepsCount()

public int getStepsCount()

Steps to resolve violation via gcloud cli

repeated string steps = 2;

Returns
Type Description
int

The count of steps.

getStepsList()

public ProtocolStringList getStepsList()

Steps to resolve violation via gcloud cli

repeated string steps = 2;

Returns
Type Description
ProtocolStringList

A list containing the steps.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Violation.Remediation.Instructions.Gcloud other)

public Violation.Remediation.Instructions.Gcloud.Builder mergeFrom(Violation.Remediation.Instructions.Gcloud other)
Parameter
Name Description
other Violation.Remediation.Instructions.Gcloud
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Violation.Remediation.Instructions.Gcloud.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Violation.Remediation.Instructions.Gcloud.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Violation.Remediation.Instructions.Gcloud.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder
Overrides
public Violation.Remediation.Instructions.Gcloud.Builder setAdditionalLinks(int index, String value)

Additional urls for more information about steps

repeated string additional_links = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The additionalLinks to set.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Violation.Remediation.Instructions.Gcloud.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder
Overrides

setGcloudCommands(int index, String value)

public Violation.Remediation.Instructions.Gcloud.Builder setGcloudCommands(int index, String value)

Gcloud command to resolve violation

repeated string gcloud_commands = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The gcloudCommands to set.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

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

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

setSteps(int index, String value)

public Violation.Remediation.Instructions.Gcloud.Builder setSteps(int index, String value)

Steps to resolve violation via gcloud cli

repeated string steps = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The steps to set.

Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Violation.Remediation.Instructions.Gcloud.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Violation.Remediation.Instructions.Gcloud.Builder
Overrides