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

feat(v2): add restricted Retail Search features #150

Merged
merged 2 commits into from Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view

Large diffs are not rendered by default.

Expand Up @@ -30,6 +30,7 @@
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.retail.v2.stub.CatalogServiceStubSettings;
import com.google.protobuf.Empty;
import java.io.IOException;
import java.util.List;
import javax.annotation.Generated;
Expand Down Expand Up @@ -80,6 +81,17 @@ public UnaryCallSettings<UpdateCatalogRequest, Catalog> updateCatalogSettings()
return ((CatalogServiceStubSettings) getStubSettings()).updateCatalogSettings();
}

/** Returns the object with the settings used for calls to setDefaultBranch. */
public UnaryCallSettings<SetDefaultBranchRequest, Empty> setDefaultBranchSettings() {
return ((CatalogServiceStubSettings) getStubSettings()).setDefaultBranchSettings();
}

/** Returns the object with the settings used for calls to getDefaultBranch. */
public UnaryCallSettings<GetDefaultBranchRequest, GetDefaultBranchResponse>
getDefaultBranchSettings() {
return ((CatalogServiceStubSettings) getStubSettings()).getDefaultBranchSettings();
}

public static final CatalogServiceSettings create(CatalogServiceStubSettings stub)
throws IOException {
return new CatalogServiceSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -190,6 +202,17 @@ public UnaryCallSettings.Builder<UpdateCatalogRequest, Catalog> updateCatalogSet
return getStubSettingsBuilder().updateCatalogSettings();
}

/** Returns the builder for the settings used for calls to setDefaultBranch. */
public UnaryCallSettings.Builder<SetDefaultBranchRequest, Empty> setDefaultBranchSettings() {
return getStubSettingsBuilder().setDefaultBranchSettings();
}

/** Returns the builder for the settings used for calls to getDefaultBranch. */
public UnaryCallSettings.Builder<GetDefaultBranchRequest, GetDefaultBranchResponse>
getDefaultBranchSettings() {
return getStubSettingsBuilder().getDefaultBranchSettings();
}

@Override
public CatalogServiceSettings build() throws IOException {
return new CatalogServiceSettings(this);
Expand Down