本文整理了Java中com.google.protobuf.Struct.equals()
方法的一些代码示例,展示了Struct.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Struct.equals()
方法的具体详情如下:
包路径:com.google.protobuf.Struct
类名称:Struct
方法名:equals
暂无
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2.OriginalDetectIntentRequest)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2.OriginalDetectIntentRequest other =
(com.google.cloud.dialogflow.v2.OriginalDetectIntentRequest) obj;
boolean result = true;
result = result && getSource().equals(other.getSource());
result = result && (hasPayload() == other.hasPayload());
if (hasPayload()) {
result = result && getPayload().equals(other.getPayload());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.EventInput)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2beta1.EventInput other =
(com.google.cloud.dialogflow.v2beta1.EventInput) obj;
boolean result = true;
result = result && getName().equals(other.getName());
result = result && (hasParameters() == other.hasParameters());
if (hasParameters()) {
result = result && getParameters().equals(other.getParameters());
}
result = result && getLanguageCode().equals(other.getLanguageCode());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2.EventInput)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2.EventInput other =
(com.google.cloud.dialogflow.v2.EventInput) obj;
boolean result = true;
result = result && getName().equals(other.getName());
result = result && (hasParameters() == other.hasParameters());
if (hasParameters()) {
result = result && getParameters().equals(other.getParameters());
}
result = result && getLanguageCode().equals(other.getLanguageCode());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest other =
(com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest) obj;
boolean result = true;
result = result && getSource().equals(other.getSource());
result = result && getVersion().equals(other.getVersion());
result = result && (hasPayload() == other.hasPayload());
if (hasPayload()) {
result = result && getPayload().equals(other.getPayload());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Context)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2beta1.Context other =
(com.google.cloud.dialogflow.v2beta1.Context) obj;
boolean result = true;
result = result && getName().equals(other.getName());
result = result && (getLifespanCount() == other.getLifespanCount());
result = result && (hasParameters() == other.hasParameters());
if (hasParameters()) {
result = result && getParameters().equals(other.getParameters());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2.Context)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2.Context other = (com.google.cloud.dialogflow.v2.Context) obj;
boolean result = true;
result = result && getName().equals(other.getName());
result = result && (getLifespanCount() == other.getLifespanCount());
result = result && (hasParameters() == other.hasParameters());
if (hasParameters()) {
result = result && getParameters().equals(other.getParameters());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.asset.v1beta1.Resource)) {
return super.equals(obj);
}
com.google.cloud.asset.v1beta1.Resource other = (com.google.cloud.asset.v1beta1.Resource) obj;
boolean result = true;
result = result && getVersion().equals(other.getVersion());
result = result && getDiscoveryDocumentUri().equals(other.getDiscoveryDocumentUri());
result = result && getDiscoveryName().equals(other.getDiscoveryName());
result = result && getResourceUrl().equals(other.getResourceUrl());
result = result && getParent().equals(other.getParent());
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData().equals(other.getData());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2.WebhookResponse)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2.WebhookResponse other =
(com.google.cloud.dialogflow.v2.WebhookResponse) obj;
boolean result = true;
result = result && getFulfillmentText().equals(other.getFulfillmentText());
result = result && getFulfillmentMessagesList().equals(other.getFulfillmentMessagesList());
result = result && getSource().equals(other.getSource());
result = result && (hasPayload() == other.hasPayload());
if (hasPayload()) {
result = result && getPayload().equals(other.getPayload());
}
result = result && getOutputContextsList().equals(other.getOutputContextsList());
result = result && (hasFollowupEventInput() == other.hasFollowupEventInput());
if (hasFollowupEventInput()) {
result = result && getFollowupEventInput().equals(other.getFollowupEventInput());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.WebhookResponse)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2beta1.WebhookResponse other =
(com.google.cloud.dialogflow.v2beta1.WebhookResponse) obj;
boolean result = true;
result = result && getFulfillmentText().equals(other.getFulfillmentText());
result = result && getFulfillmentMessagesList().equals(other.getFulfillmentMessagesList());
result = result && getSource().equals(other.getSource());
result = result && (hasPayload() == other.hasPayload());
if (hasPayload()) {
result = result && getPayload().equals(other.getPayload());
}
result = result && getOutputContextsList().equals(other.getOutputContextsList());
result = result && (hasFollowupEventInput() == other.hasFollowupEventInput());
if (hasFollowupEventInput()) {
result = result && getFollowupEventInput().equals(other.getFollowupEventInput());
}
result = result && (getEndInteraction() == other.getEndInteraction());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2.QueryParameters)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2.QueryParameters other =
(com.google.cloud.dialogflow.v2.QueryParameters) obj;
boolean result = true;
result = result && getTimeZone().equals(other.getTimeZone());
result = result && (hasGeoLocation() == other.hasGeoLocation());
if (hasGeoLocation()) {
result = result && getGeoLocation().equals(other.getGeoLocation());
}
result = result && getContextsList().equals(other.getContextsList());
result = result && (getResetContexts() == other.getResetContexts());
result = result && getSessionEntityTypesList().equals(other.getSessionEntityTypesList());
result = result && (hasPayload() == other.hasPayload());
if (hasPayload()) {
result = result && getPayload().equals(other.getPayload());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: com.google.protobuf/protobuf-java
case 5:
result = result && getStructValue()
.equals(other.getStructValue());
break;
case 6:
代码示例来源:origin: googleapis/google-cloud-java
result = result && (hasParameters() == other.hasParameters());
if (hasParameters()) {
result = result && getParameters().equals(other.getParameters());
result = result && (hasWebhookPayload() == other.hasWebhookPayload());
if (hasWebhookPayload()) {
result = result && getWebhookPayload().equals(other.getWebhookPayload());
result = result && (hasDiagnosticInfo() == other.hasDiagnosticInfo());
if (hasDiagnosticInfo()) {
result = result && getDiagnosticInfo().equals(other.getDiagnosticInfo());
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.spanner.v1.PlanNode)) {
return super.equals(obj);
}
com.google.spanner.v1.PlanNode other = (com.google.spanner.v1.PlanNode) obj;
boolean result = true;
result = result && (getIndex() == other.getIndex());
result = result && kind_ == other.kind_;
result = result && getDisplayName().equals(other.getDisplayName());
result = result && getChildLinksList().equals(other.getChildLinksList());
result = result && (hasShortRepresentation() == other.hasShortRepresentation());
if (hasShortRepresentation()) {
result = result && getShortRepresentation().equals(other.getShortRepresentation());
}
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && (hasExecutionStats() == other.hasExecutionStats());
if (hasExecutionStats()) {
result = result && getExecutionStats().equals(other.getExecutionStats());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.spanner.v1.ExecuteSqlRequest)) {
return super.equals(obj);
}
com.google.spanner.v1.ExecuteSqlRequest other = (com.google.spanner.v1.ExecuteSqlRequest) obj;
boolean result = true;
result = result && getSession().equals(other.getSession());
result = result && (hasTransaction() == other.hasTransaction());
if (hasTransaction()) {
result = result && getTransaction().equals(other.getTransaction());
}
result = result && getSql().equals(other.getSql());
result = result && (hasParams() == other.hasParams());
if (hasParams()) {
result = result && getParams().equals(other.getParams());
}
result = result && internalGetParamTypes().equals(other.internalGetParamTypes());
result = result && getResumeToken().equals(other.getResumeToken());
result = result && queryMode_ == other.queryMode_;
result = result && getPartitionToken().equals(other.getPartitionToken());
result = result && (getSeqno() == other.getSeqno());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
result = result && (hasPayload() == other.hasPayload());
if (hasPayload()) {
result = result && getPayload().equals(other.getPayload());
代码示例来源:origin: googleapis/google-cloud-java
result = result && (hasParams() == other.hasParams());
if (hasParams()) {
result = result && getParams().equals(other.getParams());
代码示例来源:origin: googleapis/google-cloud-java
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.spanner.v1.PartitionQueryRequest)) {
return super.equals(obj);
}
com.google.spanner.v1.PartitionQueryRequest other =
(com.google.spanner.v1.PartitionQueryRequest) obj;
boolean result = true;
result = result && getSession().equals(other.getSession());
result = result && (hasTransaction() == other.hasTransaction());
if (hasTransaction()) {
result = result && getTransaction().equals(other.getTransaction());
}
result = result && getSql().equals(other.getSql());
result = result && (hasParams() == other.hasParams());
if (hasParams()) {
result = result && getParams().equals(other.getParams());
}
result = result && internalGetParamTypes().equals(other.internalGetParamTypes());
result = result && (hasPartitionOptions() == other.hasPartitionOptions());
if (hasPartitionOptions()) {
result = result && getPartitionOptions().equals(other.getPartitionOptions());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: googleapis/google-cloud-java
result = result && getQueryStats().equals(other.getQueryStats());
代码示例来源:origin: googleapis/google-cloud-java
result = result && getParams().equals(other.getParams());
代码示例来源:origin: googleapis/google-cloud-java
break;
case 5:
result = result && getPayload().equals(other.getPayload());
break;
case 7:
内容来源于网络,如有侵权,请联系作者删除!