Class NfsShare.AllowedClient.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
-
- com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder
-
- All Implemented Interfaces:
NfsShare.AllowedClientOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NfsShare.AllowedClient
public static final class NfsShare.AllowedClient.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder> implements NfsShare.AllowedClientOrBuilder
Represents an 'access point' for the share.
Protobuf typegoogle.cloud.baremetalsolution.v2.NfsShare.AllowedClient
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NfsShare.AllowedClient.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NfsShare.AllowedClientbuild()NfsShare.AllowedClientbuildPartial()NfsShare.AllowedClient.Builderclear()NfsShare.AllowedClient.BuilderclearAllowDev()Allow dev flag.NfsShare.AllowedClient.BuilderclearAllowedClientsCidr()The subnet of IP addresses permitted to access the share.NfsShare.AllowedClient.BuilderclearAllowSuid()Allow the setuid flag.NfsShare.AllowedClient.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)NfsShare.AllowedClient.BuilderclearMountPermissions()Mount permissions.NfsShare.AllowedClient.BuilderclearNetwork()The network the access point sits on.NfsShare.AllowedClient.BuilderclearNfsPath()Output only.NfsShare.AllowedClient.BuilderclearNoRootSquash()Disable root squashing, which is a feature of NFS.NfsShare.AllowedClient.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)NfsShare.AllowedClient.BuilderclearShareIp()Output only.NfsShare.AllowedClient.Builderclone()booleangetAllowDev()Allow dev flag.StringgetAllowedClientsCidr()The subnet of IP addresses permitted to access the share.com.google.protobuf.ByteStringgetAllowedClientsCidrBytes()The subnet of IP addresses permitted to access the share.booleangetAllowSuid()Allow the setuid flag.NfsShare.AllowedClientgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()NfsShare.MountPermissionsgetMountPermissions()Mount permissions.intgetMountPermissionsValue()Mount permissions.StringgetNetwork()The network the access point sits on.com.google.protobuf.ByteStringgetNetworkBytes()The network the access point sits on.StringgetNfsPath()Output only.com.google.protobuf.ByteStringgetNfsPathBytes()Output only.booleangetNoRootSquash()Disable root squashing, which is a feature of NFS.StringgetShareIp()Output only.com.google.protobuf.ByteStringgetShareIpBytes()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()NfsShare.AllowedClient.BuildermergeFrom(NfsShare.AllowedClient other)NfsShare.AllowedClient.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)NfsShare.AllowedClient.BuildermergeFrom(com.google.protobuf.Message other)NfsShare.AllowedClient.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)NfsShare.AllowedClient.BuildersetAllowDev(boolean value)Allow dev flag.NfsShare.AllowedClient.BuildersetAllowedClientsCidr(String value)The subnet of IP addresses permitted to access the share.NfsShare.AllowedClient.BuildersetAllowedClientsCidrBytes(com.google.protobuf.ByteString value)The subnet of IP addresses permitted to access the share.NfsShare.AllowedClient.BuildersetAllowSuid(boolean value)Allow the setuid flag.NfsShare.AllowedClient.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NfsShare.AllowedClient.BuildersetMountPermissions(NfsShare.MountPermissions value)Mount permissions.NfsShare.AllowedClient.BuildersetMountPermissionsValue(int value)Mount permissions.NfsShare.AllowedClient.BuildersetNetwork(String value)The network the access point sits on.NfsShare.AllowedClient.BuildersetNetworkBytes(com.google.protobuf.ByteString value)The network the access point sits on.NfsShare.AllowedClient.BuildersetNfsPath(String value)Output only.NfsShare.AllowedClient.BuildersetNfsPathBytes(com.google.protobuf.ByteString value)Output only.NfsShare.AllowedClient.BuildersetNoRootSquash(boolean value)Disable root squashing, which is a feature of NFS.NfsShare.AllowedClient.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)NfsShare.AllowedClient.BuildersetShareIp(String value)Output only.NfsShare.AllowedClient.BuildersetShareIpBytes(com.google.protobuf.ByteString value)Output only.NfsShare.AllowedClient.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<NfsShare.AllowedClient.Builder>
-
clear
public NfsShare.AllowedClient.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<NfsShare.AllowedClient.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<NfsShare.AllowedClient.Builder>
-
getDefaultInstanceForType
public NfsShare.AllowedClient getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public NfsShare.AllowedClient build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NfsShare.AllowedClient buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NfsShare.AllowedClient.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<NfsShare.AllowedClient.Builder>
-
setField
public NfsShare.AllowedClient.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<NfsShare.AllowedClient.Builder>
-
clearField
public NfsShare.AllowedClient.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
-
clearOneof
public NfsShare.AllowedClient.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
-
setRepeatedField
public NfsShare.AllowedClient.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<NfsShare.AllowedClient.Builder>
-
addRepeatedField
public NfsShare.AllowedClient.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<NfsShare.AllowedClient.Builder>
-
mergeFrom
public NfsShare.AllowedClient.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NfsShare.AllowedClient.Builder>
-
mergeFrom
public NfsShare.AllowedClient.Builder mergeFrom(NfsShare.AllowedClient other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
-
mergeFrom
public NfsShare.AllowedClient.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<NfsShare.AllowedClient.Builder>- Throws:
IOException
-
getNetwork
public String getNetwork()
The network the access point sits on.
string network = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getNetworkin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
The network the access point sits on.
string network = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getNetworkBytesin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The bytes for network.
-
setNetwork
public NfsShare.AllowedClient.Builder setNetwork(String value)
The network the access point sits on.
string network = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
public NfsShare.AllowedClient.Builder clearNetwork()
The network the access point sits on.
string network = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNetworkBytes
public NfsShare.AllowedClient.Builder setNetworkBytes(com.google.protobuf.ByteString value)
The network the access point sits on.
string network = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
getShareIp
public String getShareIp()
Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getShareIpin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The shareIp.
-
getShareIpBytes
public com.google.protobuf.ByteString getShareIpBytes()
Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getShareIpBytesin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The bytes for shareIp.
-
setShareIp
public NfsShare.AllowedClient.Builder setShareIp(String value)
Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The shareIp to set.- Returns:
- This builder for chaining.
-
clearShareIp
public NfsShare.AllowedClient.Builder clearShareIp()
Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setShareIpBytes
public NfsShare.AllowedClient.Builder setShareIpBytes(com.google.protobuf.ByteString value)
Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for shareIp to set.- Returns:
- This builder for chaining.
-
getAllowedClientsCidr
public String getAllowedClientsCidr()
The subnet of IP addresses permitted to access the share.
string allowed_clients_cidr = 3;- Specified by:
getAllowedClientsCidrin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The allowedClientsCidr.
-
getAllowedClientsCidrBytes
public com.google.protobuf.ByteString getAllowedClientsCidrBytes()
The subnet of IP addresses permitted to access the share.
string allowed_clients_cidr = 3;- Specified by:
getAllowedClientsCidrBytesin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The bytes for allowedClientsCidr.
-
setAllowedClientsCidr
public NfsShare.AllowedClient.Builder setAllowedClientsCidr(String value)
The subnet of IP addresses permitted to access the share.
string allowed_clients_cidr = 3;- Parameters:
value- The allowedClientsCidr to set.- Returns:
- This builder for chaining.
-
clearAllowedClientsCidr
public NfsShare.AllowedClient.Builder clearAllowedClientsCidr()
The subnet of IP addresses permitted to access the share.
string allowed_clients_cidr = 3;- Returns:
- This builder for chaining.
-
setAllowedClientsCidrBytes
public NfsShare.AllowedClient.Builder setAllowedClientsCidrBytes(com.google.protobuf.ByteString value)
The subnet of IP addresses permitted to access the share.
string allowed_clients_cidr = 3;- Parameters:
value- The bytes for allowedClientsCidr to set.- Returns:
- This builder for chaining.
-
getMountPermissionsValue
public int getMountPermissionsValue()
Mount permissions.
.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;- Specified by:
getMountPermissionsValuein interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The enum numeric value on the wire for mountPermissions.
-
setMountPermissionsValue
public NfsShare.AllowedClient.Builder setMountPermissionsValue(int value)
Mount permissions.
.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;- Parameters:
value- The enum numeric value on the wire for mountPermissions to set.- Returns:
- This builder for chaining.
-
getMountPermissions
public NfsShare.MountPermissions getMountPermissions()
Mount permissions.
.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;- Specified by:
getMountPermissionsin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The mountPermissions.
-
setMountPermissions
public NfsShare.AllowedClient.Builder setMountPermissions(NfsShare.MountPermissions value)
Mount permissions.
.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;- Parameters:
value- The mountPermissions to set.- Returns:
- This builder for chaining.
-
clearMountPermissions
public NfsShare.AllowedClient.Builder clearMountPermissions()
Mount permissions.
.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;- Returns:
- This builder for chaining.
-
getAllowDev
public boolean getAllowDev()
Allow dev flag. Which controls whether to allow creation of devices.
bool allow_dev = 5;- Specified by:
getAllowDevin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The allowDev.
-
setAllowDev
public NfsShare.AllowedClient.Builder setAllowDev(boolean value)
Allow dev flag. Which controls whether to allow creation of devices.
bool allow_dev = 5;- Parameters:
value- The allowDev to set.- Returns:
- This builder for chaining.
-
clearAllowDev
public NfsShare.AllowedClient.Builder clearAllowDev()
Allow dev flag. Which controls whether to allow creation of devices.
bool allow_dev = 5;- Returns:
- This builder for chaining.
-
getAllowSuid
public boolean getAllowSuid()
Allow the setuid flag.
bool allow_suid = 6;- Specified by:
getAllowSuidin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The allowSuid.
-
setAllowSuid
public NfsShare.AllowedClient.Builder setAllowSuid(boolean value)
Allow the setuid flag.
bool allow_suid = 6;- Parameters:
value- The allowSuid to set.- Returns:
- This builder for chaining.
-
clearAllowSuid
public NfsShare.AllowedClient.Builder clearAllowSuid()
Allow the setuid flag.
bool allow_suid = 6;- Returns:
- This builder for chaining.
-
getNoRootSquash
public boolean getNoRootSquash()
Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
bool no_root_squash = 7;- Specified by:
getNoRootSquashin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The noRootSquash.
-
setNoRootSquash
public NfsShare.AllowedClient.Builder setNoRootSquash(boolean value)
Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
bool no_root_squash = 7;- Parameters:
value- The noRootSquash to set.- Returns:
- This builder for chaining.
-
clearNoRootSquash
public NfsShare.AllowedClient.Builder clearNoRootSquash()
Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
bool no_root_squash = 7;- Returns:
- This builder for chaining.
-
getNfsPath
public String getNfsPath()
Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNfsPathin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The nfsPath.
-
getNfsPathBytes
public com.google.protobuf.ByteString getNfsPathBytes()
Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNfsPathBytesin interfaceNfsShare.AllowedClientOrBuilder- Returns:
- The bytes for nfsPath.
-
setNfsPath
public NfsShare.AllowedClient.Builder setNfsPath(String value)
Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The nfsPath to set.- Returns:
- This builder for chaining.
-
clearNfsPath
public NfsShare.AllowedClient.Builder clearNfsPath()
Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNfsPathBytes
public NfsShare.AllowedClient.Builder setNfsPathBytes(com.google.protobuf.ByteString value)
Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for nfsPath to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final NfsShare.AllowedClient.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
-
mergeUnknownFields
public final NfsShare.AllowedClient.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
-
-