/** * * * <pre> * Optional. Information about an operation associated with the log entry, if * applicable. * </pre> * * <code>.google.logging.v2.LogEntryOperation operation = 15;</code> */ public Builder setOperation(com.google.logging.v2.LogEntryOperation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); } else { operationBuilder_.setMessage(builderForValue.build()); } return this; } /**
com.google.logging.v2.LogEntryOperation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(operation_); operation_ = subBuilder.buildPartial();
LogEntryOperation toPb() { LogEntryOperation.Builder builder = LogEntryOperation.newBuilder(); builder.setId(id); builder.setProducer(producer); builder.setFirst(first); builder.setLast(last); return builder.build(); }
/** * * * <pre> * Optional. Information about an operation associated with the log entry, if * applicable. * </pre> * * <code>.google.logging.v2.LogEntryOperation operation = 15;</code> */ public Builder mergeOperation(com.google.logging.v2.LogEntryOperation value) { if (operationBuilder_ == null) { if (operation_ != null) { operation_ = com.google.logging.v2.LogEntryOperation.newBuilder(operation_) .mergeFrom(value) .buildPartial(); } else { operation_ = value; } onChanged(); } else { operationBuilder_.mergeFrom(value); } return this; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.logging.v2.LogEntryOperation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.logging.v2.LogEntryOperation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
public Builder mergeFrom(com.google.logging.v2.LogEntryOperation other) { if (other == com.google.logging.v2.LogEntryOperation.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getProducer().isEmpty()) { producer_ = other.producer_; onChanged(); } if (other.getFirst() != false) { setFirst(other.getFirst()); } if (other.getLast() != false) { setLast(other.getLast()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public static Builder newBuilder(com.google.logging.v2.LogEntryOperation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
private Builder() { maybeForceBuilderInitialization(); }
@java.lang.Override public com.google.logging.v2.LogEntryOperation buildPartial() { com.google.logging.v2.LogEntryOperation result = new com.google.logging.v2.LogEntryOperation(this); result.id_ = id_; result.producer_ = producer_; result.first_ = first_; result.last_ = last_; onBuilt(); return result; }
@java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
LogEntryOperation toPb() { LogEntryOperation.Builder builder = LogEntryOperation.newBuilder(); builder.setId(id); builder.setProducer(producer); builder.setFirst(first); builder.setLast(last); return builder.build(); }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }
@java.lang.Override public com.google.logging.v2.LogEntryOperation build() { com.google.logging.v2.LogEntryOperation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.LogEntryOperation) { return mergeFrom((com.google.logging.v2.LogEntryOperation) other); } else { super.mergeFrom(other); return this; } }