Package com.google.cloud.iot.v1
Class GatewayConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
- com.google.cloud.iot.v1.GatewayConfig.Builder
-
- All Implemented Interfaces:
GatewayConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- GatewayConfig
public static final class GatewayConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder> implements GatewayConfigOrBuilder
Gateway-related configuration and state.
Protobuf typegoogle.cloud.iot.v1.GatewayConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GatewayConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GatewayConfig
build()
GatewayConfig
buildPartial()
GatewayConfig.Builder
clear()
GatewayConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GatewayConfig.Builder
clearGatewayAuthMethod()
Indicates how to authorize and/or authenticate devices to access the gateway.GatewayConfig.Builder
clearGatewayType()
Indicates whether the device is a gateway.GatewayConfig.Builder
clearLastAccessedGatewayId()
[Output only] The ID of the gateway the device accessed most recently.GatewayConfig.Builder
clearLastAccessedGatewayTime()
[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.GatewayConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GatewayConfig.Builder
clone()
GatewayConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
GatewayAuthMethod
getGatewayAuthMethod()
Indicates how to authorize and/or authenticate devices to access the gateway.int
getGatewayAuthMethodValue()
Indicates how to authorize and/or authenticate devices to access the gateway.GatewayType
getGatewayType()
Indicates whether the device is a gateway.int
getGatewayTypeValue()
Indicates whether the device is a gateway.String
getLastAccessedGatewayId()
[Output only] The ID of the gateway the device accessed most recently.com.google.protobuf.ByteString
getLastAccessedGatewayIdBytes()
[Output only] The ID of the gateway the device accessed most recently.com.google.protobuf.Timestamp
getLastAccessedGatewayTime()
[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.com.google.protobuf.Timestamp.Builder
getLastAccessedGatewayTimeBuilder()
[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.com.google.protobuf.TimestampOrBuilder
getLastAccessedGatewayTimeOrBuilder()
[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.boolean
hasLastAccessedGatewayTime()
[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GatewayConfig.Builder
mergeFrom(GatewayConfig other)
GatewayConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GatewayConfig.Builder
mergeFrom(com.google.protobuf.Message other)
GatewayConfig.Builder
mergeLastAccessedGatewayTime(com.google.protobuf.Timestamp value)
[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.GatewayConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GatewayConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GatewayConfig.Builder
setGatewayAuthMethod(GatewayAuthMethod value)
Indicates how to authorize and/or authenticate devices to access the gateway.GatewayConfig.Builder
setGatewayAuthMethodValue(int value)
Indicates how to authorize and/or authenticate devices to access the gateway.GatewayConfig.Builder
setGatewayType(GatewayType value)
Indicates whether the device is a gateway.GatewayConfig.Builder
setGatewayTypeValue(int value)
Indicates whether the device is a gateway.GatewayConfig.Builder
setLastAccessedGatewayId(String value)
[Output only] The ID of the gateway the device accessed most recently.GatewayConfig.Builder
setLastAccessedGatewayIdBytes(com.google.protobuf.ByteString value)
[Output only] The ID of the gateway the device accessed most recently.GatewayConfig.Builder
setLastAccessedGatewayTime(com.google.protobuf.Timestamp value)
[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.GatewayConfig.Builder
setLastAccessedGatewayTime(com.google.protobuf.Timestamp.Builder builderForValue)
[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.GatewayConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GatewayConfig.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
clear
public GatewayConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
getDefaultInstanceForType
public GatewayConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GatewayConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GatewayConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GatewayConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
setField
public GatewayConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
clearField
public GatewayConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
clearOneof
public GatewayConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
setRepeatedField
public GatewayConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
addRepeatedField
public GatewayConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
mergeFrom
public GatewayConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GatewayConfig.Builder>
-
mergeFrom
public GatewayConfig.Builder mergeFrom(GatewayConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
mergeFrom
public GatewayConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GatewayConfig.Builder>
- Throws:
IOException
-
getGatewayTypeValue
public int getGatewayTypeValue()
Indicates whether the device is a gateway.
.google.cloud.iot.v1.GatewayType gateway_type = 1;
- Specified by:
getGatewayTypeValue
in interfaceGatewayConfigOrBuilder
- Returns:
- The enum numeric value on the wire for gatewayType.
-
setGatewayTypeValue
public GatewayConfig.Builder setGatewayTypeValue(int value)
Indicates whether the device is a gateway.
.google.cloud.iot.v1.GatewayType gateway_type = 1;
- Parameters:
value
- The enum numeric value on the wire for gatewayType to set.- Returns:
- This builder for chaining.
-
getGatewayType
public GatewayType getGatewayType()
Indicates whether the device is a gateway.
.google.cloud.iot.v1.GatewayType gateway_type = 1;
- Specified by:
getGatewayType
in interfaceGatewayConfigOrBuilder
- Returns:
- The gatewayType.
-
setGatewayType
public GatewayConfig.Builder setGatewayType(GatewayType value)
Indicates whether the device is a gateway.
.google.cloud.iot.v1.GatewayType gateway_type = 1;
- Parameters:
value
- The gatewayType to set.- Returns:
- 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:
- This builder for chaining.
-
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;
- Specified by:
getGatewayAuthMethodValue
in interfaceGatewayConfigOrBuilder
- Returns:
- The enum numeric value on the wire for gatewayAuthMethod.
-
setGatewayAuthMethodValue
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;
- Parameters:
value
- The enum numeric value on the wire for gatewayAuthMethod to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getGatewayAuthMethod
in interfaceGatewayConfigOrBuilder
- Returns:
- The gatewayAuthMethod.
-
setGatewayAuthMethod
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;
- Parameters:
value
- The gatewayAuthMethod to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getLastAccessedGatewayId
public String getLastAccessedGatewayId()
[Output only] The ID of the gateway the device accessed most recently.
string last_accessed_gateway_id = 3;
- Specified by:
getLastAccessedGatewayId
in interfaceGatewayConfigOrBuilder
- Returns:
- The lastAccessedGatewayId.
-
getLastAccessedGatewayIdBytes
public com.google.protobuf.ByteString getLastAccessedGatewayIdBytes()
[Output only] The ID of the gateway the device accessed most recently.
string last_accessed_gateway_id = 3;
- Specified by:
getLastAccessedGatewayIdBytes
in interfaceGatewayConfigOrBuilder
- Returns:
- The bytes for lastAccessedGatewayId.
-
setLastAccessedGatewayId
public GatewayConfig.Builder setLastAccessedGatewayId(String value)
[Output only] The ID of the gateway the device accessed most recently.
string last_accessed_gateway_id = 3;
- Parameters:
value
- The lastAccessedGatewayId to set.- Returns:
- 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:
- This builder for chaining.
-
setLastAccessedGatewayIdBytes
public GatewayConfig.Builder setLastAccessedGatewayIdBytes(com.google.protobuf.ByteString value)
[Output only] The ID of the gateway the device accessed most recently.
string last_accessed_gateway_id = 3;
- Parameters:
value
- The bytes for lastAccessedGatewayId to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasLastAccessedGatewayTime
in interfaceGatewayConfigOrBuilder
- Returns:
- Whether the lastAccessedGatewayTime field is set.
-
getLastAccessedGatewayTime
public com.google.protobuf.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;
- Specified by:
getLastAccessedGatewayTime
in interfaceGatewayConfigOrBuilder
- Returns:
- The lastAccessedGatewayTime.
-
setLastAccessedGatewayTime
public GatewayConfig.Builder setLastAccessedGatewayTime(com.google.protobuf.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;
-
setLastAccessedGatewayTime
public GatewayConfig.Builder setLastAccessedGatewayTime(com.google.protobuf.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;
-
mergeLastAccessedGatewayTime
public GatewayConfig.Builder mergeLastAccessedGatewayTime(com.google.protobuf.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;
-
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;
-
getLastAccessedGatewayTimeBuilder
public com.google.protobuf.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;
-
getLastAccessedGatewayTimeOrBuilder
public com.google.protobuf.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;
- Specified by:
getLastAccessedGatewayTimeOrBuilder
in interfaceGatewayConfigOrBuilder
-
setUnknownFields
public final GatewayConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
mergeUnknownFields
public final GatewayConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
-