public static final class ListViolationsResponse.Builder extends GeneratedMessageV3.Builder<ListViolationsResponse.Builder> implements ListViolationsResponseOrBuilder
Response of ListViolations endpoint.
Protobuf type google.cloud.assuredworkloads.v1.ListViolationsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Name | Description |
values | Iterable<? extends com.google.cloud.assuredworkloads.v1.Violation>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListViolationsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
addViolationsBuilder()
public Violation.Builder addViolationsBuilder()
List of Violations under a Workload.
repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;
Returns
addViolationsBuilder(int index)
public Violation.Builder addViolationsBuilder(int index)
List of Violations under a Workload.
repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;
Parameter
Returns
build()
public ListViolationsResponse build()
Returns
buildPartial()
public ListViolationsResponse buildPartial()
Returns
clear()
public ListViolationsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListViolationsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListViolationsResponse.Builder clearNextPageToken()
The next page token. Returns empty if reached the last page.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListViolationsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearViolations()
public ListViolationsResponse.Builder clearViolations()
List of Violations under a Workload.
repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;
Returns
clone()
public ListViolationsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListViolationsResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNextPageToken()
public String getNextPageToken()
The next page token. Returns empty if reached the last page.
string next_page_token = 2;
Returns
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
The next page token. Returns empty if reached the last page.
string next_page_token = 2;
Returns
Type | Description |
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
Returns
getViolationsBuilder(int index)
public Violation.Builder getViolationsBuilder(int index)
List of Violations under a Workload.
repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;
Parameter
Returns
getViolationsBuilderList()
public List<Violation.Builder> getViolationsBuilderList()
List of Violations under a Workload.
repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;
Returns
getViolationsCount()
public int getViolationsCount()
List of Violations under a Workload.
repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;
Returns
getViolationsList()
public List<Violation> getViolationsList()
List of Violations under a Workload.
repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;
Returns
getViolationsOrBuilder(int index)
public ViolationOrBuilder getViolationsOrBuilder(int index)
List of Violations under a Workload.
repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;
Parameter
Returns
getViolationsOrBuilderList()
public List<? extends ViolationOrBuilder> getViolationsOrBuilderList()
List of Violations under a Workload.
repeated .google.cloud.assuredworkloads.v1.Violation violations = 1;
Returns
Type | Description |
List<? extends com.google.cloud.assuredworkloads.v1.ViolationOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListViolationsResponse other)
public ListViolationsResponse.Builder mergeFrom(ListViolationsResponse other)
Parameter
Returns
public ListViolationsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListViolationsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListViolationsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListViolationsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Name | Description |
value | String
The nextPageToken to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListViolationsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListViolationsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns