- 2.58.0 (latest)
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class AuditContext.Builder extends GeneratedMessageV3.Builder<AuditContext.Builder> implements AuditContextOrBuilder
AuditContext
provides information that is needed for audit logging.
Protobuf type google.rpc.context.AuditContext
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AuditContext.BuilderImplements
AuditContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AuditContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
build()
public AuditContext build()
Returns | |
---|---|
Type | Description |
AuditContext |
buildPartial()
public AuditContext buildPartial()
Returns | |
---|---|
Type | Description |
AuditContext |
clear()
public AuditContext.Builder clear()
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
clearAuditLog()
public AuditContext.Builder clearAuditLog()
Serialized audit log.
bytes audit_log = 1;
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AuditContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AuditContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
clearScrubbedRequest()
public AuditContext.Builder clearScrubbedRequest()
An API request message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_request = 2;
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
clearScrubbedResponse()
public AuditContext.Builder clearScrubbedResponse()
An API response message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_response = 3;
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
clearScrubbedResponseItemCount()
public AuditContext.Builder clearScrubbedResponseItemCount()
Number of scrubbed response items.
int32 scrubbed_response_item_count = 4;
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
This builder for chaining. |
clearTargetResource()
public AuditContext.Builder clearTargetResource()
Audit resource name which is scrubbed.
string target_resource = 5;
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
This builder for chaining. |
clone()
public AuditContext.Builder clone()
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
getAuditLog()
public ByteString getAuditLog()
Serialized audit log.
bytes audit_log = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The auditLog. |
getDefaultInstanceForType()
public AuditContext getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AuditContext |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getScrubbedRequest()
public Struct getScrubbedRequest()
An API request message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_request = 2;
Returns | |
---|---|
Type | Description |
Struct |
The scrubbedRequest. |
getScrubbedRequestBuilder()
public Struct.Builder getScrubbedRequestBuilder()
An API request message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_request = 2;
Returns | |
---|---|
Type | Description |
Builder |
getScrubbedRequestOrBuilder()
public StructOrBuilder getScrubbedRequestOrBuilder()
An API request message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_request = 2;
Returns | |
---|---|
Type | Description |
StructOrBuilder |
getScrubbedResponse()
public Struct getScrubbedResponse()
An API response message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_response = 3;
Returns | |
---|---|
Type | Description |
Struct |
The scrubbedResponse. |
getScrubbedResponseBuilder()
public Struct.Builder getScrubbedResponseBuilder()
An API response message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_response = 3;
Returns | |
---|---|
Type | Description |
Builder |
getScrubbedResponseItemCount()
public int getScrubbedResponseItemCount()
Number of scrubbed response items.
int32 scrubbed_response_item_count = 4;
Returns | |
---|---|
Type | Description |
int |
The scrubbedResponseItemCount. |
getScrubbedResponseOrBuilder()
public StructOrBuilder getScrubbedResponseOrBuilder()
An API response message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_response = 3;
Returns | |
---|---|
Type | Description |
StructOrBuilder |
getTargetResource()
public String getTargetResource()
Audit resource name which is scrubbed.
string target_resource = 5;
Returns | |
---|---|
Type | Description |
String |
The targetResource. |
getTargetResourceBytes()
public ByteString getTargetResourceBytes()
Audit resource name which is scrubbed.
string target_resource = 5;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for targetResource. |
hasScrubbedRequest()
public boolean hasScrubbedRequest()
An API request message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_request = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the scrubbedRequest field is set. |
hasScrubbedResponse()
public boolean hasScrubbedResponse()
An API response message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_response = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the scrubbedResponse field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuditContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AuditContext.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
mergeFrom(AuditContext other)
public AuditContext.Builder mergeFrom(AuditContext other)
Parameter | |
---|---|
Name | Description |
other |
AuditContext |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
mergeScrubbedRequest(Struct value)
public AuditContext.Builder mergeScrubbedRequest(Struct value)
An API request message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_request = 2;
Parameter | |
---|---|
Name | Description |
value |
Struct |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
mergeScrubbedResponse(Struct value)
public AuditContext.Builder mergeScrubbedResponse(Struct value)
An API response message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_response = 3;
Parameter | |
---|---|
Name | Description |
value |
Struct |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AuditContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
setAuditLog(ByteString value)
public AuditContext.Builder setAuditLog(ByteString value)
Serialized audit log.
bytes audit_log = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The auditLog to set. |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AuditContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AuditContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
setScrubbedRequest(Struct value)
public AuditContext.Builder setScrubbedRequest(Struct value)
An API request message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_request = 2;
Parameter | |
---|---|
Name | Description |
value |
Struct |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
setScrubbedRequest(Struct.Builder builderForValue)
public AuditContext.Builder setScrubbedRequest(Struct.Builder builderForValue)
An API request message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_request = 2;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
setScrubbedResponse(Struct value)
public AuditContext.Builder setScrubbedResponse(Struct value)
An API response message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_response = 3;
Parameter | |
---|---|
Name | Description |
value |
Struct |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
setScrubbedResponse(Struct.Builder builderForValue)
public AuditContext.Builder setScrubbedResponse(Struct.Builder builderForValue)
An API response message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.
.google.protobuf.Struct scrubbed_response = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
setScrubbedResponseItemCount(int value)
public AuditContext.Builder setScrubbedResponseItemCount(int value)
Number of scrubbed response items.
int32 scrubbed_response_item_count = 4;
Parameter | |
---|---|
Name | Description |
value |
int The scrubbedResponseItemCount to set. |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
This builder for chaining. |
setTargetResource(String value)
public AuditContext.Builder setTargetResource(String value)
Audit resource name which is scrubbed.
string target_resource = 5;
Parameter | |
---|---|
Name | Description |
value |
String The targetResource to set. |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
This builder for chaining. |
setTargetResourceBytes(ByteString value)
public AuditContext.Builder setTargetResourceBytes(ByteString value)
Audit resource name which is scrubbed.
string target_resource = 5;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for targetResource to set. |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AuditContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AuditContext.Builder |