Class GetPostureTemplateRequest.Builder (0.14.0)

public static final class GetPostureTemplateRequest.Builder extends GeneratedMessageV3.Builder<GetPostureTemplateRequest.Builder> implements GetPostureTemplateRequestOrBuilder

Message for getting a Posture Template.

Protobuf type google.cloud.securityposture.v1.GetPostureTemplateRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetPostureTemplateRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides

build()

public GetPostureTemplateRequest build()
Returns
Type Description
GetPostureTemplateRequest

buildPartial()

public GetPostureTemplateRequest buildPartial()
Returns
Type Description
GetPostureTemplateRequest

clear()

public GetPostureTemplateRequest.Builder clear()
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetPostureTemplateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides

clearName()

public GetPostureTemplateRequest.Builder clearName()

Required. Name of the resource.

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

Returns
Type Description
GetPostureTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetPostureTemplateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides

clearRevisionId()

public GetPostureTemplateRequest.Builder clearRevisionId()

Optional. Specific revision_id of a Posture Template. PostureTemplate revision_id which needs to be retrieved.

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

Returns
Type Description
GetPostureTemplateRequest.Builder

This builder for chaining.

clone()

public GetPostureTemplateRequest.Builder clone()
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides

getDefaultInstanceForType()

public GetPostureTemplateRequest getDefaultInstanceForType()
Returns
Type Description
GetPostureTemplateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. Name of the resource.

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

Returns
Type Description
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
Type Description
ByteString

The bytes for name.

getRevisionId()

public String getRevisionId()

Optional. Specific revision_id of a Posture Template. PostureTemplate revision_id which needs to be retrieved.

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

Returns
Type Description
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Optional. Specific revision_id of a Posture Template. PostureTemplate revision_id which needs to be retrieved.

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

Returns
Type Description
ByteString

The bytes for revisionId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetPostureTemplateRequest other)

public GetPostureTemplateRequest.Builder mergeFrom(GetPostureTemplateRequest other)
Parameter
Name Description
other GetPostureTemplateRequest
Returns
Type Description
GetPostureTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetPostureTemplateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GetPostureTemplateRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetPostureTemplateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetPostureTemplateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides

setName(String value)

public GetPostureTemplateRequest.Builder setName(String value)

Required. Name of the resource.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetPostureTemplateRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetPostureTemplateRequest.Builder setNameBytes(ByteString value)

Required. Name of the resource.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetPostureTemplateRequest.Builder

This builder for chaining.

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

public GetPostureTemplateRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides

setRevisionId(String value)

public GetPostureTemplateRequest.Builder setRevisionId(String value)

Optional. Specific revision_id of a Posture Template. PostureTemplate revision_id which needs to be retrieved.

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

Parameter
Name Description
value String

The revisionId to set.

Returns
Type Description
GetPostureTemplateRequest.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public GetPostureTemplateRequest.Builder setRevisionIdBytes(ByteString value)

Optional. Specific revision_id of a Posture Template. PostureTemplate revision_id which needs to be retrieved.

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

Parameter
Name Description
value ByteString

The bytes for revisionId to set.

Returns
Type Description
GetPostureTemplateRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GetPostureTemplateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetPostureTemplateRequest.Builder
Overrides