Class GetViolationRequest.Builder (2.28.0)

public static final class GetViolationRequest.Builder extends GeneratedMessageV3.Builder<GetViolationRequest.Builder> implements GetViolationRequestOrBuilder

Request for fetching a Workload Violation.

Protobuf type google.cloud.assuredworkloads.v1.GetViolationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetViolationRequest build()
Returns
TypeDescription
GetViolationRequest

buildPartial()

public GetViolationRequest buildPartial()
Returns
TypeDescription
GetViolationRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetViolationRequest.Builder clearName()

Required. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetViolationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetViolationRequest getDefaultInstanceForType()
Returns
TypeDescription
GetViolationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetViolationRequest other)

public GetViolationRequest.Builder mergeFrom(GetViolationRequest other)
Parameter
NameDescription
otherGetViolationRequest
Returns
TypeDescription
GetViolationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetViolationRequest.Builder setName(String value)

Required. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetViolationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetViolationRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetViolationRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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