public final class GetWidgetConfigRequest extends GeneratedMessage implements GetWidgetConfigRequestOrBuilder
Request for
WidgetConfigService.GetWidgetConfig
method.
Protobuf type google.cloud.discoveryengine.v1.GetWidgetConfigRequest
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int ACCEPT_CACHE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int GET_WIDGET_CONFIG_REQUEST_OPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int LANGUAGE_CODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int MODEL_INFO_VIEW_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static GetWidgetConfigRequest getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static GetWidgetConfigRequest.Builder newBuilder()
public static GetWidgetConfigRequest.Builder newBuilder(GetWidgetConfigRequest prototype)
public static GetWidgetConfigRequest parseDelimitedFrom(InputStream input)
public static GetWidgetConfigRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GetWidgetConfigRequest parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static GetWidgetConfigRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GetWidgetConfigRequest parseFrom(ByteString data)
public static GetWidgetConfigRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GetWidgetConfigRequest parseFrom(CodedInputStream input)
public static GetWidgetConfigRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GetWidgetConfigRequest parseFrom(InputStream input)
public static GetWidgetConfigRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GetWidgetConfigRequest parseFrom(ByteBuffer data)
public static GetWidgetConfigRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<GetWidgetConfigRequest> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public boolean getAcceptCache()
Optional. Whether it's acceptable to load the widget config from cache. If
set to true, recent changes on widget configs may take a few minutes to
reflect on the end user's view. It's recommended to set to true for
maturely developed widgets, as it improves widget performance. Set to false
to see changes reflected in prod right away, if your widget is under
development.
bool accept_cache = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The acceptCache.
|
public GetWidgetConfigRequest getDefaultInstanceForType()
public GetWidgetConfigRequest.GetWidgetConfigRequestOption getGetWidgetConfigRequestOption()
Optional. Options for GetWidgetConfigRequest.
.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];
public GetWidgetConfigRequest.GetWidgetConfigRequestOptionOrBuilder getGetWidgetConfigRequestOptionOrBuilder()
Optional. Options for GetWidgetConfigRequest.
.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];
public String getLanguageCode()
Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
human-readable strings in the response, such as the model selector
display_name / description on
WidgetConfig.UiSettings.ModelConfigInfo. Empty / unset falls back to
the default language (English).
string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The languageCode.
|
public ByteString getLanguageCodeBytes()
Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
human-readable strings in the response, such as the model selector
display_name / description on
WidgetConfig.UiSettings.ModelConfigInfo. Empty / unset falls back to
the default language (English).
string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for languageCode.
|
public ModelInfoView getModelInfoView()
Optional. Selects which view of WidgetConfig.UiSettings.ModelConfigInfo
the backend computes. ADMIN is set by the Cloud Console admin "Feature
Management" page to receive the admin-surfaced
model set with ResolvedModel.admin_view populated; END_USER_MOBILE is
set by the Gemini Enterprise mobile app to receive the mobile model set;
unset / END_USER_WEB returns the end-user web selector.
.google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL];
public int getModelInfoViewValue()
Optional. Selects which view of WidgetConfig.UiSettings.ModelConfigInfo
the backend computes. ADMIN is set by the Cloud Console admin "Feature
Management" page to receive the admin-surfaced
model set with ResolvedModel.admin_view populated; END_USER_MOBILE is
set by the Gemini Enterprise mobile app to receive the mobile model set;
unset / END_USER_WEB returns the end-user web selector.
.google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for modelInfoView.
|
Required. Full WidgetConfig resource name. Format:
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
Required. Full WidgetConfig resource name. Format:
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
public Parser<GetWidgetConfigRequest> getParserForType()
Overrides
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public boolean hasGetWidgetConfigRequestOption()
Optional. Options for GetWidgetConfigRequest.
.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the getWidgetConfigRequestOption field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public GetWidgetConfigRequest.Builder newBuilderForType()
protected GetWidgetConfigRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public GetWidgetConfigRequest.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides