Package com.google.container.v1beta1
Class Location.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
- com.google.container.v1beta1.Location.Builder
-
- All Implemented Interfaces:
LocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Location
public static final class Location.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder> implements LocationOrBuilder
Location returns the location name, and if the location is recommended for GKE cluster scheduling.
Protobuf typegoogle.container.v1beta1.Location
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Location.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Locationbuild()LocationbuildPartial()Location.Builderclear()Location.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Location.BuilderclearName()Contains the name of the resource requested.Location.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Location.BuilderclearRecommended()Whether the location is recommended for GKE cluster scheduling.Location.BuilderclearType()Contains the type of location this Location is for.Location.Builderclone()LocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Contains the name of the resource requested.com.google.protobuf.ByteStringgetNameBytes()Contains the name of the resource requested.booleangetRecommended()Whether the location is recommended for GKE cluster scheduling.Location.LocationTypegetType()Contains the type of location this Location is for.intgetTypeValue()Contains the type of location this Location is for.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Location.BuildermergeFrom(Location other)Location.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Location.BuildermergeFrom(com.google.protobuf.Message other)Location.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Location.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Location.BuildersetName(String value)Contains the name of the resource requested.Location.BuildersetNameBytes(com.google.protobuf.ByteString value)Contains the name of the resource requested.Location.BuildersetRecommended(boolean value)Whether the location is recommended for GKE cluster scheduling.Location.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Location.BuildersetType(Location.LocationType value)Contains the type of location this Location is for.Location.BuildersetTypeValue(int value)Contains the type of location this Location is for.Location.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clear
public Location.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.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.GeneratedMessageV3.Builder<Location.Builder>
-
getDefaultInstanceForType
public Location getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Location build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Location buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Location.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setField
public Location.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearField
public Location.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearOneof
public Location.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setRepeatedField
public Location.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
addRepeatedField
public Location.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(Location other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.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<Location.Builder>- Throws:
IOException
-
getTypeValue
public int getTypeValue()
Contains the type of location this Location is for. Regional or Zonal.
.google.container.v1beta1.Location.LocationType type = 1;- Specified by:
getTypeValuein interfaceLocationOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public Location.Builder setTypeValue(int value)
Contains the type of location this Location is for. Regional or Zonal.
.google.container.v1beta1.Location.LocationType type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public Location.LocationType getType()
Contains the type of location this Location is for. Regional or Zonal.
.google.container.v1beta1.Location.LocationType type = 1;- Specified by:
getTypein interfaceLocationOrBuilder- Returns:
- The type.
-
setType
public Location.Builder setType(Location.LocationType value)
Contains the type of location this Location is for. Regional or Zonal.
.google.container.v1beta1.Location.LocationType type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Location.Builder clearType()
Contains the type of location this Location is for. Regional or Zonal.
.google.container.v1beta1.Location.LocationType type = 1;- Returns:
- This builder for chaining.
-
getName
public String getName()
Contains the name of the resource requested. Specified in the format `projects/*/locations/*`.
string name = 2;- Specified by:
getNamein interfaceLocationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Contains the name of the resource requested. Specified in the format `projects/*/locations/*`.
string name = 2;- Specified by:
getNameBytesin interfaceLocationOrBuilder- Returns:
- The bytes for name.
-
setName
public Location.Builder setName(String value)
Contains the name of the resource requested. Specified in the format `projects/*/locations/*`.
string name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Location.Builder clearName()
Contains the name of the resource requested. Specified in the format `projects/*/locations/*`.
string name = 2;- Returns:
- This builder for chaining.
-
setNameBytes
public Location.Builder setNameBytes(com.google.protobuf.ByteString value)
Contains the name of the resource requested. Specified in the format `projects/*/locations/*`.
string name = 2;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getRecommended
public boolean getRecommended()
Whether the location is recommended for GKE cluster scheduling.
bool recommended = 3;- Specified by:
getRecommendedin interfaceLocationOrBuilder- Returns:
- The recommended.
-
setRecommended
public Location.Builder setRecommended(boolean value)
Whether the location is recommended for GKE cluster scheduling.
bool recommended = 3;- Parameters:
value- The recommended to set.- Returns:
- This builder for chaining.
-
clearRecommended
public Location.Builder clearRecommended()
Whether the location is recommended for GKE cluster scheduling.
bool recommended = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Location.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
-