Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,26 +139,6 @@ public CredentialsProvider getCredentialsProvider() {
return credentialsProvider;
}

/**
* The address used to reach the service.
*
* @deprecated use {@link getEndpoint} instead.
*/
@Deprecated
public String getServiceAddress() {
return serviceAddress;
}

/**
* The port used to reach the service.
*
* @deprecated use {@link getEndpoint} instead.
*/
@Deprecated
public int getPort() {
return port;
}

public String getEndpoint() {
return serviceAddress + ':' + port;
}
Expand Down Expand Up @@ -294,48 +274,6 @@ public String getEndpoint() {
return serviceAddress + ':' + port;
}

/**
* Sets the address used to reach the service.
*
* @deprecated use {@link setEndpoint} instead.
*/
@Deprecated
public Builder setServiceAddress(String serviceAddress) {
this.serviceAddress = serviceAddress;
return this;
}

/**
* The address used to reach the service.
*
* @deprecated use {@link getEndpoint} instead.
*/
@Deprecated
public String getServiceAddress() {
return serviceAddress;
}

/**
* Sets the port used to reach the service.
*
* @deprecated use {@link setEndpoint} instead.
*/
@Deprecated
public Builder setPort(int port) {
this.port = port;
return this;
}

/**
* The port used to reach the service.
*
* @deprecated use {@link getEndpoint} instead.
*/
@Deprecated
public int getPort() {
return port;
}

/**
* Sets the generator name and version for the GRPC custom header.
*/
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/com/google/longrunning/OperationsSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@
@ExperimentalApi
public class OperationsSettings extends ClientSettings {

/** The default port of the service. */
private static final int DEFAULT_SERVICE_PORT = 443;

private static final String DEFAULT_GAPIC_NAME = "gapic";
private static final String DEFAULT_GAPIC_VERSION = "";

Expand Down Expand Up @@ -109,11 +106,6 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
return InstantiatingExecutorProvider.newBuilder();
}

/** Returns the default service port. */
public static int getDefaultServicePort() {
return DEFAULT_SERVICE_PORT;
}

/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return GoogleCredentialsProvider.newBuilder();
Expand All @@ -122,7 +114,6 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingChannelProvider.Builder defaultChannelProviderBuilder() {
return InstantiatingChannelProvider.newBuilder()
.setPort(DEFAULT_SERVICE_PORT)
.setGeneratorHeader(DEFAULT_GAPIC_NAME, getGapicVersion())
.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
}
Expand Down