本文整理了Java中com.google.rpc.Status.equals()
方法的一些代码示例,展示了Status.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Status.equals()
方法的具体详情如下:
包路径:com.google.rpc.Status
类名称:Status
方法名: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.privacy.dlp.v2.Error)) {
return super.equals(obj);
}
com.google.privacy.dlp.v2.Error other = (com.google.privacy.dlp.v2.Error) obj;
boolean result = true;
result = result && (hasDetails() == other.hasDetails());
if (hasDetails()) {
result = result && getDetails().equals(other.getDetails());
}
result = result && getTimestampsList().equals(other.getTimestampsList());
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.speech.v1p1beta1.StreamingRecognizeResponse)) {
return super.equals(obj);
}
com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other =
(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError().equals(other.getError());
}
result = result && getResultsList().equals(other.getResultsList());
result = result && speechEventType_ == other.speechEventType_;
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.speech.v1.StreamingRecognizeResponse)) {
return super.equals(obj);
}
com.google.cloud.speech.v1.StreamingRecognizeResponse other =
(com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError().equals(other.getError());
}
result = result && getResultsList().equals(other.getResultsList());
result = result && speechEventType_ == other.speechEventType_;
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.bigtable.v2.MutateRowsResponse.Entry)) {
return super.equals(obj);
}
com.google.bigtable.v2.MutateRowsResponse.Entry other =
(com.google.bigtable.v2.MutateRowsResponse.Entry) obj;
boolean result = true;
result = result && (getIndex() == other.getIndex());
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus().equals(other.getStatus());
}
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.videointelligence.v1beta1.VideoAnnotationResults)) {
return super.equals(obj);
}
com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults other =
(com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults) obj;
boolean result = true;
result = result && getInputUri().equals(other.getInputUri());
result = result && getLabelAnnotationsList().equals(other.getLabelAnnotationsList());
result = result && getFaceAnnotationsList().equals(other.getFaceAnnotationsList());
result = result && getShotAnnotationsList().equals(other.getShotAnnotationsList());
result = result && getSafeSearchAnnotationsList().equals(other.getSafeSearchAnnotationsList());
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError().equals(other.getError());
}
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.speech.v1beta1.StreamingRecognizeResponse)) {
return super.equals(obj);
}
com.google.cloud.speech.v1beta1.StreamingRecognizeResponse other =
(com.google.cloud.speech.v1beta1.StreamingRecognizeResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError().equals(other.getError());
}
result = result && getResultsList().equals(other.getResultsList());
result = result && (getResultIndex() == other.getResultIndex());
result = result && endpointerType_ == other.endpointerType_;
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.vision.v1p3beta1.ProductSet)) {
return super.equals(obj);
}
com.google.cloud.vision.v1p3beta1.ProductSet other =
(com.google.cloud.vision.v1p3beta1.ProductSet) obj;
boolean result = true;
result = result && getName().equals(other.getName());
result = result && getDisplayName().equals(other.getDisplayName());
result = result && (hasIndexTime() == other.hasIndexTime());
if (hasIndexTime()) {
result = result && getIndexTime().equals(other.getIndexTime());
}
result = result && (hasIndexError() == other.hasIndexError());
if (hasIndexError()) {
result = result && getIndexError().equals(other.getIndexError());
}
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.vision.v1.ProductSet)) {
return super.equals(obj);
}
com.google.cloud.vision.v1.ProductSet other = (com.google.cloud.vision.v1.ProductSet) obj;
boolean result = true;
result = result && getName().equals(other.getName());
result = result && getDisplayName().equals(other.getDisplayName());
result = result && (hasIndexTime() == other.hasIndexTime());
if (hasIndexTime()) {
result = result && getIndexTime().equals(other.getIndexTime());
}
result = result && (hasIndexError() == other.hasIndexError());
if (hasIndexError()) {
result = result && getIndexError().equals(other.getIndexError());
}
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.firestore.v1.TargetChange)) {
return super.equals(obj);
}
com.google.firestore.v1.TargetChange other = (com.google.firestore.v1.TargetChange) obj;
boolean result = true;
result = result && targetChangeType_ == other.targetChangeType_;
result = result && getTargetIdsList().equals(other.getTargetIdsList());
result = result && (hasCause() == other.hasCause());
if (hasCause()) {
result = result && getCause().equals(other.getCause());
}
result = result && getResumeToken().equals(other.getResumeToken());
result = result && (hasReadTime() == other.hasReadTime());
if (hasReadTime()) {
result = result && getReadTime().equals(other.getReadTime());
}
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.DetectIntentResponse)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2.DetectIntentResponse other =
(com.google.cloud.dialogflow.v2.DetectIntentResponse) obj;
boolean result = true;
result = result && getResponseId().equals(other.getResponseId());
result = result && (hasQueryResult() == other.hasQueryResult());
if (hasQueryResult()) {
result = result && getQueryResult().equals(other.getQueryResult());
}
result = result && (hasWebhookStatus() == other.hasWebhookStatus());
if (hasWebhookStatus()) {
result = result && getWebhookStatus().equals(other.getWebhookStatus());
}
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.firestore.v1beta1.TargetChange)) {
return super.equals(obj);
}
com.google.firestore.v1beta1.TargetChange other =
(com.google.firestore.v1beta1.TargetChange) obj;
boolean result = true;
result = result && targetChangeType_ == other.targetChangeType_;
result = result && getTargetIdsList().equals(other.getTargetIdsList());
result = result && (hasCause() == other.hasCause());
if (hasCause()) {
result = result && getCause().equals(other.getCause());
}
result = result && getResumeToken().equals(other.getResumeToken());
result = result && (hasReadTime() == other.hasReadTime());
if (hasReadTime()) {
result = result && getReadTime().equals(other.getReadTime());
}
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.videointelligence.v1p1beta1.VideoAnnotationResults)) {
return super.equals(obj);
}
com.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults other =
(com.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults) obj;
boolean result = true;
result = result && getInputUri().equals(other.getInputUri());
result =
result && getSegmentLabelAnnotationsList().equals(other.getSegmentLabelAnnotationsList());
result = result && getShotLabelAnnotationsList().equals(other.getShotLabelAnnotationsList());
result = result && getFrameLabelAnnotationsList().equals(other.getFrameLabelAnnotationsList());
result = result && getShotAnnotationsList().equals(other.getShotAnnotationsList());
result = result && (hasExplicitAnnotation() == other.hasExplicitAnnotation());
if (hasExplicitAnnotation()) {
result = result && getExplicitAnnotation().equals(other.getExplicitAnnotation());
}
result = result && getSpeechTranscriptionsList().equals(other.getSpeechTranscriptionsList());
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError().equals(other.getError());
}
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.monitoring.v3.CreateTimeSeriesError)) {
return super.equals(obj);
}
com.google.monitoring.v3.CreateTimeSeriesError other =
(com.google.monitoring.v3.CreateTimeSeriesError) obj;
boolean result = true;
result = result && (hasTimeSeries() == other.hasTimeSeries());
if (hasTimeSeries()) {
result = result && getTimeSeries().equals(other.getTimeSeries());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus().equals(other.getStatus());
}
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.videointelligence.v1.VideoAnnotationResults)) {
return super.equals(obj);
}
com.google.cloud.videointelligence.v1.VideoAnnotationResults other =
(com.google.cloud.videointelligence.v1.VideoAnnotationResults) obj;
boolean result = true;
result = result && getInputUri().equals(other.getInputUri());
result =
result && getSegmentLabelAnnotationsList().equals(other.getSegmentLabelAnnotationsList());
result = result && getShotLabelAnnotationsList().equals(other.getShotLabelAnnotationsList());
result = result && getFrameLabelAnnotationsList().equals(other.getFrameLabelAnnotationsList());
result = result && getFaceAnnotationsList().equals(other.getFaceAnnotationsList());
result = result && getShotAnnotationsList().equals(other.getShotAnnotationsList());
result = result && (hasExplicitAnnotation() == other.hasExplicitAnnotation());
if (hasExplicitAnnotation()) {
result = result && getExplicitAnnotation().equals(other.getExplicitAnnotation());
}
result = result && getSpeechTranscriptionsList().equals(other.getSpeechTranscriptionsList());
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError().equals(other.getError());
}
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.videointelligence.v1beta2.VideoAnnotationResults)) {
return super.equals(obj);
}
com.google.cloud.videointelligence.v1beta2.VideoAnnotationResults other =
(com.google.cloud.videointelligence.v1beta2.VideoAnnotationResults) obj;
boolean result = true;
result = result && getInputUri().equals(other.getInputUri());
result =
result && getSegmentLabelAnnotationsList().equals(other.getSegmentLabelAnnotationsList());
result = result && getShotLabelAnnotationsList().equals(other.getShotLabelAnnotationsList());
result = result && getFrameLabelAnnotationsList().equals(other.getFrameLabelAnnotationsList());
result = result && getFaceAnnotationsList().equals(other.getFaceAnnotationsList());
result = result && getShotAnnotationsList().equals(other.getShotAnnotationsList());
result = result && (hasExplicitAnnotation() == other.hasExplicitAnnotation());
if (hasExplicitAnnotation()) {
result = result && getExplicitAnnotation().equals(other.getExplicitAnnotation());
}
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError().equals(other.getError());
}
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 io.grafeas.v1beta1.discovery.Discovered)) {
return super.equals(obj);
}
io.grafeas.v1beta1.discovery.Discovered other = (io.grafeas.v1beta1.discovery.Discovered) obj;
boolean result = true;
result = result && continuousAnalysis_ == other.continuousAnalysis_;
result = result && (hasLastAnalysisTime() == other.hasLastAnalysisTime());
if (hasLastAnalysisTime()) {
result = result && getLastAnalysisTime().equals(other.getLastAnalysisTime());
}
result = result && analysisStatus_ == other.analysisStatus_;
result = result && (hasAnalysisStatusError() == other.hasAnalysisStatusError());
if (hasAnalysisStatusError()) {
result = result && getAnalysisStatusError().equals(other.getAnalysisStatusError());
}
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.DetectIntentResponse)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2beta1.DetectIntentResponse other =
(com.google.cloud.dialogflow.v2beta1.DetectIntentResponse) obj;
boolean result = true;
result = result && getResponseId().equals(other.getResponseId());
result = result && (hasQueryResult() == other.hasQueryResult());
if (hasQueryResult()) {
result = result && getQueryResult().equals(other.getQueryResult());
}
result =
result && getAlternativeQueryResultsList().equals(other.getAlternativeQueryResultsList());
result = result && (hasWebhookStatus() == other.hasWebhookStatus());
if (hasWebhookStatus()) {
result = result && getWebhookStatus().equals(other.getWebhookStatus());
}
result = result && getOutputAudio().equals(other.getOutputAudio());
result = result && (hasOutputAudioConfig() == other.hasOutputAudioConfig());
if (hasOutputAudioConfig()) {
result = result && getOutputAudioConfig().equals(other.getOutputAudioConfig());
}
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.StreamingDetectIntentResponse)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse other =
(com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse) obj;
boolean result = true;
result = result && getResponseId().equals(other.getResponseId());
result = result && (hasRecognitionResult() == other.hasRecognitionResult());
if (hasRecognitionResult()) {
result = result && getRecognitionResult().equals(other.getRecognitionResult());
}
result = result && (hasQueryResult() == other.hasQueryResult());
if (hasQueryResult()) {
result = result && getQueryResult().equals(other.getQueryResult());
}
result = result && (hasWebhookStatus() == other.hasWebhookStatus());
if (hasWebhookStatus()) {
result = result && getWebhookStatus().equals(other.getWebhookStatus());
}
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.tasks.v2beta2.AttemptStatus)) {
return super.equals(obj);
}
com.google.cloud.tasks.v2beta2.AttemptStatus other =
(com.google.cloud.tasks.v2beta2.AttemptStatus) obj;
boolean result = true;
result = result && (hasScheduleTime() == other.hasScheduleTime());
if (hasScheduleTime()) {
result = result && getScheduleTime().equals(other.getScheduleTime());
}
result = result && (hasDispatchTime() == other.hasDispatchTime());
if (hasDispatchTime()) {
result = result && getDispatchTime().equals(other.getDispatchTime());
}
result = result && (hasResponseTime() == other.hasResponseTime());
if (hasResponseTime()) {
result = result && getResponseTime().equals(other.getResponseTime());
}
result = result && (hasResponseStatus() == other.hasResponseStatus());
if (hasResponseStatus()) {
result = result && getResponseStatus().equals(other.getResponseStatus());
}
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.tasks.v2beta3.Attempt)) {
return super.equals(obj);
}
com.google.cloud.tasks.v2beta3.Attempt other = (com.google.cloud.tasks.v2beta3.Attempt) obj;
boolean result = true;
result = result && (hasScheduleTime() == other.hasScheduleTime());
if (hasScheduleTime()) {
result = result && getScheduleTime().equals(other.getScheduleTime());
}
result = result && (hasDispatchTime() == other.hasDispatchTime());
if (hasDispatchTime()) {
result = result && getDispatchTime().equals(other.getDispatchTime());
}
result = result && (hasResponseTime() == other.hasResponseTime());
if (hasResponseTime()) {
result = result && getResponseTime().equals(other.getResponseTime());
}
result = result && (hasResponseStatus() == other.hasResponseStatus());
if (hasResponseStatus()) {
result = result && getResponseStatus().equals(other.getResponseStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
内容来源于网络,如有侵权,请联系作者删除!