Class GetPostureRequest.Builder (0.2.0)

public static final class GetPostureRequest.Builder extends GeneratedMessageV3.Builder<GetPostureRequest.Builder> implements GetPostureRequestOrBuilder

Message for getting a Posture.

Protobuf type google.cloud.securityposture.v1.GetPostureRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetPostureRequest build()
Returns
TypeDescription
GetPostureRequest

buildPartial()

public GetPostureRequest buildPartial()
Returns
TypeDescription
GetPostureRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetPostureRequest.Builder clearName()

Required. Name of the resource.

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

Returns
TypeDescription
GetPostureRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRevisionId()

public GetPostureRequest.Builder clearRevisionId()

Optional. Posture revision which needs to be retrieved.

string revision_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GetPostureRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetPostureRequest getDefaultInstanceForType()
Returns
TypeDescription
GetPostureRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Name of the resource.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the resource.

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

Returns
TypeDescription
ByteString

The bytes for name.

getRevisionId()

public String getRevisionId()

Optional. Posture revision which needs to be retrieved.

string revision_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Optional. Posture revision which needs to be retrieved.

string revision_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for revisionId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetPostureRequest other)

public GetPostureRequest.Builder mergeFrom(GetPostureRequest other)
Parameter
NameDescription
otherGetPostureRequest
Returns
TypeDescription
GetPostureRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetPostureRequest.Builder setName(String value)

Required. Name of the resource.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetPostureRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetPostureRequest.Builder setNameBytes(ByteString value)

Required. Name of the resource.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetPostureRequest.Builder

This builder for chaining.

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

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

setRevisionId(String value)

public GetPostureRequest.Builder setRevisionId(String value)

Optional. Posture revision which needs to be retrieved.

string revision_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The revisionId to set.

Returns
TypeDescription
GetPostureRequest.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public GetPostureRequest.Builder setRevisionIdBytes(ByteString value)

Optional. Posture revision which needs to be retrieved.

string revision_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for revisionId to set.

Returns
TypeDescription
GetPostureRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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