Class GatewayConfig (2.19.0)

public final class GatewayConfig extends GeneratedMessageV3 implements GatewayConfigOrBuilder

Gateway-related configuration and state.

Protobuf type google.cloud.iot.v1.GatewayConfig

Static Fields

GATEWAY_AUTH_METHOD_FIELD_NUMBER

public static final int GATEWAY_AUTH_METHOD_FIELD_NUMBER
Field Value
TypeDescription
int

GATEWAY_TYPE_FIELD_NUMBER

public static final int GATEWAY_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_ACCESSED_GATEWAY_ID_FIELD_NUMBER

public static final int LAST_ACCESSED_GATEWAY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_ACCESSED_GATEWAY_TIME_FIELD_NUMBER

public static final int LAST_ACCESSED_GATEWAY_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GatewayConfig getDefaultInstance()
Returns
TypeDescription
GatewayConfig

getDescriptor()

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

newBuilder()

public static GatewayConfig.Builder newBuilder()
Returns
TypeDescription
GatewayConfig.Builder

newBuilder(GatewayConfig prototype)

public static GatewayConfig.Builder newBuilder(GatewayConfig prototype)
Parameter
NameDescription
prototypeGatewayConfig
Returns
TypeDescription
GatewayConfig.Builder

parseDelimitedFrom(InputStream input)

public static GatewayConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GatewayConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GatewayConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GatewayConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GatewayConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GatewayConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GatewayConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GatewayConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GatewayConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GatewayConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GatewayConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GatewayConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GatewayConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GatewayConfig> parser()
Returns
TypeDescription
Parser<GatewayConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public GatewayConfig getDefaultInstanceForType()
Returns
TypeDescription
GatewayConfig

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.

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

getParserForType()

public Parser<GatewayConfig> getParserForType()
Returns
TypeDescription
Parser<GatewayConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GatewayConfig.Builder newBuilderForType()
Returns
TypeDescription
GatewayConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GatewayConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GatewayConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GatewayConfig.Builder toBuilder()
Returns
TypeDescription
GatewayConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException