public static final class Dhcp.Builder extends GeneratedMessage.Builder<Dhcp.Builder> implements DhcpOrBuilderDHCP information.
Protobuf type google.backstory.Dhcp
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Dhcp.BuilderImplements
DhcpOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllOptions(Iterable<? extends Dhcp.Option> values)
public Dhcp.Builder addAllOptions(Iterable<? extends Dhcp.Option> values)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.backstory.Dhcp.Option> |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
addOptions(Dhcp.Option value)
public Dhcp.Builder addOptions(Dhcp.Option value)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameter | |
|---|---|
| Name | Description |
value |
Dhcp.Option |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
addOptions(Dhcp.Option.Builder builderForValue)
public Dhcp.Builder addOptions(Dhcp.Option.Builder builderForValue)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Dhcp.Option.Builder |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
addOptions(int index, Dhcp.Option value)
public Dhcp.Builder addOptions(int index, Dhcp.Option value)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Dhcp.Option |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
addOptions(int index, Dhcp.Option.Builder builderForValue)
public Dhcp.Builder addOptions(int index, Dhcp.Option.Builder builderForValue)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Dhcp.Option.Builder |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
addOptionsBuilder()
public Dhcp.Option.Builder addOptionsBuilder()List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Option.Builder |
|
addOptionsBuilder(int index)
public Dhcp.Option.Builder addOptionsBuilder(int index)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Option.Builder |
|
build()
public Dhcp build()| Returns | |
|---|---|
| Type | Description |
Dhcp |
|
buildPartial()
public Dhcp buildPartial()| Returns | |
|---|---|
| Type | Description |
Dhcp |
|
clear()
public Dhcp.Builder clear()| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
clearChaddr()
public Dhcp.Builder clearChaddr()Client hardware address (chaddr).
string chaddr = 12;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearCiaddr()
public Dhcp.Builder clearCiaddr()Client IP address (ciaddr).
string ciaddr = 8;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearClientHostname()
public Dhcp.Builder clearClientHostname()Client hostname. See RFC2132, section 3.14.
string client_hostname = 18;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearClientIdentifier()
public Dhcp.Builder clearClientIdentifier()Client identifier. See RFC2132, section 9.14. Note: Make sure to update the client_identifier_string field as well if you update this field.
bytes client_identifier = 19;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearClientIdentifierString()
public Dhcp.Builder clearClientIdentifierString()Client identifier as string. See RFC2132, section 9.14. This field holds the string value of the client_identifier.
string client_identifier_string = 21;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearFile()
public Dhcp.Builder clearFile()Boot image filename.
string file = 14;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearFlags()
public Dhcp.Builder clearFlags()Flags.
uint32 flags = 7;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearGiaddr()
public Dhcp.Builder clearGiaddr()Relay agent IP address (giaddr).
string giaddr = 11;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearHlen()
public Dhcp.Builder clearHlen()Hardware address length.
uint32 hlen = 3;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearHops()
public Dhcp.Builder clearHops()Hardware ops.
uint32 hops = 4;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearHtype()
public Dhcp.Builder clearHtype()Hardware address type.
uint32 htype = 2;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearLeaseTimeSeconds()
public Dhcp.Builder clearLeaseTimeSeconds()Lease time in seconds. See RFC2132, section 9.2.
uint32 lease_time_seconds = 17;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearOpcode()
public Dhcp.Builder clearOpcode()The BOOTP op code.
.google.backstory.Dhcp.OpCode opcode = 1;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearOptions()
public Dhcp.Builder clearOptions()List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
clearRequestedAddress()
public Dhcp.Builder clearRequestedAddress()Requested IP address. See RFC2132, section 9.1.
string requested_address = 20;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearSeconds()
public Dhcp.Builder clearSeconds()Seconds elapsed since client began address acquisition/renewal process.
uint32 seconds = 6;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearSiaddr()
public Dhcp.Builder clearSiaddr()IP address of the next bootstrap server.
string siaddr = 10;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearSname()
public Dhcp.Builder clearSname()Server name that the client wishes to boot from.
string sname = 13;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearTransactionId()
public Dhcp.Builder clearTransactionId()Transaction ID.
uint32 transaction_id = 5;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearType()
public Dhcp.Builder clearType()DHCP message type.
.google.backstory.Dhcp.MessageType type = 16;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
clearYiaddr()
public Dhcp.Builder clearYiaddr()Your IP address (yiaddr).
string yiaddr = 9;
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
getChaddr()
public String getChaddr()Client hardware address (chaddr).
string chaddr = 12;
| Returns | |
|---|---|
| Type | Description |
String |
The chaddr. |
getChaddrBytes()
public ByteString getChaddrBytes()Client hardware address (chaddr).
string chaddr = 12;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for chaddr. |
getCiaddr()
public String getCiaddr()Client IP address (ciaddr).
string ciaddr = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The ciaddr. |
getCiaddrBytes()
public ByteString getCiaddrBytes()Client IP address (ciaddr).
string ciaddr = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ciaddr. |
getClientHostname()
public String getClientHostname()Client hostname. See RFC2132, section 3.14.
string client_hostname = 18;
| Returns | |
|---|---|
| Type | Description |
String |
The clientHostname. |
getClientHostnameBytes()
public ByteString getClientHostnameBytes()Client hostname. See RFC2132, section 3.14.
string client_hostname = 18;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientHostname. |
getClientIdentifier()
public ByteString getClientIdentifier()Client identifier. See RFC2132, section 9.14. Note: Make sure to update the client_identifier_string field as well if you update this field.
bytes client_identifier = 19;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The clientIdentifier. |
getClientIdentifierString()
public String getClientIdentifierString()Client identifier as string. See RFC2132, section 9.14. This field holds the string value of the client_identifier.
string client_identifier_string = 21;
| Returns | |
|---|---|
| Type | Description |
String |
The clientIdentifierString. |
getClientIdentifierStringBytes()
public ByteString getClientIdentifierStringBytes()Client identifier as string. See RFC2132, section 9.14. This field holds the string value of the client_identifier.
string client_identifier_string = 21;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientIdentifierString. |
getDefaultInstanceForType()
public Dhcp getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Dhcp |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFile()
public String getFile()Boot image filename.
string file = 14;
| Returns | |
|---|---|
| Type | Description |
String |
The file. |
getFileBytes()
public ByteString getFileBytes()Boot image filename.
string file = 14;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for file. |
getFlags()
public int getFlags()Flags.
uint32 flags = 7;
| Returns | |
|---|---|
| Type | Description |
int |
The flags. |
getGiaddr()
public String getGiaddr()Relay agent IP address (giaddr).
string giaddr = 11;
| Returns | |
|---|---|
| Type | Description |
String |
The giaddr. |
getGiaddrBytes()
public ByteString getGiaddrBytes()Relay agent IP address (giaddr).
string giaddr = 11;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for giaddr. |
getHlen()
public int getHlen()Hardware address length.
uint32 hlen = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The hlen. |
getHops()
public int getHops()Hardware ops.
uint32 hops = 4;
| Returns | |
|---|---|
| Type | Description |
int |
The hops. |
getHtype()
public int getHtype()Hardware address type.
uint32 htype = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The htype. |
getLeaseTimeSeconds()
public int getLeaseTimeSeconds()Lease time in seconds. See RFC2132, section 9.2.
uint32 lease_time_seconds = 17;
| Returns | |
|---|---|
| Type | Description |
int |
The leaseTimeSeconds. |
getOpcode()
public Dhcp.OpCode getOpcode()The BOOTP op code.
.google.backstory.Dhcp.OpCode opcode = 1;
| Returns | |
|---|---|
| Type | Description |
Dhcp.OpCode |
The opcode. |
getOpcodeValue()
public int getOpcodeValue()The BOOTP op code.
.google.backstory.Dhcp.OpCode opcode = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for opcode. |
getOptions(int index)
public Dhcp.Option getOptions(int index)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Option |
|
getOptionsBuilder(int index)
public Dhcp.Option.Builder getOptionsBuilder(int index)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Option.Builder |
|
getOptionsBuilderList()
public List<Dhcp.Option.Builder> getOptionsBuilderList()List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getOptionsCount()
public int getOptionsCount()List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Returns | |
|---|---|
| Type | Description |
int |
|
getOptionsList()
public List<Dhcp.Option> getOptionsList()List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Returns | |
|---|---|
| Type | Description |
List<Option> |
|
getOptionsOrBuilder(int index)
public Dhcp.OptionOrBuilder getOptionsOrBuilder(int index)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Dhcp.OptionOrBuilder |
|
getOptionsOrBuilderList()
public List<? extends Dhcp.OptionOrBuilder> getOptionsOrBuilderList()List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.backstory.Dhcp.OptionOrBuilder> |
|
getRequestedAddress()
public String getRequestedAddress()Requested IP address. See RFC2132, section 9.1.
string requested_address = 20;
| Returns | |
|---|---|
| Type | Description |
String |
The requestedAddress. |
getRequestedAddressBytes()
public ByteString getRequestedAddressBytes()Requested IP address. See RFC2132, section 9.1.
string requested_address = 20;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for requestedAddress. |
getSeconds()
public int getSeconds()Seconds elapsed since client began address acquisition/renewal process.
uint32 seconds = 6;
| Returns | |
|---|---|
| Type | Description |
int |
The seconds. |
getSiaddr()
public String getSiaddr()IP address of the next bootstrap server.
string siaddr = 10;
| Returns | |
|---|---|
| Type | Description |
String |
The siaddr. |
getSiaddrBytes()
public ByteString getSiaddrBytes()IP address of the next bootstrap server.
string siaddr = 10;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for siaddr. |
getSname()
public String getSname()Server name that the client wishes to boot from.
string sname = 13;
| Returns | |
|---|---|
| Type | Description |
String |
The sname. |
getSnameBytes()
public ByteString getSnameBytes()Server name that the client wishes to boot from.
string sname = 13;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sname. |
getTransactionId()
public int getTransactionId()Transaction ID.
uint32 transaction_id = 5;
| Returns | |
|---|---|
| Type | Description |
int |
The transactionId. |
getType()
public Dhcp.MessageType getType()DHCP message type.
.google.backstory.Dhcp.MessageType type = 16;
| Returns | |
|---|---|
| Type | Description |
Dhcp.MessageType |
The type. |
getTypeValue()
public int getTypeValue()DHCP message type.
.google.backstory.Dhcp.MessageType type = 16;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
getYiaddr()
public String getYiaddr()Your IP address (yiaddr).
string yiaddr = 9;
| Returns | |
|---|---|
| Type | Description |
String |
The yiaddr. |
getYiaddrBytes()
public ByteString getYiaddrBytes()Your IP address (yiaddr).
string yiaddr = 9;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for yiaddr. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Dhcp other)
public Dhcp.Builder mergeFrom(Dhcp other)| Parameter | |
|---|---|
| Name | Description |
other |
Dhcp |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Dhcp.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Dhcp.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
removeOptions(int index)
public Dhcp.Builder removeOptions(int index)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
setChaddr(String value)
public Dhcp.Builder setChaddr(String value)Client hardware address (chaddr).
string chaddr = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe chaddr to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setChaddrBytes(ByteString value)
public Dhcp.Builder setChaddrBytes(ByteString value)Client hardware address (chaddr).
string chaddr = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for chaddr to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setCiaddr(String value)
public Dhcp.Builder setCiaddr(String value)Client IP address (ciaddr).
string ciaddr = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ciaddr to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setCiaddrBytes(ByteString value)
public Dhcp.Builder setCiaddrBytes(ByteString value)Client IP address (ciaddr).
string ciaddr = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for ciaddr to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setClientHostname(String value)
public Dhcp.Builder setClientHostname(String value)Client hostname. See RFC2132, section 3.14.
string client_hostname = 18;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientHostname to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setClientHostnameBytes(ByteString value)
public Dhcp.Builder setClientHostnameBytes(ByteString value)Client hostname. See RFC2132, section 3.14.
string client_hostname = 18;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientHostname to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setClientIdentifier(ByteString value)
public Dhcp.Builder setClientIdentifier(ByteString value)Client identifier. See RFC2132, section 9.14. Note: Make sure to update the client_identifier_string field as well if you update this field.
bytes client_identifier = 19;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe clientIdentifier to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setClientIdentifierString(String value)
public Dhcp.Builder setClientIdentifierString(String value)Client identifier as string. See RFC2132, section 9.14. This field holds the string value of the client_identifier.
string client_identifier_string = 21;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientIdentifierString to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setClientIdentifierStringBytes(ByteString value)
public Dhcp.Builder setClientIdentifierStringBytes(ByteString value)Client identifier as string. See RFC2132, section 9.14. This field holds the string value of the client_identifier.
string client_identifier_string = 21;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientIdentifierString to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setFile(String value)
public Dhcp.Builder setFile(String value)Boot image filename.
string file = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe file to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setFileBytes(ByteString value)
public Dhcp.Builder setFileBytes(ByteString value)Boot image filename.
string file = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for file to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setFlags(int value)
public Dhcp.Builder setFlags(int value)Flags.
uint32 flags = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe flags to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setGiaddr(String value)
public Dhcp.Builder setGiaddr(String value)Relay agent IP address (giaddr).
string giaddr = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe giaddr to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setGiaddrBytes(ByteString value)
public Dhcp.Builder setGiaddrBytes(ByteString value)Relay agent IP address (giaddr).
string giaddr = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for giaddr to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setHlen(int value)
public Dhcp.Builder setHlen(int value)Hardware address length.
uint32 hlen = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe hlen to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setHops(int value)
public Dhcp.Builder setHops(int value)Hardware ops.
uint32 hops = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe hops to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setHtype(int value)
public Dhcp.Builder setHtype(int value)Hardware address type.
uint32 htype = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe htype to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setLeaseTimeSeconds(int value)
public Dhcp.Builder setLeaseTimeSeconds(int value)Lease time in seconds. See RFC2132, section 9.2.
uint32 lease_time_seconds = 17;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe leaseTimeSeconds to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setOpcode(Dhcp.OpCode value)
public Dhcp.Builder setOpcode(Dhcp.OpCode value)The BOOTP op code.
.google.backstory.Dhcp.OpCode opcode = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Dhcp.OpCodeThe opcode to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setOpcodeValue(int value)
public Dhcp.Builder setOpcodeValue(int value)The BOOTP op code.
.google.backstory.Dhcp.OpCode opcode = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for opcode to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setOptions(int index, Dhcp.Option value)
public Dhcp.Builder setOptions(int index, Dhcp.Option value)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Dhcp.Option |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
setOptions(int index, Dhcp.Option.Builder builderForValue)
public Dhcp.Builder setOptions(int index, Dhcp.Option.Builder builderForValue)List of DHCP options.
repeated .google.backstory.Dhcp.Option options = 15;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Dhcp.Option.Builder |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
|
setRequestedAddress(String value)
public Dhcp.Builder setRequestedAddress(String value)Requested IP address. See RFC2132, section 9.1.
string requested_address = 20;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe requestedAddress to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setRequestedAddressBytes(ByteString value)
public Dhcp.Builder setRequestedAddressBytes(ByteString value)Requested IP address. See RFC2132, section 9.1.
string requested_address = 20;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for requestedAddress to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setSeconds(int value)
public Dhcp.Builder setSeconds(int value)Seconds elapsed since client began address acquisition/renewal process.
uint32 seconds = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe seconds to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setSiaddr(String value)
public Dhcp.Builder setSiaddr(String value)IP address of the next bootstrap server.
string siaddr = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe siaddr to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setSiaddrBytes(ByteString value)
public Dhcp.Builder setSiaddrBytes(ByteString value)IP address of the next bootstrap server.
string siaddr = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for siaddr to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setSname(String value)
public Dhcp.Builder setSname(String value)Server name that the client wishes to boot from.
string sname = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sname to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setSnameBytes(ByteString value)
public Dhcp.Builder setSnameBytes(ByteString value)Server name that the client wishes to boot from.
string sname = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sname to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setTransactionId(int value)
public Dhcp.Builder setTransactionId(int value)Transaction ID.
uint32 transaction_id = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe transactionId to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setType(Dhcp.MessageType value)
public Dhcp.Builder setType(Dhcp.MessageType value)DHCP message type.
.google.backstory.Dhcp.MessageType type = 16;
| Parameter | |
|---|---|
| Name | Description |
value |
Dhcp.MessageTypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setTypeValue(int value)
public Dhcp.Builder setTypeValue(int value)DHCP message type.
.google.backstory.Dhcp.MessageType type = 16;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setYiaddr(String value)
public Dhcp.Builder setYiaddr(String value)Your IP address (yiaddr).
string yiaddr = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe yiaddr to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |
setYiaddrBytes(ByteString value)
public Dhcp.Builder setYiaddrBytes(ByteString value)Your IP address (yiaddr).
string yiaddr = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for yiaddr to set. |
| Returns | |
|---|---|
| Type | Description |
Dhcp.Builder |
This builder for chaining. |