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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GatewayConfigbuild()GatewayConfigbuildPartial()GatewayConfig.Builderclear()GatewayConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GatewayConfig.BuilderclearGatewayAuthMethod()Indicates how to authorize and/or authenticate devices to access the gateway.GatewayConfig.BuilderclearGatewayType()Indicates whether the device is a gateway.GatewayConfig.BuilderclearLastAccessedGatewayId()[Output only] The ID of the gateway the device accessed most recently.GatewayConfig.BuilderclearLastAccessedGatewayTime()[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.GatewayConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GatewayConfig.Builderclone()GatewayConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()GatewayAuthMethodgetGatewayAuthMethod()Indicates how to authorize and/or authenticate devices to access the gateway.intgetGatewayAuthMethodValue()Indicates how to authorize and/or authenticate devices to access the gateway.GatewayTypegetGatewayType()Indicates whether the device is a gateway.intgetGatewayTypeValue()Indicates whether the device is a gateway.StringgetLastAccessedGatewayId()[Output only] The ID of the gateway the device accessed most recently.com.google.protobuf.ByteStringgetLastAccessedGatewayIdBytes()[Output only] The ID of the gateway the device accessed most recently.com.google.protobuf.TimestampgetLastAccessedGatewayTime()[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.com.google.protobuf.Timestamp.BuildergetLastAccessedGatewayTimeBuilder()[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.com.google.protobuf.TimestampOrBuildergetLastAccessedGatewayTimeOrBuilder()[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.booleanhasLastAccessedGatewayTime()[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GatewayConfig.BuildermergeFrom(GatewayConfig other)GatewayConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GatewayConfig.BuildermergeFrom(com.google.protobuf.Message other)GatewayConfig.BuildermergeLastAccessedGatewayTime(com.google.protobuf.Timestamp value)[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.GatewayConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GatewayConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GatewayConfig.BuildersetGatewayAuthMethod(GatewayAuthMethod value)Indicates how to authorize and/or authenticate devices to access the gateway.GatewayConfig.BuildersetGatewayAuthMethodValue(int value)Indicates how to authorize and/or authenticate devices to access the gateway.GatewayConfig.BuildersetGatewayType(GatewayType value)Indicates whether the device is a gateway.GatewayConfig.BuildersetGatewayTypeValue(int value)Indicates whether the device is a gateway.GatewayConfig.BuildersetLastAccessedGatewayId(String value)[Output only] The ID of the gateway the device accessed most recently.GatewayConfig.BuildersetLastAccessedGatewayIdBytes(com.google.protobuf.ByteString value)[Output only] The ID of the gateway the device accessed most recently.GatewayConfig.BuildersetLastAccessedGatewayTime(com.google.protobuf.Timestamp value)[Output only] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.GatewayConfig.BuildersetLastAccessedGatewayTime(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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GatewayConfig.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<GatewayConfig.Builder>
-
clear
public GatewayConfig.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<GatewayConfig.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<GatewayConfig.Builder>
-
getDefaultInstanceForType
public GatewayConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GatewayConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GatewayConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GatewayConfig.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<GatewayConfig.Builder>
-
setField
public GatewayConfig.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<GatewayConfig.Builder>
-
clearField
public GatewayConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
clearOneof
public GatewayConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
setRepeatedField
public GatewayConfig.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<GatewayConfig.Builder>
-
addRepeatedField
public GatewayConfig.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<GatewayConfig.Builder>
-
mergeFrom
public GatewayConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GatewayConfig.Builder>
-
mergeFrom
public GatewayConfig.Builder mergeFrom(GatewayConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getGatewayTypeValuein 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:
getGatewayTypein 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:
getGatewayAuthMethodValuein 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:
getGatewayAuthMethodin 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:
getLastAccessedGatewayIdin 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:
getLastAccessedGatewayIdBytesin 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:
hasLastAccessedGatewayTimein 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:
getLastAccessedGatewayTimein 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:
getLastAccessedGatewayTimeOrBuilderin interfaceGatewayConfigOrBuilder
-
setUnknownFields
public final GatewayConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
mergeUnknownFields
public final GatewayConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayConfig.Builder>
-
-