public static final class LocationPolicyLocation.Builder extends GeneratedMessageV3.Builder<LocationPolicyLocation.Builder> implements LocationPolicyLocationOrBuilder
Protobuf type google.cloud.compute.v1.LocationPolicyLocation
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LocationPolicyLocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LocationPolicyLocation build()
Returns
buildPartial()
public LocationPolicyLocation buildPartial()
Returns
clear()
public LocationPolicyLocation.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public LocationPolicyLocation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LocationPolicyLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPreference()
public LocationPolicyLocation.Builder clearPreference()
Preference for a given location: ALLOW or DENY.
Check the Preference enum for the list of possible values.
optional string preference = 150781147;
Returns
clone()
public LocationPolicyLocation.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public LocationPolicyLocation getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getPreference()
public String getPreference()
Preference for a given location: ALLOW or DENY.
Check the Preference enum for the list of possible values.
optional string preference = 150781147;
Returns
Type | Description |
String | The preference.
|
getPreferenceBytes()
public ByteString getPreferenceBytes()
Preference for a given location: ALLOW or DENY.
Check the Preference enum for the list of possible values.
optional string preference = 150781147;
Returns
Type | Description |
ByteString | The bytes for preference.
|
hasPreference()
public boolean hasPreference()
Preference for a given location: ALLOW or DENY.
Check the Preference enum for the list of possible values.
optional string preference = 150781147;
Returns
Type | Description |
boolean | Whether the preference field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(LocationPolicyLocation other)
public LocationPolicyLocation.Builder mergeFrom(LocationPolicyLocation other)
Parameter
Returns
public LocationPolicyLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LocationPolicyLocation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LocationPolicyLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public LocationPolicyLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setPreference(String value)
public LocationPolicyLocation.Builder setPreference(String value)
Preference for a given location: ALLOW or DENY.
Check the Preference enum for the list of possible values.
optional string preference = 150781147;
Parameter
Name | Description |
value | String
The preference to set.
|
Returns
setPreferenceBytes(ByteString value)
public LocationPolicyLocation.Builder setPreferenceBytes(ByteString value)
Preference for a given location: ALLOW or DENY.
Check the Preference enum for the list of possible values.
optional string preference = 150781147;
Parameter
Name | Description |
value | ByteString
The bytes for preference to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LocationPolicyLocation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LocationPolicyLocation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides