implements
// @@protoc_insertion_point(builder_implements:google.rpc.context.AuditContext)
com.google.rpc.context.AuditContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.context.AuditContextProto
.internal_static_google_rpc_context_AuditContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.context.AuditContextProto
.internal_static_google_rpc_context_AuditContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.rpc.context.AuditContext.class,
com.google.rpc.context.AuditContext.Builder.class);
}
// Construct using com.google.rpc.context.AuditContext.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getScrubbedRequestFieldBuilder();
getScrubbedResponseFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
auditLog_ = com.google.protobuf.ByteString.EMPTY;
scrubbedRequest_ = null;
if (scrubbedRequestBuilder_ != null) {
scrubbedRequestBuilder_.dispose();
scrubbedRequestBuilder_ = null;
}
scrubbedResponse_ = null;
if (scrubbedResponseBuilder_ != null) {
scrubbedResponseBuilder_.dispose();
scrubbedResponseBuilder_ = null;
}
scrubbedResponseItemCount_ = 0;
targetResource_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.rpc.context.AuditContextProto
.internal_static_google_rpc_context_AuditContext_descriptor;
}
@java.lang.Override
public com.google.rpc.context.AuditContext getDefaultInstanceForType() {
return com.google.rpc.context.AuditContext.getDefaultInstance();
}
@java.lang.Override
public com.google.rpc.context.AuditContext build() {
com.google.rpc.context.AuditContext result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.rpc.context.AuditContext buildPartial() {
com.google.rpc.context.AuditContext result = new com.google.rpc.context.AuditContext(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.rpc.context.AuditContext result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.auditLog_ = auditLog_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scrubbedRequest_ =
scrubbedRequestBuilder_ == null ? scrubbedRequest_ : scrubbedRequestBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.scrubbedResponse_ =
scrubbedResponseBuilder_ == null ? scrubbedResponse_ : scrubbedResponseBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.scrubbedResponseItemCount_ = scrubbedResponseItemCount_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.targetResource_ = targetResource_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.rpc.context.AuditContext) {
return mergeFrom((com.google.rpc.context.AuditContext) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.rpc.context.AuditContext other) {
if (other == com.google.rpc.context.AuditContext.getDefaultInstance()) return this;
if (other.getAuditLog() != com.google.protobuf.ByteString.EMPTY) {
setAuditLog(other.getAuditLog());
}
if (other.hasScrubbedRequest()) {
mergeScrubbedRequest(other.getScrubbedRequest());
}
if (other.hasScrubbedResponse()) {
mergeScrubbedResponse(other.getScrubbedResponse());
}
if (other.getScrubbedResponseItemCount() != 0) {
setScrubbedResponseItemCount(other.getScrubbedResponseItemCount());
}
if (!other.getTargetResource().isEmpty()) {
targetResource_ = other.targetResource_;
bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
auditLog_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getScrubbedRequestFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(
getScrubbedResponseFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32:
{
scrubbedResponseItemCount_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42:
{
targetResource_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString auditLog_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
*
* Serialized audit log.
*
*
* bytes audit_log = 1;
*
* @return The auditLog.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAuditLog() {
return auditLog_;
}
/**
*
*
*
* Serialized audit log.
*
*
* bytes audit_log = 1;
*
* @param value The auditLog to set.
* @return This builder for chaining.
*/
public Builder setAuditLog(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
auditLog_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Serialized audit log.
*
*
* bytes audit_log = 1;
*
* @return This builder for chaining.
*/
public Builder clearAuditLog() {
bitField0_ = (bitField0_ & ~0x00000001);
auditLog_ = getDefaultInstance().getAuditLog();
onChanged();
return this;
}
private com.google.protobuf.Struct scrubbedRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
com.google.protobuf.Struct.Builder,
com.google.protobuf.StructOrBuilder>
scrubbedRequestBuilder_;
/**
*
*
*
* 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;
*
* @return Whether the scrubbedRequest field is set.
*/
public boolean hasScrubbedRequest() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* 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;
*
* @return The scrubbedRequest.
*/
public com.google.protobuf.Struct getScrubbedRequest() {
if (scrubbedRequestBuilder_ == null) {
return scrubbedRequest_ == null
? com.google.protobuf.Struct.getDefaultInstance()
: scrubbedRequest_;
} else {
return scrubbedRequestBuilder_.getMessage();
}
}
/**
*
*
*
* 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;
*/
public Builder setScrubbedRequest(com.google.protobuf.Struct value) {
if (scrubbedRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scrubbedRequest_ = value;
} else {
scrubbedRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder setScrubbedRequest(com.google.protobuf.Struct.Builder builderForValue) {
if (scrubbedRequestBuilder_ == null) {
scrubbedRequest_ = builderForValue.build();
} else {
scrubbedRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder mergeScrubbedRequest(com.google.protobuf.Struct value) {
if (scrubbedRequestBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& scrubbedRequest_ != null
&& scrubbedRequest_ != com.google.protobuf.Struct.getDefaultInstance()) {
getScrubbedRequestBuilder().mergeFrom(value);
} else {
scrubbedRequest_ = value;
}
} else {
scrubbedRequestBuilder_.mergeFrom(value);
}
if (scrubbedRequest_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder clearScrubbedRequest() {
bitField0_ = (bitField0_ & ~0x00000002);
scrubbedRequest_ = null;
if (scrubbedRequestBuilder_ != null) {
scrubbedRequestBuilder_.dispose();
scrubbedRequestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.Struct.Builder getScrubbedRequestBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getScrubbedRequestFieldBuilder().getBuilder();
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.StructOrBuilder getScrubbedRequestOrBuilder() {
if (scrubbedRequestBuilder_ != null) {
return scrubbedRequestBuilder_.getMessageOrBuilder();
} else {
return scrubbedRequest_ == null
? com.google.protobuf.Struct.getDefaultInstance()
: scrubbedRequest_;
}
}
/**
*
*
*
* 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
com.google.protobuf.Struct.Builder,
com.google.protobuf.StructOrBuilder>
getScrubbedRequestFieldBuilder() {
if (scrubbedRequestBuilder_ == null) {
scrubbedRequestBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
com.google.protobuf.Struct.Builder,
com.google.protobuf.StructOrBuilder>(
getScrubbedRequest(), getParentForChildren(), isClean());
scrubbedRequest_ = null;
}
return scrubbedRequestBuilder_;
}
private com.google.protobuf.Struct scrubbedResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
com.google.protobuf.Struct.Builder,
com.google.protobuf.StructOrBuilder>
scrubbedResponseBuilder_;
/**
*
*
*
* 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;
*
* @return Whether the scrubbedResponse field is set.
*/
public boolean hasScrubbedResponse() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* 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;
*
* @return The scrubbedResponse.
*/
public com.google.protobuf.Struct getScrubbedResponse() {
if (scrubbedResponseBuilder_ == null) {
return scrubbedResponse_ == null
? com.google.protobuf.Struct.getDefaultInstance()
: scrubbedResponse_;
} else {
return scrubbedResponseBuilder_.getMessage();
}
}
/**
*
*
*
* 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;
*/
public Builder setScrubbedResponse(com.google.protobuf.Struct value) {
if (scrubbedResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scrubbedResponse_ = value;
} else {
scrubbedResponseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder setScrubbedResponse(com.google.protobuf.Struct.Builder builderForValue) {
if (scrubbedResponseBuilder_ == null) {
scrubbedResponse_ = builderForValue.build();
} else {
scrubbedResponseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder mergeScrubbedResponse(com.google.protobuf.Struct value) {
if (scrubbedResponseBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& scrubbedResponse_ != null
&& scrubbedResponse_ != com.google.protobuf.Struct.getDefaultInstance()) {
getScrubbedResponseBuilder().mergeFrom(value);
} else {
scrubbedResponse_ = value;
}
} else {
scrubbedResponseBuilder_.mergeFrom(value);
}
if (scrubbedResponse_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder clearScrubbedResponse() {
bitField0_ = (bitField0_ & ~0x00000004);
scrubbedResponse_ = null;
if (scrubbedResponseBuilder_ != null) {
scrubbedResponseBuilder_.dispose();
scrubbedResponseBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.Struct.Builder getScrubbedResponseBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getScrubbedResponseFieldBuilder().getBuilder();
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.StructOrBuilder getScrubbedResponseOrBuilder() {
if (scrubbedResponseBuilder_ != null) {
return scrubbedResponseBuilder_.getMessageOrBuilder();
} else {
return scrubbedResponse_ == null
? com.google.protobuf.Struct.getDefaultInstance()
: scrubbedResponse_;
}
}
/**
*
*
*
* 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
com.google.protobuf.Struct.Builder,
com.google.protobuf.StructOrBuilder>
getScrubbedResponseFieldBuilder() {
if (scrubbedResponseBuilder_ == null) {
scrubbedResponseBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
com.google.protobuf.Struct.Builder,
com.google.protobuf.StructOrBuilder>(
getScrubbedResponse(), getParentForChildren(), isClean());
scrubbedResponse_ = null;
}
return scrubbedResponseBuilder_;
}
private int scrubbedResponseItemCount_;
/**
*
*
*
* Number of scrubbed response items.
*
*
* int32 scrubbed_response_item_count = 4;
*
* @return The scrubbedResponseItemCount.
*/
@java.lang.Override
public int getScrubbedResponseItemCount() {
return scrubbedResponseItemCount_;
}
/**
*
*
*
* Number of scrubbed response items.
*
*
* int32 scrubbed_response_item_count = 4;
*
* @param value The scrubbedResponseItemCount to set.
* @return This builder for chaining.
*/
public Builder setScrubbedResponseItemCount(int value) {
scrubbedResponseItemCount_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Number of scrubbed response items.
*
*
* int32 scrubbed_response_item_count = 4;
*
* @return This builder for chaining.
*/
public Builder clearScrubbedResponseItemCount() {
bitField0_ = (bitField0_ & ~0x00000008);
scrubbedResponseItemCount_ = 0;
onChanged();
return this;
}
private java.lang.Object targetResource_ = "";
/**
*
*
*
* Audit resource name which is scrubbed.
*
*
* string target_resource = 5;
*
* @return The targetResource.
*/
public java.lang.String getTargetResource() {
java.lang.Object ref = targetResource_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
targetResource_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Audit resource name which is scrubbed.
*
*
* string target_resource = 5;
*
* @return The bytes for targetResource.
*/
public com.google.protobuf.ByteString getTargetResourceBytes() {
java.lang.Object ref = targetResource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
targetResource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Audit resource name which is scrubbed.
*
*
* string target_resource = 5;
*
* @param value The targetResource to set.
* @return This builder for chaining.
*/
public Builder setTargetResource(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
targetResource_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Audit resource name which is scrubbed.
*
*
* string target_resource = 5;
*
* @return This builder for chaining.
*/
public Builder clearTargetResource() {
targetResource_ = getDefaultInstance().getTargetResource();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Audit resource name which is scrubbed.
*
*
* string target_resource = 5;
*
* @param value The bytes for targetResource to set.
* @return This builder for chaining.
*/
public Builder setTargetResourceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
targetResource_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.rpc.context.AuditContext)
}
// @@protoc_insertion_point(class_scope:google.rpc.context.AuditContext)
private static final com.google.rpc.context.AuditContext DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.rpc.context.AuditContext();
}
public static com.google.rpc.context.AuditContext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AuditContext parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.rpc.context.AuditContext getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}