How to use the google-protobuf/google/protobuf/empty_pb.Empty function in google-protobuf

To help you get started, we’ve selected a few google-protobuf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github google / android-emulator-container-scripts / js / android-emulator-webrtc / src / components / emulator / net / jsep_protocol_driver.js View on Github external
startStream = () => {
    const self = this;
    this.connected = false;
    this.peerConnection = null;
    this.active = true;

    var request = new Empty();
    this.rtc.requestRtcStream(request).on("data", (response) => {
      // Configure
      self.guid = response;
      self.connected = true;

      if (!this.poll) {
        // Streaming envoy based.
        self._streamJsepMessage();
      } else {
        // Poll pump messages, go/envoy based proxy.
        console.info("Polling jsep messages.");
        self._receiveJsepMessage();
      }
    });
  };
github improbable-eng / ts-protoc-gen / test / integration / wellKnownTypes.ts View on Github external
it("should allow setting and getting an Empty field", () => {
    const msg = new WellKnownMessage();
    const myEmpty = new Empty();
    msg.setMyEmpty(myEmpty);
    assert.ok(msg.getMyEmpty() as Empty instanceof Empty);
  });
github caos / zitadel / console / src / app / services / auth-user.service.ts View on Github external
public async GetMyUserEmail(): Promise {
        return await this.request(
            c => c.getMyUserEmail,
            new Empty(),
            f => f,
        );
    }
github caos / zitadel / console / src / app / services / org.service.ts View on Github external
public async DeactivateMyOrg(): Promise {
        return await this.request(
            c => c.deactivateMyOrg,
            new Empty(),
            f => f,
        );
    }
github caos / zitadel / console / src / app / services / org.service.ts View on Github external
public async ReactivateMyOrg(): Promise {
        const req = new OrgID();
        return await this.request(
            c => c.reactivateMyOrg,
            new Empty(),
            f => f,
        );
    }
github caos / zitadel / console / src / app / services / org.service.ts View on Github external
public async GetPasswordAgePolicy(): Promise {
        const req = new Empty();

        return await this.request(
            c => c.getPasswordAgePolicy,
            req,
            f => f,
        );
    }
github caos / zitadel / console / src / app / services / org.service.ts View on Github external
public async GetMyOrgIamPolicy(): Promise {
        return await this.request(
            c => c.getMyOrgIamPolicy,
            new Empty(),
            f => f,
        );
    }
github caos / zitadel / console / src / app / services / auth-user.service.ts View on Github external
public async RemoveMyUserPhone(): Promise {
        return await this.request(
            c => c.removeMyUserPhone,
            new Empty(),
            f => f,
        );
    }
github caos / zitadel / console / src / app / services / project.service.ts View on Github external
public async GetProjectGrantMemberRoles(): Promise {
        const req = new Empty();
        return await this.request(
            c => c.getProjectGrantMemberRoles,
            req,
            f => f,
        );
    }