Package com.iotics.api
Class Headers.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Headers.Builder>
com.iotics.api.Headers.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HeadersOrBuilder,Cloneable
- Enclosing class:
- Headers
public static final class Headers.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Headers.Builder>
implements HeadersOrBuilder
Headers describes the common headers applicable to all the API requests (except for Search subscribe: see SubscriptionHeaders).Protobuf type
iotics.api.Headers-
Method Summary
Modifier and TypeMethodDescriptionaddAllTransactionRef(Iterable<String> values) Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTransactionRef(String value) Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list.addTransactionRefBytes(com.google.protobuf.ByteString value) Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list.build()clear()User namespace used to group all the requests/responsesOptional client reference.Used for group listener, optional - Not implemented yetclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Client request timeout used to stop the request processing once the timeout is reachedUsed to loosely link requests/responses in a distributed environment each layer can add its own id to the list.clone()User namespace used to group all the requests/responsescom.google.protobuf.ByteStringUser namespace used to group all the requests/responsesOptional client reference.com.google.protobuf.ByteStringOptional client reference.Used for group listener, optional - Not implemented yetUsed for group listener, optional - Not implemented yetUsed for group listener, optional - Not implemented yetstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorClient request timeout used to stop the request processing once the timeout is reachedClient request timeout used to stop the request processing once the timeout is reachedClient request timeout used to stop the request processing once the timeout is reachedgetTransactionRef(int index) Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list.com.google.protobuf.ByteStringgetTransactionRefBytes(int index) Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list.intUsed to loosely link requests/responses in a distributed environment each layer can add its own id to the list.com.google.protobuf.ProtocolStringListUsed to loosely link requests/responses in a distributed environment each layer can add its own id to the list.booleanUsed for group listener, optional - Not implemented yetbooleanClient request timeout used to stop the request processing once the timeout is reachedprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeConsumerGroup(StringValue value) Used for group listener, optional - Not implemented yetmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRequestTimeout(Timestamp value) Client request timeout used to stop the request processing once the timeout is reachedfinal Headers.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setClientAppId(String value) User namespace used to group all the requests/responsessetClientAppIdBytes(com.google.protobuf.ByteString value) User namespace used to group all the requests/responsessetClientRef(String value) Optional client reference.setClientRefBytes(com.google.protobuf.ByteString value) Optional client reference.setConsumerGroup(StringValue value) Used for group listener, optional - Not implemented yetsetConsumerGroup(StringValue.Builder builderForValue) Used for group listener, optional - Not implemented yetsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestTimeout(Timestamp value) Client request timeout used to stop the request processing once the timeout is reachedsetRequestTimeout(Timestamp.Builder builderForValue) Client request timeout used to stop the request processing once the timeout is reachedsetTransactionRef(int index, String value) Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list.final Headers.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<Headers.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<Headers.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<Headers.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<Headers.Builder>
-
setField
public Headers.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<Headers.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Headers.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Headers.Builder>
-
setRepeatedField
public Headers.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<Headers.Builder>
-
addRepeatedField
public Headers.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<Headers.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Headers.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Headers.Builder>
-
mergeFrom
public Headers.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<Headers.Builder>- Throws:
IOException
-
getClientRef
Optional client reference. Any responses associated with the request will include this reference.
string clientRef = 1;- Specified by:
getClientRefin interfaceHeadersOrBuilder- Returns:
- The clientRef.
-
getClientRefBytes
public com.google.protobuf.ByteString getClientRefBytes()Optional client reference. Any responses associated with the request will include this reference.
string clientRef = 1;- Specified by:
getClientRefBytesin interfaceHeadersOrBuilder- Returns:
- The bytes for clientRef.
-
setClientRef
Optional client reference. Any responses associated with the request will include this reference.
string clientRef = 1;- Parameters:
value- The clientRef to set.- Returns:
- This builder for chaining.
-
clearClientRef
Optional client reference. Any responses associated with the request will include this reference.
string clientRef = 1;- Returns:
- This builder for chaining.
-
setClientRefBytes
Optional client reference. Any responses associated with the request will include this reference.
string clientRef = 1;- Parameters:
value- The bytes for clientRef to set.- Returns:
- This builder for chaining.
-
getClientAppId
User namespace used to group all the requests/responses
string clientAppId = 2;- Specified by:
getClientAppIdin interfaceHeadersOrBuilder- Returns:
- The clientAppId.
-
getClientAppIdBytes
public com.google.protobuf.ByteString getClientAppIdBytes()User namespace used to group all the requests/responses
string clientAppId = 2;- Specified by:
getClientAppIdBytesin interfaceHeadersOrBuilder- Returns:
- The bytes for clientAppId.
-
setClientAppId
User namespace used to group all the requests/responses
string clientAppId = 2;- Parameters:
value- The clientAppId to set.- Returns:
- This builder for chaining.
-
clearClientAppId
User namespace used to group all the requests/responses
string clientAppId = 2;- Returns:
- This builder for chaining.
-
setClientAppIdBytes
User namespace used to group all the requests/responses
string clientAppId = 2;- Parameters:
value- The bytes for clientAppId to set.- Returns:
- This builder for chaining.
-
getTransactionRefList
public com.google.protobuf.ProtocolStringList getTransactionRefList()Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list. Transaction ref is limited to a max of 16 elements per list and, for each list item, a max length of 36 characters
repeated string transactionRef = 3;- Specified by:
getTransactionRefListin interfaceHeadersOrBuilder- Returns:
- A list containing the transactionRef.
-
getTransactionRefCount
public int getTransactionRefCount()Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list. Transaction ref is limited to a max of 16 elements per list and, for each list item, a max length of 36 characters
repeated string transactionRef = 3;- Specified by:
getTransactionRefCountin interfaceHeadersOrBuilder- Returns:
- The count of transactionRef.
-
getTransactionRef
Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list. Transaction ref is limited to a max of 16 elements per list and, for each list item, a max length of 36 characters
repeated string transactionRef = 3;- Specified by:
getTransactionRefin interfaceHeadersOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The transactionRef at the given index.
-
getTransactionRefBytes
public com.google.protobuf.ByteString getTransactionRefBytes(int index) Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list. Transaction ref is limited to a max of 16 elements per list and, for each list item, a max length of 36 characters
repeated string transactionRef = 3;- Specified by:
getTransactionRefBytesin interfaceHeadersOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the transactionRef at the given index.
-
setTransactionRef
Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list. Transaction ref is limited to a max of 16 elements per list and, for each list item, a max length of 36 characters
repeated string transactionRef = 3;- Parameters:
index- The index to set the value at.value- The transactionRef to set.- Returns:
- This builder for chaining.
-
addTransactionRef
Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list. Transaction ref is limited to a max of 16 elements per list and, for each list item, a max length of 36 characters
repeated string transactionRef = 3;- Parameters:
value- The transactionRef to add.- Returns:
- This builder for chaining.
-
addAllTransactionRef
Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list. Transaction ref is limited to a max of 16 elements per list and, for each list item, a max length of 36 characters
repeated string transactionRef = 3;- Parameters:
values- The transactionRef to add.- Returns:
- This builder for chaining.
-
clearTransactionRef
Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list. Transaction ref is limited to a max of 16 elements per list and, for each list item, a max length of 36 characters
repeated string transactionRef = 3;- Returns:
- This builder for chaining.
-
addTransactionRefBytes
Used to loosely link requests/responses in a distributed environment each layer can add its own id to the list. Transaction ref is limited to a max of 16 elements per list and, for each list item, a max length of 36 characters
repeated string transactionRef = 3;- Parameters:
value- The bytes of the transactionRef to add.- Returns:
- This builder for chaining.
-
hasConsumerGroup
public boolean hasConsumerGroup()Used for group listener, optional - Not implemented yet
.google.protobuf.StringValue consumerGroup = 4;- Specified by:
hasConsumerGroupin interfaceHeadersOrBuilder- Returns:
- Whether the consumerGroup field is set.
-
getConsumerGroup
Used for group listener, optional - Not implemented yet
.google.protobuf.StringValue consumerGroup = 4;- Specified by:
getConsumerGroupin interfaceHeadersOrBuilder- Returns:
- The consumerGroup.
-
setConsumerGroup
Used for group listener, optional - Not implemented yet
.google.protobuf.StringValue consumerGroup = 4; -
setConsumerGroup
Used for group listener, optional - Not implemented yet
.google.protobuf.StringValue consumerGroup = 4; -
mergeConsumerGroup
Used for group listener, optional - Not implemented yet
.google.protobuf.StringValue consumerGroup = 4; -
clearConsumerGroup
Used for group listener, optional - Not implemented yet
.google.protobuf.StringValue consumerGroup = 4; -
getConsumerGroupBuilder
Used for group listener, optional - Not implemented yet
.google.protobuf.StringValue consumerGroup = 4; -
getConsumerGroupOrBuilder
Used for group listener, optional - Not implemented yet
.google.protobuf.StringValue consumerGroup = 4;- Specified by:
getConsumerGroupOrBuilderin interfaceHeadersOrBuilder
-
hasRequestTimeout
public boolean hasRequestTimeout()Client request timeout used to stop the request processing once the timeout is reached
.google.protobuf.Timestamp requestTimeout = 5;- Specified by:
hasRequestTimeoutin interfaceHeadersOrBuilder- Returns:
- Whether the requestTimeout field is set.
-
getRequestTimeout
Client request timeout used to stop the request processing once the timeout is reached
.google.protobuf.Timestamp requestTimeout = 5;- Specified by:
getRequestTimeoutin interfaceHeadersOrBuilder- Returns:
- The requestTimeout.
-
setRequestTimeout
Client request timeout used to stop the request processing once the timeout is reached
.google.protobuf.Timestamp requestTimeout = 5; -
setRequestTimeout
Client request timeout used to stop the request processing once the timeout is reached
.google.protobuf.Timestamp requestTimeout = 5; -
mergeRequestTimeout
Client request timeout used to stop the request processing once the timeout is reached
.google.protobuf.Timestamp requestTimeout = 5; -
clearRequestTimeout
Client request timeout used to stop the request processing once the timeout is reached
.google.protobuf.Timestamp requestTimeout = 5; -
getRequestTimeoutBuilder
Client request timeout used to stop the request processing once the timeout is reached
.google.protobuf.Timestamp requestTimeout = 5; -
getRequestTimeoutOrBuilder
Client request timeout used to stop the request processing once the timeout is reached
.google.protobuf.Timestamp requestTimeout = 5;- Specified by:
getRequestTimeoutOrBuilderin interfaceHeadersOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Headers.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Headers.Builder>
-