Package com.google.cloud.compute.v1
Class LocationPolicyLocation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LocationPolicyLocation.Builder>
com.google.cloud.compute.v1.LocationPolicyLocation.Builder
- All Implemented Interfaces:
LocationPolicyLocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LocationPolicyLocation
public static final class LocationPolicyLocation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LocationPolicyLocation.Builder>
implements LocationPolicyLocationOrBuilder
Protobuf type
google.cloud.compute.v1.LocationPolicyLocation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Constraints that the caller requires on the result distribution in this zone.Preference for a given location.Constraints that the caller requires on the result distribution in this zone.Constraints that the caller requires on the result distribution in this zone.Constraints that the caller requires on the result distribution in this zone.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorPreference for a given location.com.google.protobuf.ByteStringPreference for a given location.booleanConstraints that the caller requires on the result distribution in this zone.booleanPreference for a given location.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanConstraints that the caller requires on the result distribution in this zone.mergeFrom(LocationPolicyLocation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Constraints that the caller requires on the result distribution in this zone.setConstraints(LocationPolicyLocationConstraints.Builder builderForValue) Constraints that the caller requires on the result distribution in this zone.setPreference(String value) Preference for a given location.setPreferenceBytes(com.google.protobuf.ByteString value) Preference for a given location.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LocationPolicyLocation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LocationPolicyLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LocationPolicyLocation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationPolicyLocation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LocationPolicyLocation.Builder>
-
mergeFrom
public LocationPolicyLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationPolicyLocation.Builder>- Throws:
IOException
-
hasConstraints
public boolean hasConstraints()Constraints that the caller requires on the result distribution in this zone.
optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;- Specified by:
hasConstraintsin interfaceLocationPolicyLocationOrBuilder- Returns:
- Whether the constraints field is set.
-
getConstraints
Constraints that the caller requires on the result distribution in this zone.
optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;- Specified by:
getConstraintsin interfaceLocationPolicyLocationOrBuilder- Returns:
- The constraints.
-
setConstraints
Constraints that the caller requires on the result distribution in this zone.
optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174; -
setConstraints
public LocationPolicyLocation.Builder setConstraints(LocationPolicyLocationConstraints.Builder builderForValue) Constraints that the caller requires on the result distribution in this zone.
optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174; -
mergeConstraints
Constraints that the caller requires on the result distribution in this zone.
optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174; -
clearConstraints
Constraints that the caller requires on the result distribution in this zone.
optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174; -
getConstraintsBuilder
Constraints that the caller requires on the result distribution in this zone.
optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174; -
getConstraintsOrBuilder
Constraints that the caller requires on the result distribution in this zone.
optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;- Specified by:
getConstraintsOrBuilderin interfaceLocationPolicyLocationOrBuilder
-
hasPreference
public boolean hasPreference()Preference for a given location. Set to either ALLOW orDENY. Check the Preference enum for the list of possible values.
optional string preference = 150781147;- Specified by:
hasPreferencein interfaceLocationPolicyLocationOrBuilder- Returns:
- Whether the preference field is set.
-
getPreference
Preference for a given location. Set to either ALLOW orDENY. Check the Preference enum for the list of possible values.
optional string preference = 150781147;- Specified by:
getPreferencein interfaceLocationPolicyLocationOrBuilder- Returns:
- The preference.
-
getPreferenceBytes
public com.google.protobuf.ByteString getPreferenceBytes()Preference for a given location. Set to either ALLOW orDENY. Check the Preference enum for the list of possible values.
optional string preference = 150781147;- Specified by:
getPreferenceBytesin interfaceLocationPolicyLocationOrBuilder- Returns:
- The bytes for preference.
-
setPreference
Preference for a given location. Set to either ALLOW orDENY. Check the Preference enum for the list of possible values.
optional string preference = 150781147;- Parameters:
value- The preference to set.- Returns:
- This builder for chaining.
-
clearPreference
Preference for a given location. Set to either ALLOW orDENY. Check the Preference enum for the list of possible values.
optional string preference = 150781147;- Returns:
- This builder for chaining.
-
setPreferenceBytes
Preference for a given location. Set to either ALLOW orDENY. Check the Preference enum for the list of possible values.
optional string preference = 150781147;- Parameters:
value- The bytes for preference to set.- Returns:
- This builder for chaining.
-