Class SecurityPolicyReference.Builder (1.37.0)

public static final class SecurityPolicyReference.Builder extends GeneratedMessageV3.Builder<SecurityPolicyReference.Builder> implements SecurityPolicyReferenceOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SecurityPolicyReference build()
Returns
TypeDescription
SecurityPolicyReference

buildPartial()

public SecurityPolicyReference buildPartial()
Returns
TypeDescription
SecurityPolicyReference

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecurityPolicy()

public SecurityPolicyReference.Builder clearSecurityPolicy()

optional string security_policy = 171082513;

Returns
TypeDescription
SecurityPolicyReference.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SecurityPolicyReference getDefaultInstanceForType()
Returns
TypeDescription
SecurityPolicyReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSecurityPolicy()

public String getSecurityPolicy()

optional string security_policy = 171082513;

Returns
TypeDescription
String

The securityPolicy.

getSecurityPolicyBytes()

public ByteString getSecurityPolicyBytes()

optional string security_policy = 171082513;

Returns
TypeDescription
ByteString

The bytes for securityPolicy.

hasSecurityPolicy()

public boolean hasSecurityPolicy()

optional string security_policy = 171082513;

Returns
TypeDescription
boolean

Whether the securityPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecurityPolicyReference other)

public SecurityPolicyReference.Builder mergeFrom(SecurityPolicyReference other)
Parameter
NameDescription
otherSecurityPolicyReference
Returns
TypeDescription
SecurityPolicyReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSecurityPolicy(String value)

public SecurityPolicyReference.Builder setSecurityPolicy(String value)

optional string security_policy = 171082513;

Parameter
NameDescription
valueString

The securityPolicy to set.

Returns
TypeDescription
SecurityPolicyReference.Builder

This builder for chaining.

setSecurityPolicyBytes(ByteString value)

public SecurityPolicyReference.Builder setSecurityPolicyBytes(ByteString value)

optional string security_policy = 171082513;

Parameter
NameDescription
valueByteString

The bytes for securityPolicy to set.

Returns
TypeDescription
SecurityPolicyReference.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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