public static final class ListViolationsResponse.Builder extends GeneratedMessageV3.Builder<ListViolationsResponse.Builder> implements ListViolationsResponseOrBuilder
Response message for list customer violation requests
Protobuf type google.cloud.cloudcontrolspartner.v1.ListViolationsResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListViolationsResponse.BuilderImplements
ListViolationsResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllUnreachable(Iterable<String> values)
public ListViolationsResponse.Builder addAllUnreachable(Iterable<String> values)
Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217
repeated string unreachable = 3;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The unreachable to add. |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder | This builder for chaining. |
addAllViolations(Iterable<? extends Violation> values)
public ListViolationsResponse.Builder addAllViolations(Iterable<? extends Violation> values)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.cloudcontrolspartner.v1.Violation> |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListViolationsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
addUnreachable(String value)
public ListViolationsResponse.Builder addUnreachable(String value)
Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217
repeated string unreachable = 3;
Parameter | |
---|---|
Name | Description |
value | String The unreachable to add. |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder | This builder for chaining. |
addUnreachableBytes(ByteString value)
public ListViolationsResponse.Builder addUnreachableBytes(ByteString value)
Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217
repeated string unreachable = 3;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the unreachable to add. |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder | This builder for chaining. |
addViolations(Violation value)
public ListViolationsResponse.Builder addViolations(Violation value)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameter | |
---|---|
Name | Description |
value | Violation |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
addViolations(Violation.Builder builderForValue)
public ListViolationsResponse.Builder addViolations(Violation.Builder builderForValue)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameter | |
---|---|
Name | Description |
builderForValue | Violation.Builder |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
addViolations(int index, Violation value)
public ListViolationsResponse.Builder addViolations(int index, Violation value)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameters | |
---|---|
Name | Description |
index | int |
value | Violation |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
addViolations(int index, Violation.Builder builderForValue)
public ListViolationsResponse.Builder addViolations(int index, Violation.Builder builderForValue)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Violation.Builder |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
addViolationsBuilder()
public Violation.Builder addViolationsBuilder()
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Returns | |
---|---|
Type | Description |
Violation.Builder |
addViolationsBuilder(int index)
public Violation.Builder addViolationsBuilder(int index)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Violation.Builder |
build()
public ListViolationsResponse build()
Returns | |
---|---|
Type | Description |
ListViolationsResponse |
buildPartial()
public ListViolationsResponse buildPartial()
Returns | |
---|---|
Type | Description |
ListViolationsResponse |
clear()
public ListViolationsResponse.Builder clear()
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public ListViolationsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
clearNextPageToken()
public ListViolationsResponse.Builder clearNextPageToken()
A token that can be sent as page_token
to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ListViolationsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
clearUnreachable()
public ListViolationsResponse.Builder clearUnreachable()
Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217
repeated string unreachable = 3;
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder | This builder for chaining. |
clearViolations()
public ListViolationsResponse.Builder clearViolations()
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
clone()
public ListViolationsResponse.Builder clone()
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
getDefaultInstanceForType()
public ListViolationsResponse getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ListViolationsResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getNextPageToken()
public String getNextPageToken()
A token that can be sent as page_token
to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
Returns | |
---|---|
Type | Description |
String | The nextPageToken. |
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
A token that can be sent as page_token
to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for nextPageToken. |
getUnreachable(int index)
public String getUnreachable(int index)
Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217
repeated string unreachable = 3;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The unreachable at the given index. |
getUnreachableBytes(int index)
public ByteString getUnreachableBytes(int index)
Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217
repeated string unreachable = 3;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the unreachable at the given index. |
getUnreachableCount()
public int getUnreachableCount()
Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217
repeated string unreachable = 3;
Returns | |
---|---|
Type | Description |
int | The count of unreachable. |
getUnreachableList()
public ProtocolStringList getUnreachableList()
Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217
repeated string unreachable = 3;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the unreachable. |
getViolations(int index)
public Violation getViolations(int index)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Violation |
getViolationsBuilder(int index)
public Violation.Builder getViolationsBuilder(int index)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Violation.Builder |
getViolationsBuilderList()
public List<Violation.Builder> getViolationsBuilderList()
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Returns | |
---|---|
Type | Description |
List<Builder> |
getViolationsCount()
public int getViolationsCount()
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Returns | |
---|---|
Type | Description |
int |
getViolationsList()
public List<Violation> getViolationsList()
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Returns | |
---|---|
Type | Description |
List<Violation> |
getViolationsOrBuilder(int index)
public ViolationOrBuilder getViolationsOrBuilder(int index)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ViolationOrBuilder |
getViolationsOrBuilderList()
public List<? extends ViolationOrBuilder> getViolationsOrBuilderList()
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.cloudcontrolspartner.v1.ViolationOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ListViolationsResponse other)
public ListViolationsResponse.Builder mergeFrom(ListViolationsResponse other)
Parameter | |
---|---|
Name | Description |
other | ListViolationsResponse |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListViolationsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ListViolationsResponse.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListViolationsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
removeViolations(int index)
public ListViolationsResponse.Builder removeViolations(int index)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ListViolationsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
setNextPageToken(String value)
public ListViolationsResponse.Builder setNextPageToken(String value)
A token that can be sent as page_token
to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
Parameter | |
---|---|
Name | Description |
value | String The nextPageToken to set. |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder | This builder for chaining. |
setNextPageTokenBytes(ByteString value)
public ListViolationsResponse.Builder setNextPageTokenBytes(ByteString value)
A token that can be sent as page_token
to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for nextPageToken to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ListViolationsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
setUnreachable(int index, String value)
public ListViolationsResponse.Builder setUnreachable(int index, String value)
Workloads that could not be reached due to permission errors or any other error. Ref: https://google.aip.dev/217
repeated string unreachable = 3;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The unreachable to set. |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder | This builder for chaining. |
setViolations(int index, Violation value)
public ListViolationsResponse.Builder setViolations(int index, Violation value)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameters | |
---|---|
Name | Description |
index | int |
value | Violation |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |
setViolations(int index, Violation.Builder builderForValue)
public ListViolationsResponse.Builder setViolations(int index, Violation.Builder builderForValue)
List of violation
repeated .google.cloud.cloudcontrolspartner.v1.Violation violations = 1;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Violation.Builder |
Returns | |
---|---|
Type | Description |
ListViolationsResponse.Builder |