@java.lang.Override public com.google.logging.v2.LogEntryOperation getDefaultInstanceForType() { return com.google.logging.v2.LogEntryOperation.getDefaultInstance(); }
/** * * * <pre> * Optional. Information about an operation associated with the log entry, if * applicable. * </pre> * * <code>.google.logging.v2.LogEntryOperation operation = 15;</code> */ public com.google.logging.v2.LogEntryOperation getOperation() { return operation_ == null ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; } /**
/** * * * <pre> * Optional. Information about an operation associated with the log entry, if * applicable. * </pre> * * <code>.google.logging.v2.LogEntryOperation operation = 15;</code> */ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; } } /**
/** * * * <pre> * Optional. Information about an operation associated with the log entry, if * applicable. * </pre> * * <code>.google.logging.v2.LogEntryOperation operation = 15;</code> */ public com.google.logging.v2.LogEntryOperation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /**
/** * * * <pre> * Optional. An arbitrary producer identifier. The combination of * `id` and `producer` must be globally unique. Examples for `producer`: * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. * </pre> * * <code>string producer = 2;</code> */ public Builder clearProducer() { producer_ = getDefaultInstance().getProducer(); onChanged(); return this; } /**
/** * * * <pre> * Optional. An arbitrary operation identifier. Log entries with the * same identifier are assumed to be part of the same operation. * </pre> * * <code>string id = 1;</code> */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); 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; }
builder.setHttpRequest(HttpRequest.fromPb(entryPb.getHttpRequest())); if (!entryPb.getOperation().equals(LogEntryOperation.getDefaultInstance())) { builder.setOperation(Operation.fromPb(entryPb.getOperation()));
builder.setHttpRequest(HttpRequest.fromPb(entryPb.getHttpRequest())); if (!entryPb.getOperation().equals(LogEntryOperation.getDefaultInstance())) { builder.setOperation(Operation.fromPb(entryPb.getOperation()));