Class GatewayConfig.Builder (2.12.0)

public static final class GatewayConfig.Builder extends GeneratedMessageV3.Builder<GatewayConfig.Builder> implements GatewayConfigOrBuilder

Gateway-related configuration and state.

Protobuf type google.cloud.iot.v1.GatewayConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GatewayConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GatewayConfig.Builder
Overrides

build()

public GatewayConfig build()
Returns
TypeDescription
GatewayConfig

buildPartial()

public GatewayConfig buildPartial()
Returns
TypeDescription
GatewayConfig

clear()

public GatewayConfig.Builder clear()
Returns
TypeDescription
GatewayConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GatewayConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GatewayConfig.Builder
Overrides

clearGatewayAuthMethod()

public GatewayConfig.Builder clearGatewayAuthMethod()

Indicates how to authorize and/or authenticate devices to access the gateway.

.google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;

Returns
TypeDescription
GatewayConfig.Builder

This builder for chaining.

clearGatewayType()

public GatewayConfig.Builder clearGatewayType()

Indicates whether the device is a gateway.

.google.cloud.iot.v1.GatewayType gateway_type = 1;

Returns
TypeDescription
GatewayConfig.Builder

This builder for chaining.

clearLastAccessedGatewayId()

public GatewayConfig.Builder clearLastAccessedGatewayId()

[Output only] The ID of the gateway the device accessed most recently.

string last_accessed_gateway_id = 3;

Returns
TypeDescription
GatewayConfig.Builder

This builder for chaining.

clearLastAccessedGatewayTime()

public GatewayConfig.Builder clearLastAccessedGatewayTime()

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

.google.protobuf.Timestamp last_accessed_gateway_time = 4;

Returns
TypeDescription
GatewayConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GatewayConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GatewayConfig.Builder
Overrides

clone()

public GatewayConfig.Builder clone()
Returns
TypeDescription
GatewayConfig.Builder
Overrides

getDefaultInstanceForType()

public GatewayConfig getDefaultInstanceForType()
Returns
TypeDescription
GatewayConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGatewayAuthMethod()

public GatewayAuthMethod getGatewayAuthMethod()

Indicates how to authorize and/or authenticate devices to access the gateway.

.google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;

Returns
TypeDescription
GatewayAuthMethod

The gatewayAuthMethod.

getGatewayAuthMethodValue()

public int getGatewayAuthMethodValue()

Indicates how to authorize and/or authenticate devices to access the gateway.

.google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for gatewayAuthMethod.

getGatewayType()

public GatewayType getGatewayType()

Indicates whether the device is a gateway.

.google.cloud.iot.v1.GatewayType gateway_type = 1;

Returns
TypeDescription
GatewayType

The gatewayType.

getGatewayTypeValue()

public int getGatewayTypeValue()

Indicates whether the device is a gateway.

.google.cloud.iot.v1.GatewayType gateway_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for gatewayType.

getLastAccessedGatewayId()

public String getLastAccessedGatewayId()

[Output only] The ID of the gateway the device accessed most recently.

string last_accessed_gateway_id = 3;

Returns
TypeDescription
String

The lastAccessedGatewayId.

getLastAccessedGatewayIdBytes()

public ByteString getLastAccessedGatewayIdBytes()

[Output only] The ID of the gateway the device accessed most recently.

string last_accessed_gateway_id = 3;

Returns
TypeDescription
ByteString

The bytes for lastAccessedGatewayId.

getLastAccessedGatewayTime()

public Timestamp getLastAccessedGatewayTime()

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

.google.protobuf.Timestamp last_accessed_gateway_time = 4;

Returns
TypeDescription
Timestamp

The lastAccessedGatewayTime.

getLastAccessedGatewayTimeBuilder()

public Timestamp.Builder getLastAccessedGatewayTimeBuilder()

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

.google.protobuf.Timestamp last_accessed_gateway_time = 4;

Returns
TypeDescription
Builder

getLastAccessedGatewayTimeOrBuilder()

public TimestampOrBuilder getLastAccessedGatewayTimeOrBuilder()

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

.google.protobuf.Timestamp last_accessed_gateway_time = 4;

Returns
TypeDescription
TimestampOrBuilder

hasLastAccessedGatewayTime()

public boolean hasLastAccessedGatewayTime()

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

.google.protobuf.Timestamp last_accessed_gateway_time = 4;

Returns
TypeDescription
boolean

Whether the lastAccessedGatewayTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GatewayConfig other)

public GatewayConfig.Builder mergeFrom(GatewayConfig other)
Parameter
NameDescription
otherGatewayConfig
Returns
TypeDescription
GatewayConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GatewayConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GatewayConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GatewayConfig.Builder
Overrides

mergeLastAccessedGatewayTime(Timestamp value)

public GatewayConfig.Builder mergeLastAccessedGatewayTime(Timestamp value)

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

.google.protobuf.Timestamp last_accessed_gateway_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
GatewayConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GatewayConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GatewayConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GatewayConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GatewayConfig.Builder
Overrides

setGatewayAuthMethod(GatewayAuthMethod value)

public GatewayConfig.Builder setGatewayAuthMethod(GatewayAuthMethod value)

Indicates how to authorize and/or authenticate devices to access the gateway.

.google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;

Parameter
NameDescription
valueGatewayAuthMethod

The gatewayAuthMethod to set.

Returns
TypeDescription
GatewayConfig.Builder

This builder for chaining.

setGatewayAuthMethodValue(int value)

public GatewayConfig.Builder setGatewayAuthMethodValue(int value)

Indicates how to authorize and/or authenticate devices to access the gateway.

.google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for gatewayAuthMethod to set.

Returns
TypeDescription
GatewayConfig.Builder

This builder for chaining.

setGatewayType(GatewayType value)

public GatewayConfig.Builder setGatewayType(GatewayType value)

Indicates whether the device is a gateway.

.google.cloud.iot.v1.GatewayType gateway_type = 1;

Parameter
NameDescription
valueGatewayType

The gatewayType to set.

Returns
TypeDescription
GatewayConfig.Builder

This builder for chaining.

setGatewayTypeValue(int value)

public GatewayConfig.Builder setGatewayTypeValue(int value)

Indicates whether the device is a gateway.

.google.cloud.iot.v1.GatewayType gateway_type = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for gatewayType to set.

Returns
TypeDescription
GatewayConfig.Builder

This builder for chaining.

setLastAccessedGatewayId(String value)

public GatewayConfig.Builder setLastAccessedGatewayId(String value)

[Output only] The ID of the gateway the device accessed most recently.

string last_accessed_gateway_id = 3;

Parameter
NameDescription
valueString

The lastAccessedGatewayId to set.

Returns
TypeDescription
GatewayConfig.Builder

This builder for chaining.

setLastAccessedGatewayIdBytes(ByteString value)

public GatewayConfig.Builder setLastAccessedGatewayIdBytes(ByteString value)

[Output only] The ID of the gateway the device accessed most recently.

string last_accessed_gateway_id = 3;

Parameter
NameDescription
valueByteString

The bytes for lastAccessedGatewayId to set.

Returns
TypeDescription
GatewayConfig.Builder

This builder for chaining.

setLastAccessedGatewayTime(Timestamp value)

public GatewayConfig.Builder setLastAccessedGatewayTime(Timestamp value)

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

.google.protobuf.Timestamp last_accessed_gateway_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
GatewayConfig.Builder

setLastAccessedGatewayTime(Timestamp.Builder builderForValue)

public GatewayConfig.Builder setLastAccessedGatewayTime(Timestamp.Builder builderForValue)

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

.google.protobuf.Timestamp last_accessed_gateway_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
GatewayConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GatewayConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GatewayConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GatewayConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GatewayConfig.Builder
Overrides