Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
feat: adds Subtitle to Intent (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and chingor13 committed Nov 11, 2019
1 parent c638c42 commit 5a337c9
Show file tree
Hide file tree
Showing 15 changed files with 820 additions and 412 deletions.
3 changes: 0 additions & 3 deletions .kokoro/release/drop.cfg
Expand Up @@ -4,6 +4,3 @@ env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-dialogflow/.kokoro/release/drop.sh"
}

# Download staging properties file.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-dialogflow"
4 changes: 0 additions & 4 deletions .kokoro/release/promote.cfg
Expand Up @@ -4,7 +4,3 @@ env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-dialogflow/.kokoro/release/promote.sh"
}

# Download staging properties file.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-dialogflow"

Expand Up @@ -19941,6 +19941,27 @@ public interface ListSelectOrBuilder
*/
com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.ItemOrBuilder getItemsOrBuilder(
int index);

/**
*
*
* <pre>
* Optional. Subtitle of the list.
* </pre>
*
* <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
java.lang.String getSubtitle();
/**
*
*
* <pre>
* Optional. Subtitle of the list.
* </pre>
*
* <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
com.google.protobuf.ByteString getSubtitleBytes();
}
/**
*
Expand All @@ -19964,6 +19985,7 @@ private ListSelect(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
private ListSelect() {
title_ = "";
items_ = java.util.Collections.emptyList();
subtitle_ = "";
}

@java.lang.Override
Expand Down Expand Up @@ -20011,6 +20033,13 @@ private ListSelect(
extensionRegistry));
break;
}
case 26:
{
java.lang.String s = input.readStringRequireUtf8();

subtitle_ = s;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
Expand Down Expand Up @@ -21660,6 +21689,49 @@ public com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item getItems(in
return items_.get(index);
}

public static final int SUBTITLE_FIELD_NUMBER = 3;
private volatile java.lang.Object subtitle_;
/**
*
*
* <pre>
* Optional. Subtitle of the list.
* </pre>
*
* <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
public java.lang.String getSubtitle() {
java.lang.Object ref = subtitle_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subtitle_ = s;
return s;
}
}
/**
*
*
* <pre>
* Optional. Subtitle of the list.
* </pre>
*
* <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
public com.google.protobuf.ByteString getSubtitleBytes() {
java.lang.Object ref = subtitle_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
subtitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}

private byte memoizedIsInitialized = -1;

@java.lang.Override
Expand All @@ -21680,6 +21752,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.get(i));
}
if (!getSubtitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subtitle_);
}
unknownFields.writeTo(output);
}

Expand All @@ -21695,6 +21770,9 @@ public int getSerializedSize() {
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i));
}
if (!getSubtitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subtitle_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
Expand All @@ -21713,6 +21791,7 @@ public boolean equals(final java.lang.Object obj) {

if (!getTitle().equals(other.getTitle())) return false;
if (!getItemsList().equals(other.getItemsList())) return false;
if (!getSubtitle().equals(other.getSubtitle())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
Expand All @@ -21730,6 +21809,8 @@ public int hashCode() {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (37 * hash) + SUBTITLE_FIELD_NUMBER;
hash = (53 * hash) + getSubtitle().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
Expand Down Expand Up @@ -21888,6 +21969,8 @@ public Builder clear() {
} else {
itemsBuilder_.clear();
}
subtitle_ = "";

return this;
}

Expand Down Expand Up @@ -21928,6 +22011,7 @@ public com.google.cloud.dialogflow.v2.Intent.Message.ListSelect buildPartial() {
} else {
result.items_ = itemsBuilder_.build();
}
result.subtitle_ = subtitle_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
Expand Down Expand Up @@ -22013,6 +22097,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.Message.ListSelec
}
}
}
if (!other.getSubtitle().isEmpty()) {
subtitle_ = other.subtitle_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
Expand Down Expand Up @@ -22545,6 +22633,100 @@ public Builder removeItems(int index) {
return itemsBuilder_;
}

private java.lang.Object subtitle_ = "";
/**
*
*
* <pre>
* Optional. Subtitle of the list.
* </pre>
*
* <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
public java.lang.String getSubtitle() {
java.lang.Object ref = subtitle_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subtitle_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
* <pre>
* Optional. Subtitle of the list.
* </pre>
*
* <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
public com.google.protobuf.ByteString getSubtitleBytes() {
java.lang.Object ref = subtitle_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
subtitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
* <pre>
* Optional. Subtitle of the list.
* </pre>
*
* <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
public Builder setSubtitle(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}

subtitle_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* Optional. Subtitle of the list.
* </pre>
*
* <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
public Builder clearSubtitle() {

subtitle_ = getDefaultInstance().getSubtitle();
onChanged();
return this;
}
/**
*
*
* <pre>
* Optional. Subtitle of the list.
* </pre>
*
* <code>string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
public Builder setSubtitleBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);

subtitle_ = value;
onChanged();
return this;
}

@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
Expand Down Expand Up @@ -30813,9 +30995,12 @@ public com.google.cloud.dialogflow.v2.Intent.WebhookState getWebhookState() {
*
* <pre>
* Optional. The priority of this intent. Higher numbers represent higher
* priorities. If this is zero or unspecified, we use the default
* priority 500000.
* Negative numbers mean that the intent is disabled.
* priorities.
* - If the supplied value is unspecified or 0, the service
* translates the value to 500,000, which corresponds to the
* `Normal` priority in the console.
* - If the supplied value is negative, the intent is ignored
* in runtime detect intent requests.
* </pre>
*
* <code>int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand Down Expand Up @@ -32788,9 +32973,12 @@ public Builder clearWebhookState() {
*
* <pre>
* Optional. The priority of this intent. Higher numbers represent higher
* priorities. If this is zero or unspecified, we use the default
* priority 500000.
* Negative numbers mean that the intent is disabled.
* priorities.
* - If the supplied value is unspecified or 0, the service
* translates the value to 500,000, which corresponds to the
* `Normal` priority in the console.
* - If the supplied value is negative, the intent is ignored
* in runtime detect intent requests.
* </pre>
*
* <code>int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -32803,9 +32991,12 @@ public int getPriority() {
*
* <pre>
* Optional. The priority of this intent. Higher numbers represent higher
* priorities. If this is zero or unspecified, we use the default
* priority 500000.
* Negative numbers mean that the intent is disabled.
* priorities.
* - If the supplied value is unspecified or 0, the service
* translates the value to 500,000, which corresponds to the
* `Normal` priority in the console.
* - If the supplied value is negative, the intent is ignored
* in runtime detect intent requests.
* </pre>
*
* <code>int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand All @@ -32821,9 +33012,12 @@ public Builder setPriority(int value) {
*
* <pre>
* Optional. The priority of this intent. Higher numbers represent higher
* priorities. If this is zero or unspecified, we use the default
* priority 500000.
* Negative numbers mean that the intent is disabled.
* priorities.
* - If the supplied value is unspecified or 0, the service
* translates the value to 500,000, which corresponds to the
* `Normal` priority in the console.
* - If the supplied value is negative, the intent is ignored
* in runtime detect intent requests.
* </pre>
*
* <code>int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand Down
Expand Up @@ -101,9 +101,12 @@ public interface IntentOrBuilder
*
* <pre>
* Optional. The priority of this intent. Higher numbers represent higher
* priorities. If this is zero or unspecified, we use the default
* priority 500000.
* Negative numbers mean that the intent is disabled.
* priorities.
* - If the supplied value is unspecified or 0, the service
* translates the value to 500,000, which corresponds to the
* `Normal` priority in the console.
* - If the supplied value is negative, the intent is ignored
* in runtime detect intent requests.
* </pre>
*
* <code>int32 priority = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
Expand Down

0 comments on commit 5a337c9

Please sign in to comment.