Package org.yamcs.protobuf.audit
Class AuditRecord.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<AuditRecord.Builder>
org.yamcs.protobuf.audit.AuditRecord.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,AuditRecordOrBuilder
- Enclosing class:
- AuditRecord
public static final class AuditRecord.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<AuditRecord.Builder>
implements AuditRecordOrBuilder
Protobuf type
yamcs.protobuf.audit.AuditRecord
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) optional string method = 3;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional .google.protobuf.Struct request = 6;
optional string service = 2;
optional string summary = 5;
optional .google.protobuf.Timestamp time = 1;
optional string user = 4;
clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
optional string method = 3;
com.google.protobuf.ByteString
optional string method = 3;
com.google.protobuf.Struct
optional .google.protobuf.Struct request = 6;
com.google.protobuf.Struct.Builder
optional .google.protobuf.Struct request = 6;
com.google.protobuf.StructOrBuilder
optional .google.protobuf.Struct request = 6;
optional string service = 2;
com.google.protobuf.ByteString
optional string service = 2;
optional string summary = 5;
com.google.protobuf.ByteString
optional string summary = 5;
com.google.protobuf.Timestamp
getTime()
optional .google.protobuf.Timestamp time = 1;
com.google.protobuf.Timestamp.Builder
optional .google.protobuf.Timestamp time = 1;
com.google.protobuf.TimestampOrBuilder
optional .google.protobuf.Timestamp time = 1;
getUser()
optional string user = 4;
com.google.protobuf.ByteString
optional string user = 4;
boolean
optional string method = 3;
boolean
optional .google.protobuf.Struct request = 6;
boolean
optional string service = 2;
boolean
optional string summary = 5;
boolean
hasTime()
optional .google.protobuf.Timestamp time = 1;
boolean
hasUser()
optional string user = 4;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(AuditRecord other) mergeRequest
(com.google.protobuf.Struct value) optional .google.protobuf.Struct request = 6;
mergeTime
(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp time = 1;
final AuditRecord.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) optional string method = 3;
setMethodBytes
(com.google.protobuf.ByteString value) optional string method = 3;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequest
(com.google.protobuf.Struct value) optional .google.protobuf.Struct request = 6;
setRequest
(com.google.protobuf.Struct.Builder builderForValue) optional .google.protobuf.Struct request = 6;
setService
(String value) optional string service = 2;
setServiceBytes
(com.google.protobuf.ByteString value) optional string service = 2;
setSummary
(String value) optional string summary = 5;
setSummaryBytes
(com.google.protobuf.ByteString value) optional string summary = 5;
setTime
(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp time = 1;
setTime
(com.google.protobuf.Timestamp.Builder builderForValue) optional .google.protobuf.Timestamp time = 1;
final AuditRecord.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) optional string user = 4;
setUserBytes
(com.google.protobuf.ByteString value) optional string user = 4;
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, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuditRecord.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<AuditRecord.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<AuditRecord.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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<AuditRecord.Builder>
-
setField
public AuditRecord.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<AuditRecord.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuditRecord.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuditRecord.Builder>
-
setRepeatedField
public AuditRecord.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<AuditRecord.Builder>
-
addRepeatedField
public AuditRecord.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<AuditRecord.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AuditRecord.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuditRecord.Builder>
-
mergeFrom
public AuditRecord.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<AuditRecord.Builder>
- Throws:
IOException
-
hasTime
public boolean hasTime()optional .google.protobuf.Timestamp time = 1;
- Specified by:
hasTime
in interfaceAuditRecordOrBuilder
- Returns:
- Whether the time field is set.
-
getTime
public com.google.protobuf.Timestamp getTime()optional .google.protobuf.Timestamp time = 1;
- Specified by:
getTime
in interfaceAuditRecordOrBuilder
- Returns:
- The time.
-
setTime
optional .google.protobuf.Timestamp time = 1;
-
setTime
optional .google.protobuf.Timestamp time = 1;
-
mergeTime
optional .google.protobuf.Timestamp time = 1;
-
clearTime
optional .google.protobuf.Timestamp time = 1;
-
getTimeBuilder
public com.google.protobuf.Timestamp.Builder getTimeBuilder()optional .google.protobuf.Timestamp time = 1;
-
getTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()optional .google.protobuf.Timestamp time = 1;
- Specified by:
getTimeOrBuilder
in interfaceAuditRecordOrBuilder
-
hasService
public boolean hasService()optional string service = 2;
- Specified by:
hasService
in interfaceAuditRecordOrBuilder
- Returns:
- Whether the service field is set.
-
getService
optional string service = 2;
- Specified by:
getService
in interfaceAuditRecordOrBuilder
- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()optional string service = 2;
- Specified by:
getServiceBytes
in interfaceAuditRecordOrBuilder
- Returns:
- The bytes for service.
-
setService
optional string service = 2;
- Parameters:
value
- The service to set.- Returns:
- This builder for chaining.
-
clearService
optional string service = 2;
- Returns:
- This builder for chaining.
-
setServiceBytes
optional string service = 2;
- Parameters:
value
- The bytes for service to set.- Returns:
- This builder for chaining.
-
hasMethod
public boolean hasMethod()optional string method = 3;
- Specified by:
hasMethod
in interfaceAuditRecordOrBuilder
- Returns:
- Whether the method field is set.
-
getMethod
optional string method = 3;
- Specified by:
getMethod
in interfaceAuditRecordOrBuilder
- Returns:
- The method.
-
getMethodBytes
public com.google.protobuf.ByteString getMethodBytes()optional string method = 3;
- Specified by:
getMethodBytes
in interfaceAuditRecordOrBuilder
- Returns:
- The bytes for method.
-
setMethod
optional string method = 3;
- Parameters:
value
- The method to set.- Returns:
- This builder for chaining.
-
clearMethod
optional string method = 3;
- Returns:
- This builder for chaining.
-
setMethodBytes
optional string method = 3;
- Parameters:
value
- The bytes for method to set.- Returns:
- This builder for chaining.
-
hasUser
public boolean hasUser()optional string user = 4;
- Specified by:
hasUser
in interfaceAuditRecordOrBuilder
- Returns:
- Whether the user field is set.
-
getUser
optional string user = 4;
- Specified by:
getUser
in interfaceAuditRecordOrBuilder
- Returns:
- The user.
-
getUserBytes
public com.google.protobuf.ByteString getUserBytes()optional string user = 4;
- Specified by:
getUserBytes
in interfaceAuditRecordOrBuilder
- Returns:
- The bytes for user.
-
setUser
optional string user = 4;
- Parameters:
value
- The user to set.- Returns:
- This builder for chaining.
-
clearUser
optional string user = 4;
- Returns:
- This builder for chaining.
-
setUserBytes
optional string user = 4;
- Parameters:
value
- The bytes for user to set.- Returns:
- This builder for chaining.
-
hasSummary
public boolean hasSummary()optional string summary = 5;
- Specified by:
hasSummary
in interfaceAuditRecordOrBuilder
- Returns:
- Whether the summary field is set.
-
getSummary
optional string summary = 5;
- Specified by:
getSummary
in interfaceAuditRecordOrBuilder
- Returns:
- The summary.
-
getSummaryBytes
public com.google.protobuf.ByteString getSummaryBytes()optional string summary = 5;
- Specified by:
getSummaryBytes
in interfaceAuditRecordOrBuilder
- Returns:
- The bytes for summary.
-
setSummary
optional string summary = 5;
- Parameters:
value
- The summary to set.- Returns:
- This builder for chaining.
-
clearSummary
optional string summary = 5;
- Returns:
- This builder for chaining.
-
setSummaryBytes
optional string summary = 5;
- Parameters:
value
- The bytes for summary to set.- Returns:
- This builder for chaining.
-
hasRequest
public boolean hasRequest()optional .google.protobuf.Struct request = 6;
- Specified by:
hasRequest
in interfaceAuditRecordOrBuilder
- Returns:
- Whether the request field is set.
-
getRequest
public com.google.protobuf.Struct getRequest()optional .google.protobuf.Struct request = 6;
- Specified by:
getRequest
in interfaceAuditRecordOrBuilder
- Returns:
- The request.
-
setRequest
optional .google.protobuf.Struct request = 6;
-
setRequest
optional .google.protobuf.Struct request = 6;
-
mergeRequest
optional .google.protobuf.Struct request = 6;
-
clearRequest
optional .google.protobuf.Struct request = 6;
-
getRequestBuilder
public com.google.protobuf.Struct.Builder getRequestBuilder()optional .google.protobuf.Struct request = 6;
-
getRequestOrBuilder
public com.google.protobuf.StructOrBuilder getRequestOrBuilder()optional .google.protobuf.Struct request = 6;
- Specified by:
getRequestOrBuilder
in interfaceAuditRecordOrBuilder
-
setUnknownFields
public final AuditRecord.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuditRecord.Builder>
-
mergeUnknownFields
public final AuditRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuditRecord.Builder>
-