Class ListViolationsResponse.Builder (2.8.0)

public static final class ListViolationsResponse.Builder extends GeneratedMessageV3.Builder<ListViolationsResponse.Builder> implements ListViolationsResponseOrBuilder

Response of ListViolations endpoint.

Protobuf type google.cloud.assuredworkloads.v1.ListViolationsResponse

Static Methods

getDescriptor()

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

Methods

addAllViolations(Iterable<? extends Violation> values)

public ListViolationsResponse.Builder addAllViolations(Iterable<? extends Violation> values)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.assuredworkloads.v1.Violation>
Returns
TypeDescription
ListViolationsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addViolations(Violation value)

public ListViolationsResponse.Builder addViolations(Violation value)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameter
NameDescription
valueViolation
Returns
TypeDescription
ListViolationsResponse.Builder

addViolations(Violation.Builder builderForValue)

public ListViolationsResponse.Builder addViolations(Violation.Builder builderForValue)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameter
NameDescription
builderForValueViolation.Builder
Returns
TypeDescription
ListViolationsResponse.Builder

addViolations(int index, Violation value)

public ListViolationsResponse.Builder addViolations(int index, Violation value)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameters
NameDescription
indexint
valueViolation
Returns
TypeDescription
ListViolationsResponse.Builder

addViolations(int index, Violation.Builder builderForValue)

public ListViolationsResponse.Builder addViolations(int index, Violation.Builder builderForValue)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameters
NameDescription
indexint
builderForValueViolation.Builder
Returns
TypeDescription
ListViolationsResponse.Builder

addViolationsBuilder()

public Violation.Builder addViolationsBuilder()

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Returns
TypeDescription
Violation.Builder

addViolationsBuilder(int index)

public Violation.Builder addViolationsBuilder(int index)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Violation.Builder

build()

public ListViolationsResponse build()
Returns
TypeDescription
ListViolationsResponse

buildPartial()

public ListViolationsResponse buildPartial()
Returns
TypeDescription
ListViolationsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListViolationsResponse.Builder clearNextPageToken()

The next page token. Returns empty if reached the last page.

string next_page_token = 2;

Returns
TypeDescription
ListViolationsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearViolations()

public ListViolationsResponse.Builder clearViolations()

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Returns
TypeDescription
ListViolationsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListViolationsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListViolationsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The next page token. Returns empty if reached the last page.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The next page token. Returns empty if reached the last page.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getViolations(int index)

public Violation getViolations(int index)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Violation

getViolationsBuilder(int index)

public Violation.Builder getViolationsBuilder(int index)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Violation.Builder

getViolationsBuilderList()

public List<Violation.Builder> getViolationsBuilderList()

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Returns
TypeDescription
List<Builder>

getViolationsCount()

public int getViolationsCount()

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Returns
TypeDescription
int

getViolationsList()

public List<Violation> getViolationsList()

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Returns
TypeDescription
List<Violation>

getViolationsOrBuilder(int index)

public ViolationOrBuilder getViolationsOrBuilder(int index)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ViolationOrBuilder

getViolationsOrBuilderList()

public List<? extends ViolationOrBuilder> getViolationsOrBuilderList()

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Returns
TypeDescription
List<? extends com.google.cloud.assuredworkloads.v1.ViolationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListViolationsResponse other)

public ListViolationsResponse.Builder mergeFrom(ListViolationsResponse other)
Parameter
NameDescription
otherListViolationsResponse
Returns
TypeDescription
ListViolationsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeViolations(int index)

public ListViolationsResponse.Builder removeViolations(int index)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListViolationsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListViolationsResponse.Builder setNextPageToken(String value)

The next page token. Returns empty if reached the last page.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListViolationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListViolationsResponse.Builder setNextPageTokenBytes(ByteString value)

The next page token. Returns empty if reached the last page.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListViolationsResponse.Builder

This builder for chaining.

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

public ListViolationsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListViolationsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setViolations(int index, Violation value)

public ListViolationsResponse.Builder setViolations(int index, Violation value)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameters
NameDescription
indexint
valueViolation
Returns
TypeDescription
ListViolationsResponse.Builder

setViolations(int index, Violation.Builder builderForValue)

public ListViolationsResponse.Builder setViolations(int index, Violation.Builder builderForValue)

List of Violations under a Workload.

repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;

Parameters
NameDescription
indexint
builderForValueViolation.Builder
Returns
TypeDescription
ListViolationsResponse.Builder