/** * * * <pre> * Required. The updated sink, whose name is the same identifier that appears * as part of `sink_name`. * </pre> * * <code>.google.logging.v2.LogSink sink = 2;</code> */ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { return getSink(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSinkNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } if (sink_ != null) { output.writeMessage(2, getSink()); } if (uniqueWriterIdentity_ != false) { output.writeBool(3, uniqueWriterIdentity_); } if (updateMask_ != null) { output.writeMessage(4, getUpdateMask()); } unknownFields.writeTo(output); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SINK_NAME_FIELD_NUMBER; hash = (53 * hash) + getSinkName().hashCode(); if (hasSink()) { hash = (37 * hash) + SINK_FIELD_NUMBER; hash = (53 * hash) + getSink().hashCode(); } hash = (37 * hash) + UNIQUE_WRITER_IDENTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUniqueWriterIdentity()); if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.logging.v2.UpdateSinkRequest)) { return super.equals(obj); } com.google.logging.v2.UpdateSinkRequest other = (com.google.logging.v2.UpdateSinkRequest) obj; boolean result = true; result = result && getSinkName().equals(other.getSinkName()); result = result && (hasSink() == other.hasSink()); if (hasSink()) { result = result && getSink().equals(other.getSink()); } result = result && (getUniqueWriterIdentity() == other.getUniqueWriterIdentity()); result = result && (hasUpdateMask() == other.hasUpdateMask()); if (hasUpdateMask()) { result = result && getUpdateMask().equals(other.getUpdateMask()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSinkNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sinkName_); } if (sink_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSink()); } if (uniqueWriterIdentity_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, uniqueWriterIdentity_); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public Builder mergeFrom(com.google.logging.v2.UpdateSinkRequest other) { if (other == com.google.logging.v2.UpdateSinkRequest.getDefaultInstance()) return this; if (!other.getSinkName().isEmpty()) { sinkName_ = other.sinkName_; onChanged(); } if (other.hasSink()) { mergeSink(other.getSink()); } if (other.getUniqueWriterIdentity() != false) { setUniqueWriterIdentity(other.getUniqueWriterIdentity()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
Assert.assertEquals(sink, actualRequest.getSink()); Assert.assertTrue( channelProvider.isHeaderSent(
Assert.assertEquals(sink, actualRequest.getSink()); Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue(