Codota Logo
GatewayOuterClass$PublishMessageRequest
Code IndexAdd Codota to your IDE (free)

How to use
GatewayOuterClass$PublishMessageRequest
in
io.zeebe.gateway.protocol

Best Java code snippets using io.zeebe.gateway.protocol.GatewayOuterClass$PublishMessageRequest (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: zeebe-io/zeebe

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + NAME_FIELD_NUMBER;
 hash = (53 * hash) + getName().hashCode();
 hash = (37 * hash) + CORRELATIONKEY_FIELD_NUMBER;
 hash = (53 * hash) + getCorrelationKey().hashCode();
 hash = (37 * hash) + TIMETOLIVE_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getTimeToLive());
 hash = (37 * hash) + MESSAGEID_FIELD_NUMBER;
 hash = (53 * hash) + getMessageId().hashCode();
 hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
 hash = (53 * hash) + getPayload().hashCode();
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: zeebe-io/zeebe

public PublishMessageCommandImpl(
  final GatewayStub asyncStub,
  final ZeebeClientConfiguration configuration,
  ZeebeObjectMapper objectMapper) {
 super(objectMapper);
 this.asyncStub = asyncStub;
 this.builder = PublishMessageRequest.newBuilder();
 builder.setTimeToLive(configuration.getDefaultMessageTimeToLive().toMillis());
}
origin: zeebe-io/zeebe

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
          throws java.io.IOException {
 if (!getNameBytes().isEmpty()) {
  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
 }
 if (!getCorrelationKeyBytes().isEmpty()) {
  com.google.protobuf.GeneratedMessageV3.writeString(output, 2, correlationKey_);
 }
 if (timeToLive_ != 0L) {
  output.writeInt64(3, timeToLive_);
 }
 if (!getMessageIdBytes().isEmpty()) {
  com.google.protobuf.GeneratedMessageV3.writeString(output, 4, messageId_);
 }
 if (!getPayloadBytes().isEmpty()) {
  com.google.protobuf.GeneratedMessageV3.writeString(output, 5, payload_);
 }
 unknownFields.writeTo(output);
}
origin: zeebe-io/zeebe

public static BrokerPublishMessageRequest toPublishMessageRequest(
  PublishMessageRequest grpcRequest) {
 final BrokerPublishMessageRequest brokerRequest =
   new BrokerPublishMessageRequest(grpcRequest.getName(), grpcRequest.getCorrelationKey());
 brokerRequest
   .setMessageId(grpcRequest.getMessageId())
   .setTimeToLive(grpcRequest.getTimeToLive())
   .setPayload(ensureJsonSet(grpcRequest.getPayload()));
 return brokerRequest;
}
origin: zeebe-io/zeebe

/**
 * <pre>
 * the unique ID of the message; can be omitted. only useful to ensure only one message
 * with the given ID will ever be published (during its lifetime)
 * </pre>
 *
 * <code>string messageId = 4;</code>
 */
public Builder clearMessageId() {
 
 messageId_ = getDefaultInstance().getMessageId();
 onChanged();
 return this;
}
/**
origin: zeebe-io/zeebe

/**
 * <pre>
 * the name of the message
 * </pre>
 *
 * <code>string name = 1;</code>
 */
public Builder clearName() {
 
 name_ = getDefaultInstance().getName();
 onChanged();
 return this;
}
/**
origin: zeebe-io/zeebe

/**
 * <pre>
 * the correlation key of the message
 * </pre>
 *
 * <code>string correlationKey = 2;</code>
 */
public Builder clearCorrelationKey() {
 
 correlationKey_ = getDefaultInstance().getCorrelationKey();
 onChanged();
 return this;
}
/**
origin: zeebe-io/zeebe

@java.lang.Override
public io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest getDefaultInstanceForType() {
 return io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest.getDefaultInstance();
}
origin: zeebe-io/zeebe

@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
origin: zeebe-io/zeebe

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest)) {
  return super.equals(obj);
 }
 io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest other = (io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest) obj;
 boolean result = true;
 result = result && getName()
   .equals(other.getName());
 result = result && getCorrelationKey()
   .equals(other.getCorrelationKey());
 result = result && (getTimeToLive()
   == other.getTimeToLive());
 result = result && getMessageId()
   .equals(other.getMessageId());
 result = result && getPayload()
   .equals(other.getPayload());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
origin: zeebe-io/zeebe

public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest other) {
 if (other == io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest.getDefaultInstance()) return this;
 if (!other.getName().isEmpty()) {
  name_ = other.name_;
  onChanged();
 }
 if (!other.getCorrelationKey().isEmpty()) {
  correlationKey_ = other.correlationKey_;
  onChanged();
 }
 if (other.getTimeToLive() != 0L) {
  setTimeToLive(other.getTimeToLive());
 }
 if (!other.getMessageId().isEmpty()) {
  messageId_ = other.messageId_;
  onChanged();
 }
 if (!other.getPayload().isEmpty()) {
  payload_ = other.payload_;
  onChanged();
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: zeebe-io/zeebe

@java.lang.Override
public io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest buildPartial() {
 io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest result = new io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest(this);
 result.name_ = name_;
 result.correlationKey_ = correlationKey_;
 result.timeToLive_ = timeToLive_;
 result.messageId_ = messageId_;
 result.payload_ = payload_;
 onBuilt();
 return result;
}
origin: zeebe-io/zeebe

@java.lang.Override
public int getSerializedSize() {
 int size = memoizedSize;
 if (size != -1) return size;
 size = 0;
 if (!getNameBytes().isEmpty()) {
  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
 }
 if (!getCorrelationKeyBytes().isEmpty()) {
  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, correlationKey_);
 }
 if (timeToLive_ != 0L) {
  size += com.google.protobuf.CodedOutputStream
   .computeInt64Size(3, timeToLive_);
 }
 if (!getMessageIdBytes().isEmpty()) {
  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, messageId_);
 }
 if (!getPayloadBytes().isEmpty()) {
  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, payload_);
 }
 size += unknownFields.getSerializedSize();
 memoizedSize = size;
 return size;
}
origin: io.zeebe/zeebe-client-java

public PublishMessageCommandImpl(
  final GatewayStub asyncStub,
  final ZeebeClientConfiguration configuration,
  ZeebeObjectMapper objectMapper) {
 super(objectMapper);
 this.asyncStub = asyncStub;
 this.builder = PublishMessageRequest.newBuilder();
 builder.setTimeToLive(configuration.getDefaultMessageTimeToLive().toMillis());
}
origin: zeebe-io/zeebe

@io.grpc.stub.annotations.RpcMethod(
  fullMethodName = SERVICE_NAME + '/' + "PublishMessage",
  requestType = io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest.class,
  responseType = io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageResponse.class,
  methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest,
  io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageResponse> getPublishMessageMethod() {
 io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest, io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageResponse> getPublishMessageMethod;
 if ((getPublishMessageMethod = GatewayGrpc.getPublishMessageMethod) == null) {
  synchronized (GatewayGrpc.class) {
   if ((getPublishMessageMethod = GatewayGrpc.getPublishMessageMethod) == null) {
    GatewayGrpc.getPublishMessageMethod = getPublishMessageMethod = 
      io.grpc.MethodDescriptor.<io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest, io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageResponse>newBuilder()
      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
      .setFullMethodName(generateFullMethodName(
        "gateway_protocol.Gateway", "PublishMessage"))
      .setSampledToLocalTracing(true)
      .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
        io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageRequest.getDefaultInstance()))
      .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
        io.zeebe.gateway.protocol.GatewayOuterClass.PublishMessageResponse.getDefaultInstance()))
        .setSchemaDescriptor(new GatewayMethodDescriptorSupplier("PublishMessage"))
        .build();
    }
   }
  }
  return getPublishMessageMethod;
}
origin: zeebe-io/zeebe

/**
 * <pre>
 * the message payload as a JSON document; see CreateWorkflowInstanceRequest for the
 * rules about payloads
 * </pre>
 *
 * <code>string payload = 5;</code>
 */
public Builder clearPayload() {
 
 payload_ = getDefaultInstance().getPayload();
 onChanged();
 return this;
}
/**
io.zeebe.gateway.protocolGatewayOuterClass$PublishMessageRequest

Javadoc

Protobuf type gateway_protocol.PublishMessageRequest

Most used methods

  • getCorrelationKey
    the correlation key of the message string correlationKey = 2;
  • getMessageId
    the unique ID of the message; can be omitted. only useful to ensure only one message with the giv
  • getName
    the name of the message string name = 1;
  • getPayload
    the message payload as a JSON document; see CreateWorkflowInstanceRequest for the rules about pay
  • getTimeToLive
    how long the message should be buffered on the broker, in milliseconds int64 timeToLive = 3;
  • newBuilder
  • <init>
  • getCorrelationKeyBytes
    the correlation key of the message string correlationKey = 2;
  • getDefaultInstance
  • getDescriptor
  • getMessageIdBytes
    the unique ID of the message; can be omitted. only useful to ensure only one message with the giv
  • getNameBytes
    the name of the message string name = 1;
  • getMessageIdBytes,
  • getNameBytes,
  • getPayloadBytes,
  • isInitialized,
  • makeExtensionsImmutable,
  • parseUnknownFieldProto3,
  • toBuilder

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now