Class GetPostureTemplateRequest.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetPostureTemplateRequest build()
Returns
TypeDescription
GetPostureTemplateRequest

buildPartial()

public GetPostureTemplateRequest buildPartial()
Returns
TypeDescription
GetPostureTemplateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetPostureTemplateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetPostureTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetPostureTemplateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
GetPostureTemplateRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetPostureTemplateRequest getDefaultInstanceForType()
Returns
TypeDescription
GetPostureTemplateRequest

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. 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
TypeDescription
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
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(GetPostureTemplateRequest other)

public GetPostureTemplateRequest.Builder mergeFrom(GetPostureTemplateRequest other)
Parameter
NameDescription
otherGetPostureTemplateRequest
Returns
TypeDescription
GetPostureTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetPostureTemplateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The revisionId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for revisionId to set.

Returns
TypeDescription
GetPostureTemplateRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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