com.google.protobuf.Struct.getDefaultInstance()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(7.0k)|赞(0)|评价(0)|浏览(241)

本文整理了Java中com.google.protobuf.Struct.getDefaultInstance()方法的一些代码示例,展示了Struct.getDefaultInstance()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Struct.getDefaultInstance()方法的具体详情如下:
包路径:com.google.protobuf.Struct
类名称:Struct
方法名:getDefaultInstance

Struct.getDefaultInstance介绍

暂无

代码示例

代码示例来源:origin: com.google.protobuf/protobuf-java

/**
 * <pre>
 * Represents a structured value.
 * </pre>
 *
 * <code>.google.protobuf.Struct struct_value = 5;</code>
 */
public com.google.protobuf.StructOrBuilder getStructValueOrBuilder() {
 if (kindCase_ == 5) {
   return (com.google.protobuf.Struct) kind_;
 }
 return com.google.protobuf.Struct.getDefaultInstance();
}

代码示例来源:origin: com.google.protobuf/protobuf-java

@java.lang.Override
public com.google.protobuf.Struct getDefaultInstanceForType() {
 return com.google.protobuf.Struct.getDefaultInstance();
}

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * Output only. Data transfer specific parameters.
 * </pre>
 *
 * <code>.google.protobuf.Struct params = 9;</code>
 */
public com.google.protobuf.Struct getParams() {
 return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * The collection of extracted parameters.
 * </pre>
 *
 * <code>.google.protobuf.Struct parameters = 4;</code>
 */
public com.google.protobuf.Struct getParameters() {
 return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * Optional. The collection of parameters associated with the event.
 * </pre>
 *
 * <code>.google.protobuf.Struct parameters = 2;</code>
 */
public com.google.protobuf.Struct getParameters() {
 return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
}
/**

代码示例来源:origin: com.google.protobuf/protobuf-java

/**
 * <pre>
 * Represents a structured value.
 * </pre>
 *
 * <code>.google.protobuf.Struct struct_value = 5;</code>
 */
public com.google.protobuf.Struct getStructValue() {
 if (kindCase_ == 5) {
   return (com.google.protobuf.Struct) kind_;
 }
 return com.google.protobuf.Struct.getDefaultInstance();
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * Data transfer specific parameters.
 * </pre>
 *
 * <code>.google.protobuf.Struct params = 9;</code>
 */
public com.google.protobuf.Struct getParams() {
 return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * Optional. The collection of parameters associated with the event.
 * </pre>
 *
 * <code>.google.protobuf.Struct parameters = 2;</code>
 */
public com.google.protobuf.Struct getParameters() {
 return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * The collection of extracted parameters.
 * </pre>
 *
 * <code>.google.protobuf.Struct parameters = 4;</code>
 */
public com.google.protobuf.Struct getParameters() {
 return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * Optional. This field can be used to pass custom data into the webhook
 * associated with the agent. Arbitrary JSON objects are supported.
 * </pre>
 *
 * <code>.google.protobuf.Struct payload = 6;</code>
 */
public com.google.protobuf.Struct getPayload() {
 return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * Optional. This field is set to the value of `QueryParameters.payload` field
 * passed in the request.
 * </pre>
 *
 * <code>.google.protobuf.Struct payload = 3;</code>
 */
public com.google.protobuf.Struct getPayload() {
 return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * The content of the resource, in which some sensitive fields are scrubbed
 * away and may not be present.
 * </pre>
 *
 * <code>.google.protobuf.Struct data = 6;</code>
 */
public com.google.protobuf.Struct getData() {
 return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * Optional. This field can be used to pass custom data into the webhook
 * associated with the agent. Arbitrary JSON objects are supported.
 * </pre>
 *
 * <code>.google.protobuf.Struct payload = 6;</code>
 */
public com.google.protobuf.Struct getPayload() {
 return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * Optional. The collection of parameters associated with this context.
 * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
 * syntax.
 * </pre>
 *
 * <code>.google.protobuf.Struct parameters = 3;</code>
 */
public com.google.protobuf.Struct getParameters() {
 return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * The log entry payload, represented as a structure that is
 * expressed as a JSON object.
 * </pre>
 *
 * <code>.google.protobuf.Struct json_payload = 6;</code>
 */
public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
 if (payloadCase_ == 6) {
  return (com.google.protobuf.Struct) payload_;
 }
 return com.google.protobuf.Struct.getDefaultInstance();
}

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * Optional. The collection of parameters associated with this context.
 * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
 * syntax.
 * </pre>
 *
 * <code>.google.protobuf.Struct parameters = 3;</code>
 */
public com.google.protobuf.Struct getParameters() {
 return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * If the query was fulfilled by a webhook call, this field is set to the
 * value of the `payload` field returned in the webhook response.
 * </pre>
 *
 * <code>.google.protobuf.Struct webhook_payload = 9;</code>
 */
public com.google.protobuf.Struct getWebhookPayload() {
 return webhookPayload_ == null
   ? com.google.protobuf.Struct.getDefaultInstance()
   : webhookPayload_;
}
/**

代码示例来源:origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * The free-form diagnostic info. For example, this field
 * could contain webhook call latency.
 * </pre>
 *
 * <code>.google.protobuf.Struct diagnostic_info = 14;</code>
 */
public com.google.protobuf.Struct getDiagnosticInfo() {
 return diagnosticInfo_ == null
   ? com.google.protobuf.Struct.getDefaultInstance()
   : diagnosticInfo_;
}
/**

代码示例来源:origin: com.google.protobuf/protobuf-java

public Builder mergeFrom(com.google.protobuf.Struct other) {
 if (other == com.google.protobuf.Struct.getDefaultInstance()) return this;
 internalGetMutableFields().mergeFrom(
   other.internalGetFields());
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}

代码示例来源:origin: googleapis/google-cloud-java

@Test
public void testAsMapEmpty() {
 Map<String, Object> map = Structs.asMap(Struct.getDefaultInstance());
 assertTrue(map.isEmpty());
 assertEquals(EMPTY_MAP, map);
}

相关文章